OFFSET
0,2
COMMENTS
Even numbers in A001318.
LINKS
G. C. Greubel, Table of n, a(n) for n = 0..1000
Mircea Merca, The bisectional pentagonal number theorem, Journal of Number Theory, Volume 157 (December 2015), Pages 223-232.
Index entries for linear recurrences with constant coefficients, signature (3,-5,7,-7,5,-3,1).
FORMULA
G.f.: -2*x*(x^2-x+1)*(x^2+4*x+1)/((x-1)^3*(x^2+1)^2). - Colin Barker, Sep 12 2012
Sum_{n>=1} 1/a(n) = 6 - (1+4/sqrt(3))*Pi/2. - Amiram Eldar, Mar 18 2022
MATHEMATICA
CoefficientList[Series[-2*x*(x^2 - x + 1)*(x^2 + 4*x + 1)/((x - 1)^3*(x^2 + 1)^2), {x, 0, 50}], x] (* G. C. Greubel, Jun 06 2017 *)
LinearRecurrence[{3, -5, 7, -7, 5, -3, 1}, {0, 2, 12, 22, 26, 40, 70}, 50] (* Harvey P. Dale, Apr 09 2019 *)
PROG
(PARI) my(x='x+O('x^50)); concat([0], Vec(-2*x*(x^2-x+1)*(x^2+4*x+1)/((x-1)^3*(x^2+1)^2))) \\ G. C. Greubel, Jun 06 2017
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Omar E. Pol, Aug 19 2011
STATUS
approved