When solving different equations, I have realised, that some roots containing only arithmetic operations and square roots (4th, 8th roots too, because they can be represented using only square roots) can be converted to nested square roots form. Examples (these are roots of equations of 2nd, 4th, 4th and 8th degree): $$\sqrt{2}+\sqrt{3}=\sqrt{5+\sqrt{24}}$$ $$\sqrt{2}+\sqrt{3}+\sqrt{6}=\sqrt{15+\sqrt{160+\sqrt{6912+\sqrt{18874368}}}}$$ $$1+\sqrt{2}+\sqrt{3}+\sqrt{6}=\sqrt{21+\sqrt{413+\sqrt{4656+\sqrt{16588800}}}}$$ $$\sqrt{2}+\sqrt{3}+\sqrt{5}=\sqrt{14+\sqrt{140+\sqrt{4096+\sqrt{8847360}}}}$$ However, I have failed to convert to such form following root (8th degree equation): $$3+\sqrt{2}+\sqrt{3}+\sqrt{5}$$ Performing any operations with it, number of square roots inside increases, what makes me think that converting that root is impossible.
So, question: Can it be done with that root and with what roots in general?
Some forms I was able to get: $$\sqrt{19+6 \sqrt{2}+6 \sqrt{3}+6 \sqrt{5}+2 \sqrt{6}+2 \sqrt{10}+2 \sqrt{15}}$$ $$\sqrt{19+2\left(\sqrt{33+6 \sqrt{30}}+\sqrt{37+6 \sqrt{30}}+\sqrt{51+6 \sqrt{30}}\right)}$$
If one don't know how I got those expressions, here you are an example.
$$\sqrt{2}+\sqrt{3}+\sqrt{5}=\sqrt{\left(\sqrt{2}+\sqrt{3}+\sqrt{5}\right)^2}=$$ $$=\sqrt{10+2 \left(\sqrt{15}+\sqrt{6}+\sqrt{10}\right)}=\sqrt{10+2 \left(\sqrt{15}+\sqrt{\left(\sqrt{6}+\sqrt{10}\right)^2}\right)}=$$ $$=\sqrt{10+2 \left(\sqrt{15}+\sqrt{16+4 \sqrt{15}}\right)}=\sqrt{10+2 \left(\sqrt{15}-a+a+\sqrt{16+4 \sqrt{15}}\right)}=$$ $$=\sqrt{10+2a+2 \left(\sqrt{\left(\sqrt{15}-a\right)^2}+\sqrt{16+4 \sqrt{15}}\right)}=$$ $$=\sqrt{10+2a+2 \left(\sqrt{15+a^2-2a \sqrt{15}}+\sqrt{16+4 \sqrt{15}}\right)}=$$ $$[2a=4 \Rightarrow a=2]$$ $$=\sqrt{14+2 \left(\sqrt{19-4\sqrt{15}}+\sqrt{16+4 \sqrt{15}}\right)}=$$ $$=\sqrt{14+2 \sqrt{\left(\sqrt{19-4\sqrt{15}}+\sqrt{16+4 \sqrt{15}}\right)^2}}=$$ $$=\sqrt{14+2 \sqrt{35+4 \sqrt{16+3 \sqrt{15}}}}=\sqrt{14+\sqrt{140+\sqrt{4096+\sqrt{8847360}}}}$$
If you have something of the form $\sqrt{a+\sqrt b}$, it can be denested as follows:
$\sqrt c+\sqrt d=\sqrt{(\sqrt c+\sqrt d)^2}=\sqrt{(c+d)+2\sqrt{cd}}=\sqrt{(c+d)+\sqrt{4cd}}=\sqrt{a+\sqrt b}$
So we have $c+d=a,cd=\frac b4$. $c$ and $d$ are therefore the solutions of $x^2-a x+\frac b4=0$. A similar process works for $\sqrt{a-\sqrt b}=\sqrt c-\sqrt d$. If the roots are rational, you have denested the square.
Similarily, for something like $\sqrt{w+\sqrt x+\sqrt y+\sqrt z}$, we have
$\sqrt a+\sqrt b + \sqrt c=\sqrt{(\sqrt a+\sqrt b + \sqrt c)^2}=\sqrt{(a+b+c)+\sqrt{4ab}+\sqrt{4ac}+\sqrt{4bc}}$, so we have $a+b+c=w,ab+ac+bc=\frac{x+y+z}{4},abc=\frac{\sqrt{xyz}}{8}.$ So $a,b,c$ are solutions of the cubic equation $u^3-wu^2+\frac{x+y+z}{4}u-\frac{\sqrt{x y z}}{8}=0$. For example,$\sqrt{10+2 \left(\sqrt{15}+\sqrt{6}+\sqrt{10}\right)}=\sqrt{10+ \sqrt{60}+\sqrt{24}+\sqrt{40}}$, has the corresponding cubic equation $u^3-10u^2+31u-30=0$, with roots $u=2,3,5$, so $\sqrt{10+2 \left(\sqrt{15}+\sqrt{6}+\sqrt{10}\right)}=\sqrt 2+\sqrt 3+\sqrt 5$.
Do you get how to do this? In general, if you have a square root with $\frac{n (n-1)}{2}$ square roots under it for some integer $n$, and exactly $1$ rational number, you can rewrite is as a sum of $n$ square roots. By squaring it and square rooting, you can equate various components, and possibly manipulating them (as done with the cubic coefficients), you can use Vieta's formulas to determine an $n$th degree polynomial whose roots determine how to denest it. For something like $\sqrt{14+\sqrt{140+\sqrt{4096+\sqrt{8847360}}}}$, you have to denest the first radical inside, then the next one... etc. You could generalise the result to higher roots than just squares, but I imagine it would be messier. As for when the denesting works, you'd better hope the roots of those polynomials are rational, or otherwise you'll end up with more nested radicals. Otherwise it doesn't have a denested form. Hope this answers your question!