S=42 + k*12

k=(0,infinity)

Right now the only way I know to do this is by typing out

drop if var == 42 | var == 54 | etc...

for all the numbers in the sequence, which is obviously not the best way to do it.

Could anyone provide help on an efficient way to do this?

Thanks!