OFFSET
0,1
COMMENTS
3*a(n) - 5 is a square. - Vincenzo Librandi, Apr 13 2016
LINKS
FORMULA
From Bruno Berselli, Apr 13 2016: (Start)
O.g.f.: (3 + x + 2*x^2)/(1 - x)^3.
E.g.f.: (3 + 7*x + 3*x^2)*exp(x). (End)
a(n) = 3*a(n-1) - 3*a(n-2) + a(n-3) for n>2. - Wesley Ivan Hurt, Apr 13 2016
MAPLE
MATHEMATICA
Table[3 n^2 - 2 n + 2, {n, 0, 50}]
PROG
(PARI) a(n) = 3*n^2 - 2*n + 2; \\ Altug Alkan, Apr 13 2016
(Magma) [3*n^2 - 2*n + 2: n in [0..50]]; // Bruno Berselli, Apr 13 2016
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Ray Chandler, Apr 13 2016
EXTENSIONS
Definition changed so sequence starts one term earlier. Some formulas may need adjusting. - N. J. A. Sloane, Jun 22 2021
STATUS
approved