Browse · MathNet
PrintSlovenija 2008
Slovenia 2008 counting and probability
Problem
In a village with inhabitants each person knows other people and the acquaintances are mutual. There exists a positive integer , such that for any two villagers the number of villagers who know both is . How many villagers are there in the village?
Solution
Consider an arbitrary villager . Let denote the set of all villagers who know and let contain all the rest. There are villagers in and villagers in . Let be a villager from . The villagers who know as well as form a subset of . Let be the number of villagers in who know . Then villagers from know . Let be any villager from . Those villagers who know both and also form a subset of and there are of them.
Now, let us count the number of acquaintances amongst the villagers in and villagers in . There are villagers in and each of them knows villagers from . On the other hand there are villagers in and each knows villagers from . So, We can see right away that is divisible by 3, so we can write . Thus, For to be a positive integer we must have Hence, is an integer, which implies that is an integer as well. So, is a divisor of 175 and since , it can only be equal to 25, 35 or 175. We find only one integer solution, . It is easy to see that in this case we have , which is an integer and we conclude that there are 36 people in the village.
Now, let us count the number of acquaintances amongst the villagers in and villagers in . There are villagers in and each of them knows villagers from . On the other hand there are villagers in and each knows villagers from . So, We can see right away that is divisible by 3, so we can write . Thus, For to be a positive integer we must have Hence, is an integer, which implies that is an integer as well. So, is a divisor of 175 and since , it can only be equal to 25, 35 or 175. We find only one integer solution, . It is easy to see that in this case we have , which is an integer and we conclude that there are 36 people in the village.
Final answer
36
Techniques
Counting two waysFactorization techniques