Interactive · 1 question
Suppose that we want to solve . This is similar to approximating as .
Where have we done something similar?
Right, we use continued fractions to approximate real numbers. Let's try to do that in this case. First, we find the continued fraction approximation for . We find the convergents, which are really good approximations for . The first few are: Let's see which ones work.
Therefore, some solutions are
Note that there is a pattern. It alternates between and . From this, we can conjecture that there are infinitely many integer solutions, namely every other convergent.
Similarly, we can solve any equation in the form by finding the continued fraction expansion of and considering the convergents. This doesn't work when is a square because then there's only one convergent!