Maths Olympiad Prep

Library / /29 of 35

Combinatorics Difficulty 6.6 National olympiad Prove it Belarus

Fix a positive integer nn 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 00 through n1n-1, one number each. A vertex assignment and an edge assignment are compatible if the following condition is satisfied at each vertex vv: The number assigned to vv is congruent modulo nn to the sum of the numbers assigned to the edges incident to vv. Fix a vertex assignment and let NN be the total number of compatible edge assignments; compatibility refers, of course, to the fixed vertex assignment.
Prove that, if N0N \neq 0, then the prime divisors of NN are all at most nn. (In particular, if n=2n = 2 and N0N \neq 0, then NN is a power of 22.)

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 nn of the fixed solution from a solution provides a fundamental solution. Conversely, componentwise addition modulo nn 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 NN 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 GG with at least two edges. Fix an edge ee of GG and let G=GeG' = G - e; clearly, GG' has at least one edge. For each kk in the range 00 through n1n-1, let SkS_k be the set of fundamental solutions for GG assigning kk to ee, and let TkT_k be the set of solutions for GG' relative to the vertex assignment sending both end points of ee to nkn-k and all other vertices to zero.

Changing only the ee-component of a solution in SkS_k to zero, and changing the vertex assignment only at the end points of ee by sending them both to nkn-k, enable removal of ee from GG to provide a bijection from SkS_k to TkT_k. Since the size of each non-empty TkT_k is equal to the number NN' of fundamental solutions for GG', so is the size of each non-empty SkS_k. Consequently, N=mNN = mN', where mm is the number of non-empty sets SkS_k; incidentally, m1m \ge 1, since S0S_0 is non-empty — it contains the all zero edge assignment. Finally, the prime divisors of mm do not exceed nn, since mnm \le n; and the prime divisors of NN' do not exceed nn, by the induction hypothesis. Consequently, the prime divisors of N=mNN = mN' do not exceed nn either. This completes the induction step and concludes the proof.

Want a route through all this instead of an archive? The track puts 2,000 problems in a working order, from AMC 10 level to the IMO shortlist.

Source: MathNet, licensed CC-BY-4.0. Statement and solution reproduced as published; topic and difficulty added by this site.