Browse · MathNet
Print41st Balkan Mathematical Olympiad
counting and probability
Problem
Let and . For any function let . Find the possible values of the expression as ranges over all functions .
Solution
We show that the answer is all values from to . Assume has fixed points. Then say . Also let .
Upper Bound: From the definitions of and , we get . We also have the bound (as values are in the image, each of which has at least 1 preimage). We deduce the upper bound:
Lower Bound: For the minimum value, using AM-GM we get .
Now we show all those values are achievable by induction on . A manual check solves the base case of (the identity achieves the maximum value of 9, a 2-to-1 function can take the values 4, 5, 6 depending on the number of fixed points, and a function that's 3-to-1 on three of the inputs can achieve 7 and 8). For the inductive hypothesis now, suppose we have a function and let . We will build a function from by for .
Values from to : For the values bigger than , can now be defined as any permutation of the numbers . Obviously, this won't add to the maximum size of a preimage, and it will add to the size of the image. For the number of fixed points, this can be any number from 0, 1, ..., . So using this, we can add any number from to to the value of the expression for , which means, by the inductive hypothesis, we can hit all values to .
Values from to : If , then send of the new points (from to ) to one of those new points and the other points to another one of the new points in such a way that we don't add new fixed points. This way, we don't increase the maximum preimage size or the number of fixed points, but we add 2 to the image size. On the other hand, if , then . If , take of the new points, assign each of them to exactly one of the elements in . The other new points will all get mapped to another new point (again, with no new fixed points). This way we add no fixed points, we add 1 point in the image, and we increase the maximum preimage by 1, so again we add 2 overall. The remaining case is when . In this case we can only assign of the new points to exactly one of the new elements in and we map the other to a single new point.
In all cases, we add 2 to the expression overall, so we can get all values , and that covers all values.
Upper Bound: From the definitions of and , we get . We also have the bound (as values are in the image, each of which has at least 1 preimage). We deduce the upper bound:
Lower Bound: For the minimum value, using AM-GM we get .
Now we show all those values are achievable by induction on . A manual check solves the base case of (the identity achieves the maximum value of 9, a 2-to-1 function can take the values 4, 5, 6 depending on the number of fixed points, and a function that's 3-to-1 on three of the inputs can achieve 7 and 8). For the inductive hypothesis now, suppose we have a function and let . We will build a function from by for .
Values from to : For the values bigger than , can now be defined as any permutation of the numbers . Obviously, this won't add to the maximum size of a preimage, and it will add to the size of the image. For the number of fixed points, this can be any number from 0, 1, ..., . So using this, we can add any number from to to the value of the expression for , which means, by the inductive hypothesis, we can hit all values to .
Values from to : If , then send of the new points (from to ) to one of those new points and the other points to another one of the new points in such a way that we don't add new fixed points. This way, we don't increase the maximum preimage size or the number of fixed points, but we add 2 to the image size. On the other hand, if , then . If , take of the new points, assign each of them to exactly one of the elements in . The other new points will all get mapped to another new point (again, with no new fixed points). This way we add no fixed points, we add 1 point in the image, and we increase the maximum preimage by 1, so again we add 2 overall. The remaining case is when . In this case we can only assign of the new points to exactly one of the new elements in and we map the other to a single new point.
In all cases, we add 2 to the expression overall, so we can get all values , and that covers all values.
Final answer
All integers m with 2n <= m <= 2n^2 + 1
Techniques
Pigeonhole principleInduction / smoothingQM-AM-GM-HM / Power MeanColoring schemes, extremal arguments