Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A081232
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A081232 Let p = n-th prime of the form 4k+1, take smallest solution (x,y) to the Pellian equation x^2 - p*y^2 = 1 with x and y >= 1; sequence gives value of x. +0
3
9, 649, 33, 9801, 73, 2049, 66249, 1766319049, 2281249, 500001, 62809633, 201, 158070671986249, 1204353, 6083073, 25801741449, 46698728731849, 2499849, 2469645423824185801, 6224323426849, 393, 5848201, 1072400673 (list; graph; listen)
OFFSET

1,1

EXAMPLE

For n = 1, p = 5, x=9, y=4 since 9^2 = 5*4^2 + 1, so a(1) = 9.

MATHEMATICA

PellSolve[(m_Integer)?Positive] := Module[{cof, n, s}, cof = ContinuedFraction[Sqrt[m]]; n = Length[Last[cof]]; If[ OddQ[n], n = 2*n]; s = FromContinuedFraction[ContinuedFraction[Sqrt[m], n]]; {Numerator[s], Denominator[s]}]; First /@ PellSolve /@ Select[Prime@Range@54, Mod[ #, 4] == 1 &] (* Robert G. Wilson v *)

CROSSREFS

Values of y are in A082393. Cf. A082394. Equals A002350(p).

Values of y are in A082393. Cf. A082394, A081233. Equals A002350(p).

Sequence in context: A158881 A157597 A128795 this_sequence A020548 A091062 A015007

Adjacent sequences: A081229 A081230 A081231 this_sequence A081233 A081234 A081235

KEYWORD

easy,nonn

AUTHOR

N. J. A. Sloane (njas(AT)research.att.com), Apr 18, 2003

EXTENSIONS

More terms from Robert G. Wilson v (rgwv(at)rgwv.com), Feb 28 2006

page 1

Search completed in 0.002 seconds

Lookup | Welcome | Find friends | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
More pages | Superseeker | Maintained by N. J. A. Sloane (njas@research.att.com)

Last modified November 25 20:09 EST 2009. Contains 167514 sequences.


AT&T Labs Research