Pell-Fermat equation