The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
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!)
A071866 Number of elements in the continued fraction for prime(n+1)/prime(n). 8
2, 3, 3, 4, 3, 3, 3, 4, 4, 3, 3, 3, 3, 4, 4, 4, 3, 3, 4, 3, 3, 4, 4, 3, 3, 3, 4, 3, 3, 3, 4, 4, 3, 4, 3, 3, 3, 4, 4, 4, 3, 3, 3, 3, 3, 6, 6, 4, 3, 3, 4, 3, 3, 4, 4, 4, 3, 3, 3, 3, 4, 4, 4, 3, 3, 6, 3, 5, 3, 3, 4, 4, 3, 3, 4, 4, 6, 3, 3, 4, 3, 3, 3, 3, 4, 4, 3, 3, 3, 4, 4, 4, 4, 5, 4, 4, 5, 3, 3, 3, 5, 4, 4, 3, 3 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
LINKS
EXAMPLE
prime(5)/prime(4) = 11/7, 11/7 continued fraction is [1, 1, 1, 3] which contains 4 elements, hence a(4)=4.
MAPLE
seq(nops(convert(ithprime(n+1)/ithprime(n), confrac)), n=1..200); # Robert Israel, May 29 2018
MATHEMATICA
Table[Length[ContinuedFraction[Prime[n + 1]/Prime[n]]], {n, 105}] - Ray Chandler, Sep 18 2005
PROG
(PARI) for(n=1, 200, print1(length(contfrac(prime(n+1)/prime(n))), ", "))
CROSSREFS
Sequence in context: A215469 A007554 A139069 * A077603 A077567 A096344
KEYWORD
easy,nonn
AUTHOR
Benoit Cloitre, Jun 09 2002
EXTENSIONS
More terms from Hans Havermann, Jul 06 2002
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 June 3 09:08 EDT 2024. Contains 373057 sequences. (Running on oeis4.)