A141571 Decimal expansion of 11999/99900.
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
Examples
.12011011011011011011011011011011011011011011011011011011011...
Links
- Index entries for linear recurrences with constant coefficients, signature (0, 0, 1).
Crossrefs
Cf. A110044.
Programs
-
Mathematica
Join[{1, 2},LinearRecurrence[{0, 0, 1},{0, 1, 1},97]] (* Ray Chandler, Aug 25 2015 *)
-
PARI
a(n)=(n%3!=2)+(n==1) \\ Jaume Oliver Lafont, Mar 24 2009
Formula
G.f.: (1+2*x-x^4)/(1-x^3). - Jaume Oliver Lafont, Mar 24 2009