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.

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.

Terms

    a(0) =1a(1) =1a(2) =1a(3) =3a(4) =6a(5) =6a(6) =11a(7) =26a(8) =48a(9) =82a(10) =201a(11) =379a(12) =836a(13) =1554a(14) =3197a(15) =6420a(16) =12639a(17) =25298a(18) =50675a(19) =101675a(20) =203379a(21) =405946a(22) =811519a(23) =1622692a(24) =3249540a(25) =6494117a(26) =12998399a(27) =25991681

External references