sum a*r^n from n=0 to infinity