login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A285998 a(n) = Sum_{k=0..floor(n/2)} (n-k)*(k+1). 0
1, 4, 7, 16, 22, 40, 50, 80, 95, 140, 161, 224, 252, 336, 372, 480, 525, 660, 715, 880, 946, 1144, 1222, 1456, 1547, 1820, 1925, 2240, 2360, 2720, 2856, 3264, 3417, 3876, 4047, 4560, 4750, 5320, 5530, 6160, 6391, 7084, 7337, 8096, 8372, 9200, 9500, 10400, 10725 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
LINKS
FORMULA
G.f.: x * (1+3*x)/((1-x)^4*(1+x)^3). - Joerg Arndt, Jun 25 2017
a(n) = 1/16 + 13*n/24 + 7*n^2/16 + n^3/12 + (-1)^n*(-1/16 + n/8 + n^2/16). - Vaclav Kotesovec, Jun 25 2017
E.g.f.: (x*(21 + 18*x + 2*x^2)*cosh(x) + (3 + 30*x + 15*x^2 + 2*x^3)*sinh(x))/24. - Stefano Spezia, Dec 23 2022
EXAMPLE
a(2) = (2*1)+(1*2) = 4.
a(3) = (3*1)+(2*2) = 7.
a(4) = (4*1)+(3*2)+(2*3) = 16.
a(5) = (5*1)+(4*2)+(3*3) = 22.
MATHEMATICA
Table[Sum[(n - k) (k + 1), {k, 0, Floor[n/2]}], {n, 49}] (* Michael De Vlieger, Jun 23 2017 *)
PROG
(PARI) a(n) = sum(k=0, n\2, (n-k)*(k+1)); \\ Michel Marcus, Jun 15 2017
(PARI) a(n) = my(r = n%2, n = (n + 4)>>1); 4 * binomial(n, 3) + r * binomial(n, 2); \\ David A. Corneth, Jun 23 2017
CROSSREFS
Cf. A000292 (with n instead of n/2).
Sequence in context: A067398 A325657 A054599 * A229917 A095755 A245937
KEYWORD
nonn,easy
AUTHOR
EXTENSIONS
More terms from Michel Marcus, Jun 15 2017
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified July 12 03:24 EDT 2024. Contains 374237 sequences. (Running on oeis4.)