ABSTRACT
We observe that in maple, x,y concatenates the two sequences x and y. There are two important functions used to construct sequences: seq and the repetition operator $.
> f:=’f’: seq(f(i), i=1..6);
f(1), f(2), f(3), f(4), f(5), f(6)
> seq(i∧2, i=1..5); 1, 4, 9, 16, 25
> x:= ’x’: > x$4;
x, x, x, x
In general, seq(f(i), i=1..n) produces the sequence
f(1), f(2), . . . , f(n)
and x$n produces a sequence of length n
x, x, . . . , x
The op function can be used to create sequences.