Problem

Source: Junior Olympiad of Malaysia Shortlist 2015 C2

Tags: combinatorics



Cauchy the magician has a new card trick. He takes a standard deck(which consists of 52 cards with 13 denominations in each 4 suits) and let Schwartz to shuffle randomly. Schwartz is told to take $ m $ cards not more than $ \frac{1}{3} $ form the top of the deck. Then, Cauchy take $ 18 $ cards one by one from the top of the remaining deck and show it to Schwartz with the second card is placed in front of the first card (from Schwartz view) and so on. He ask Schwartz to memorize the $ m-th $ card when showing the cards. Let it be $ C_1 $. After that, Cauchy places the $ 18 $ cards and the $ m $ cards on the bottom of the deck with the $ m $ cards are placed lower than the $ 18 $ cards. Now, Cauchy distributes and flip the cards on the table from the top of the deck while shouting the numbers $ 10 $ until $ 1 $ with the following operation: a) When a card flipped has the number which is same as the number shouted by Cauchy, stop the distribution and continue with another set. b) When $ 10 $ cards are flipped and none of the cards flipped has the number which is same as the number shouted by Cauchy, take a card from the top of the deck and place it on top of the set with backside(the site which has no value) facing up. Then continue with another set. Cauchy stops when 3 sets of cards are placed. Then, he adds up all the numbers on top of each sets of cards( backside is consider $ 0 $ ). Let $ k $ be the sum. He placed another $ k $ cards to the table from the top of the remaining deck. Finally, he shows the first card on top of the remaining deck to Schwartz. Let it be $ C_2 $. Show that $ C_1 = C_2 $.