%I #16 Sep 06 2023 09:47:49
%S 4,5,9,18,34,59,95,144,208,289,389,510,654,823,1019,1244,1500,1789,
%T 2113,2474,2874,3315,3799,4328,4904,5529,6205,6934,7718,8559,9459,
%U 10420,11444,12533,13689,14914,16210,17579,19023,20544,22144,23825,25589
%N a(0)=4; a(n)=n^2+a(n-1) for n>0.
%H Indranil Ghosh, <a href="/A153058/b153058.txt">Table of n, a(n) for n = 0..64950</a>
%H <a href="/index/Rec#order_04">Index entries for linear recurrences with constant coefficients</a>, signature (4, -6, 4, -1).
%F G.f.: (4-11x+13x^2-4x^3)/(1-x)^4. a(n)=4+A000330(n). - _R. J. Mathar_, Jan 17 2009
%t a=4;lst={};Do[a=n^2+a;AppendTo[lst,a],{n,0,5!}];lst
%t RecurrenceTable[{a[0]==4,a[n]==n^2+a[n-1]},a,{n,50}] (* _Harvey P. Dale_, Apr 27 2012 *)
%Y Cf. A000330, A056520, A153056, A153057, A179904.
%K nonn,easy
%O 0,1
%A _Vladimir Joseph Stephan Orlovsky_, Dec 17 2008
%E Added indices to definition and corrected offset. - _R. J. Mathar_, Jan 17 2009