Solve for r s=r(((1+i)^n-1)/i)