Combinatorics.
Source: Baltic Way 2015
November 8, 2015
combinatoricsBaltic Way
Problem Statement
Let be an integer. A deck contains cards,numbered Two cards form a magic pair if their numbers are consecutive , or if their numbers are and . For which is it possible to distribute the cards into stacks in such a manner that, among the cards in any two stacks , there is exactly one magic pair?