OFFSET
0,4
LINKS
Index entries for linear recurrences with constant coefficients, signature (1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,-1,1).
FORMULA
From Chai Wah Wu, Oct 23 2018: (Start)
a(n) = a(n-1) - a(n-21) + a(n-22) for n > 23.
G.f.: x^2*(-5*x^21 + 3*x^20 - 2*x^19 - 4*x^18 - x^17 + 4*x^16 + 3*x^15 + x^14 - x^13 - 7*x^12 + 7*x^10 - 4*x^9 + 6*x^8 - 6*x^7 - 3*x^6 + 5*x^5 + 3*x^4 - 2*x^3 + 3*x^2 - 8*x - 1)/(x^22 - x^21 + x - 1). (End)
MATHEMATICA
Join[{0, 0}, RealDigits[1/508, 10, 120][[1]]] (* or *) PadRight[{0, 0}, 120, {2, 5, 1, 9, 6, 8, 5, 0, 3, 9, 3, 7, 0, 0, 7, 8, 7, 4, 0, 1, 5, 7, 4, 8, 0, 3, 1, 4, 9, 6, 0, 6, 2, 9, 9, 2, 1, 2, 5, 9, 8, 4}] (* Harvey P. Dale, Oct 19 2018 *)
CROSSREFS
KEYWORD
nonn,cons
AUTHOR
STATUS
approved