Subfield: Geometry


Question: Let $P_{1}, \ldots, P_{s}$ be arithmetic progressions of integers, the following conditions being satisfied:

(i) each integer belongs to at least one of them;

(ii) each progression contains a number which does not belong to other progressions.

Denote by $n$ the least common multiple of steps of these progressions; let $n=p_{1}^{\alpha_{1}} \ldots p_{k}^{\alpha_{k}}$ be its prime factorization. Prove that

$$
s \geq 1+\sum_{i=1}^{k} \alpha_{i}\left(p_{i}-1\right)
$$

Solution:
First, we prove the key lemma, and then we show how to apply it to finish the solution.

Let $n_{1}, \ldots, n_{k}$ be positive integers. By an $n_{1} \times n_{2} \times \cdots \times n_{k}$ grid we mean the set $N=$ $\left\{\left(a_{1}, \ldots, a_{k}\right): a_{i} \in \mathbb{Z}, 0 \leq a_{i} \leq n_{i}-1\right\}$; the elements of $N$ will be referred to as points. In this grid, we define a subgrid as a subset of the form

$$
L=\left\{\left(b_{1}, \ldots, b_{k}\right) \in N: b_{i_{1}}=x_{i_{1}}, \ldots, b_{i_{t}}=x_{i_{t}}\right\}
\tag{1}
$$

where $I=\left\{i_{1}, \ldots, i_{t}\right\}$ is an arbitrary nonempty set of indices, and $x_{i_{j}} \in\left[0, n_{i_{j}}-1\right](1 \leq j \leq t)$ are fixed integer numbers. Further, we say that a subgrid (1) is orthogonal to the $i$ th coordinate axis if $i \in I$, and that it is parallel to the $i$ th coordinate axis otherwise.

Lemma. Assume that the grid $N$ is covered by subgrids $L_{1}, L_{2}, \ldots, L_{s}$ (this means $N=\bigcup_{i=1}^{s} L_{i}$ ) so that

