OFFSET
7,2
LINKS
Index entries for linear recurrences with constant coefficients, signature (1,0,0,1,-1).
FORMULA
For n >= 2, a(4n) = 20n-36, a(4n+1) = 20n-33, a(4n+2) = 20n-28, a(4n+3) = 20n-23.
For n >= 8, a(n) = 5n - 36 - 2sgn(mod(n,4))
Excluding a(7), the first differences are 4-periodic: 3,5,5,7,3,5,5,7,...
G.f.: x^7*(4*x^5+4*x^4+5*x^3+3*x^2+3*x+1)/((x+1)*(x^2+1)*(x-1)^2). - Alois P. Heinz, Jul 15 2025
MATHEMATICA
Drop[CoefficientList[Series[x^7*(4*x^5+4*x^4+5*x^3+3*x^2+3*x+1)/((x+1)*(x^2+1)*(x-1)^2), {x, 0, 67}], x], 7] (* James C. McMahon, Jul 16 2025 *)
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Stephen Bartell, Jul 10 2025
STATUS
approved
