sum x^k, k=0 到 n