|
|
|
|
0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 8, 8, 8, 8, 9, 9, 9, 9, 10, 10, 10, 10, 11, 11, 11, 11, 12, 12, 12, 12, 13, 13, 13, 13, 14, 14, 14, 14, 15, 15, 15, 15, 16, 16, 16, 16, 17, 17, 17, 17, 18, 18, 18, 18, 19, 19, 19, 19, 20, 20, 20, 20, 21
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
0,6
|
|
COMMENTS
|
|
|
LINKS
|
|
|
FORMULA
|
a(n) = ceiling(n/4).
a(n) = a(n-1) + a(n-4) - a(n-5) for n>4.
G.f.: x/(x^5 - x^4 - x + 1). (End)
|
|
MAPLE
|
|
|
MATHEMATICA
|
CoefficientList[Series[x/(x^5 - x^4 - x + 1), {x, 0, 100}], x] (* Wesley Ivan Hurt, May 29 2016 *)
LinearRecurrence[{1, 0, 0, 1, -1}, {0, 1, 1, 1, 1}, 50] (* G. C. Greubel, May 29 2016 *)
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn,easy
|
|
AUTHOR
|
|
|
STATUS
|
approved
|
|
|
|