Perfect Square Progression

Find the number of strictly increasing arithmetic progressions of length three, with terms from 1 1 to 1000 1000 , that consist entirely of perfect squares.

Details and assumptions

The length of an arithmetic progression is the number of terms that it has.


The answer is 7.

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.

5 solutions

Calvin Lin Staff
May 13, 2014

A triple of squares ( a 2 , b 2 , c 2 ) (a^2,b^2,c^2) with 0 < a < b < c 0 < a < b < c is an arithmetic progression if and only if a 2 + c 2 = 2 b 2 . a^2+c^2=2b^2. If one of the numbers a a or c c is even and the other is odd, then 2 b 2 2b^2 will be odd, which is impossible. Thus, a a and c c have the same parity. Consider x = c a 2 , y = c + a 2 x=\frac{c-a}{2},\ y=\frac{c+a}{2} , which are both nonzero. Then the equation a 2 + c 2 = 2 b 2 a^2+c^2=2b^2 is equivalent to x 2 + y 2 = b 2 . x^2+y^2=b^2. So we are really looking for the number of Pythagorean triples (not necessarily coprime) with 1000 c 2 = ( x + y ) 2 . 1000 \geq c^2 = (x+y)^2. This is equivalent to x + y 31. x+y\leq 31.

From the theory of Pythagorean triples, one can easily see that these triples are ( 3 , 4 , 5 ) , ( 6 , 8 , 10 ) , ( 9 , 12 , 15 ) , ( 12 , 16 , 20 ) ; ( 5 , 12 , 13 ) ; ( 7 , 24 , 25 ) ; ( 8 , 15 , 17 ) (3,4,5),\ (6,8,10),\ (9,12,15),\ (12,16,20);\ (5,12,13);\ (7,24,25);\ (8,15,17)

Given ( x , y , b ) (x, y, b) , we can obtain ( a , b , c ) = ( y x , b , y + x ) (a, b, c) = (y-x, b, y+x) . This gives us the solutions ( 1 , 5 , 7 ) , ( 2 , 10 , 14 ) , ( 3 , 15 , 21 ) , ( 4 , 20 , 28 ) , ( 7 , 13 , 17 ) , ( 17 , 25 , 31 ) , ( 7 , 17 , 23 ) (1, 5, 7), (2, 10, 14), (3, 15, 21), (4, 20, 28), (7, 13, 17), (17, 25, 31), (7, 17, 23) . Therefore, the answer is 7. 7.

I tried a geometrical approach, which well wasn't the best evidently.

Parth Singh - 3 months ago
Aref Sadeghi
May 20, 2014

let us assume that the numbers a 2 , b 2 , c 2 a^2,b^2,c^2 form an arithmetic progression. then we should have that: a 2 + c 2 = 2 b 2 a^2+c^2=2b^2 or equivalently: ( a b ) 2 + ( a c ) 2 = 2 (\frac{a}{b})^2+(\frac{a}{c})^2=2 substitute X = a b , Y = a c X=\frac{a}{b},Y=\frac{a}{c} . we have: X 2 + Y 2 = 2 X^2+Y^2=2 . let C C be the curve of zeroes of the polynomial: P ( X , Y ) = X 2 + Y 2 2 P(X,Y)=X^2+Y^2-2 so we have ( X , Y ) (X,Y) a rational point on the curve C C . obviously ( 1 , 1 ) (1,1) is another rational point on C C distinct from ( X , Y ) (X,Y) since a , b , c a,b,c are distinct. let m m be the slope of the line passing through points X , Y X,Y and 1 , 1 1,1 ( X , Y ) (X,Y) and ( 1 , 1 ) (1,1) are rational points so m m is a rational number. we have: Y 1 = m ( X 1 ) Y-1=m(X-1) so: X 2 + ( m X m + 1 ) 2 = 2 X^2+(mX-m+1)^2=2 solving the quadratic equation we get that: X = m 2 2 m 1 m 2 + 1 X=\frac{m^2-2m-1}{m^2+1} and Y = m 2 2 m + 1 m 2 + 1 Y=\frac{-m^2-2m+1}{m^2+1} . let m = r s m=\frac{r}{s} . where r r is an integer and s s is a non-zero integer. so the solutions of the equation a 2 + c 2 = 2 b 2 a^2+c^2=2b^2 are: ( r 2 2 r s s 2 , r 2 + s 2 , r 2 2 r s + s 2 ) (r^2-2rs-s^2,r^2+s^2,-r^2-2rs+s^2) . back to main problem, we should have that ( r 2 + s 2 ) 2 < 1000 (r^2+s^2)^2<1000 or equivalently r 2 + s 2 25 r^2+s^2\le 25 . doing a few case works, we get the solutions: ( a , b , c ) = { ( 1 , 5 , 7 ) , ( 2 , 10 , 14 ) , ( 3 , 15 , 21 ) , ( 4 , 20 , 28 ) , ( 7 , 13 , 17 ) , ( 7 , 17 , 23 ) , ( 17 , 25 , 31 ) } (a,b,c)=\{(1,5,7),(2,10,14),(3,15,21),(4,20,28),(7,13,17),(7,17,23),(17,25,31)\}

This solution uses ideas about rational points on an algebraic curve, and is worthwhile to understand. All other solutions relied heavily on the bounded constraints, instead of providing a general understanding of the problem.

A direct solution is to realize that ( a c ) 2 + ( a + c ) 2 = ( 2 b ) 2 (a-c)^2 + (a+c)^2 = (2b)^2 , and proceed by the classification of Pythagorean triplets. Note that one of the ways to classify these triplets is through the algebraic curve method as described.

