A SMALL PUZZLE BY EXCELSIOR

Five in Order.

Somewhere in this shuffle, five numbers rise together.
Or five fall. Can you find them?

Keep their order. Skip freely.

Every number 1–17 appears once.

Read left to right, then continue on the next row. Choose five cards whose numbers all increase or all decrease. Cards can be far apart.

YOUR FIVE
—
0 / 5

Choose any card to begin. There is no clock.

This shuffle stays in this browser.

How to play & keyboard controls

After choosing a card, choose a later card. After two cards, keep going in the same numerical direction. If you change your mind, Undo removes your last choice. Clicking that last card also removes it. Clear selection keeps the same shuffle.

Tab reaches the cards. Use arrow keys to move through them, Home/End for the first/last card, and Enter or Space to choose. While a card is focused, Backspace undoes a choice. On a phone, tap the cards. Hints are optional; no score is kept.

Each hint checks whether your current choices can still reach five. If they cannot, it suggests how many choices to undo. It never quietly replaces your choices.

Why is there always an answer?

Seventeen is just enough.

Suppose there is no increasing selection of five. Label each card with the length of the longest increasing selection ending there. Every label is then 1, 2, 3 or 4.

● ● ● ● ●● ● ● ●● ● ● ●● ● ● ●

Seventeen cards, four possible labels: at least five cards share a label. Those five must decrease in their original order. If a later one were larger, it would extend an earlier increasing selection and have a larger label.

So either an increasing five already exists, or the shared labels give a decreasing five. Distinct numbers make the comparison strict.

But sixteen can resist

4 3 2 1 · 8 7 6 5
12 11 10 9 · 16 15 14 13

Going up takes at most one card from each block. Going down stays inside one block. Both stop at four.

This is a case of the classical Erdős–Szekeres theorem, from their 1935 paper, “A combinatorial problem in geometry” (pp. 467–468).