Solve for a1 s_n=(a_1(1-r^n))/(1-r)