|
|
A025112
|
|
a(n) = s(1)s(n) + s(2)s(n-1) + ... + s(k)s(n-k+1), where k = floor(n/2), s = (odd natural numbers).
|
|
0
|
|
|
3, 5, 22, 30, 73, 91, 172, 204, 335, 385, 578, 650, 917, 1015, 1368, 1496, 1947, 2109, 2670, 2870, 3553, 3795, 4612, 4900, 5863, 6201, 7322, 7714, 9005, 9455, 10928, 11440, 13107, 13685, 15558, 16206, 18297, 19019, 21340, 22140, 24703, 25585, 28402, 29370, 32453
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
2,1
|
|
COMMENTS
|
Sum of the areas of all rectangles with distinct odd side lengths r and s such that r + s = 2n. - Wesley Ivan Hurt, Apr 21 2020
|
|
LINKS
|
|
|
FORMULA
|
a(n) = n*(4*n^2 - 3*n + 2 + 3*n*(-1)^n)/12. - Luce ETIENNE, Jan 07 2015
G.f.: x^2*(3 + 2*x + 8*x^2 + 2*x^3 + x^4)/((1+x)^3*(1-x)^4). - Robert Israel, Jan 13 2015
|
|
EXAMPLE
|
For n=2, k=1, and a(n) = s(1)*s(2) = 1*3 = 3.
|
|
MAPLE
|
seq( n*(4*n^2 - 3*n + 2 + 3*n*(-1)^n)/12, n=2..30); # Robert Israel, Jan 13 2015
|
|
PROG
|
(PARI) vector(40, n, sum(k=1, n\2, (2*k-1)*(2*(n-k+1)-1))) \\ Michel Marcus, Jan 07 2015
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn,easy
|
|
AUTHOR
|
|
|
EXTENSIONS
|
|
|
STATUS
|
approved
|
|
|
|