OFFSET
0,1
LINKS
Indranil Ghosh, Table of n, a(n) for n = 0..64950
Index entries for linear recurrences with constant coefficients, signature (4, -6, 4, -1).
FORMULA
G.f.: (4-11x+13x^2-4x^3)/(1-x)^4. a(n)=4+A000330(n). - R. J. Mathar, Jan 17 2009
MATHEMATICA
a=4; lst={}; Do[a=n^2+a; AppendTo[lst, a], {n, 0, 5!}]; lst
RecurrenceTable[{a[0]==4, a[n]==n^2+a[n-1]}, a, {n, 50}] (* Harvey P. Dale, Apr 27 2012 *)
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Vladimir Joseph Stephan Orlovsky, Dec 17 2008
EXTENSIONS
Added indices to definition and corrected offset. - R. J. Mathar, Jan 17 2009
STATUS
approved