sum of a*z^a for a from 1 to s