OFFSET
0,3
LINKS
Colin Barker, Table of n, a(n) for n = 0..1000
Index entries for linear recurrences with constant coefficients, signature (2,-2,1).
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
KEYWORD
AUTHOR
STATUS
approved