OFFSET
0,2
COMMENTS
Suppose that s=(s(n)) and t=(t(n)) are sequences of numbers and u>0 and v>0. The lower (u,v)-midsequence of s and t is floor(u*s+v*t); the upper (u,v)-midsequence of s and t is ceiling(u*s+v*t). If s and t are linearly recurrent and u and v are rational, then both midsequences are linearly recurrent.
LINKS
Index entries for linear recurrences with constant coefficients, signature (5,-5,-5,6).
FORMULA
a(n) = floor((1/3)*2^n + (1/2)*3^n), for n>=0.
a(n) = 5*a(n-1) - 5*a(n-2) - 5*a(n-3) + 6*a(n-4), with (a(0),a(1),a(2),a(3))=(0,2,5,16).
G.f.: x*(-2 + 5*x - x^2)/(-1 + 5*x - 5*x^2 - 5*x^3 + 6*x^4).
EXAMPLE
MATHEMATICA
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Clark Kimberling, Sep 23 2025
STATUS
approved
