Write an expression to find the nth term in the sequence.

an = a1 + (n - 1)d, where a1 is the first term in the sequence, d is the common difference, and n is the number of the term in the sequence.