Solve this equation for the largest value of $n : n^2 + 2016n = x^2$
My attempt:
$n^2 + 2016n = x^2$
Completing the square
$n^2 + 2016n + 1008^2 = x^2 + 1008^2$
$(n + 1008)^2 = x^2 + 1008^2 $
Difference of two squares
$(n+1008)^2-x^2=1008^2$
$(n+1008-x)(n+1008+x)=1008^2$
I always get stuck on this part! I have a hard time finding the prime factorization of a big number!
Is there a special way of tackling these problems? Or do you have to use a different set of techniques each time?