OFFSET
0,4
COMMENTS
Positive values are the row sums of triangle A159798.
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 0..1000
Amit Kumar Singh, Akash Kumar and Thambipillai Srikanthan, Accelerating Throughput-aware Run-time Mapping for Heterogeneous MPSoCs, ACM Transactions on Design Automation of Electronic Systems, 2012. - From N. J. A. Sloane, Dec 25 2012
Index entries for linear recurrences with constant coefficients, signature (4,-6,4,-1)
FORMULA
G.f.: x*(1 - 3*x + 5*x^2)/(1 - x)^4. - Vincenzo Librandi, Dec 19 2012
E.g.f.: x*(x^2 - x + 2)*exp(x)/2. - G. C. Greubel, Apr 21 2018
MATHEMATICA
f[n_]:=(n^3-n^2)/2+1; Table[f[n], {n, -1, 5!}] (* Vladimir Joseph Stephan Orlovsky, Feb 07 2010 *)
CoefficientList[Series[x*(1 - 3*x + 5*x^2)/(1 - x)^4, {x, 0, 50}], x] (* Vincenzo Librandi, Dec 19 2012 *)
PROG
(Magma) [n*(n^2 - 4*n + 5)/2: n in [0..50]]; // Vincenzo Librandi, Dec 19 2012
(PARI) for(n=0, 50, print1(n*(n^2-4*n+5)/2, ", ")) \\ G. C. Greubel, Apr 21 2018
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
R. J. Mathar and Omar E. Pol, Jul 21 2009
STATUS
approved