login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A099194 Least solution to the Pellian equation x^2 - k*y^2 = 1 (A002349) such that 2^2^n < y <= 2^2^(n+1). 0
2, 5, 10, 13, 29, 61, 109, 397, 1021, 2389, 6829, 25309, 82021, 271021, 952429 (list; graph; refs; listen; history; text; internal format)
OFFSET
-1,1
LINKS
MATHEMATICA
$MaxExtraPrecision = 512; 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]}]; f[n_] := If[ ! IntegerQ[ Sqrt[ n]], PellSolve[n][[2]], 0]; t = Table[0, {20}]; Do[a = Floor[ Log[2, Log[2, f[n]]]]; If[a < 20 && t[[a - 1]] == 0, t[[a - 1]] = n; Print[{a, n}]], {n, 10^7}]
CROSSREFS
Sequence in context: A328700 A018296 A033316 * A140411 A053353 A099792
KEYWORD
hard,nonn
AUTHOR
Robert G. Wilson v, Oct 02 2004
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 18 22:18 EDT 2024. Contains 371782 sequences. (Running on oeis4.)