Solution

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

The simple continued fraction algorithm for begins with . Its complete quotients repeat after
Thus
The convergents through one period are
The last one gives the negative Pell equation solution
Therefore

New to topics? Read the docs here!