login

Reminder: The OEIS is hiring a new managing editor, and the application deadline is January 26.

a(n) = n*(n^3-n^2+n+1)/2.
2

%I #17 Apr 16 2023 10:41:08

%S 0,1,7,33,106,265,561,1057,1828,2961,4555,6721,9582,13273,17941,23745,

%T 30856,39457,49743,61921,76210,92841,112057,134113,159276,187825,

%U 220051,256257,296758,341881,391965,447361,508432,575553,649111,729505,817146,912457

%N a(n) = n*(n^3-n^2+n+1)/2.

%D T. A. Gulliver, Sequences from Cubes of Integers, Int. Math. Journal, 4 (2003), 439-445.

%H Vincenzo Librandi, <a href="/A100855/b100855.txt">Table of n, a(n) for n = 0..1000</a>

%H <a href="/index/Rec#order_05">Index entries for linear recurrences with constant coefficients</a>, signature (5,-10,10,-5,1).

%F G.f. x*(1+2*x+8*x^2+x^3) / (1-x)^5 . - _R. J. Mathar_, Jun 15 2011

%o (Magma) [n*(n^3-n^2+n+1)/2: n in [0..40]]; // _Vincenzo Librandi_, Jun 15 2011

%o (PARI) a(n)=n*(n^3-n^2+n+1)/2 \\ _Charles R Greathouse IV_, Oct 21 2022

%K nonn,easy

%O 0,3

%A _N. J. A. Sloane_, Jan 15 2005