Primitive Leg Differences

Out of all the primitive Pythagorean triples ( a , b , c ) (a, b, c) , find the sum of every possible difference of legs k = b a k = b - a such that 0 < k 10 0 < k \leq 10 .


The answer is 8.

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.

4 solutions

Chris Lewis
Apr 15, 2020

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 ) (a,b,c) has three "children" that are also primitive Pythagorean triples, formed by multiplying the vector ( a b c ) \begin{pmatrix} a \\ b \\ c \end{pmatrix} 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 ) \begin{pmatrix} 1& -2 & 2\\ 2 & -1 & 2\\ 2& -2 & 3 \end{pmatrix}, \begin{pmatrix} 1& 2&2 \\ 2& 1& 2\\ 2& 2& 3 \end{pmatrix}, \begin{pmatrix} -1 & 2 & 2\\ -2& 1 &2 \\ -2& 2 & 3 \end{pmatrix}

The key fact is that all primitive Pythagorean triples can be formed this way by starting at ( 3 , 4 , 5 ) (3,4,5) .

If the new triple is ( a , b , c ) (a',b',c') , then we have either a b = a b |a'-b'|=|a-b|

or a b = a + b |a'-b'|=a+b

Starting from the triple ( 3 , 4 , 5 ) (3,4,5) , then, it's clear that the only differences we can obtain that are not more than 10 10 are 1 1 and 7 7 , for a total of 8 \boxed8 .

I thought I had to add all the values of the difference and got multiples of 8 8 .

A Former Brilliant Member - 1 year, 1 month ago
David Vreken
Apr 16, 2020

Solution: 8

k = 1 k = 1 is possible because ( 3 , 4 , 5 ) (3, 4, 5) is a primitive Pythagorean triple, and 4 3 = 1 4 - 3 = 1 .

An even k k is not possible:

If x x is even, then x 2 0 ( m o d 4 ) x^2 \equiv 0 \pmod {4} , and if x x is odd, then x 2 1 ( m o d 4 ) x^2 \equiv 1 \pmod {4} . Therefore, all squares are either x 2 0 , 1 ( m o d 4 ) x^2 \equiv 0, 1 \pmod {4} .

If a a is even, then b = a + k b = a + k is even, which means c 2 = a 2 + b 2 c^2 = a^2 + b^2 is even, which means c c is even. But then ( a , b , c ) (a, b, c) is not a primitive Pythagorean triple because a a , b b , and c c are all divisible by 2 2 .

If a a is odd, then b = a + k b = a + k is odd, which means c 2 = a 2 + b 2 2 ( m o d 4 ) c^2 = a^2 + b^2 \equiv 2 \pmod {4} , which is not possible for a square.

Since a a cannot be even or odd, k k cannot be even.

k = 3 k = 3 is not possible:

If x 0 ( m o d 3 ) x \equiv 0 \pmod {3} , then x 2 0 ( m o d 3 ) x^2 \equiv 0 \pmod {3} , and if x 1 ( m o d 3 ) x \equiv 1 \pmod {3} , then x 2 1 ( m o d 3 ) x^2 \equiv 1 \pmod {3} , and if x 2 ( m o d 3 ) x \equiv 2 \pmod {3} , then x 2 1 ( m o d 3 ) x^2 \equiv 1 \pmod {3} . Therefore, all squares are either x 2 0 , 1 ( m o d 3 ) x^2 \equiv 0, 1 \pmod {3} .

If a 0 ( m o d 3 ) a \equiv 0 \pmod {3} , then b = a + 3 0 ( m o d 3 ) b = a + 3 \equiv 0 \pmod {3} , which means c 2 = a 2 + b 2 0 ( m o d 3 ) c^2 = a^2 + b^2 \equiv 0 \pmod {3} , which means c 0 ( m o d 3 ) c \equiv 0 \pmod {3} . But then ( a , b , c ) (a, b, c) is not a primitive Pythagorean triple because a a , b b , and c c are all divisible by 3 3 .

If a 1 ( m o d 3 ) a \equiv 1 \pmod {3} , then b = a + 3 1 ( m o d 3 ) b = a + 3 \equiv 1 \pmod {3} , which means c 2 = a 2 + b 2 2 ( m o d 3 ) c^2 = a^2 + b^2 \equiv 2 \pmod {3} , which is not possible for a square.

If a 2 ( m o d 3 ) a \equiv 2 \pmod {3} , then b = a + 3 2 ( m o d 3 ) b = a + 3 \equiv 2 \pmod {3} , which means c 2 = a 2 + b 2 2 ( m o d 3 ) c^2 = a^2 + b^2 \equiv 2 \pmod {3} , which is not possible for a square.

Since it is not possible for a 0 , 1 , 2 ( m o d 3 ) a \equiv 0, 1, 2 \pmod {3} , k = 3 k = 3 is not possible.

k = 5 k = 5 is not possible:

If x 0 ( m o d 5 ) x \equiv 0 \pmod {5} , then x 2 0 ( m o d 5 ) x^2 \equiv 0 \pmod {5} , and if x 1 ( m o d 5 ) x \equiv 1 \pmod {5} , then x 2 1 ( m o d 5 ) x^2 \equiv 1 \pmod {5} , if x 2 ( m o d 5 ) x \equiv 2 \pmod {5} , then x 2 4 ( m o d 5 ) x^2 \equiv 4 \pmod {5} , if x 3 ( m o d 5 ) x \equiv 3 \pmod {5} , then x 2 4 ( m o d 5 ) x^2 \equiv 4 \pmod {5} , and if x 4 ( m o d 5 ) x \equiv 4 \pmod {5} , then x 2 1 ( m o d 5 ) x^2 \equiv 1 \pmod {5} . Therefore, all squares are either x 2 0 , 1 , 4 ( m o d 5 ) x^2 \equiv 0, 1, 4 \pmod {5} .

If a 0 ( m o d 5 ) a \equiv 0 \pmod {5} , then b = a + 5 0 ( m o d 5 ) b = a + 5 \equiv 0 \pmod {5} , which means c 2 = a 2 + b 2 0 ( m o d 5 ) c^2 = a^2 + b^2 \equiv 0 \pmod {5} , which means c 0 ( m o d 5 ) c \equiv 0 \pmod {5} . But then ( a , b , c ) (a, b, c) is not a primitive Pythagorean triple because a a , b b , and c c are all divisible by 5 5 .

If a 1 ( m o d 5 ) a \equiv 1 \pmod {5} , then b = a + 5 1 ( m o d 5 ) b = a + 5 \equiv 1 \pmod {5} , which means c 2 = a 2 + b 2 2 ( m o d 5 ) c^2 = a^2 + b^2 \equiv 2 \pmod {5} , which is not possible for a square.

If a 2 ( m o d 5 ) a \equiv 2 \pmod {5} , then b = a + 5 2 ( m o d 5 ) b = a + 5 \equiv 2 \pmod {5} , which means c 2 = a 2 + b 2 3 ( m o d 5 ) c^2 = a^2 + b^2 \equiv 3 \pmod {5} , which is not possible for a square.

If a 3 ( m o d 5 ) a \equiv 3 \pmod {5} , then b = a + 5 3 ( m o d 5 ) b = a + 5 \equiv 3 \pmod {5} , which means c 2 = a 2 + b 2 3 ( m o d 5 ) c^2 = a^2 + b^2 \equiv 3 \pmod {5} , which is not possible for a square.

If a 4 ( m o d 5 ) a \equiv 4 \pmod {5} , then b = a + 5 4 ( m o d 5 ) b = a + 5 \equiv 4 \pmod {5} , which means c 2 = a 2 + b 2 2 ( m o d 5 ) c^2 = a^2 + b^2 \equiv 2 \pmod {5} , which is not possible for a square.

Since it is not possible for a 0 , 1 , 2 , 3 , 4 ( m o d 5 ) a \equiv 0, 1, 2, 3, 4 \pmod {5} , k = 5 k = 5 is not possible.

k = 7 k = 7 is possible because ( 5 , 12 , 13 ) (5, 12, 13) is a primitive Pythagorean triple, and 12 5 = 7 12 - 5 = 7 .

k = 9 k = 9 is not possible:

If x 0 ( m o d 9 ) x \equiv 0 \pmod {9} , then x 2 0 ( m o d 9 ) x^2 \equiv 0 \pmod {9} , and if x 1 ( m o d 9 ) x \equiv 1 \pmod {9} , then x 2 1 ( m o d 9 ) x^2 \equiv 1 \pmod {9} , if x 2 ( m o d 9 ) x \equiv 2 \pmod {9} , then x 2 4 ( m o d 9 ) x^2 \equiv 4 \pmod {9} , if x 3 ( m o d 9 ) x \equiv 3 \pmod {9} , then x 2 0 ( m o d 9 ) x^2 \equiv 0 \pmod {9} , if x 4 ( m o d 9 ) x \equiv 4 \pmod {9} , then x 2 7 ( m o d 9 ) x^2 \equiv 7 \pmod {9} , if x 5 ( m o d 9 ) x \equiv 5 \pmod {9} , then x 2 7 ( m o d 9 ) x^2 \equiv 7 \pmod {9} , if x 6 ( m o d 9 ) x \equiv 6 \pmod {9} , then x 2 0 ( m o d 9 ) x^2 \equiv 0 \pmod {9} , if x 7 ( m o d 9 ) x \equiv 7 \pmod {9} , then x 2 4 ( m o d 9 ) x^2 \equiv 4 \pmod {9} , and if x 8 ( m o d 9 ) x \equiv 8 \pmod {9} , then x 2 1 ( m o d 9 ) x^2 \equiv 1 \pmod {9} . Therefore, all squares are either x 2 0 , 1 , 4 , 7 ( m o d 9 ) x^2 \equiv 0, 1, 4, 7 \pmod {9} .

If a 0 ( m o d 9 ) a \equiv 0 \pmod {9} , then b = a + 9 0 ( m o d 9 ) b = a + 9 \equiv 0 \pmod {9} , which means c 2 = a 2 + b 2 0 ( m o d 9 ) c^2 = a^2 + b^2 \equiv 0 \pmod {9} , which means c 0 ( m o d 9 ) c \equiv 0 \pmod {9} . But then ( a , b , c ) (a, b, c) is not a primitive Pythagorean triple because a a , b b , and c c are all divisible by 9 9 .

If a 1 ( m o d 9 ) a \equiv 1 \pmod {9} , then b = a + 9 1 ( m o d 9 ) b = a + 9 \equiv 1 \pmod {9} , which means c 2 = a 2 + b 2 2 ( m o d 9 ) c^2 = a^2 + b^2 \equiv 2 \pmod {9} , which is not possible for a square.

If a 2 ( m o d 9 ) a \equiv 2 \pmod {9} , then b = a + 9 2 ( m o d 9 ) b = a + 9 \equiv 2 \pmod {9} , which means c 2 = a 2 + b 2 8 ( m o d 9 ) c^2 = a^2 + b^2 \equiv 8 \pmod {9} , which is not possible for a square.

If a 3 ( m o d 9 ) a \equiv 3 \pmod {9} , then b = a + 9 3 ( m o d 9 ) b = a + 9 \equiv 3 \pmod {9} , which means c 2 = a 2 + b 2 0 ( m o d 9 ) c^2 = a^2 + b^2 \equiv 0 \pmod {9} . But then ( a , b , c ) (a, b, c) is not a primitive Pythagorean triple because a a , b b , and c c are all divisible by 3 3 .

If a 4 ( m o d 9 ) a \equiv 4 \pmod {9} , then b = a + 9 4 ( m o d 9 ) b = a + 9 \equiv 4 \pmod {9} , which means c 2 = a 2 + b 2 5 ( m o d 9 ) c^2 = a^2 + b^2 \equiv 5 \pmod {9} , which is not possible for a square.

If a 5 ( m o d 9 ) a \equiv 5 \pmod {9} , then b = a + 9 5 ( m o d 9 ) b = a + 9 \equiv 5 \pmod {9} , which means c 2 = a 2 + b 2 5 ( m o d 9 ) c^2 = a^2 + b^2 \equiv 5 \pmod {9} , which is not possible for a square.

If a 6 ( m o d 9 ) a \equiv 6 \pmod {9} , then b = a + 9 6 ( m o d 9 ) b = a + 9 \equiv 6 \pmod {9} , which means c 2 = a 2 + b 2 0 ( m o d 9 ) c^2 = a^2 + b^2 \equiv 0 \pmod {9} . But then ( a , b , c ) (a, b, c) is not a primitive Pythagorean triple because a a , b b , and c c are all divisible by 3 3 .

If a 7 ( m o d 9 ) a \equiv 7 \pmod {9} , then b = a + 9 7 ( m o d 9 ) b = a + 9 \equiv 7 \pmod {9} , which means c 2 = a 2 + b 2 8 ( m o d 9 ) c^2 = a^2 + b^2 \equiv 8 \pmod {9} , which is not possible for a square.

If a 8 ( m o d 9 ) a \equiv 8 \pmod {9} , then b = a + 9 8 ( m o d 9 ) b = a + 9 \equiv 8 \pmod {9} , which means c 2 = a 2 + b 2 2 ( m o d 9 ) c^2 = a^2 + b^2 \equiv 2 \pmod {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 ) a \equiv 0, 1, 2, 3, 4, 5, 6, 7, 8 \pmod {9} , k = 9 k = 9 is not possible.

In summary, only k = 1 k = 1 and k = 7 k = 7 are possible, so the sum is 1 + 7 = 8 1 + 7 = \boxed{8} .

Next possible k= 1, 7, 17, 23, 31, 41, 47, 49, 71, 73, 79, 89, 97, ...

Yuriy Kazakov - 1 year, 1 month ago
Aruna Yumlembam
May 11, 2020

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.

David Vreken - 1 year, 1 month ago
Mahdi Raza
Apr 15, 2020

[Observation based solution, Not a proof solution]

The only primitive Pythagorean triples with the difference between legs in the range 0 < k 10 0 < k \leq 10 I found were, { 3 , 4 , 5 k = 1 3,4,5 \implies k = 1 } and { 5 , 12 , 13 k = 7 5,12,13 \implies k = 7 }. There were two other triples { 8 , 15 , 17 8, 15, 17 } and { 20 , 21 , 29 20, 21, 29 }, but they had the same values of k k . Since the value of k increases, k 10 k\nleq 10

Sum of values of k = 1 + 7 8 \therefore \text{Sum of values of } k = 1 + 7 \implies \boxed{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.

Richard Desper - 1 year, 1 month ago

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...