Skip to main content
OlympiadHQ

Browse · MathNet

Print

SELECTION and TRAINING SESSION

Belarus counting and probability

Problem

Fix a positive integer and a finite graph with at least one edge; the end points of each edge are distinct, and any two vertices are joined by at most one edge. Vertices and edges are assigned (not necessarily distinct) numbers in the range through , one number each. A vertex assignment and an edge assignment are compatible if the following condition is satisfied at each vertex : The number assigned to is congruent modulo to the sum of the numbers assigned to the edges incident to . Fix a vertex assignment and let be the total number of compatible edge assignments; compatibility refers, of course, to the fixed vertex assignment. Prove that, if , then the prime divisors of are all at most . (In particular, if and , then is a power of .)
Solution
An edge assignment compatible with a fixed vertex assignment will be referred to as a solution relative to that vertex assignment. A solution relative to the all-zero vertex assignment will be referred to as a fundamental solution; the all-zero edge assignment is a fundamental solution.

Fix a vertex assignment and fix a solution (if any). Componentwise subtraction modulo of the fixed solution from a solution provides a fundamental solution. Conversely, componentwise addition modulo of the fixed solution to a fundamental solution provides a solution. The two solution assignments are clearly inverse to one another, so the number of solutions is either zero or equal to the number of fundamental solutions. Consequently, it is sufficient to prove the conclusion for the number of fundamental solutions.

To this end, induct on the number of edges. The base case is clear: A graph with a single edge has a single fundamental solution, namely, the all zero edge assignment.

For the induction step, consider a graph with at least two edges. Fix an edge of and let ; clearly, has at least one edge. For each in the range through , let be the set of fundamental solutions for assigning to , and let be the set of solutions for relative to the vertex assignment sending both end points of to and all other vertices to zero.

Changing only the -component of a solution in to zero, and changing the vertex assignment only at the end points of by sending them both to , enable removal of from to provide a bijection from to . Since the size of each non-empty is equal to the number of fundamental solutions for , so is the size of each non-empty . Consequently, , where is the number of non-empty sets ; incidentally, , since is non-empty — it contains the all zero edge assignment. Finally, the prime divisors of do not exceed , since ; and the prime divisors of do not exceed , by the induction hypothesis. Consequently, the prime divisors of do not exceed either. This completes the induction step and concludes the proof.

Techniques

Induction / smoothingCounting two ways