OFFSET
0,1
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 0..2000
Index entries for linear recurrences with constant coefficients, signature (3,-3,1).
FORMULA
a(n) = 36*A002378(n)+9. - Jean-Bernard François, Oct 12 2014
From Wesley Ivan Hurt, Oct 13 2014: (Start)
G.f.: 9*(1+6*x+x^2)/(1-x)^3.
a(n) = 3*a(n-1)-3*a(n-2)+a(n-3).
Sum_{n>=0} 1/a(n) = A086729. - Amiram Eldar, Nov 16 2020
a(n) = 9*A016754(n). - R. J. Mathar, Dec 11 2020
Sum_{n>=0} (-1)^n/a(n) = G/9, where G is Catalan's constant (A006752). - Amiram Eldar, Mar 30 2022
E.g.f.: 9*exp(x)*(1 + 8*x + 4*x^2). - Stefano Spezia, Aug 19 2022
MAPLE
MATHEMATICA
(6 Range[0, 50] + 3)^2 (* or *)
CoefficientList[Series[9 (1 + 6 x + x^2)/(1 - x)^3, {x, 0, 50}], x] (* Wesley Ivan Hurt, Oct 13 2014 *)
LinearRecurrence[{3, -3, 1}, {9, 81, 225}, 40] (* Harvey P. Dale, Jul 13 2015 *)
PROG
(Magma) [(6*n+3)^2: n in [0..60]]; // Vincenzo Librandi, May 05 2011
(PARI) a(n)=(6*n+3)^2 \\ Charles R Greathouse IV, Jun 17 2017
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
STATUS
approved