login
A021160
Decimal expansion of 1/156.
2
0, 0, 6, 4, 1, 0, 2, 5, 6, 4, 1, 0, 2, 5, 6, 4, 1, 0, 2, 5, 6, 4, 1, 0, 2, 5, 6, 4, 1, 0, 2, 5, 6, 4, 1, 0, 2, 5, 6, 4, 1, 0, 2, 5, 6, 4, 1, 0, 2, 5, 6, 4, 1, 0, 2, 5, 6, 4, 1, 0, 2, 5, 6, 4, 1, 0, 2, 5, 6, 4, 1, 0, 2, 5, 6, 4, 1, 0, 2, 5, 6, 4, 1, 0, 2, 5, 6, 4, 1, 0, 2, 5, 6, 4, 1, 0, 2, 5, 6
OFFSET
0,3
FORMULA
The period is just 6: after 0.00, 641025 repeated endlessly. - Alonso del Arte, Apr 18 2018
From Colin Barker, Apr 19 2018: (Start)
G.f.: x^2*(6 - 8*x + 5*x^2) / ((1 - x)*(1 - x + x^2)).
a(n) = 2*a(n-1) - 2*a(n-2) + a(n-3) for n>4. (End)
EXAMPLE
0.00641025641025641025641025641...
MATHEMATICA
PadRight[{0, 0}, 100, {2, 5, 6, 4, 1, 0}] (* or *) Join[{0, 0}, RealDigits[1/156, 10, 100][[1]]] (* Harvey P. Dale, May 13 2012 *)
PROG
(PARI) 1/156. \\ Altug Alkan, Apr 18 2018
(PARI) concat(vector(2), Vec(x^2*(6 - 8*x + 5*x^2) / ((1 - x)*(1 - x + x^2)) + O(x^60))) \\ Colin Barker, Apr 19 2018
CROSSREFS
Cf. A021043 (1/39).
Sequence in context: A368831 A158567 A215832 * A354887 A357016 A060780
KEYWORD
nonn,cons,easy
STATUS
approved