Can any number of the form $4k+2$ be written as $a^2+b^2-c^2-d^2$?
Asked
Active
Viewed 63 times
2
-
3Every odd number is the difference of two squares – reuns Jan 12 '20 at 05:57
-
1If $a,b$ are odd and $c,d$ are even , then $a^2+b^2-c^2-d^2\equiv 2 \mod 4$ . So in short , Yes. – The Demonix _ Hermit Jan 12 '20 at 06:04
-
$a=\sqrt{4k+2},b=0,c=0,d=0$ – Kenta S Jan 12 '20 at 07:06
2 Answers
0
The OEIS sequence A042965 is the sequence of nonnegative integers not congruent to 2 mod 4. It is also the nonnegative integers that can be written as a difference of two integer squares. Thus for all $\,n\,$ not of the form $\,4k+2\,$ we have $\,n = a^2-b^2\,$ and for those of the form $\,4k+2\,$ we have $\, n = a^2+1^2-b^2.\,$ Thus, for all nonnegative integers $\,n\,$ we can find integers $\,a,b,c,d\,$ such that $\,n=a^2+b^2-c^2-d^2.$
Somos
- 35,251
- 3
- 30
- 76