OFFSET
0,2
COMMENTS
Arises in studying lunar arithmetic.
LINKS
G. C. Greubel, Table of n, a(n) for n = 0..1000
D. Applegate, M. LeBrun and N. J. A. Sloane, Dismal Arithmetic [Note: we have now changed the name from "dismal arithmetic" to "lunar arithmetic" - the old name was too depressing]
Index entries for linear recurrences with constant coefficients, signature (1,1,0,1,1).
FORMULA
From Colin Barker, Jul 25 2013: (Start)
a(n) = a(n-1) + a(n-2) + a(n-4) + a(n-5) for n>5.
G.f.: -(x+1)*(x^4+x^3+1) / (x^5+x^4+x^2+x-1). (End)
MATHEMATICA
CoefficientList[Series[-(x + 1)*(x^4 + x^3 + 1)/(x^5 + x^4 + x^2 + x - 1), {x, 0, 50}], x] (* G. C. Greubel, Jun 25 2017 *)
PROG
(PARI) x='x+O('x^50); Vec(-(x+1)*(x^4+x^3+1)/(x^5+x^4+x^2+x-1)) \\ G. C. Greubel, Jun 25 2017
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
N. J. A. Sloane, Mar 31 2011
STATUS
approved