OFFSET
0,2
COMMENTS
A row of number array A082110.
LINKS
G. C. Greubel, Table of n, a(n) for n = 0..1000
Index entries for linear recurrences with constant coefficients, signature (3,-3,1).
FORMULA
a(n) = a(n-1) + 8*n + 6 (with a(0)=1). - Vincenzo Librandi, Aug 08 2010
G.f.: (1+12*x-5*x^2) / (1-x)^3. - R. J. Mathar, Dec 03 2014
a(n) = 3*a(n-1) -3*a(n-2) +a(n-3). - Wesley Ivan Hurt, Dec 22 2021
E.g.f.: (1 + 14*x + 4*x^2)*exp(x). - G. C. Greubel, Dec 22 2022
MATHEMATICA
Table[n +(n+1)^2 -4, {n, 1, 200, 2}] (* Vladimir Joseph Stephan Orlovsky, Jun 26 2011 *)
LinearRecurrence[{3, -3, 1}, {1, 15, 37}, 50] (* Harvey P. Dale, Dec 18 2014 *)
PROG
(PARI) a(n)=4*n^2+10*n+1 \\ Charles R Greathouse IV, Jun 17 2017
(Magma) [4*n^2 + 10*n + 1 : n in [0..50]]; // Wesley Ivan Hurt, Dec 22 2021
(SageMath) [4*n^2+10*n+1 for n in range(51)] # G. C. Greubel, Dec 22 2022
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Paul Barry, Apr 04 2003
STATUS
approved