OFFSET
0,6
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 0..1000
Index entries for linear recurrences with constant coefficients, signature (3,-3,1,0,0,0,0,0,0,0,0,0,1,-3,3,-1).
FORMULA
a(n) = +3*a(n-1) -3*a(n-2) +a(n-3) +a(n-13) -3*a(n-14) +3*a(n-15) -a(n-16). -R. J. Mathar, Apr 15 2010
G.f.: x^4*(1 +x +2*x^5 +2*x^9 -x^10 +x^11)/((1 -x)^4*(1 +x +x^2 +x^3 +x^4 +x^5 +x^6 +x^7 +x^8 +x^9 +x^10 +x^11 +x^12)). - Colin Barker, Sep 07 2016
PROG
(Magma) [n*(n-1)*(n-2) div 13: n in [0..50]]; // Vincenzo Librandi, Sep 07 2016
(PARI) concat(vector(4), Vec(x^4*(1 +x +2*x^5 +2*x^9 -x^10 +x^11) / ((1 -x)^4*(1 +x +x^2 +x^3 +x^4 +x^5 +x^6 +x^7 +x^8 +x^9 +x^10 +x^11 +x^12)) + O(x^50))) \\ Colin Barker, Sep 07 2016
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
STATUS
approved