Pythagorean Triplets

Given that positive integers a , b a,b and c c satisfy the equation a 2 + b 2 = c 2 a^2 + b^2=c^2 with a , b a,b consecutive, and we know that ( a , b , c ) = ( 3 , 4 , 5 ) , ( 20 , 21 , 29 ) (a,b,c) = (3,4,5), (20,21,29) are two smallest possible solutions satisfying this constraint such that c c is minimized. What is the third smallest value of c c ?


The answer is 169.

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.

2 solutions

Shaun Leong
Jan 20, 2016

WLOG let b = a + 1 b=a+1 . a 2 + ( a + 1 ) 2 = 2 a 2 + 2 a + 1 = c 2 a^2+(a+1)^2=2a^2+2a+1=c^2 a = 2 ± 4 8 ( 1 c 2 ) 4 a=\dfrac {-2\pm \sqrt{4-8 (1-c^2)}}{4} = 1 ± 2 c 2 1 2 = \dfrac {-1\pm \sqrt{2c^2-1}}{2}

For a to be an integer, we need 2 c 2 1 = n 2 2c^2-1=n^2 for some integer n.

n 2 2 c 2 = 1 \Rightarrow n^2-2c^2=-1

This is a negative Pell's Equation which has fundamental solution ( n , c ) = ( 1 , 1 ) (n,c)=(1,1) . Other solutions can be found by the recurrence relation n i + 1 = 3 n i + 4 c i n_{i+1}=3n_i+4c_i and c i + 1 = 2 n i + 3 c i c_{i+1}=2n_i+3c_i .

Hence the solutions are ( n , c ) = ( 1 , 1 ) , ( 7 , 5 ) , ( 41 , 29 ) , ( 239 , 169 ) (n,c)=(1,1), (7,5), (41,29), (239,\boxed{169})

By computer science, we get the answer 169 when a=119.

A Former Brilliant Member - 5 years, 4 months ago
Arjen Vreugdenhil
Jan 21, 2016

