Solution

ID: past-exam-of-the-mathematics-course-of-the-university-of-cambridge/2022/ii/paper-1/2g/solution

Directly,
Thus take , , , and . They are nonnegative and
Each finite block of a continued fraction acts by a fractional linear transformation with an integral matrix of determinant . If the block repeats, removing one period leaves the same tail , so
for integers . Hence , with the linear case allowed when .
For period ,
so
The continued fraction is positive, so it is the positive root
while the other root is negative.

New to topics? Read the docs here!