The nth term of an arithmetic sequence is given as:
Where
a_1 is first term
d is common difference (diff between terms)
n is the term number
Now,
in the sequence, we see
First Term = 2
Common DIff = 24 - 2 = 22 and 46 - 24 = 22, so Common Difference = 22
So, the general formula is: