I’ve got two sequences with variable boundaries like
> a:=Sum(x(i),i=n..m);
> b:=Sum(x(i),i=n-1..m+1);
n and m are arbitrary natural numbers and obviously m>n.
I want to substract a from b and see how Maple simplifies the expression to
> b-a;
x(n-1)+x(m+1);
Is it possible in Maple or in another CAS?
You might do it by using a temporary object,and then acting in two stages.
Or you might put that into a procedure.