OFFSET
0,2
COMMENTS
a(n) is n times the n-th triangular number plus 1. - Thomas M. Green, Nov 16 2009
From Gary W. Adamson, Jul 31 2010: (Start)
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
Vincenzo Librandi, 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) = 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
Equals A002411(n) + 1. - Olivier Gérard, Jun 20 2007
G.f.: (1 - 2*x + 5*x^2 - x^3) / (x-1)^4. - R. J. Mathar, Apr 04 2012
a(n) = 4*a(n-1) - 6*a(n-2) + 4*a(n-3) - a(n-4). - Vincenzo Librandi, Jun 25 2012
a(n) = (A098547(n)+1)/2. - Richard Turk, Jul 18 2017
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
Table[(n^3+n^2)/2+1, {n, 0, 6!}] (* Vladimir Joseph Stephan Orlovsky, Mar 06 2010 *)
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
KEYWORD
easy,nonn
AUTHOR
Jonathan Vos Post, Dec 26 2004
EXTENSIONS
Corrected and extended by Joshua Zucker, May 03 2006
STATUS
approved