What is 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.
n 2 − 8 n − 5 = N 2 where N is a positive integer. Now rewrite n 2 − 8 n − 5 as ( n − 4 ) 2 − 2 1 .
Thus the original equation changes to ( n − 4 ) 2 − 2 1 = N 2 ⟹ ( n − 4 ) 2 − N 2 = 2 1 Factorizing the above equation, we get, ( n − 4 + N ) ( n − 4 − N ) = 1 × 3 × 7 .
Case 1: n − 4 + N = 2 1 , n − 4 − N = 1 . Solving this we get ( n , N ) = ( 1 5 , 1 0 )
Case 2: n − 4 + N = 7 , n − 4 − N = 3 . Solving this we get ( n , N ) = ( 9 , 2 )
Note: The remaining cases will just give you the negative values for N which is also correct as N is getting squared and the same values for n .
Thus the sum of all possible values for n is 1 5 + 9 = 2 4