How many values of $x\in\mathbb Z^+,x<99$ are there such that $m,n\in\mathbb Z$ and $m^2-n^2=x$ is possible?
So what I'm trying to find here is the number of integers between $1$ and $98$ inclusive such that that integer can be expressed as the difference of two squares. I know that all odd numbers can be expressed as the difference between to consecutive squares, so the answer is at least $98/2=49$, but I don't really see a way to continue from here. Maybe I can utilize Pythagorean Theorem somehow? Thanks for the help. Also I'm not too sure which topic this question falls under so if someone could edit the tags that would be great.
There are two ways to generate an even number as the difference of two squares: $m,n$ are either both even or both odd. If $m=2k$ and $n=2l$, then $m^2-n^2=4(k^2-l^2)$. This immediately tells us that all numbers $4x$, $x$ odd, are possible.
If $m=2k+1$ and $n=2l+1$: $$m^2-n^2=4(k^2-l^2+k-l)=4(k-l)(k+l+1)$$ and every even number $2x$ may be written in the form $(k-l)(k+l+1)$ by setting $k=x$ and $l=x-1$. So all numbers $4x$, $x$ even, are possible.
In conclusion, the numbers that are the difference of two squares are odd numbers and multiples of $4$. There are $49+\lfloor98/4\rfloor=49+24=73$ such numbers in the given range.