Introduction - If you have any usage issues, please Google them yourself
Rules of the game: the total M of the card (which is a multiple of N), divided into any number ranging from N into the heap, and then move through the following rules so that an equal number of cards per pile: 1. To the i-heap brand mobile card, only from the i+1 or i-1 heap heap made 2. The first pile of cards can only be obtained from the second reactor licensing 3. s N reactor license only from the first N-1 reactor license achieved. Algorithm requires: Solving the minimum number of moves when sharing