login
A191413
a(n) = 3*n^2 - 2*n + 7.
1
7, 8, 15, 28, 47, 72, 103, 140, 183, 232, 287, 348, 415, 488, 567, 652, 743, 840, 943, 1052, 1167, 1288, 1415, 1548, 1687, 1832, 1983, 2140, 2303, 2472, 2647, 2828, 3015, 3208, 3407, 3612, 3823, 4040, 4263, 4492, 4727, 4968, 5215, 5468, 5727, 5992, 6263
OFFSET
0,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
Sequence in context: A041693 A042001 A020690 * A066971 A084377 A041675
KEYWORD
nonn,easy
AUTHOR
Harvey P. Dale, Jun 01 2011
STATUS
approved