Find the sum of all integers for which 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.
Let n 2 +n+41= m 2
or, 4 m 2 =4 n 2 + 4n+ 164 (multiplying by 4)
or, 4 m 2 =( 2 n + 1 ) 2 +163
or, (2m+2n+1)(2m-2n-1)=163
since 163 is prime, therefore we must have
2m+2n+1=(+-)1, (+-)163.....................i
2m-2n-1=(+-)163, (+-)1......................ii
subtracting (i-ii)
4n+2=(-+)162
hence n=-41, n=40
therefore sum=-41+40=-1