OFFSET
1,1
COMMENTS
LINKS
Harvey P. Dale, Table of n, a(n) for n = 1..1000
Index entries for linear recurrences with constant coefficients, signature (4, -6, 4, -1).
FORMULA
a(n) = 4*a(n-1) -6*a(n-2) +4*a(n-3) -a(n-4). - R. J. Mathar, Feb 12 2010
G.f.: x*(2+9*x+x^2)/(x-1)^4. - R. J. Mathar, Feb 12 2010
a(n) = Sum_{i=1..n} A033568(i). - Bruno Berselli, Jul 22 2013
MATHEMATICA
LinearRecurrence[{4, -6, 4, -1}, {2, 17, 57, 134}, 40] (* Harvey P. Dale, Feb 05 2013 *)
PROG
(Magma) [n*(4*n^2 +n-1)div 2:n in [1..40]]; // Vincenzo Librandi, Dec 27 2010
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Reinhard Zumkeller, Nov 24 2006
EXTENSIONS
Definition corrected by Vincenzo Librandi, Dec 27 2010
STATUS
approved