I have been given a task to calculate the limit of the following sequence numerically with precision $10^{-6}$ using while loop in MATLAB.
$ \lim_{n\to\infty} {\sqrt{1+\sqrt{2+\sqrt{3+ \sqrt{\ldots+\sqrt n}}}}}$
I have thought a lot but I couldn't think of a way to solve this problem. I would really appreciate if someone could help me complete this task.