OFFSET
0,3
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. Conjecture: a(n+2) = A111097(n+2) for n>=0.
LINKS
Index entries for linear recurrences with constant coefficients, signature (2,-1,1,-2,1).
FORMULA
a(n) = floor((3*n^2 + n + 1)/6).
a(n) = 2*a(n-1) - a(n-2) + a(n-3) - 2*a(n-4) + a(n-5).
G.f.: -x^2*(2 + x)/((-1 + x)^3*(1 + x + x^2)).
3*a(n) = A049347(n)+(n+1)*(3*n-2)/2 . - R. J. Mathar, Oct 05 2025
EXAMPLE
MATHEMATICA
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Clark Kimberling, Sep 24 2025
STATUS
approved
