# Is there an explicit formula that gives the value of $\sqrt{2+\sqrt{2+\sqrt{2+\cdots}}}$ for $n$ square roots? [duplicate]

$$\sqrt{2+\sqrt{2+\sqrt{2+\cdots}}}$$

I know that with infinite square roots it's $x = \sqrt{2 + x}$, but what about a non-infinite number of roots? I've searched around a lot for this, and can't find anything useful, nor can I make a dent in the problem myself.

Maybe I'm searching using the wrong vocabulary?

• $S_n=\sqrt{2+s_{n-1}}$ – Kiran Feb 6 '17 at 21:22
• That's a recursive formula. – Michael McGovern Feb 6 '17 at 21:26

Note that

$$\sqrt{2+2\cos\alpha} = \sqrt{4\cos^2\left(\frac{\alpha}{2}\right)} = 2\cos\left(\frac{\alpha}{2}\right)$$

So,

$$\sqrt{2} = 2\cos\left(\frac{\pi}{4}\right)$$

$$\sqrt{2+\sqrt{2}} = 2\cos\left(\frac{\pi}{8}\right)$$

$$\vdots$$

Thus, if we have $n$ square roots, we have

$$x=2\cos\left(\frac{\pi}{2^{n+1}}\right)$$

Just take $x=2\cos\alpha$ and the rest is smooth.

• Can you elaborate please? – Carl Schildkraut Feb 6 '17 at 21:43
• @Carl Schildkraut $2+2\cos\alpha=4\cos^2\frac{\alpha}{2}$... – Michael Rozenberg Feb 6 '17 at 21:45

In general, the number $\sqrt{2+\sqrt{2+\sqrt{\dots+\sqrt{2}}}}$ consisting of $n$ radices is algebraic of degree $2^n$ and has conjugate roots $\pm\sqrt{2\pm\sqrt{2\pm\sqrt{\dots\pm\sqrt{2}}}}$. This could in theory give you its minimal polynomial, with the help of Vieta's formulas.

Example for the case $n=2$ goes as follows. The roots are $$x_1=\sqrt{2+\sqrt2},\quad x_2=-\sqrt{2+\sqrt2},\quad x_3=\sqrt{2-\sqrt2},\quad x_4=-\sqrt{2-\sqrt2}.$$ The product of all the roots is $x_1x_2x_3x_4 = -(2+\sqrt2)\times-(2-\sqrt2) = 4-2=2$, sum is $x_1+x_2+x_3+x_4=0$, and the other necessary symmetric functions are $x_1x_2+x_1x_3+x_1x_4+x_2x_3+x_2x_4+x_3x_4=(x_1+x_2)(x_3+x_4)+x_1x_2+x_3x_4=-(2+\sqrt2)-(2-\sqrt2)=-4$ and $x_1x_2x_3+x_1x_2x_3+x_1x_3x_4+x_2x_3x_4=x_1x_2(x_3+x_4)+(x_1+x_2)x_3x_4=0$.

Therefore we get that the polynomial is $x^4-4x^2+2$. There is not much more to say about the numbers.

You could take an iterative approach.

Eg start with $$x_{n+1}=\sqrt{2 + x_n}$$, and $x_0=0$.

Then one could code a program for this (eg VBA / python / C), goal seek / scenario in MSExcel.

Stop when you have the required accuracy.

If you are looking for an analytic solution I would suggest research into Analysis re limits.

• MathJax hint: if you put the stuff that belongs under the square root sign in braces, the top bar extends to cover it. So \sqrt {2+x} gives $\sqrt {2+x}$ in contrast to \sqrt 2+x which gives $\sqrt 2+x$. This works for superscripts, fractions, etc. – Ross Millikan Feb 6 '17 at 21:41