login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A036248
Denominator of fraction equal to the continued fraction [ 2, 3, 5, ..., prime(n) ].
4
1, 3, 16, 115, 1281, 16768, 286337, 5457171, 125801270, 3653694001, 113390315301, 4199095360138, 172276300080959, 7412079998841375, 348540036245625584, 18480034001016997327, 1090670546096248467877, 66549383345872173537824, 4459899354719531875502085
OFFSET
1,2
FORMULA
a(1) = 1, a(2) = 3, a(n) = A000040(n) * a(n-1) + a(n-2). - Daniel Suteu, Dec 20 2016
EXAMPLE
Prime(4) = 7, and 2+1/(3+1/(5+1/7)) = 266/115, so a(4) = 115. - Jon E. Schoenfield, Dec 20 2016
PROG
(PARI) a(n)=if(n<0, 0, contfracpnqn(vector(n, i, prime(i)))[2, 1])
CROSSREFS
Sequence in context: A177402 A036244 A011818 * A111555 A336293 A355718
KEYWORD
frac,easy,nonn
AUTHOR
EXTENSIONS
More terms from Benoit Cloitre, May 25 2003
STATUS
approved