I know that the question "Prove that if $n$ is odd, it is the difference between two squares" has been answered here:
Prove every odd integer is the difference of two squares
But I want to know if the converse of that is true, I think it must be something like this:
$2k = A^2 - B^2$ but I am unsure.