Write a function to represent the geometric sequence 6, 18, 54, . . . .(1 point)

1 answer

def geometric_sequence(n):
return 6 * (3 ** (n - 1))