Pegs numbered $1$ to $50$ are placed in order in a line, with number $1$ on the left.

They are then knocked over, one at a time, following these rules:

- Starting with the first standing peg on the left, alternate pegs are knocked down, until the end of the row is reached.
- Each time the end of the row is reached, repeat the previous rule.

If you liked this problem, here is an NRICH task that challenges you to use similar mathematical ideas.

This problem is taken from the UKMT Mathematical Challenges.

You can find more short problems, arranged by curriculum topic, in our short problems collection.