OFFSET
0,3
COMMENTS
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 0..10000
Index entries for linear recurrences with constant coefficients, signature (2,0,-2,1).
FORMULA
G.f.: -x*(1+20*x+x^2) / ( (1+x)*(x-1)^3 ). - R. J. Mathar, Sep 18 2011
a(n) = (22*n^2+9*(-1)^n-9)/4; a(n) = -a(n-1)+11*n^2-11*n+1. - Vincenzo Librandi, Sep 27 2011
Sum_{n>=1} 1/a(n) = Pi^2/132 + tan(3*Pi/(2*sqrt(11)))*Pi/(6*sqrt(11)). - Amiram Eldar, Jan 17 2023
MAPLE
MATHEMATICA
Table[(22*n^2 + 9*(-1)^n - 9)/4, {n, 0, 50}] (* Wesley Ivan Hurt, Jul 07 2014 *)
PROG
(Magma) [(22*n^2+9*(-1)^n-9)/4: n in [0..50]]; // Vincenzo Librandi, Sep 27 2011
(PARI) a(n)=(22*n^2+9*(-1)^n-9)/4 \\ Charles R Greathouse IV, Sep 24 2015
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Omar E. Pol, Sep 17 2011
STATUS
approved