OFFSET
1,2
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 1..10000
Index entries for linear recurrences with constant coefficients, signature (4,-6,4,-1).
FORMULA
a(n) = (1/6)*(171*n^3 - 243*n^2 + 78*n).
G.f.: x*(1 + 88*x + 82*x^2)/(1-x)^4. - Colin Barker, Feb 14 2012
PROG
(Magma) [(1/6)*(171*n^3-243*n^2+78*n): n in [1..40]]; // Vincenzo Librandi, Jul 27 2011
(PARI) a(n)=n*(171*n^2-243*n+78)/6 \\ Charles R Greathouse IV, Feb 06 2012
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
James A. Record (james.record(AT)gmail.com), Nov 07 2004
STATUS
approved