Note that in the first row of the repeat the increase and decrease happen in the same stitch.
Shown with a cast-on count of 16 stitches.
1 2 3 4 5 Horizontal repeats
1 2 3 4 5 Vertical repeats