if k is 2 mod 4 then there is no solution
Reason:
(n^2+20n + k) = (n+10)^2 + (k-100)
(n^2+20n + k) = (n+10)^2 + (k-100)
Now if n is odd then (n+10)^2 + (k-100) mod 4 = 1 + 2 = 3 so
cannot be perfect square
if n is even then (n+10)^2 + (k-100) mod 4 = 2 so cannot be perfect square
if n is even then (n+10)^2 + (k-100) mod 4 = 2 so cannot be perfect square
so n is neither odd nor even .
so no solution
No comments:
Post a Comment