Out of all the primitive Pythagorean triples ( a , b , c ) , find the sum of every possible difference of legs k = b − a such that 0 < k ≤ 1 0 .
This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.
I thought I had to add all the values of the difference and got multiples of 8 .
Solution: 8
k = 1 is possible because ( 3 , 4 , 5 ) is a primitive Pythagorean triple, and 4 − 3 = 1 .
An even k is not possible:
If x is even, then x 2 ≡ 0 ( m o d 4 ) , and if x is odd, then x 2 ≡ 1 ( m o d 4 ) . Therefore, all squares are either x 2 ≡ 0 , 1 ( m o d 4 ) .
If a is even, then b = a + k is even, which means c 2 = a 2 + b 2 is even, which means c is even. But then ( a , b , c ) is not a primitive Pythagorean triple because a , b , and c are all divisible by 2 .
If a is odd, then b = a + k is odd, which means c 2 = a 2 + b 2 ≡ 2 ( m o d 4 ) , which is not possible for a square.
Since a cannot be even or odd, k cannot be even.
k = 3 is not possible:
If x ≡ 0 ( m o d 3 ) , then x 2 ≡ 0 ( m o d 3 ) , and if x ≡ 1 ( m o d 3 ) , then x 2 ≡ 1 ( m o d 3 ) , and if x ≡ 2 ( m o d 3 ) , then x 2 ≡ 1 ( m o d 3 ) . Therefore, all squares are either x 2 ≡ 0 , 1 ( m o d 3 ) .
If a ≡ 0 ( m o d 3 ) , then b = a + 3 ≡ 0 ( m o d 3 ) , which means c 2 = a 2 + b 2 ≡ 0 ( m o d 3 ) , which means c ≡ 0 ( m o d 3 ) . But then ( a , b , c ) is not a primitive Pythagorean triple because a , b , and c are all divisible by 3 .
If a ≡ 1 ( m o d 3 ) , then b = a + 3 ≡ 1 ( m o d 3 ) , which means c 2 = a 2 + b 2 ≡ 2 ( m o d 3 ) , which is not possible for a square.
If a ≡ 2 ( m o d 3 ) , then b = a + 3 ≡ 2 ( m o d 3 ) , which means c 2 = a 2 + b 2 ≡ 2 ( m o d 3 ) , which is not possible for a square.
Since it is not possible for a ≡ 0 , 1 , 2 ( m o d 3 ) , k = 3 is not possible.
k = 5 is not possible:
If x ≡ 0 ( m o d 5 ) , then x 2 ≡ 0 ( m o d 5 ) , and if x ≡ 1 ( m o d 5 ) , then x 2 ≡ 1 ( m o d 5 ) , if x ≡ 2 ( m o d 5 ) , then x 2 ≡ 4 ( m o d 5 ) , if x ≡ 3 ( m o d 5 ) , then x 2 ≡ 4 ( m o d 5 ) , and if x ≡ 4 ( m o d 5 ) , then x 2 ≡ 1 ( m o d 5 ) . Therefore, all squares are either x 2 ≡ 0 , 1 , 4 ( m o d 5 ) .
If a ≡ 0 ( m o d 5 ) , then b = a + 5 ≡ 0 ( m o d 5 ) , which means c 2 = a 2 + b 2 ≡ 0 ( m o d 5 ) , which means c ≡ 0 ( m o d 5 ) . But then ( a , b , c ) is not a primitive Pythagorean triple because a , b , and c are all divisible by 5 .
If a ≡ 1 ( m o d 5 ) , then b = a + 5 ≡ 1 ( m o d 5 ) , which means c 2 = a 2 + b 2 ≡ 2 ( m o d 5 ) , which is not possible for a square.
If a ≡ 2 ( m o d 5 ) , then b = a + 5 ≡ 2 ( m o d 5 ) , which means c 2 = a 2 + b 2 ≡ 3 ( m o d 5 ) , which is not possible for a square.
If a ≡ 3 ( m o d 5 ) , then b = a + 5 ≡ 3 ( m o d 5 ) , which means c 2 = a 2 + b 2 ≡ 3 ( m o d 5 ) , which is not possible for a square.
If a ≡ 4 ( m o d 5 ) , then b = a + 5 ≡ 4 ( m o d 5 ) , which means c 2 = a 2 + b 2 ≡ 2 ( m o d 5 ) , which is not possible for a square.
Since it is not possible for a ≡ 0 , 1 , 2 , 3 , 4 ( m o d 5 ) , k = 5 is not possible.
k = 7 is possible because ( 5 , 1 2 , 1 3 ) is a primitive Pythagorean triple, and 1 2 − 5 = 7 .
k = 9 is not possible:
If x ≡ 0 ( m o d 9 ) , then x 2 ≡ 0 ( m o d 9 ) , and if x ≡ 1 ( m o d 9 ) , then x 2 ≡ 1 ( m o d 9 ) , if x ≡ 2 ( m o d 9 ) , then x 2 ≡ 4 ( m o d 9 ) , if x ≡ 3 ( m o d 9 ) , then x 2 ≡ 0 ( m o d 9 ) , if x ≡ 4 ( m o d 9 ) , then x 2 ≡ 7 ( m o d 9 ) , if x ≡ 5 ( m o d 9 ) , then x 2 ≡ 7 ( m o d 9 ) , if x ≡ 6 ( m o d 9 ) , then x 2 ≡ 0 ( m o d 9 ) , if x ≡ 7 ( m o d 9 ) , then x 2 ≡ 4 ( m o d 9 ) , and if x ≡ 8 ( m o d 9 ) , then x 2 ≡ 1 ( m o d 9 ) . Therefore, all squares are either x 2 ≡ 0 , 1 , 4 , 7 ( m o d 9 ) .
If a ≡ 0 ( m o d 9 ) , then b = a + 9 ≡ 0 ( m o d 9 ) , which means c 2 = a 2 + b 2 ≡ 0 ( m o d 9 ) , which means c ≡ 0 ( m o d 9 ) . But then ( a , b , c ) is not a primitive Pythagorean triple because a , b , and c are all divisible by 9 .
If a ≡ 1 ( m o d 9 ) , then b = a + 9 ≡ 1 ( m o d 9 ) , which means c 2 = a 2 + b 2 ≡ 2 ( m o d 9 ) , which is not possible for a square.
If a ≡ 2 ( m o d 9 ) , then b = a + 9 ≡ 2 ( m o d 9 ) , which means c 2 = a 2 + b 2 ≡ 8 ( m o d 9 ) , which is not possible for a square.
If a ≡ 3 ( m o d 9 ) , then b = a + 9 ≡ 3 ( m o d 9 ) , which means c 2 = a 2 + b 2 ≡ 0 ( m o d 9 ) . But then ( a , b , c ) is not a primitive Pythagorean triple because a , b , and c are all divisible by 3 .
If a ≡ 4 ( m o d 9 ) , then b = a + 9 ≡ 4 ( m o d 9 ) , which means c 2 = a 2 + b 2 ≡ 5 ( m o d 9 ) , which is not possible for a square.
If a ≡ 5 ( m o d 9 ) , then b = a + 9 ≡ 5 ( m o d 9 ) , which means c 2 = a 2 + b 2 ≡ 5 ( m o d 9 ) , which is not possible for a square.
If a ≡ 6 ( m o d 9 ) , then b = a + 9 ≡ 6 ( m o d 9 ) , which means c 2 = a 2 + b 2 ≡ 0 ( m o d 9 ) . But then ( a , b , c ) is not a primitive Pythagorean triple because a , b , and c are all divisible by 3 .
If a ≡ 7 ( m o d 9 ) , then b = a + 9 ≡ 7 ( m o d 9 ) , which means c 2 = a 2 + b 2 ≡ 8 ( m o d 9 ) , which is not possible for a square.
If a ≡ 8 ( m o d 9 ) , then b = a + 9 ≡ 8 ( m o d 9 ) , which means c 2 = a 2 + b 2 ≡ 2 ( m o d 9 ) , which is not possible for a square.
Since it is not possible for a ≡ 0 , 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 ( m o d 9 ) , k = 9 is not possible.
In summary, only k = 1 and k = 7 are possible, so the sum is 1 + 7 = 8 .
Next possible k= 1, 7, 17, 23, 31, 41, 47, 49, 71, 73, 79, 89, 97, ...
We can generate every primitive Pythagorean triplet by this identity, (4T)^2+(8T+1)=(4T+1)^2,for a^2+b^2=c^2 for c-a=1.(T denotes any triangular number).Then we take T =1 becomes 16+9=25 or 4-3=1 is one sol. Again let T=3 becomes 144+25=169 or 12-5=7.Hence we have 1+7=8.
That's a neat theorem, but (1) it does not generate every primitive Pythagorean triplet (since for some primitive Pythagorean triplets c - a does not equal 1, like (8, 15, 17)) and (2) it does not prove that b - a can't be another number other than 1 and 7.
[Observation based solution, Not a proof solution]
The only primitive Pythagorean triples with the difference between legs in the range 0 < k ≤ 1 0 I found were, { 3 , 4 , 5 ⟹ k = 1 } and { 5 , 1 2 , 1 3 ⟹ k = 7 }. There were two other triples { 8 , 1 5 , 1 7 } and { 2 0 , 2 1 , 2 9 }, but they had the same values of k . Since the value of k increases, k ≰ 1 0
∴ Sum of values of k = 1 + 7 ⟹ 8
Yes, these are the obviously valid values of k. Proving other values of k do not qualify? Doesn't appear to be easy. I've done a quick proof that k=2 isn't possible. Doesn't seem to easily generalize, though it may well do so.
Problem Loading...
Note Loading...
Set Loading...
Sledgehammer to crack a walnut, but the tree of Pythagorean triples gives a quick method for this.
Per the linked article, any primitive Pythagorean triple ( a , b , c ) has three "children" that are also primitive Pythagorean triples, formed by multiplying the vector ⎝ ⎛ a b c ⎠ ⎞ by, respectively,
⎝ ⎛ 1 2 2 − 2 − 1 − 2 2 2 3 ⎠ ⎞ , ⎝ ⎛ 1 2 2 2 1 2 2 2 3 ⎠ ⎞ , ⎝ ⎛ − 1 − 2 − 2 2 1 2 2 2 3 ⎠ ⎞
The key fact is that all primitive Pythagorean triples can be formed this way by starting at ( 3 , 4 , 5 ) .
If the new triple is ( a ′ , b ′ , c ′ ) , then we have either ∣ a ′ − b ′ ∣ = ∣ a − b ∣
or ∣ a ′ − b ′ ∣ = a + b
Starting from the triple ( 3 , 4 , 5 ) , then, it's clear that the only differences we can obtain that are not more than 1 0 are 1 and 7 , for a total of 8 .