Calvin Lin Staff - 7 years ago
Erick Wong
May 20, 2014

A 3-term arithmetic progression of squares x 2 , y 2 , z 2 x^2,y^2,z^2 is equivalent to a solution of 2 y 2 = x 2 + z 2 2y^2 = x^2 + z^2 with 0 < x < z 0 < x < z . In order for this to happen, 2 y 2 2y^2 must have more than one representation as a sum of two squares (since y 2 + y 2 y^2 + y^2 is already one such representation).

By the classical theory of sums of two squares, this happens precisely when y y has a prime factor of the form 4 k + 1 4k+1 , and the number of representations increases with the number of such factors.

Since 1 y 31 1 \le y \le 31 , this gives only a handful of choices to start with: y { 5 , 10 , 15 , 20 , 25 , 30 , 13 , 26 , 17 , 29 } y \in \{ 5, 10, 15, 20, 25, 30, 13, 26, 17, 29\} .

In the case y = 5 y = 5 there is a unique progression 1 2 , 5 2 , 7 2 1^2, 5^2, 7^2 . This solution scales uniquely to the cases y = 10 , 15 , 20 , 30 y = 10, 15, 20, 30 which are not divisible by any additional primes of the form 4 k + 1 4k+1 .

The case y = 25 y = 25 also has 5 2 , 2 5 2 , 3 5 2 5^2, 25^2, 35^2 , but it admits a second progression because it is twice divisible by 5. Indeed, since 7 2 + 2 4 2 = 2 5 2 7^2 + 24^2 = 25^2 , we have ( 24 7 ) 2 + ( 24 + 7 ) 2 = 2 2 5 2 (24-7)^2 + (24+7)^2 = 2\cdot 25^2 , which yields the progression 1 7 2 , 2 5 2 , 3 1 2 17^2, 25^2, 31^2 .

The unique progression for y = 13 y = 13 is 7 2 , 1 3 2 , 1 7 2 7^2, 13^2, 17^2 , and doubling this gives the unique progression for y = 26 y = 26 . The unique progression for y = 17 y = 17 is 7 2 , 1 7 2 , 2 3 2 7^2, 17^2, 23^2 , and the unique progression for y = 29 y = 29 is 1 2 , 2 9 2 , 4 1 2 1^2, 29^2, 41^2 .

By the way, an easy way to spot these solutions is to use complex numbers. A quick search shows that 29 = 5 2 + 2 2 29 = 5^2 + 2^2 , so the magnitude of 5 + 2 i 5 + 2i is 29 \sqrt{29} , and the magnitude of ( 5 + 2 i ) 2 = 21 + 20 i (5 + 2i)^2 = 21 + 20i is 29, and the magnitude of ( 5 + 2 i ) 2 ( 1 + i ) = 1 + 41 i (5+2i)^2(1+i) = 1 + 41i is 29 2 29\sqrt{2} , meaning that 1 2 + 4 1 2 = 2 2 9 2 1^2 + 41^2 = 2\cdot 29^2 .

Compiling all of these solutions we have the 11 progressions

1 2 , 5 2 , 7 2 1^2, 5^2, 7^2

2 2 , 1 0 2 , 1 4 2 2^2, 10^2, 14^2

3 2 , 1 5 2 , 2 1 2 3^2, 15^2, 21^2

4 2 , 2 0 2 , 2 8 2 4^2, 20^2, 28^2

6 2 , 3 0 2 , 4 2 2 6^2, 30^2, 42^2

5 2 , 2 5 2 , 3 5 2 5^2, 25^2, 35^2 and 1 7 2 , 2 5 2 , 3 1 2 17^2, 25^2, 31^2

7 2 , 1 3 2 , 1 7 2 7^2, 13^2, 17^2

1 4 2 , 2 6 2 , 3 4 2 14^2, 26^2, 34^2

7 2 , 1 7 2 , 2 3 2 7^2, 17^2, 23^2

1 2 , 2 9 2 , 4 1 2 1^2, 29^2, 41^2

Of course we discard 4 of these since their last terms are too large. This leaves 7 valid progressions.

Mrigank Krishan
Mar 31, 2015

PHP code:-

<?php

function is_decimal( $val )

{

return is_numeric( $val ) && floor( $val ) != $val;

}

for($x=1;$x<1000;$x++)

{

for($y=1;$y<1000;$y++)

{

  $a1=$x;

  $a2=$x+$y;

  $a3=$x+2*$y;

  if(!is_decimal(sqrt($a1))){

  if(!is_decimal(sqrt($a2))){

  if(!is_decimal(sqrt($a3))){

  if($a2<1000 && $a3<1000){

  echo $x." & ".$y."<br/>";

  }

  }

  }

  };

}

}

?>

Clearly,we have to search for such numbers from squares of 1 to 31...Let the end terms of the A.P. be a & b...Clearly,a & b must be of same parity(both odd or both even). Little tests reveals that 1,5,7 suffices...now if we take corresponding multiples of this triplet then,those would also suffice the conditions...Hence we get four such triplets {1,5,7} till {4,20,28}... Now listing out the numbers' squares from 4 to 31,we test for other such same-parity end terms triplets using a+c=2b form of A.P. We find {7,13,17},{7,17,23},{17,25,31}... Thus there are 7 pairs in all,as the last pair has end term 31,& we cannot further get another such triplet less than 31.

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...