How to solve this equation:$\sqrt{x-\sqrt{x-\sqrt{x-\sqrt{x-5}}}}=5$ Please, help me to solve this equation:
$$\sqrt{x-\sqrt{x-\sqrt{x-\sqrt{x-5}}}}=5$$
I think if we continue to square, it would have to face a high-order equation.
I guess $x = 30$, but do not know how to solve.

Observe that $\pm \sqrt{[17,33] + [-7,7]} = \pm [\sqrt{10}, \sqrt{40}] \subset [-7;7]$
This implies that for $x \in [17,33]$, all the quantities $f_1(x), \ldots, f_8(x) = \sqrt{x \pm \sqrt {x \pm \sqrt {x \pm \sqrt {x - 5}}}}$ are well-defined.
Furthermore, for $x=17$, $\sqrt{17 + [-7,7]} = [\sqrt{10}, \sqrt{24}] < 5$, so $f_i(17)<5$
and for $x=33$, $\sqrt{33 + [-7,7]} = [\sqrt{26}, \sqrt{40}] > 5$, so $f_i(33)>5$ .  
Thus each of the $8$ equations $f_i(x)=5$ has at least one root in $[17,33]$.
But, a solution of any of these equations is a root of the polynomial $(((5^2-x)^2-x)^2-x)^2-x+5 = 0$, which is of degree $8$, so can have at most $8$ roots.
Reciprocally, if $x$ is a root of this polynomial, then it is a solution of exactly one $f_i(x) = 5$, because the signs of $((5^2-x)^2-x)^2-x, (5^2-x)^2-x, 5^2-x$ determine the signs in front of the square roots from the innermost one to the outermost one.
Therefore, since each of the $8$ equations have at least a solution, they give at least $8$ distinct roots of the polynomial, so there isn't any other root, and thus there is no other solutions to the equations $f_i(x)=5$.
This means that the only solution to $\sqrt{x-\sqrt{x-\sqrt{x-\sqrt{x-5}}}} = 5$ has to be the solution to $\sqrt{x-5} = 5$, which is easily solvable and gives $x = 30$
