Skip to main content
OlympiadHQ

Browse · MathNet

Print

Mongolian Mathematical Olympiad

Mongolia counting and probability

Problem

a_1, a_2, ..., a_{49} is a permutation of the set . Denote , , ..., . Find the number of different sequences in which no one of is divisible by .
Solution
Let be subsets of whose elements give remainder , , after dividing by . Note that . Define a mapping as follows: if then we put . Therefore, to form a sequence with the given condition, it is sufficient to arrange 's and 's so the sum of them is not divisible by and in the remaining places put 's. Since , consider the sequence and we need to arrange 's between them. Observe that is not divisible by . Therefore, we don't put in the st place. Number of ways putting 's in the remaining places is and number of ways distributing elements of in a chosen place is . Thus, by the product principle, number of ways distributing elements of is . In the sequence number of ways distributing 's and 's is . Hence we have .
Final answer
48!/32!16!17!

Techniques

Recursion, bijectionInvariants / monovariantsOther