This is a simple subtraction with repetition series. It begins with 20, which is repeated, then 3 is subtracted, resulting in 17, which is repeated, and so on.
This is an alternating addition series with a random number, 4, interpolated as every third number. In the main series, 1 is added, then 2 is added, then 1, then 2, and so on.