How do you impress the interviewer, when he asks you to compute $\sqrt{2+\sqrt{2+\sqrt{2+...}}}$?
Asked
Active
Viewed 475 times
0
-
2To impress you would start by properly defining it as the limit of a recurrence, then show that this recurrence converges (showing that the expression is well-defined) and then in the end you find the limit. – Winther Apr 02 '17 at 18:15
-
2By saying the limit is trivially $2$ by the Banach fixed point theorem. – Jack D'Aurizio Apr 02 '17 at 21:18
2 Answers
3
Just note that $$x^2-2=x$$ I bet even a quant can solve that. (I'm allowed to make that joke, I'm actually a quant myself.)
Matt Samuel
- 58,164
0
If $x=\sqrt{2+\sqrt{2+\sqrt{\dots}}}$, then $x=\sqrt{2+x}$ so that $x^2-x-2=0$. Thus $x=\frac{1+\sqrt{1+4(2)}}{2}=2$.
Shaun
- 44,997