sum z^n n=0 to m