Just to give a simple numerical example but in general the variables $x,y,z,u,v$ are not equal.
$113= 2*4^2 + 2*4^2 +2*4^2 + 4^2 +1^2$
I am looking for a general method to solve this type of equation or a piece of software to do the same. I already looked in this site for methods that could help but could not find anything dealing with this ind of case.
Question 2 It is also useful to know if there is a test that can tell if the equation does not have a solution.
Here is some brutal code (understand not optimized at all) to get all solutions as a verification.
Since $x,y,z$ and $u,v$ are symmetric, I did not print the shuffles.
There is always at least one solution if we allow some of the variables to be zero:
for $n$ odd set $x=y=0$ then $n=2z^2+u^2+v^2$ has a solution, see this representing all odd naturals as the sum of four squares, two of them equal
for $n=2p$ even set $u=v$ and we get $x^2+y^2+z^2+u^2=p$ which has a solution by Lagrange four square theorem
It seems to me with $5$ unknowns there is plenty of room to have solutions, so it might be difficult to express them all unless using brute force.