Why is it expressed as 3n-2 in sequence 1,4,7

Why is it expressed as 3n-2 in sequence 1,4,7

Tolerance d = 3, first term = 1; according to the general term formula a of arithmetic sequence_ n=a_ 1 + (n-1) d for a_ N = 1 + (n-1) * 3