login
A021147
Decimal expansion of 1/143.
1
0, 0, 6, 9, 9, 3, 0, 0, 6, 9, 9, 3, 0, 0, 6, 9, 9, 3, 0, 0, 6, 9, 9, 3, 0, 0, 6, 9, 9, 3, 0, 0, 6, 9, 9, 3, 0, 0, 6, 9, 9, 3, 0, 0, 6, 9, 9, 3, 0, 0, 6, 9, 9, 3, 0, 0, 6, 9, 9, 3, 0, 0, 6, 9, 9, 3, 0, 0, 6, 9, 9, 3, 0, 0, 6, 9, 9, 3, 0, 0, 6, 9, 9, 3, 0, 0, 6, 9, 9, 3, 0, 0, 6, 9, 9, 3, 0, 0, 6
OFFSET
0,3
FORMULA
From Chai Wah Wu, Jun 21 2016: (Start)
a(n) = a(n-1) - a(n-3) + a(n-4) for n > 3.
G.f.: 3*x^2*(2 + x)/(1 - x + x^3 - x^4). (End)
MATHEMATICA
PadLeft[First@ #, Abs@ Last@ # + Length@ First@ #] &@ RealDigits[N[1/143, 120]] (* Michael De Vlieger, Jun 21 2016 *)
PROG
(Magma) I:=[0, 0, 6, 9]; [n le 4 select I[n] else Self(n-1)- Self(n-3)+Self(n-4): n in [1..100]]; // Vincenzo Librandi, Jun 21 2016
CROSSREFS
Sequence in context: A155554 A347217 A019902 * A246709 A051496 A330564
KEYWORD
nonn,cons,easy
AUTHOR
STATUS
approved