Skip to content

PellSolution ​

The fundamental solution (t,u)(t,u), u>0u>0, of Pell's equation t2−Du2=4t^2-Du^2=4.

PellSolution(D)the pair (t,u)(t,u)
Typed signatures
TypePackageApplies
(integer) -> listmodularalways

Domain: The modular group

Examples

Basic #

32−5⋅12=43^2-5\cdot 1^2=4

live ↗
InPellSolution(5)\mathrm{PellSolution}(5)Out[3,1]\bigl\lbrack3, 1\bigr\rbrack

42−12⋅12=44^2-12\cdot 1^2=4

live ↗
InPellSolution(12)\mathrm{PellSolution}(12)Out[4,1]\bigl\lbrack4, 1\bigr\rbrack
About
Examples2

See also: FormClassNumber, FormAutomorph