OFFSET
1,2
COMMENTS
LINKS
Index entries for linear recurrences with constant coefficients, signature (1,0,0,2,-2,0,0,-1,1).
FORMULA
a(n) = (1/32)*(30*n^2 - 30*n + 1) + (-1)^(n)*(5/32)*(2*n - 1) - (-1)^(n*(n+1)/2)*(1/16)*(6*n - 3 + (-1)^n).
a(n) is quasi-periodic in n: for n >= 0,
a(4*n+1) = 15*n^2 - 26*n + 11; a(4*n+2) = 15*n^2 - 16*n + 4;
a(4*n+3) = 15*n^2 - 14*n + 3; a(4*n+4) = 15*n^2 - 4*n.
a(1-n) = a(n).
15*a(n) + 4 = A379211(n)^2.
G.f: x*(3*x^6 + x^5 + 7*x^4 + 8*x^3 + 7*x^2 + x + 3)/((1 + x)^2*(1 - x)^3*(1 + x^2)^2).
E.g.f.: ((15*x^2 + 35*x - 2)*cosh(x) + 2*(cos(x) + 3*x*cos(x) + 2*sin(x) - 3*x*sin(x)) + (15*x^2 + 25*x + 3)*sinh(x))/16. - Stefano Spezia, Dec 23 2024
MAPLE
MATHEMATICA
LinearRecurrence[{1, 0, 0, 2, -2, 0, 0, -1, 1}, {0, 3, 4, 11, 19, 32, 35, 52, 68}, 52] (* James C. McMahon, Dec 24 2024 *)
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Peter Bala, Dec 18 2024
STATUS
approved