Write an equation that represent the nth term of the sequence {2,-1,-4,-7} using the explicit formula an=a1+(n-1)d

In this sequence, the first term (a1) is 2 and the common difference (d) between each term is -3.

Therefore, the equation that represents the nth term of the sequence is:
an = 2 + (n-1)(-3)
an = 2 - 3n + 3
an = 5 - 3n