Let $x,y,z,w$ be postive integers,find the diophantine equation all solution $$x^2+y^2=z^2+w^2+1$$
However, I'm looking for a identity or something like that. Very important is that must be a general solution, it must contain all the odds with all the possible numbers.
You are looking for $n$ and $n+1$ which are sums of two positive integer squares. The sums of two integer squares are well-known. They are the numbers of the form $a^2b$ where $b$ has no prime factors $p$ with $p\equiv3\pmod 4$. If you are strict about positive integers then you have to eliminate squares $c^2$ where none of $c$'s prime factors is $\equiv3\pmod 4$. You are then looking for consecutive numbers of this form. It's difficult to provide a general procedure for getting these, as the prime factors of $n$ and $n+1$ are "unrelated".