I have been give then continued fraction
$\dfrac{1}{\dfrac{1}{\dfrac{1}{x-1}-1}-1}$
If I let x=5, I get the following pattern...
$\frac{1}{4}, \, -\frac{4}{3}, \,-\frac{3}{7}, \,-\frac{7}{10}, \,-\frac{10}{17}, \,...$
It appears that (excluding the first case) the previous denominator becomes the numerator and the denominator becomes the sum of the previous denominator and numerator. Is there a way to write that pattern as a sequence so I can find the 653th instance where x=56?