A185669 a(n) = 4*n^2 + 3*n + 2.
2, 9, 24, 47, 78, 117, 164, 219, 282, 353, 432, 519, 614, 717, 828, 947, 1074, 1209, 1352, 1503, 1662, 1829, 2004, 2187, 2378, 2577, 2784, 2999, 3222, 3453, 3692, 3939, 4194, 4457, 4728, 5007, 5294, 5589, 5892, 6203, 6522, 6849, 7184, 7527, 7878, 8237, 8604, 8979, 9362, 9753, 10152, 10559, 10974, 11397, 11828
Offset: 0
Links
- Ivan Panchenko, Table of n, a(n) for n = 0..1000
- Index entries for linear recurrences with constant coefficients, signature (3,-3,1).
Programs
-
Magma
[2+3*n+4*n^2: n in [0..80]]; // Vincenzo Librandi, Feb 09 2011
-
Mathematica
Table[4n^2 + 3n + 2, {n,0,50}] (* G. C. Greubel, Jul 09 2017 *) LinearRecurrence[{3,-3,1},{2,9,24},60] (* Harvey P. Dale, Aug 11 2021 *)
-
PARI
a(n)=4*n^2+3*n+2 \\ Charles R Greathouse IV, Apr 14 2014
Formula
a(n) = a(n-1) + 8*n - 1.
a(n) = 2*a(n-1) - a(n-2) + 8.
a(n) = 3*a(n-1) - 3*a(n-2) + a(n-3).
G.f.: (2 +3*x +3*x^2)/(1-x)^3 . - R. J. Mathar, Feb 11 2011
a(n) = A033954(n) + 2. - Bruno Berselli, Apr 10 2011
E.g.f.: (4*x^2 + 7*x + 2)*exp(x). - G. C. Greubel, Jul 09 2017
Comments