sum from k=0 to (t-1) of c^k