It began as no more than a puzzle posed on the sidelines of the 1977 International Mathematical Olympiad, held that year in Belgrade, Yugoslavia. But its origins may go back further. Here is the problem as it was posed:

1,

11,

21,

1211,