The nth term of the sequence 4,11,18,...is167 find n

The nth term is

4 + (n-1)*7 = 167
163 = (n-1)*7
n is not an integer, so 167 cannot be a number in the sequence.

165 is the 24th number in the sequence.