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

 

Logo

Please make a donation to keep the OEIS running. We are now in our 55th year. In the past year we added 12000 new sequences and reached 8000 citations (which often say "discovered thanks to the OEIS"). We need to raise money to hire someone to manage submissions, which would reduce the load on our editors and speed up editing.
Other ways to donate

Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A112768 Sum of terms of continued fraction for prime(n+1)/prime(n). 6
3, 4, 5, 6, 8, 8, 11, 9, 10, 17, 12, 14, 23, 15, 14, 15, 32, 17, 21, 38, 19, 24, 20, 20, 29, 53, 30, 56, 32, 23, 36, 28, 71, 24, 77, 32, 33, 45, 34, 35, 92, 29, 98, 53, 101, 23, 24, 60, 116, 62, 45, 122, 35, 48, 49, 50, 137, 52, 74, 143, 35, 35, 81, 158, 83, 30, 62, 40, 176 (list; graph; refs; listen; history; text; internal format)
OFFSET

1,1

LINKS

Robert Israel, Table of n, a(n) for n = 1..10000

EXAMPLE

Prime(6)/prime(5) = 13/11 = 1 + 1/(5 + 1/2), so a(5) = 1+5+2 = 8.

MAPLE

seq(convert(numtheory:-cfrac(ithprime(n+1)/ithprime(n), quotients), `+`), n=1..100); # Robert Israel, Jul 11 2017

MATHEMATICA

Table[Plus @@ ContinuedFraction[Prime[n + 1]/Prime[n]], {n, 70}]

PROG

(PARI) a(n) = vecsum(contfrac(prime(n+1)/prime(n))); \\ Michel Marcus, Jul 12 2017

CROSSREFS

Cf. A071866, A110021, A109374, A112323, A112324.

Sequence in context: A229109 A096127 A327953 * A298420 A197354 A089399

Adjacent sequences:  A112765 A112766 A112767 * A112769 A112770 A112771

KEYWORD

nonn,look

AUTHOR

Ray Chandler, Sep 18 2005

STATUS

approved

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

License Agreements, Terms of Use, Privacy Policy. .

Last modified December 12 20:12 EST 2019. Contains 329961 sequences. (Running on oeis4.)