Answer: You need to use the convert function. Currently you have a series data structure and you want a polynomial (a sum of products data structure). You could issue the command convert(series, polynom) to remove the order term.
> S:=series(1/(1-3*x),x,10);
2 3 4 5 6 7
S := 1 + 3 x + 9 x + 27 x + 81 x + 243 x + 729 x + 2187 x
8 9 10
+ 6561 x + 19683 x + O(x )
> p:=convert(S,polynom);
2 3 4 5 6 7
p := 1 + 3 x + 9 x + 27 x + 81 x + 243 x + 729 x + 2178 x
8 9
+ 6561 x + 19683 x
> subs(x=2,p);
12093235
This is also effective
for Laurent series, although the result is not neccessarily a polynomial.
> p2:=subs(O(1)=0,S);
2 3 4 5 6 7
p2 := 1 + 3 x + 9 x + 27 x + 81 x + 243 x + 729 x + 2187 x
8 9
+ 6561 x + 19683 x
> subs(x=2,p2);
12093235
Related help pages include: `convert/polynom`, subs,
order, series[structure].