Mathematics
The Pell Equation and Its Solution via Continued Fractions
Quick fact
For any non-square positive integer D, the Pell equation x² – Dy² = 1 always has infinitely many integer solutions, and they are generated from the continued fraction expansion of √D. The smallest non-trivial solution for D=2 is (3,2), for D=3 it's (2,1), and for D=60 it's (31,4).
Why this is interesting
You know how to solve equations like x² – 2y² = 1? It looks simple, but the solutions are surprisingly large and tricky to find. Can you guess the next one after (3, 2) and (17, 12)?