2005 AIME II Problem 6
Problem 6 of 15IntermediateAlgebraNumber TheoryCombinatorics
The cards in a stack of cards are numbered consecutively from through from top to bottom. The top cards are removed, kept in order, and form pile The remaining cards form pile The cards are now restacked into a single stack by taking cards alternately from the tops of pile and pile respectively. In this process, card number is the bottom card of the new stack, card number is on top of this card, and so on, until piles and are exhausted. If, after the restacking process, at least one card from each pile occupies the same position that it occupied in the original stack, the stack is called magical. For example, eight cards form a magical stack because cards number and number retain their original positions. Find the number of cards in the magical stack in which card number retains its original position.
Your answer
Integer from 0 to 999
Show solution
Solution
The new stack, read from the bottom up, is So pile ’s cards occupy the even positions from the top in reverse order, and pile ’s cards occupy the odd positions in reverse order: a card at original position (pile ) moves to position while a card at position (pile ) moves to position
Since is odd, card can keep its position only if it comes from pile so which gives Indeed and the stack is magical because card from pile also stays fixed: The stack has cards.
Tagged: permutations · parity · linear equation