login
A141571
Decimal expansion of 11999/99900.
2
1, 2, 0, 1, 1, 0, 1, 1, 0, 1, 1, 0, 1, 1, 0, 1, 1, 0, 1, 1, 0, 1, 1, 0, 1, 1, 0, 1, 1, 0, 1, 1, 0, 1, 1, 0, 1, 1, 0, 1, 1, 0, 1, 1, 0, 1, 1, 0, 1, 1, 0, 1, 1, 0, 1, 1, 0, 1, 1, 0, 1, 1, 0, 1, 1, 0, 1, 1, 0, 1, 1, 0, 1, 1, 0, 1, 1, 0, 1, 1, 0, 1, 1, 0, 1, 1, 0, 1, 1, 0, 1, 1, 0, 1, 1, 0, 1, 1, 0
OFFSET
0,2
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
Cf. A110044.
Sequence in context: A260728 A065339 A122434 * A164067 A353918 A305490
KEYWORD
nonn,cons
AUTHOR
Eric Desbiaux, Sep 13 2008
STATUS
approved