OFFSET
1,2
COMMENTS
Sequence A071866 gives the number of terms in the n-th continued fraction.
If n is in A029707, row n is [1, (prime(n)-1)/2, 2]. - Robert Israel, May 29 2018
LINKS
Robert Israel, Table of n, a(n) for n = 1..10003 (rows 1 to 2533, flattened)
EXAMPLE
Prime(4)/prime(3) = 7/5 = 1+ 1/(2+1/2), so the terms associated with the 3rd continued fraction are 1, 2, 2.
MAPLE
seq(op(convert(ithprime(n+1)/ithprime(n), confrac)), n=1..100); # Robert Israel, May 29 2018
MATHEMATICA
Flatten[Table[ContinuedFraction[Prime[n + 1]/Prime[n]], {n, 30}]] (* Ray Chandler, Aug 25 2005 *)
CROSSREFS
KEYWORD
AUTHOR
Leroy Quet, Aug 24 2005
EXTENSIONS
Extended by Ray Chandler and Robert G. Wilson v, Aug 25 2005
Edited by Charles R Greathouse IV, Apr 23 2010
Definition corrected by Leroy Quet, May 10 2010
STATUS
approved