OFFSET
0,2
LINKS
Alois P. Heinz, Table of n, a(n) for n = 0..1000
Index entries for linear recurrences with constant coefficients, signature (1,0,0,0,0,0,1,-1)
FORMULA
G.f.: x*(x^8-x^7-4*x^6-2*x+7)/(x^8-x^7-x+1).
a(n) = 1 + a(n-7) for n>8.
EXAMPLE
a(15) = 8:
._._._._._._._._._._._._._._._.
| | | |
| | | |
| | | |
| |_______|_______|
| | | | |
| | | |___|
|_____________|_____|_____|_|_|
MAPLE
a:= n-> `if`(n=1, 7, iquo(n, 7, 'r') +[0, 6, 5$5][r+1]):
seq(a(n), n=0..100);
MATHEMATICA
CoefficientList[Series[x*(x^8 - x^7 - 4*x^6 - 2*x + 7)/(x^8 - x^7 - x + 1), {x, 0, 100}], x] (* Wesley Ivan Hurt, Jan 15 2017 *)
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Alois P. Heinz, Jun 12 2013
STATUS
approved