This is true for the infinite continued fraction, which is probably where they got their problem.Notice the RHS can be written as
[math]x = 4 + \dfrac{1}{x} \implies x^2-4x-1=0 \implies x = \sqrt{5} \pm 2[/math]
I suspected it was infinite as the LHS and the last denominator have similar forms i.e. [imath]\sqrt{5} + 2[/imath] and [imath] \sqrt{5} -a[/imath].This is true for the infinite continued fraction, which is probably where they got their problem.