login
This site is supported by donations to The OEIS Foundation.
Logo

Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A096494 Largest value in period of continued fraction of square root of n-th prime. 1
2, 2, 4, 4, 6, 6, 8, 8, 8, 10, 10, 12, 12, 12, 12, 14, 14, 14, 16, 16, 16, 16, 18, 18, 18, 20, 20, 20, 20, 20, 22, 22, 22, 22, 24, 24, 24, 24, 24, 26, 26, 26, 26, 26, 28, 28, 28, 28, 30, 30, 30, 30, 30, 30, 32, 32, 32, 32, 32, 32, 32, 34, 34, 34, 34, 34, 36, 36, 36, 36, 36, 36 (list; graph; refs; listen; history; internal format)
OFFSET

1,1

FORMULA

It seems that limit n ->infinity a(n)/n = 0. - Benoit Cloitre (benoit7848c(AT)orange.fr), Apr 19 2003

a(n)=2*A000006(n). - Benoit Cloitre (benoit7848c(AT)orange.fr), Apr 19 2003

EXAMPLE

n=31,p[31]=127: the period={3,1,2,2,7,11,7,2,2,1,3,22},a[31]=22;

MAPLE

(Maple code from R. J. Mathar, Mar 18 2010)

A096491 := proc(n)

if issqr(n) then

sqrt(n) ;

else

numtheory[cfrac](sqrt(n), 'periodic', 'quotients') ;

%[2] ;

max(op(%)) ;

end if;

end proc:

A096494 := proc(n)

option remember ;

A096491(ithprime(n)) ;

end proc:

MATHEMATICA

{te=Table[0, {m}], u=1}; Do[s=Max[Last[ContinuedFraction[Prime[n]^(1/2)]]]; te[[u]]=s; u=u+1, {n, 1, m}]; te

CROSSREFS

Cf. A003285, A054269, A005980, A096491-A096496.

Sequence in context: A079584 A179291 A004079 * A116568 A061106 A161764

Adjacent sequences:  A096491 A096492 A096493 * A096495 A096496 A096497

KEYWORD

nonn

AUTHOR

Labos E. (labos(AT)ana.sote.hu), Jun 29 2004

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
Recent Additions | More pages | Superseeker | Maintained by The OEIS Foundation Inc.

Content is available under The OEIS End-User License Agreement .

Last modified February 15 05:45 EST 2012. Contains 205694 sequences.