|
|
A330357
|
|
a(n) = (2*n^2 + 9 - (-1)^n)/4.
|
|
0
|
|
|
2, 3, 4, 7, 10, 15, 20, 27, 34, 43, 52, 63, 74, 87, 100, 115, 130, 147, 164, 183, 202, 223, 244, 267, 290, 315, 340, 367, 394, 423, 452, 483, 514, 547, 580, 615, 650, 687, 724, 763, 802, 843, 884, 927, 970, 1015, 1060, 1107, 1154, 1203, 1252, 1303, 1354, 1407
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
0,1
|
|
LINKS
|
|
|
FORMULA
|
G.f.: (2 - x - 2*x^2 + 3*x^3)/(1 - 2*x + 2*x^3 - x^4) = (2 - x - 2*x^2 + 3*x^3)/((1 - x)^2 * (1 - x^2)).
a(n) = a(-n) for all n in Z. a(n) = A105343(n) if n>=1.
|
|
EXAMPLE
|
G.f. = 2 + 3*x + 4*x^2 + 7*x^3 + 10*x^4 + 15*x^5 + 20*x^6 + 27*x^7 + ...
|
|
MATHEMATICA
|
Table[(2 n^2+9-(-1)^n)/4, {n, 0, 60}] (* or *) LinearRecurrence[{2, 0, -2, 1}, {2, 3, 4, 7}, 60] (* Harvey P. Dale, Apr 19 2023 *)
|
|
PROG
|
(PARI) {a(n) = (2*n^2 + 9 - (-1)^n)/4};
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn,easy
|
|
AUTHOR
|
|
|
EXTENSIONS
|
|
|
STATUS
|
approved
|
|
|
|