sum x^k from k = 1 to N