OFFSET
0,3
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 0..1000
FORMULA
From Chai Wah Wu, Jun 20 2016: (Start)
a(n) = a(n-1) - a(n-23) + a(n-24) for n > 23.
G.f.: x^2*(x^21 + 3*x^20 + 3*x^19 - 4*x^18 - x^17 + x^16 + 2*x^15 - x^14 - x^13 + 5*x^12 - 2*x^11 - x^10 + 4*x^9 - 6*x^8 + 2*x^7 + 2*x^5 - 2*x^4 - 5*x^3 + 8*x^2 - 6*x + 7)/(1 - x + x^23 - x^24). (End)
MATHEMATICA
PadLeft[First@#, Abs@Last@# + Length@First@#] &@ RealDigits[N[1/139, 120]] (* Bruno Berselli, Jun 21 2016 *)
CROSSREFS
KEYWORD
AUTHOR
STATUS
approved