Circles and Squares

Found on Russian site. Newby Alert, please don't blindly trust my code.

Shown with a cast-on count of 18 stitches.   Getting chart...

  • Rows 1 and 3 (RS): Knit.
  • Rows 2 and 4: Purl.
  • Rows 5, 7, and 9: K9, p5, k4.
  • Rows 6, 8, and 10: P4, k5, p9.
  • Rows 17, 19, and 21: P5, k13.
  • Rows 18, 20, and 22: P13, k5.
  • Repeat rows 1-2.