OFFSET
0,2
LINKS
Index entries for linear recurrences with constant coefficients, signature (0, 0, 1).
FORMULA
G.f.: (1+2*x-x^4)/(1-x^3). - Jaume Oliver Lafont, Mar 24 2009
EXAMPLE
.12011011011011011011011011011011011011011011011011011011011...
MATHEMATICA
Join[{1, 2}, LinearRecurrence[{0, 0, 1}, {0, 1, 1}, 97]] (* Ray Chandler, Aug 25 2015 *)
PROG
(PARI) a(n)=(n%3!=2)+(n==1) \\ Jaume Oliver Lafont, Mar 24 2009
CROSSREFS
KEYWORD
nonn,cons
AUTHOR
Eric Desbiaux, Sep 13 2008
STATUS
approved