sum of (1+r)^n from n=0 to n