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