Text this: Solving the Pell Equation