OFFSET
0,1
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 0..3000
Index entries for linear recurrences with constant coefficients, signature (3,-3,1).
FORMULA
G.f.: ((13-12*x)*x-7)/(x-1)^3.
a(n) = 3*a(n-1) - 3*a(n-2) + a(n-3); a(0)=7, a(1)=8, a(2)=15.
MATHEMATICA
Table[3x^2-2x+7, {x, 0, 80}] (* or *) LinearRecurrence[{3, -3, 1}, {7, 8, 15}, 80]
PROG
(PARI) a(n)=3*n^2-2*n+7 \\ Charles R Greathouse IV, Jun 02 2011
(Magma) [3*n^2-2*n+7: n in [0..50]]; // Vincenzo Librandi, Jun 03 2011
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Harvey P. Dale, Jun 01 2011
STATUS
approved