For each prime , somewhere in the multiverse there exists a kingdom consisting of islands numbered from to with a bridge between any pair of them. When Jana visits a kingdom, coronavirus restrictions mean she must obey the following rule: Directly after visiting island , she can only cross over to island if
Show that there are infinitely many kingdoms such that Jana cannot travel to every island in this manner.
Problem 2356
Official solution
Solution:
Note that the divisibility condition is symmetrical in and . In other words: If Jana can cross over from island to island , she can also go the other way. Let us define a graph as follows: Each of the islands represents a vertex and we draw an edge between two vertices and if and only if
The edges of our graph now exactly represent between which pairs of islands Jana can travel, so it's easy to see that Jana can travel to every island if and only if is connected.
This insight motivates us to count the number of edges in , because if we can show that there are less than edges, has to be disconnected! By the formula
it is enough to know the number of vertices of every possible degree. The degree of a fixed vertex is the number of distinct such that
Obviously, there is exactly one choice for such that , namely . But what about ?
Lemma: Let be an odd prime and some residue modulo . Then, has
- no solutions in for exactly different values of .
- exactly one solution in if and only if .
- exactly two solutions in for different values of .
Proof of the Lemma: Note that is equivalent to or in other words .
Hence, the squares of are all distinct modulo and they are equal to the squares of , respectively. This gives us values of such that there are two solutions in . The only residue left is , which gives us a unique choice of with exactly one solution in . The remaining values of therefore admit no solutions at all.
By letting , the Lemma tells us that there are different with two solutions in . If we assume that the conditions and are never satisfied at the same time (or for ), we would get
Sadly, this is not small enough! We need to reduce the number of edges a bit more. The easiest way of doing this is by assuming that there exists a residue such that . This corresponds to a loop in (an edge going from to itself), which is irrelevant for the connectivity of . A short calculation inspired by Vieta shows that implies , so as long as , we have two loops, from which we conclude that is disconnected.
Let us now prove that there are infinitely many primes such that there exists a residue satisfying : Let be the product of the first primes and let be a prime factor of . In particular, is not equal to the first primes and so there are infinitely many such . If then . However, in this case we must have
which is equivalent to . This shows that for all such that we constructed, is indeed disconnected.
Alternative arguments (inspired by Joel/Mathys): Instead of introducing a simple undirected graph, we introduce a not necessarily simple directed graph where the edge points from to if and from to if . The directions are actually completely irrelevant for Jana's travel plans but they allow us to count the edges more elegantly:
For every there is exactly one value of such that . This means that each of the vertices has one edge pointing away from it, and therefore we have edges in total.
To show that the graph is not connected, we will explicitly find two vertices of which will have loops: Let , in particular, is odd and so is divisible by . Take a primitive root modulo . For we have
because, since is a primitive root, and cannot be divisible by . But the same calculation can be done with , so we found two loops for infinitely many (Dirichlet) and we're done!