sum n=0..k of x^n