OFFSET
1,1
LINKS
Colin Barker, Table of n, a(n) for n = 1..1000
Milan Janjic, Enumerative Formulas for Some Functions on Finite Sets
Index entries for linear recurrences with constant coefficients, signature (15,-85,225,-274,120).
FORMULA
a(n) = 12*5^n-24*4^n+19*3^n-7*2^n+1.
G.f.: -2*x*(60*x^4-123*x^3+101*x^2-30*x+4) / ((x-1)*(2*x-1)*(3*x-1)*(4*x-1)*(5*x-1)). - Colin Barker, Feb 22 2015
MAPLE
f:=n->12*5^n-24*4^n+19*3^n-7*2^n+1;
MATHEMATICA
LinearRecurrence[{15, -85, 225, -274, 120}, {8, 60, 422, 2784, 17318}, 22] (* James C. McMahon, Dec 26 2024 *)
PROG
(PARI) Vec(-2*x*(60*x^4-123*x^3+101*x^2-30*x+4) / ((x-1)*(2*x-1)*(3*x-1)*(4*x-1)*(5*x-1)) + O(x^100)) \\ Colin Barker, Feb 22 2015
CROSSREFS
KEYWORD
nonn,base,easy
AUTHOR
Aleksandar M. Janjic and Milan Janjic, Feb 08 2007
STATUS
approved