OFFSET
0,2
COMMENTS
Row sums of the triangle in A245300.
LINKS
G. C. Greubel, Table of n, a(n) for n = 0..1000
Index entries for linear recurrences with constant coefficients, signature (4,-6,4,-1).
FORMULA
a(n) = Sum_{j=0..n} A000217(2n-j)+j. - Manfred Arens, Dec 26 2015
G.f.: x*(5 + 2*x)/(1-x)^4. - Vincenzo Librandi, Feb 01 2016
E.g.f.: x*(30 + 36*x + 7*x^2)*exp(x)/6. - G. C. Greubel, Mar 31 2021
MAPLE
MATHEMATICA
Table[n (7 n^2 + 15 n + 8)/6, {n, 0, 50}] (* Vincenzo Librandi, Feb 01 2016 *)
LinearRecurrence[{4, -6, 4, -1}, {0, 5, 22, 58}, 50] (* Harvey P. Dale, Sep 21 2019 *)
PROG
(Haskell)
a245301 n = n * (n * (7 * n + 15) + 8) `div` 6
(PARI) a(n)=n*(7*n^2+15*n+8)/6 \\ Charles R Greathouse IV, Feb 01 2016
(Magma) [n*(7*n^2+15*n+8)/6: n in [0..60]]; // Vincenzo Librandi, Feb 01 2016
(Sage) [n*(n+1)*(7*n+8)/6 for n in (0..50)] # G. C. Greubel, Mar 31 2021
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Reinhard Zumkeller, Jul 17 2014
STATUS
approved