Find $x_n$ if $x_1,x_2,\ldots,x_n$ is a set of positive numbers that satisfy $\frac{x_n+2}{2}=\sqrt{2S_n}$.
Here $S_n$ denotes $x_1+x_2+\ldots+x_n$. Also $n\in\mathbb N_{>0}$.
It's easy to see that $x_1=2$.
I've substituted $x_n$ with $S_n-S_{n-1}$, got a quadratic equation in terms of $\sqrt{S_n}$ and found out that when $n\ge3$, we have $$\sqrt{S_n}-\sqrt{S_{n-1}}=\sqrt{2}$$
But it seems to be of no use. Any hints would be appreciated.
I could hardly find a tag this question would fit well, so you could suggest some tags as well. Thanks.