login
A138743
Let r_1 = 1. Let r_{m+1} = r_1 + 1/(r_2 + 1/(r_3 +...(r_{m-1} + 1/r_m)...)), a continued fraction of rational terms. Then a(n) is the number of (positive integer) terms in the simple continued fraction of r_n.
2
1, 1, 1, 3, 6, 6, 11, 26, 48, 82, 201, 379, 836, 1554, 3197, 6420, 12639, 25298, 50675, 101675, 203379, 405946, 811519, 1622692, 3249540, 6494117, 12998399, 25991681
OFFSET
1,4
COMMENTS
This sequence is the number of terms in the n-th row of irregular array A138742.
EXAMPLE
{r_n}: 1, 1, 2, 5/3, 31/18, 1231/720,...
r_5 = 31/18, for instance, equals the simple continued fraction 1+ 1/(1 + 1/(2 + 1/(1 + 1/(1 +1/2)))). There are six integer terms (1,1,2,1,1,2) in this continued fraction, so a(5) = 6.
CROSSREFS
Sequence in context: A132384 A201155 A200534 * A184284 A287882 A066297
KEYWORD
nonn,more
AUTHOR
Leroy Quet, Mar 27 2008
EXTENSIONS
a(7)-a(28) from Lucas A. Brown, Apr 12 2021
STATUS
approved