How do you write the expression for the nth term of the geometric sequence #a_1=500, r=1.02, n=40#?