Solution for 261 in caml, use the same Pell generalized equations as the Python version (runs in 0.8s).