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,1,-1)
FORMULA
G.f.: x*(x^6-x^5-4*x^4+x^3-x+5)/(x^6-x^5-x+1).
a(n) = 1 + a(n-5) for n>6.
EXAMPLE
a(11) = 6:
._._._._._._._._._._._.
| | | |
| | | |
| |_____|_____|
| | | | |
|_________|___|___|___|
MAPLE
a:= n-> `if`(n=1, 5, iquo(n, 5, 'r') +[0, 4$3, 5][r+1]):
seq(a(n), n=0..80);
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Alois P. Heinz, Jun 12 2013
STATUS
approved