This is an alternating repetition series, with a random number, 22, interpolated as every third number into an otherwise simple addition series. In the addition series, 4 is added to each number to arrive at the next number.
This is an alternating subtraction series with the interpolation of a random number, 5, as every third number. In the subtraction series, 3 is subtracted, then 4, then 3, and so on.