Claim: If a , c a, c are such that a 2 + ( a + 1 ) 2 = c 2 a^2 + (a+1)^2 = c^2 , then the same is true for ( a , c ) = ( 3 a + 2 c + 1 , 4 a + 3 c + 2 ) . (a',c') = (3a + 2c + 1,\ 4a + 3c + 2). Proof: ( a ) 2 + ( a + 1 ) 2 = ( 3 a + 2 c + 1 ) 2 + ( 3 a + 2 c + 2 ) 2 = 18 a 2 + 8 c 2 + 24 a c + 18 a + 12 c + 5 ; ( c ) 2 = ( 4 a + 3 c + 2 ) 2 = 16 a 2 + 9 c 2 + 24 a c + 16 a + 12 c + 4. (a')^2 + (a'+1)^2 = (3a+2c+1)^2 + (3a+2c+2)^2 = 18a^2 + 8c^2 + 24ac + 18a + 12c + 5; \\ (c')^2 = (4a + 3c + 2)^2 = 16a^2 + 9c^2 + 24ac + 16a + 12c + 4. The difference between these two expressions is ( a ) 2 + ( a + 1 ) 2 ( c ) 2 = 2 a 2 c 2 + 2 a + 1 = a 2 + ( a + 1 ) 2 c 2 = 0. (a')^2 + (a'+1)^2 - (c')^2 = 2a^2 - c^2 + 2a + 1 = a^2 + (a+1)^2 - c^2 = 0. Therefore ( a ) 2 + ( a + 1 ) 2 = ( c ) 2 (a')^2 + (a'+1)^2 = (c')^2 , Q.E.D.

We know that 3 2 + 4 2 = 5 2 3^2 + 4^2 = 5^2 , so ( a , c ) = ( 3 , 5 ) (a,c) = (3, 5) is a valid starting point. It follows that ( a , c ) = ( 3 3 + 2 5 + 1 , 4 3 + 3 5 + 2 ) = ( 20 , 29 ) (a',c') = (3\cdot 3 + 2\cdot 5 + 1,\ 4\cdot 3 + 3\cdot 5 + 2) = (20, 29) is another solution, as was given; next, ( a , c ) = ( 3 20 + 2 29 + 1 , 4 20 + 3 29 + 2 ) = ( 119 , 169 ) (a'',c'') = (3\cdot 20 + 2\cdot 29 + 1,\ 4\cdot 20 + 3\cdot 29 + 2) = (119, 169) is a solution. Indeed, 169 \boxed{169} is the answer to the problem.

Note 1: I have not proven that these are the only solutions... This method does not rule out the existence of ( 20 , 29 ) < ( a , c ) < ( 119 , 169 ) (20, 29) < (a^\star, c^\star) < (119, 169) that satisfy the equation. Thus my solution is lacking; yet I post it here because it shows a nice elementary approach to this kind of problem.

Note 2: The question is, of course, how to get the recursion relation of the claim stated above. My inspiration was the repeated fraction approximation of 2 \sqrt 2 .

First, from a 2 + ( a + 1 ) 2 = c 2 2 ( a + 1 2 ) 2 = c 2 + 1 4 ( 2 a + 1 ) 2 = 2 c 2 + 1 2 a^2 + (a+1)^2 = c^2 \\ 2(a+\tfrac12)^2 = c^2 + \tfrac14 \\ (2a+1)^2 = 2 c^2 + \tfrac12 we conclude 2 a + 1 2 c . 2 a + 1 c 2 . 2a + 1 \approx \sqrt 2 c. \\ \frac{2a + 1} c \approx \sqrt 2. Next, 2 = 1 + 1 2 + 1 2 + 1 . \sqrt 2 = 1 + \frac 1 {2 + \frac 1 {2 + \frac 1 \dots } }. Thus is one approximation of 2 = p / q \sqrt 2 = p/q , the next approximation is 1 + 1 1 + p / q = 1 + q p + q = p + 2 q p + q , 1 + \frac 1 {1 + p/q} = 1 + \frac q {p + q} = \frac {p + 2q} {p+q}, i.e. p = p + 2 q p' = p + 2q and q = p + q q' = p + q .

If q = c q = c and p = 2 a + 1 p = 2a+1 , this becomes a = a + c a' = a + c and c = 2 a + c + 1 c' = 2a + c + 1 . Thus I tried ( a , c ) = ( 1 , 2 ) : p / q = 3 2 , a 2 + ( a + 1 ) 2 = 1 2 + 2 2 2 2 ; ( a , c ) = ( 3 , 5 ) : p / q = 7 5 , a 2 + ( a + 1 ) 2 = 3 2 + 4 2 = 5 2 ; ( a , c ) = ( 8 , 12 ) : p / q = 17 12 , a 2 + ( a + 1 ) 2 = 8 2 + 9 2 1 2 2 ; ( a , c ) = ( 20 , 29 ) : p / q = 49 29 , a 2 + ( a + 1 ) 2 = 2 0 2 + 2 1 2 = 2 9 2 . (a, c) = (1, 2):\ \ p/q = \tfrac 3 2,\ \ a^2 + (a+1)^2 = 1^2 + 2^2 \not= 2^2; \\ (a',c') = (3, 5):\ \ p/q = \tfrac 7 5,\ \ a^2 + (a+1)^2 = 3^2 + 4^2 = 5^2; \\ (a'',c'') = (8, 12):\ \ p/q = \tfrac{17}{12}, \ \ a^2 + (a+1)^2 = 8^2 + 9^2 \not= 12^2; \\ (a''',c''') = (20, 29):\ \ p/q = \tfrac{49}{29}, \ \ a^2 + (a+1)^2 = 20^2 + 21^2 = 29^2. It appears that every other step results in a good equation, while in the other steps the LHS is one greater than the RHS. Thus I adjust my recursion formula by skipping a step: ( a , c ) = ( a + c , 2 a + c + 1 ) = ( 3 a + 2 c + 1 , 4 a + 3 c + 2 ) , (a'',c'') = (a' + c', 2a' + c' + 1) = (3a + 2c + 1, 4a + 3c + 2), and starting with the first valid pair ( a , c ) = ( 3 , 5 ) (a, c) = (3, 5) (or perhaps ( a , c ) = ( 0 , 1 ) (a,c) = (0, 1) ), I arrive at the claim above. The proof by induction is now straightforward.

Wow! This is superb. Continued fractions never cross my mind.

Pi Han Goh - 5 years, 4 months ago

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...