Find the sum of all positive integers such that is a perfect square.
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.
Note that for positive integers x we have that
( 2 x 2 + x ) 2 = 4 x 4 + 4 x 3 + x 2 < 4 x 4 + 4 x 3 + 4 x 2 + 4 x + 4 .
Also, we have that
( 2 x 2 + x + 1 ) 2 = 4 x 4 + 4 x 3 + 5 x 2 + 2 x + 1 > 4 x 4 + 4 x 3 + 4 x 2 + 4 x + 4
whenever x 2 > 2 x + 3 ⟹ x 2 − 2 x − 3 > 0 ⟹ ( x + 1 ) ( x − 3 ) > 0 ,
which is the case for x > 3 , (and also x < − 1 , but this is not relevant to this question).
So letting S = x 4 + x 3 + x 2 + x + 1 and m = 2 x 2 + x we have that, for x > 3 ,
m 2 < 4 S < ( m + 1 ) 2 ⟹ ( 2 m ) 2 < S < ( 2 m + 1 ) 2 .
Now if x is even, thus making m = 2 k even, then k 2 < S < ( k + 2 1 ) 2 < ( k + 1 ) 2 ,
and if x is odd, thus making m = 2 k + 1 odd, then k 2 < ( k + 2 1 ) 2 < S < ( k + 1 ) 2 .
Either way, for x > 3 we have that S lies strictly between two perfect squares, and thus cannot be a perfect square itself. So we are left to simply check the cases x = 1 , 2 , 3 , which in turn yield values for S of 5 , 3 1 and 1 2 1 = 1 1 2 , the latter being the only perfect square. Thus as x = 3 is the only positive integer that makes S a perfect square, the sum of all such values is 3 .