OFFSET
1,1
LINKS
N. J. A. Sloane et al., Binary Quadratic Forms and OEIS (Index to related sequences, programs, references)
MATHEMATICA
PellSolve[(m_Integer)?Positive] := Module[{cf, n, s}, cf = ContinuedFraction[ Sqrt[m]]; n = Length[Last[cf]]; If[OddQ[n], n = 2*n]; s = FromContinuedFraction[ ContinuedFraction[ Sqrt[m], n]]; {Numerator[s], Denominator[s]}]; Table[ PellSolve[ Prime[n]][[2]], {n, 40}] (* Robert G. Wilson v, Jul 22 2005 *)
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
N. J. A. Sloane, Apr 18 2003
EXTENSIONS
More terms (a(8) - a(40)) from Robert G. Wilson v, Jul 22 2005
STATUS
approved