Maths Olympiad Prep

Track / Stage 5 / 64 of 400 #1144 of 2444

Problem 1144

AIME late
Combinatorics Difficulty 5.1 Find the answer HMMT November

A small fish is holding 17 cards, labeled 1 through 17, which he shuffles into a random order. Then, he notices that although the cards are not currently sorted in ascending order, he can sort them into ascending order by removing one card and putting it back in a different position (at the beginning, between some two cards, or at the end). In how many possible orders could his cards currently be?

A number or a short expression. Fractions can be typed as 3/2, and spacing doesn't matter.

Next problem →

Official solution

Instead of looking at moves which put the cards in order, we start with the cards in order and consider possible starting positions by backtracking one move: each of 17 cards can be moved to 16 new places. But moving card kk between card k+1k+1 and card k+2k+2 is equivalent to moving card k+1k+1 between card k1k-1 and card kk. We note that these are the only possible pairs of moves which produce the same result, so we have double counted 16 moves. Thus, we have a total of 17×1616=25617 \times 16-16=256 possible initial positions.

Source: Omni-MATH, licensed Apache-2.0. Statement reproduced verbatim; metadata (topic, difficulty, ordering) added by this project.