login
A107898
Length of continued fraction for n/prime(n).
6
2, 3, 4, 4, 3, 3, 4, 5, 5, 4, 5, 3, 4, 3, 4, 4, 4, 6, 5, 6, 4, 6, 7, 6, 5, 6, 6, 7, 5, 6, 4, 5, 6, 4, 5, 4, 4, 5, 6, 4, 7, 5, 6, 7, 7, 4, 4, 8, 9, 9, 6, 6, 7, 7, 5, 7, 8, 5, 8, 6, 8, 8, 6, 5, 7, 5, 6, 6, 4, 4, 5, 4, 4, 5, 5, 4, 4, 4, 4, 5, 7, 5, 5, 5, 4, 8, 6, 6, 7, 5, 7, 6, 6, 5, 5, 6, 4, 5, 7, 8, 6, 6, 6, 5, 7
OFFSET
1,1
LINKS
Eric Weisstein's World of Mathematics, Continued Fraction.
FORMULA
a(n) = A107901(n) + 1.
MAPLE
[seq(nops(convert(n/ithprime(n), confrac)), n=1..200)]; # Robert Israel, Jan 26 2020
MATHEMATICA
A107898[n_]=Length[ContinuedFraction[n/Prime[n]]
CROSSREFS
KEYWORD
nonn
AUTHOR
Zak Seidov, May 26 2005
STATUS
approved