OFFSET
1,2
COMMENTS
Number of compositions of 4*n-3 into parts 1 and 4. - Seiichi Manyama, Feb 03 2024
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 1..1000
Index entries for linear recurrences with constant coefficients, signature (5,-6,4,-1).
FORMULA
MATHEMATICA
CoefficientList[Series[(1-x)^2/(1-5*x+6*x^2-4*x^3+x^4), {x, 0, 40}], x] (* Vincenzo Librandi, Apr 05 2012 *)
LinearRecurrence[{5, -6, 4, -1}, {1, 3, 10, 36}, 30] (* Harvey P. Dale, Jan 10 2014 *)
PROG
(Magma) I:=[1, 3, 10, 36]; [n le 4 select I[n] else 5*Self(n-1)-6*Self(n-2)+4*Self(n-3)-Self(n-4): n in [1..30]]; // Vincenzo Librandi, Apr 05 2012
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Henry Bottomley, Jun 02 2000
EXTENSIONS
More terms from James A. Sellers, Jun 05 2000
STATUS
approved