|
|
A100119
|
|
a(n) = n-th centered n-gonal number.
|
|
6
|
|
|
1, 2, 7, 19, 41, 76, 127, 197, 289, 406, 551, 727, 937, 1184, 1471, 1801, 2177, 2602, 3079, 3611, 4201, 4852, 5567, 6349, 7201, 8126, 9127, 10207, 11369, 12616, 13951, 15377, 16897, 18514, 20231, 22051, 23977, 26012, 28159, 30421, 32801, 35302
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
0,2
|
|
COMMENTS
|
a(n) is n times the n-th triangular number plus 1. - Thomas M. Green, Nov 16 2009
Equals (1, 2, 3, 4, ...) convolved with (1, 0, 4, 7, 10, 13, ...).
Example: a(5) = 76 = (6, 5, 4, 3, 2, 1) dot (1, 0, 4, 7, 10, 13) = (6 + 0 + 16 + 21 + 20 + 13). (End)
|
|
LINKS
|
|
|
FORMULA
|
a(n) = 1 + n*(n + n^2)/2 = 1 + (1/2)*n^2 + (1/2) * n^3 = 1 + mean(n^2, n^3). - Joshua Zucker, May 03 2006
G.f.: (1 - 2*x + 5*x^2 - x^3) / (x-1)^4. - R. J. Mathar, Apr 04 2012
|
|
EXAMPLE
|
a(2) = 2*3 + 1 = 7, a(3) = 3*6 + 1 = 19, a(4) = 4*10 + 1 = 41. - Thomas M. Green, Nov 16 2009
|
|
MATHEMATICA
|
LinearRecurrence[{4, -6, 4, -1}, {1, 2, 7, 19}, 40] (* Vincenzo Librandi, Jun 25 2012 *)
|
|
PROG
|
(Magma) I:=[1, 2, 7, 19]; [n le 4 select I[n] else 4*Self(n-1)-6*Self(n-2)+4*Self(n-3)-Self(n-4): n in [1..50]]; // Vincenzo Librandi, Jun 25 2012
(PARI) a(n) = n^2*(n+1)/2+1; \\ Altug Alkan, Sep 21 2018
|
|
CROSSREFS
|
See also A101357 (Cumulative sums of the n-th n-gonal numbers).
|
|
KEYWORD
|
easy,nonn
|
|
AUTHOR
|
|
|
EXTENSIONS
|
|
|
STATUS
|
approved
|
|
|
|