OFFSET
0,4
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 (2,1,0,-4,-2,1,2,1).
FORMULA
a(n) = 2*a(n-1) + a(n-2) - 4*a(n-4) - 2*a(n-5) + a(n-6) + 2*a(n-7) + a(n-8), with (a(0),...,a(7)) = (1, 1, 1, 3, 4, 7, 13, 22).
G.f.: (-1 + x + 2*x^2 - x^4 - 2*x^5)/(-1 + 2*x + x^2 - 4*x^4 - 2*x^5 + x^6 + 2*x^7 + x^8).
EXAMPLE
MATHEMATICA
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Clark Kimberling, Nov 10 2025
STATUS
approved
