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”).

A128270
a(n) = the numerator of b(n): {b(n)} is such that the continued fraction (of rational terms) [b(1);b(2),...,b(n)] equals the n-th prime, for every positive integer n.
2
2, 1, -3, 4, -3, 12, -3, 48, -3, 320, -3, 512, -135, 256, -243, 5120, -243, 8192, -27, 5120, -27, 2048, -135, 5120, -1701, 8192, -2187, 4096, -2187, 1024, -6561, 1792, -1215, 25088, -243, 62720, -27, 313600, -27, 1568000, -243, 2508800, -243, 6272000
OFFSET
1,1
LINKS
EXAMPLE
b(n): 2, 1, -3/2, 4, -3/4, 12, -3/16,...
The 4th prime, 7, equals [b(1);b(2),b(3),b(4)] = 2 +1/(1 +1/(-3/2 +1/4)).
The 5th prime, 11, equals [b(1);b(2),b(3),b(4),b(5)] = 2 +1/(1 +1/(-3/2 +1/(4 -4/3))).
CROSSREFS
Cf. A128271.
Sequence in context: A002124 A097564 A345233 * A367860 A151550 A097003
KEYWORD
frac,sign
AUTHOR
Leroy Quet, Feb 22 2007
EXTENSIONS
More terms from Diana L. Mecum, Jun 24 2007
STATUS
approved