OFFSET
15,3
LINKS
M. Janjic, On Linear Recurrence Equations Arising from Compositions of Positive Integers, J. Int. Seq. 18 (2015) # 15.4.7.
Index entries for linear recurrences with constant coefficients, signature (1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1).
FORMULA
a(n) = a(n-1) + a(n-2) + ... + a(n-16).
G.f.: -x^15 / (x^16+x^15+x^14+x^13+x^12+x^11+x^10+x^9+x^8+x^7+x^6+x^5 +x^4+x^3+x^2+x-1). - Alois P. Heinz, Oct 23 2014
MAPLE
a:= proc(n) option remember; `if`(n<15, 0,
`if`(n=15, 1, add(a(n-j), j=1..16)))
end:
seq(a(n), n=15..50); # Alois P. Heinz, Oct 23 2014
MATHEMATICA
CoefficientList[Series[-1 /(x^16 + x^15 + x^14 + x^13 + x^12 + x^11 + x^10 + x^9 + x^8 + x^7 + x^6 + x^5 + x^4 + x^3 + x^2 + x - 1), {x, 0, 50}], x] (* Vincenzo Librandi, Nov 21 2014 *)
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Alan N. Inglis, Oct 22 2014
STATUS
approved