Is there a general formula to solve the Diophantine equation $$a^2+b^2+c^2=d^2+e^2+f^2?$$ If so, can I please have the reference? Thanks.
2026-04-12 03:53:13.1775965993
Is there a general formula to solve $a^2+b^2+c^2=d^2+e^2+f^2$?
112 Views Asked by user97615 https://math.techqa.club/user/user97615/detail At
2
Rearrange as $$e^2+f^2-b^2-c^2=a^2-d^3=(a+d)(a-d).$$ We can pick $e,f,b,c$ arbitrarily, compute $n=e^2+f^2-b^2-c^2$.
Note that $n\equiv 2\pmod 4$ occurs if only if $e,f$ are odd and $b,c$ even or vice versa.