Maths Olympiad Prep

Library / /294 of 348

Combinatorics Difficulty 5.1 AIME, harder Find the answer

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. Spacing and $ signs are ignored.

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.

Want a route through all this instead of an archive? The track puts 2,000 problems in a working order, from AMC 10 level to the IMO shortlist.

Source: Omni-MATH, licensed Apache-2.0. Statement and solution reproduced as published; topic and difficulty added by this site.