OFFSET
2,1
LINKS
Harry J. Smith, Table of n, a(n) for n = 2..1000
E. J. Friedman, Math. Magic
Index entries for linear recurrences with constant coefficients, signature (3, -3, 1).
FORMULA
a(n) = 10n^2 + 46n + 29 with n > 1.
From Colin Barker, Apr 22 2012: (Start)
a(n) = 3*a(n-1) - 3*a(n-2) + a(n-3).
G.f.: x^2*(161 - 226*x + 85*x^2)/(1-x)^3. (End)
MATHEMATICA
LinearRecurrence[{3, -3, 1}, {161, 257, 373}, 40] (* or *) Table[10x^2+66x+85, {x, 40}] (* Harvey P. Dale, May 26 2013 *)
PROG
(PARI) a(n)={10*n^2 + 46*n + 29} \\ Harry J. Smith, Jul 09 2009
KEYWORD
nonn,easy
AUTHOR
Jason Earls, Apr 16 2001
STATUS
approved