OFFSET
1,4
LINKS
Ray Chandler, Table of n, a(n) for n = 1..10000
Index entries for linear recurrences with constant coefficients, signature (0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,-1).
FORMULA
First 18 terms: 0, 1, 1, 5, 4, 2, 2, 2, 2, 2, 1, 1, 9, 1, 1, 3, 3, 2.
For k >= 1, a(19k)=a(19k+1)=a(19k+16)=a(19k+17)=3; a(19k+2)=a(19k+7)=2k; a(19k+3)=a(19k+6)=a(19k+8)=a(19k+11)=a(19k+14)=1; a(19k+4)=a(19k+5)=a(19k+9)= a(19k+10)=2; a(19k+12)=a(19k+15)=2k+1; a(19k+18)=2k+2.
MATHEMATICA
ContinuedFraction[E/5, 100] (* Paolo Xausa, Sep 21 2024 *)
PROG
(PARI) contfrac(exp(1)/5) \\ Michel Marcus, Dec 03 2013
CROSSREFS
KEYWORD
nonn,cofr,easy
AUTHOR
Benoit Cloitre, Apr 08 2003
STATUS
approved