OFFSET
0,2
COMMENTS
Suppose that s = (s(n)) and t = (t(n)) are sequences of numbers and h > 0 and k > 0. The lower (h, k)-midsequence of s and t is floor(h*s + k*t); the upper (h, k)-midsequence of s and t is ceiling(h*s + k*t).
LINKS
Index entries for linear recurrences with constant coefficients, signature (4,-6,6,-5,2).
FORMULA
a(n) = 4*a(n-1) - 6*a(n-2) + 6*a(n-3) - 5*a(n-4) + 2*a(n-5), with (a(0),...,a(4)) = (0, 2, 5, 9, 13).
G.f.: x*(-2 + 3*x - x^2 + 5*x^3)/((-1 + x)^2*(-1 + 2*x - x^2 + 2*x^3)).
EXAMPLE
MATHEMATICA
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Clark Kimberling, Nov 11 2025
STATUS
approved
