OFFSET
0,3
LINKS
Ivan Panchenko, Table of n, a(n) for n = 0..1000
Index entries for linear recurrences with constant coefficients, signature (2,0,-2,1).
FORMULA
a(n) = 23*n^2/4 + 19*((-1)^n-1)/8.
From Colin Barker, Sep 16 2012: (Start)
a(n) = 2*a(n-1) - 2*a(n-3) + a(n-4).
G.f.: x*(1 + 21*x + x^2)/((1-x)^3*(1+x)). (End)
Sum_{n>=1} 1/a(n) = Pi^2/138 + tan(sqrt(19/23)*Pi/2)*Pi/sqrt(437). - Amiram Eldar, Jan 17 2023
MATHEMATICA
Table[23n^2/4 + 19((-1)^n - 1)/8, {n, 0, 49}] (* Alonso del Arte, Jan 23 2015 *)
LinearRecurrence[{2, 0, -2, 1}, {0, 1, 23, 47}, 50] (* Harvey P. Dale, Jul 22 2023 *)
PROG
(PARI) a(n)=23*n^2/4+19*((-1)^n-1)/8 \\ Charles R Greathouse IV, Oct 07 2015
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Omar E. Pol, Sep 28 2011
STATUS
approved