Is a complete parametrization of primitive solutions to the equation $$a^2+b^2+c^2=2d^2\qquad a,b,c,d \in \mathbb{Z}$$ known? A reference would be great.
Solutions to $a^2+b^2=c^2$ give solutions to the equation above, but I know that there are other solutions.
Alright, this is from Jones and Pall (1939), I have a pdf if you wish to investigate.
Find all ways to write $$ m = t^2 + u^2 + 2 v^2 + 2 w^2, $$ with $m$ odd. There is no reason to consider even $m$ for this problem. Using material from pages 174-177, all primitive solutions of $$ 2 m^2 = x^2 + y^2 + z^2 $$ can then be written, up to order and signs, as $$ x = 4 tw+ 4 uv, $$ $$ y = t^2 - 2tu -u^2 +2v^2 +4vw - 2 w^2, $$ $$ z = t^2 + 2tu -u^2 +2v^2 -4vw - 2 w^2. $$ Since $m$ is odd, $2m^2 \equiv 2 \pmod 8,$ two out of three of $x,y,z$ must be odd, the other divisible by $4.$
Those below are primitive, that is $\gcd(x,y,z) = 1.$ In order to get all possible solutions, take a quadruple $(m;x,y,z)$ and multiply all four by any constant you like.
Note how very similar this is to
https://en.wikipedia.org/wiki/Pythagorean_quadruple#Parametrization_of_primitive_quadruples