(ii') each subgrid contains a point which is not covered by other subgrids;

(iii) for each coordinate axis, there exists a subgrid $L_{i}$ orthogonal to this axis.

Then

$$
s \geq 1+\sum_{i=1}^{k}\left(n_{i}-1\right)
$$

Proof. Assume to the contrary that $s \leq \sum_{i}\left(n_{i}-1\right)=s^{\prime}$. Our aim is to find a point that is not covered by $L_{1}, \ldots, L_{s}$.

The idea of the proof is the following. Imagine that we expand each subgrid to some maximal subgrid so that for the $i$ th axis, there will be at most $n_{i}-1$ maximal subgrids orthogonal to this axis. Then the desired point can be found easily: its $i$ th coordinate should be that not covered by the maximal subgrids orthogonal to the $i$ th axis. Surely, the conditions for existence of such expansion are provided by Hall's lemma on matchings. So, we will follow this direction, although we will apply Hall's lemma to some subgraph instead of the whole graph.

Construct a bipartite graph $G=\left(V \cup V^{\prime}, E\right)$ as follows. Let $V=\left\{L_{1}, \ldots, L_{s}\right\}$, and let $V^{\prime}=\left\{v_{i j}: 1 \leq i \leq s, 1 \leq j \leq n_{i}-1\right\}$ be some set of $s^{\prime}$ elements. Further, let the edge $\left(L_{m}, v_{i j}\right)$ appear iff $L_{m}$ is orthogonal to the $i$ th axis.

For each subset $W \subset V$, denote

$$
f(W)=\left\{v \in V^{\prime}:(L, v) \in E \text { for some } L \in W\right\}
$$

Notice that $f(V)=V^{\prime}$ by (iii).

Now, consider the set $W \subset V$ containing the maximal number of elements such that $|W|>$ $|f(W)|$; if there is no such set then we set $W=\varnothing$. Denote $W^{\prime}=f(W), U=V \backslash W, U^{\prime}=V^{\prime} \backslash W^{\prime}$.



By our assumption and the Lemma condition, $|f(V)|=\left|V^{\prime}\right| \geq|V|$, hence $W \neq V$ and $U \neq \varnothing$. Permuting the coordinates, we can assume that $U^{\prime}=\left\{v_{i j}: 1 \leq i \leq \ell\right\}, W^{\prime}=\left\{v_{i j}: \ell+1 \leq i \leq k\right\}$.

Consider the induced subgraph $G^{\prime}$ of $G$ on the vertices $U \cup U^{\prime}$. We claim that for every $X \subset U$, we get $\left|f(X) \cap U^{\prime}\right| \geq|X|$ (so $G^{\prime}$ satisfies the conditions of Hall's lemma). Actually, we have $|W| \geq|f(W)|$, so if $|X|>\left|f(X) \cap U^{\prime}\right|$ for some $X \subset U$, then we have

$$
|W \cup X|=|W|+|X|>|f(W)|+\left|f(X) \cap U^{\prime}\right|=\left|f(W) \cup\left(f(X) \cap U^{\prime}\right)\right|=|f(W \cup X)|
$$

This contradicts the maximality of $|W|$.

Thus, applying Hall's lemma, we can assign to each $L \in U$ some vertex $v_{i j} \in U^{\prime}$ so that to distinct elements of $U$, distinct vertices of $U^{\prime}$ are assigned. In this situation, we say that $L \in U$ corresponds to the $i$ th axis, and write $g(L)=i$. Since there are $n_{i}-1$ vertices of the form $v_{i j}$, we get that for each $1 \leq i \leq \ell$, not more than $n_{i}-1$ subgrids correspond to the $i$ th axis.

Finally, we are ready to present the desired point. Since $W \neq V$, there exists a point $b=\left(b_{1}, b_{2}, \ldots, b_{k}\right) \in N \backslash\left(\cup_{L \in W} L\right)$. On the other hand, for every $1 \leq i \leq \ell$, consider any subgrid $L \in U$ with $g(L)=i$. This means exactly that $L$ is orthogonal to the $i$ th axis, and hence all its elements have the same $i$ th coordinate $c_{L}$. Since there are at most $n_{i}-1$ such subgrids, there exists a number $0 \leq a_{i} \leq n_{i}-1$ which is not contained in a set $\left\{c_{L}: g(L)=i\right\}$. Choose such number for every $1 \leq i \leq \ell$. Now we claim that point $a=\left(a_{1}, \ldots, a_{\ell}, b_{\ell+1}, \ldots, b_{k}\right)$ is not covered, hence contradicting the Lemma condition.

Surely, point $a$ cannot lie in some $L \in U$, since all the points in $L$ have $g(L)$ th coordinate $c_{L} \neq a_{g(L)}$. On the other hand, suppose that $a \in L$ for some $L \in W$; recall that $b \notin L$. But the points $a$ and $b$ differ only at first $\ell$ coordinates, so $L$ should be orthogonal to at least one of the first $\ell$ axes, and hence our graph contains some edge $\left(L, v_{i j}\right)$ for $i \leq \ell$. It contradicts the definition of $W^{\prime}$. The Lemma is proved.

Now we turn to the problem. Let $d_{j}$ be the step of the progression $P_{j}$. Note that since $n=$ l.c.m. $\left(d_{1}, \ldots, d_{s}\right)$, for each $1 \leq i \leq k$ there exists an index $j(i)$ such that $p_{i}^{\alpha_{i}} \mid d_{j(i)}$. We assume that $n>1$; otherwise the problem statement is trivial.

For each $0 \leq m \leq n-1$ and $1 \leq i \leq k$, let $m_{i}$ be the residue of $m$ modulo $p_{i}^{\alpha_{i}}$, and let $m_{i}=\overline{r_{i \alpha_{i}} \ldots r_{i 1}}$ be the base $p_{i}$ representation of $m_{i}$ (possibly, with some leading zeroes). Now, we put into correspondence to $m$ the sequence $r(m)=\left(r_{11}, \ldots, r_{1 \alpha_{1}}, r_{21}, \ldots, r_{k \alpha_{k}}\right)$. Hence $r(m)$ lies in a $\underbrace{p_{1} \times \cdots \times p_{1}}_{\alpha_{1} \text { times }} \times \cdots \times \underbrace{p_{k} \times \cdots \times p_{k}}_{\alpha_{k} \text { times }} \operatorname{grid} N$.

Surely, if $r(m)=r\left(m^{\prime}\right)$ then $p_{i}^{\alpha_{i}} \mid m_{i}-m_{i}^{\prime}$, which follows $p_{i}^{\alpha_{i}} \mid m-m^{\prime}$ for all $1 \leq i \leq k$; consequently, $n \mid m-m^{\prime}$. So, when $m$ runs over the set $\{0, \ldots, n-1\}$, the sequences $r(m)$ do not repeat; since $|N|=n$, this means that $r$ is a bijection between $\{0, \ldots, n-1\}$ and $N$. Now we will show that for each $1 \leq i \leq s$, the set $L_{i}=\left\{r(m): m \in P_{i}\right\}$ is a subgrid, and that for each axis there exists a subgrid orthogonal to this axis. Obviously, these subgrids cover $N$, and the condition (ii') follows directly from (ii). Hence the Lemma provides exactly the estimate we need.

Consider some $1 \leq j \leq s$ and let $d_{j}=p_{1}^{\gamma_{1}} \ldots p_{k}^{\gamma_{k}}$. Consider some $q \in P_{j}$ and let $r(q)=$ $\left(r_{11}, \ldots, r_{k \alpha_{k}}\right)$. Then for an arbitrary $q^{\prime}$, setting $r\left(q^{\prime}\right)=\left(r_{11}^{\prime}, \ldots, r_{k \alpha_{k}}^{\prime}\right)$ we have

$$
q^{\prime} \in P_{j} \quad \Longleftrightarrow \quad p_{i}^{\gamma_{i}} \mid q-q^{\prime} \text { for each } 1 \leq i \leq k \quad \Longleftrightarrow \quad r_{i, t}=r_{i, t}^{\prime} \text { for all } t \leq \gamma_{i} \text {. }
$$

Hence $L_{j}=\left\{\left(r_{11}^{\prime}, \ldots, r_{k \alpha_{k}}^{\prime}\right) \in N: r_{i, t}=r_{i, t}^{\prime}\right.$ for all $\left.t \leq \gamma_{i}\right\}$ which means that $L_{j}$ is a subgrid containing $r(q)$. Moreover, in $L_{j(i)}$, all the coordinates corresponding to $p_{i}$ are fixed, so it is orthogonal to all of their axes, as desired.
We start with introducing some notation. For positive integer $r$, we denote $[r]=\{1,2, \ldots, r\}$. Next, we say that a set of progressions $\mathcal{P}=\left\{P_{1}, \ldots, P_{s}\right\}$ cover $\mathbb{Z}$ if each integer belongs to some of them; we say that this covering is minimal if no proper subset of $\mathcal{P}$ covers $\mathbb{Z}$. Obviously, each covering contains a minimal subcovering.

Next, for a minimal covering $\left\{P_{1}, \ldots, P_{s}\right\}$ and for every $1 \leq i \leq s$, let $d_{i}$ be the step of progression $P_{i}$, and $h_{i}$ be some number which is contained in $P_{i}$ but in none of the other progressions. We assume that $n>1$, otherwise the problem is trivial. This implies $d_{i}>1$, otherwise the progression $P_{i}$ covers all the numbers, and $n=1$.

We will prove a more general statement, namely the following

Claim. Assume that the progressions $P_{1}, \ldots, P_{s}$ and number $n=p_{1}^{\alpha_{1}} \ldots p_{k}^{\alpha_{k}}>1$ are chosen as in the problem statement. Moreover, choose some nonempty set of indices $I=\left\{i_{1}, \ldots, i_{t}\right\} \subseteq[k]$ and some positive integer $\beta_{i} \leq \alpha_{i}$ for every $i \in I$. Consider the set of indices

$$
T=\left\{j: 1 \leq j \leq s, \text { and } p_{i}^{\alpha_{i}-\beta_{i}+1} \mid d_{j} \text { for some } i \in I\right\} .
$$

Then

$$
|T| \geq 1+\sum_{i \in I} \beta_{i}\left(p_{i}-1\right)
\tag{2}
$$

Observe that the Claim for $I=[k]$ and $\beta_{i}=\alpha_{i}$ implies the problem statement, since the left-hand side in (2) is not greater than $s$. Hence, it suffices to prove the Claim.

1. First, we prove the Claim assuming that all $d_{j}$ 's are prime numbers. If for some $1 \leq i \leq k$ we have at least $p_{i}$ progressions with the step $p_{i}$, then they do not intersect and hence cover all the integers; it means that there are no other progressions, and $n=p_{i}$; the Claim is trivial in this case.

Now assume that for every $1 \leq i \leq k$, there are not more than $p_{i}-1$ progressions with step $p_{i}$; each such progression covers the numbers with a fixed residue modulo $p_{i}$, therefore there exists a residue $q_{i} \bmod p_{i}$ which is not touched by these progressions. By the Chinese Remainder Theorem, there exists a number $q$ such that $q \equiv q_{i}\left(\bmod p_{i}\right)$ for all $1 \leq i \leq k$; this number cannot be covered by any progression with step $p_{i}$, hence it is not covered at all. A contradiction.



2. Now, we assume that the general Claim is not valid, and hence we consider a counterexample $\left\{P_{1}, \ldots, P_{s}\right\}$ for the Claim; we can choose it to be minimal in the following sense:

- the number $n$ is minimal possible among all the counterexamples; of $n$.
- the sum $\sum_{i} d_{i}$ is minimal possible among all the counterexamples having the chosen value

As was mentioned above, not all numbers $d_{i}$ are primes; hence we can assume that $d_{1}$ is composite, say $p_{1} \mid d_{1}$ and $d_{1}^{\prime}=\frac{d_{1}}{p_{1}}>1$. Consider a progression $P_{1}^{\prime}$ having the step $d_{1}^{\prime}$, and containing $P_{1}$. We will focus on two coverings constructed as follows.

(i) Surely, the progressions $P_{1}^{\prime}, P_{2}, \ldots, P_{s}$ cover $\mathbb{Z}$, though this covering in not necessarily minimal. So, choose some minimal subcovering $\mathcal{P}^{\prime}$ in it; surely $P_{1}^{\prime} \in \mathcal{P}^{\prime}$ since $h_{1}$ is not covered by $P_{2}, \ldots, P_{s}$, so we may assume that $\mathcal{P}^{\prime}=\left\{P_{1}^{\prime}, P_{2}, \ldots, P_{s^{\prime}}\right\}$ for some $s^{\prime} \leq s$. Furthermore, the period of the covering $\mathcal{P}^{\prime}$ can appear to be less than $n$; so we denote this period by

$$
n^{\prime}=p_{1}^{\alpha_{1}-\sigma_{1}} \ldots p_{k}^{\alpha_{k}-\sigma_{k}}=\text { l.c.m. }\left(d_{1}^{\prime}, d_{2}, \ldots, d_{s^{\prime}}\right)
$$

Observe that for each $P_{j} \notin \mathcal{P}^{\prime}$, we have $h_{j} \in P_{1}^{\prime}$, otherwise $h_{j}$ would not be covered by $\mathcal{P}$.

(ii) On the other hand, each nonempty set of the form $R_{i}=P_{i} \cap P_{1}^{\prime}(1 \leq i \leq s)$ is also a progression with a step $r_{i}=$ l.c.m. $\left(d_{i}, d_{1}^{\prime}\right)$, and such sets cover $P_{1}^{\prime}$. Scaling these progressions with the ratio $1 / d_{1}^{\prime}$, we obtain the progressions $Q_{i}$ with steps $q_{i}=r_{i} / d_{1}^{\prime}$ which cover $\mathbb{Z}$. Now we choose a minimal subcovering $\mathcal{Q}$ of this covering; again we should have $Q_{1} \in \mathcal{Q}$ by the reasons of $h_{1}$. Now, denote the period of $\mathcal{Q}$ by

$$
n^{\prime \prime}=\text { l.c.m. }\left\{q_{i}: Q_{i} \in \mathcal{Q}\right\}=\frac{\text { l.c.m. }\left\{r_{i}: Q_{i} \in \mathcal{Q}\right\}}{d_{1}^{\prime}}=\frac{p_{1}^{\gamma_{1}} \ldots p_{k}^{\gamma_{k}}}{d_{1}^{\prime}} \text {. }
$$

Note that if $h_{j} \in P_{1}^{\prime}$, then the image of $h_{j}$ under the scaling can be covered by $Q_{j}$ only; so, in this case we have $Q_{j} \in \mathcal{Q}$.

Our aim is to find the desired number of progressions in coverings $\mathcal{P}$ and $\mathcal{Q}$. First, we have $n \geq n^{\prime}$, and the sum of the steps in $\mathcal{P}^{\prime}$ is less than that in $\mathcal{P}$; hence the Claim is valid for $\mathcal{P}^{\prime}$. We apply it to the set of indices $I^{\prime}=\left\{i \in I: \beta_{i}>\sigma_{i}\right\}$ and the exponents $\beta_{i}^{\prime}=\beta_{i}-\sigma_{i}$; hence the set under consideration is

$$
T^{\prime}=\left\{j: 1 \leq j \leq s^{\prime}, \text { and } p_{i}^{\left(\alpha_{i}-\sigma_{i}\right)-\beta_{i}^{\prime}+1}=p_{i}^{\alpha_{i}-\beta_{i}+1} \mid d_{j} \text { for some } i \in I^{\prime}\right\} \subseteq T \cap\left[s^{\prime}\right] \text {, }
$$

and we obtain that

$$
\left|T \cap\left[s^{\prime}\right]\right| \geq\left|T^{\prime}\right| \geq 1+\sum_{i \in I^{\prime}}\left(\beta_{i}-\sigma_{i}\right)\left(p_{i}-1\right)=1+\sum_{i \in I}\left(\beta_{i}-\sigma_{i}\right)_{+}\left(p_{i}-1\right)
$$

where $(x)_{+}=\max \{x, 0\}$; the latter equality holds as for $i \notin I^{\prime}$ we have $\beta_{i} \leq \sigma_{i}$.

Observe that $x=(x-y)_{+}+\min \{x, y\}$ for all $x, y$. So, if we find at least

$$
G=\sum_{i \in I} \min \left\{\beta_{i}, \sigma_{i}\right\}\left(p_{i}-1\right)
$$

indices in $T \cap\left\{s^{\prime}+1, \ldots, s\right\}$, then we would have

$|T|=\left|T \cap\left[s^{\prime}\right]\right|+\left|T \cap\left\{s^{\prime}+1, \ldots, s\right\}\right| \geq 1+\sum_{i \in I}\left(\left(\beta_{i}-\sigma_{i}\right)_{+}+\min \left\{\beta_{i}, \sigma_{i}\right\}\right)\left(p_{i}-1\right)=1+\sum_{i \in I} \beta_{i}\left(p_{i}-1\right)$,

thus leading to a contradiction with the choice of $\mathcal{P}$. We will find those indices among the indices of progressions in $\mathcal{Q}$.



3. Now denote $I^{\prime \prime}=\left\{i \in I: \sigma_{i}>0\right\}$ and consider some $i \in I^{\prime \prime}$; then $p_{i}^{\alpha_{i}} \nmid n^{\prime}.$. On the other hand, there exists an index $j(i)$ such that $p_{i}^{\alpha_{i}} \mid d_{j(i)}$; this means that $d_{j(i)} \nmid n^{\prime}$ and hence $P_{j(i)}$ cannot appear in $\mathcal{P}^{\prime}$, so $j(i)>s^{\prime}$. Moreover, we have observed before that in this case $h_{j(i)} \in P_{1}^{\prime}$, hence $Q_{j(i)} \in \mathcal{Q}$. This means that $q_{j(i)} \mid n^{\prime \prime}$, therefore $\gamma_{i}=\alpha_{i}$ for each $i \in I^{\prime \prime}$ (recall here that $q_{i}=r_{i} / d_{1}^{\prime}$ and hence $\left.d_{j(i)}\left|r_{j(i)}\right| d_{1}^{\prime} n^{\prime \prime}\right)$.

Let $d_{1}^{\prime}=p_{1}^{\tau_{1}} \ldots p_{k}^{\tau_{k}}$. Then $n^{\prime \prime}=p_{1}^{\gamma_{1}-\tau_{1}} \ldots p_{k}^{\gamma_{i}-\tau_{i}}$. Now, if $i \in I^{\prime \prime}$, then for every $\beta$ the condition $p_{i}^{\left(\gamma_{i}-\tau_{i}\right)-\beta+1} \mid q_{j}$ is equivalent to $p_{i}^{\alpha_{i}-\beta+1} \mid r_{j}$.

Note that $n^{\prime \prime} \leq n / d_{1}^{\prime}<n$, hence we can apply the Claim to the covering $\mathcal{Q}$. We perform this with the set of indices $I^{\prime \prime}$ and the exponents $\beta_{i}^{\prime \prime}=\min \left\{\beta_{i}, \sigma_{i}\right\}>0$. So, the set under consideration is

$$
\begin{aligned}
T^{\prime \prime} & =\left\{j: Q_{j} \in \mathcal{Q}, \text { and } p_{i}^{\left(\gamma_{i}-\tau_{i}\right)-\min \left\{\beta_{i}, \sigma_{i}\right\}+1} \mid q_{j} \text { for some } i \in I^{\prime \prime}\right\} \\
& =\left\{j: Q_{j} \in \mathcal{Q}, \text { and } p_{i}^{\alpha_{i}-\min \left\{\beta_{i}, \sigma_{i}\right\}+1} \mid r_{j} \text { for some } i \in I^{\prime \prime}\right\},
\end{aligned}
$$

and we obtain $\left|T^{\prime \prime}\right| \geq 1+G$. Finally, we claim that $T^{\prime \prime} \subseteq T \cap\left(\{1\} \cup\left\{s^{\prime}+1, \ldots, s\right\}\right)$; then we will obtain $\left|T \cap\left\{s^{\prime}+1, \ldots, s\right\}\right| \geq G$, which is exactly what we need.

To prove this, consider any $j \in T^{\prime \prime}$. Observe first that $\alpha_{i}-\min \left\{\beta_{i}, \sigma_{i}\right\}+1>\alpha_{i}-\sigma_{i} \geq \tau_{i}$, hence from $p_{i}^{\alpha_{i}-\min \left\{\beta_{i}, \sigma_{i}\right\}+1} \mid r_{j}=$ l.c.m. $\left(d_{1}^{\prime}, d_{j}\right)$ we have $p_{i}^{\alpha_{i}-\min \left\{\beta_{i}, \sigma_{i}\right\}+1} \mid d_{j}$, which means that $j \in T$. Next, the exponent of $p_{i}$ in $d_{j}$ is greater than that in $n^{\prime}$, which means that $P_{j} \notin \mathcal{P}^{\prime}$. This may appear only if $j=1$ or $j>s^{\prime}$, as desired. This completes the proof.