For example, if we have $36$, is there an algorithm to determine that it may equal $10^2-8^2$? What if we blow up the number to something like $492709612098$? Can it be written as the difference of two squares? If so, how do we know?
Also, does it matter if the number in question has more or fewer factors?
EDIT: I WANT TO KNOW THE ALGORITHM, AND NOT WHETHER A NUMBER MAY BE WRITTEN AS SUCH. BASICALLY I WANT TO KNOW IF THERE IS AN ALGORITHM WHERE YOU CAN INPUT NUMBER $N$ AND GET THE ADDEND SQUARE NUMBER $X$.
Let N=ab then consider $a=c+d$ and $b=c-d$. Then $c=\frac{a+b}{2}$ and $d=\frac{a-b}{2}$ now $N=c^2-d^2$. So the only numbers that can't be written as the difference of two squares are of the form $2K$ where K is an odd number. So your number $492709612098$ can't be written as a difference of two squares because $492709612098=2*246354806049$
Here is the algorithm in pseudocode
1) Write the number in the form $n=a*b$ where either $a$ and $b$ are both even or $a$ and $b$ are both odd
2) set $c=\frac{a+b}{2}$ and $d=\frac{a-b}{2}$
3) Now $N=c^2-d^2$