OFFSET
0,3
FORMULA
From Chai Wah Wu, Oct 30 2018: (Start)
a(n) = a(n-1) - a(n-39) + a(n-40) for n > 40.
G.f.: x^2*(-5*x^38 + 2*x^36 + 3*x^35 - 6*x^34 + 4*x^33 - 2*x^32 + 2*x^31 + x^30 - 8*x^28 + 5*x^27 + x^26 - 6*x^25 + x^24 + 7*x^23 - x^22 - 5*x^21 + 5*x^20 - 4*x^19 + 4*x^17 - 3*x^16 - 4*x^15 + 8*x^14 - 2*x^13 - x^12 + x^11 - 5*x^10 + 7*x^9 + x^7 - 2*x^6 - 2*x^5 + 3*x^4 - 3*x^3 + 4*x^2 - 7*x - 2)/(x^40 - x^39 + x - 1). (End)
MATHEMATICA
Join[{0, 0}, RealDigits[1/338, 10, 120][[1]]] (* Harvey P. Dale, Jan 02 2018 *)
CROSSREFS
KEYWORD
nonn,cons
AUTHOR
STATUS
approved