OFFSET
0,2
COMMENTS
Suppose that s = (s(n)) and t = (t(n)) are sequences of numbers and r > 0. The lower (r)-midsequence of s and t is given by u = floor(r*(s + t)); the upper r-midsequence of s and t is given by v = ceiling(r*(s + t)). If s and t are linearly recurrent and r is rational, then u and v are linearly recurrent.
LINKS
Index entries for linear recurrences with constant coefficients, signature (1,1,1,-1,-1).
FORMULA
a(n) = a(n-1) + a(n-2) + a(n-3) - a(n-4) - a(n-5), with (a(0),...,a(4)) = (1, 3, 4, 7, 12).
G.f.: (1 + 2*x - x^3 - x^4)/(1 - x - x^2 - x^3 + x^4 + x^5).
E.g.f.: exp(-x/2)*(-5*(2*exp(3*x/2) + cos(sqrt(3)*x/2) - sqrt(3)*sin(sqrt(3)*x/2)) + 9*exp(x)*(5*cosh(sqrt(5)*x/2) + 3*sqrt(5)*sinh(sqrt(5)*x/2)))/30. - Stefano Spezia, Dec 27 2025
EXAMPLE
MATHEMATICA
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Clark Kimberling, Nov 11 2025
STATUS
approved
