Is there a known complete formalization of solutions to $a^2 + b^2 = c^2 + k$ for a fixed constant $k>0$ similar to the one for primitive Pythagorean triples (i.e. $(a,b,c) = (m^2-n^2,2mn,m^2+n^2)$ )?
I saw on-line somewhere that Euler found all solutions to $a^2+b^2=c^2+d^2$ (I think it was $(a,b,c,d) = (xy-wz,xz+wy,xy+wz,xz-wy)$) so if $k$ is a square number $k=r^2$ we can find $x,y,w,z$ such that $xz-wy = r$. However, I was wondering if there is some known formulation having only two parameters (like we have for Pythagorean triples) given that $k$ is fixed.