OFFSET
0,5
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,0,0,0,0,0,0,0,0,0,-1,1).
FORMULA
From Chai Wah Wu, Mar 07 2021: (Start)
a(n) = a(n-1) - a(n-30) + a(n-31) for n > 34.
G.f.: x^2*(-5*x^32 - 2*x^31 - x^30 + 2*x^29 - 2*x^28 + x^27 + 5*x^26 - x^25 + 3*x^24 - 8*x^23 + 7*x^22 - 8*x^21 + 5*x^20 + 4*x^19 - 7*x^18 + 4*x^16 - 4*x^15 + 2*x^14 - x^12 + 6*x^11 - 6*x^10 + 3*x^9 - 5*x^8 - x^7 + 9*x^6 - 4*x^5 - x^4 - 2*x^3 - 2*x^2 + x - 1)/(x^31 - x^30 + x - 1). (End)
MATHEMATICA
Join[{0, 0}, RealDigits[1/976, 10, 120][[1]]] (* or *) PadRight[{0, 0, 1, 0}, 120, {6, 8, 8, 5, 2, 4, 5, 9, 0, 1, 6, 3, 9, 3, 4, 4, 2, 6, 2, 2, 9, 5, 0, 8, 1, 9, 6, 7, 2, 1, 3, 1, 1, 4, 7, 5, 4, 0, 9, 8, 3, 6, 0, 6, 5, 5, 7, 3, 7, 7, 0, 4, 9, 1, 8, 0, 3, 2, 7, 8}] (* Harvey P. Dale, Oct 08 2016 *)
CROSSREFS
KEYWORD
nonn,cons
AUTHOR
STATUS
approved