A geometric series is defined as a series of numbers with a constant ratio between successive terms. For example, in the series 1/2+1/4+1/8..., the ratio between two successive numbers is equal to 1/2.
Write a function named series_sum that computes the finite sum of the first n terms. Your function shall receive as input the ratio between successive terms and the number of terms to be added, and returns the series sum.