Photo shows pattern adapted for a triangular scarf with P2 borders. RS rows are worked with yo and a K st added at each side until there are enough to create another pattern rep which is unaligned with the previous one (unlike pattern itself). WS rows may be purled if preferred.
Shown with a cast-on count of 20 stitches.