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