write down the general term of the following pattern

1 1
2 4= 1 + 3 x 1
3 7= 1 + 3 x 2
4 10= 1 + 3 x 1
...
n _________

1+3(n-1) = 3n-2