OFFSET
1,2
COMMENTS
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 1..10000
Index entries for linear recurrences with constant coefficients, signature (3,-3,1).
FORMULA
a(n) = 14*n^2 - 14*n + 1.
G.f.: -x*(1 + 26*x + x^2) / (x-1)^3. - R. J. Mathar, Sep 18 2011
a(n) = 3*a(n-1) - 3*a(n-2) + a(n-3). - Harvey P. Dale, Oct 01 2011
Sum_{n>=1} 1/a(n) = Pi*tan(sqrt(5/7)*Pi/2)/(2*sqrt(35)). - Amiram Eldar, Feb 11 2022
MATHEMATICA
Table[14n^2-14n+1, {n, 50}] (* or *) LinearRecurrence[{3, -3, 1}, {1, 29, 85}, 50]
PROG
(Magma) [(14*n^2-14*n+1): n in [1..50]]; // Vincenzo Librandi, Sep 19 2011
(PARI) a(n)=14*n^2-14*n+1 \\ Charles R Greathouse IV, Oct 07 2015
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Omar E. Pol, Sep 16 2011
STATUS
approved