Find nth term of geometric sequence (#429)

Find nth term of geometric sequence (#429)

Use an=a1rn−1a_n = a_1 r^{n-1}.