The positive numbers $x_1,x_2,\cdots,x_n$ $n\ge3$ satisfy $$x_1=1+\frac{1}{x_2},x_2=1+\frac{1}{x_3},\cdots,x_{n-1}=1+\frac{1}{x_n}$$ And also $$x_n=1+\frac{1}{x_1}$$ Find the value of $x_1.$
My first thought is that this question has an unknown number of variables$:$ $x_1,\cdots, x_n.$ That makes it seem rather complicated. I might, if necessary, try to understand the result by choosing an easy value for $n$ (maybe $n = 3$). If I manage to prove some of the results in this special case, I will certainly go back to the general case$:$ doing the special case might help me tackle the general case.
Also, I don't think that I can apply any inequality here. I can see that each $x_i>1.$ But now I'm stuck. No idea is striking to my mind.
Any help is greatly appreciated.