Find the formula an for the nth term of the geometric sequence satisfying the following conditions: a1 = -2,
and a = -486.
