Is the n-1 an exponent in the formula gn=(r)n-1

Yes, an exponent.

YO MAMA.