OFFSET
1,2
COMMENTS
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 1..10000
John Elias, Illustration of initial terms.
Index entries for linear recurrences with constant coefficients, signature (3,-3,1).
FORMULA
a(n) = 18*n^2 - 18*n + 1.
G.f.: -x*(1 + 34*x + x^2)/(x-1)^3. - R. J. Mathar, Sep 18 2011
Sum_{n>=1} 1/a(n) = Pi*tan(sqrt(7)*Pi/6)/(6*sqrt(7)). - Amiram Eldar, Feb 11 2022
From Elmo R. Oliveira, Nov 14 2024: (Start)
E.g.f.: exp(x)*(18*x^2 + 1) - 1.
a(n) = 2*A069131(n) - 1.
a(n) = 3*a(n-1) - 3*a(n-2) + a(n-3) for n > 3. (End)
MATHEMATICA
Table[18*n^2 - 18*n + 1, {n, 1, 40}] (* Amiram Eldar, Feb 11 2022 *)
PROG
(Magma) [(18*n^2-18*n+1): n in [1..50]]; // Vincenzo Librandi, Sep 19 2011
(PARI) a(n)=18*n^2-18*n+1 \\ Charles R Greathouse IV, Oct 07 2015
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Omar E. Pol, Sep 16 2011
STATUS
approved