def terms_of_gp(a,b,n):
    r=b/a
    x=a*(r**(n-1))
    return x

print(terms_of_gp(2,4,6))
6da7c9ee973925c1a4882d742233d6d3dd0a8b25
<mask token>

def terms_of_gp(a, b, n):
    r = b / a
    x = a * r ** (n - 1)
    return x


<mask token>

def terms_of_gp(a, b, n):
    r = b / a
    x = a * r ** (n - 1)
    return x


print(terms_of_gp(2, 4, 6))

def terms_of_gp(a,b,n):
    r=b/a
    x=a*(r**(n-1))
    return x

print(terms_of_gp(2,4,6))