OFFSET
1,1
LINKS
Colin Barker, Table of n, a(n) for n = 1..1000
Index entries for linear recurrences with constant coefficients, signature (1,2,-2,-1,1).
FORMULA
From Colin Barker, Feb 26 2016: (Start)
a(n) = (12*n^2 - 10*(-1)^n*n + 12*n - 5*(-1)^n + 5)/4.
a(n) = a(n-1) + 2*a(n-2) - 2*a(n-3) - a(n-4) + a(n-5) for n>5.
G.f.: x*(11 + 2*x + 11*x^2) / ((1-x)^3*(1+x)^2). (End)
E.g.f.: (1/4)*(-5 + 10*x + (5 + 24*x + 12*x^2)*exp(2*x))*exp(-x). - G. C. Greubel, Sep 10 2016
From Amiram Eldar, Mar 18 2022: (Start)
Sum_{n>=1} 1/a(n) = 131/11 - (2+sqrt(3))*Pi.
Sum_{n>=1} (-1)^(n+1)/a(n) = 133/11 - 3*log(12) - 2*sqrt(3)*log(2+sqrt(3)). (End)
MATHEMATICA
Flatten[Table[{n (6n-1)/2, n (6n+1)/2}, {n, 2, 50, 2}]] (* Harvey P. Dale, Jan 19 2013 *)
PROG
(PARI) Vec(x*(11+2*x+11*x^2)/((1-x)^3*(1+x)^2) + O(x^60)) \\ Colin Barker, Feb 26 2016
(Magma) &cat[[n*(6*n-1) div 2, n*(6*n+1) div 2]: n in [2..60 by 2]]; // Vincenzo Librandi, Sep 10 2016
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Vladimir Joseph Stephan Orlovsky, Jan 06 2009
STATUS
approved