1 Introduction and main result

In additive combinatorics, it has been of great interest to find large subsets of \(\mathbb {Z}_m^n {:}{=}(\mathbb {Z}/m\mathbb {Z})^n\) without arithmetic progressions of a given length k. We let \(r_{k}(\mathbb {Z}_{m}^{n})\) denote the maximal size of a subset of \(\mathbb {Z}_{m}^{n}\) without arithmetic progressions of length k and \(P^{-}(m)\) the least prime factor of m. The case \(n=1\) and \(k=3\) is closely related to progression-free sets in the integers; see the results by Behrend [1], Roth [8] and Szemerédi [9]. The case \(k=3\) and m prime is strongly connected to the well-studied case of capsets [2,3,4]. Nevertheless, there is not much literature on lower bounds on these progression-free sets, not even for primes m and general progression length k. For \(k=3\) the best lower bound is due to Elsholtz and Pach [5] who adapted Behrend’s method to higher dimensions, showing that there is a positive constant \(C_{m}\) such that

$$\begin{aligned} r_{3}(\mathbb {Z}_{m}^{n}) \ge {\left\{ \begin{array}{ll} \frac{C_{m}}{\sqrt{n}}\bigl ( \frac{m+1}{2} \bigr )^{n} &{} \text {if { m} is odd,} \\ \frac{C_{m}}{\sqrt{n}}\bigl ( \frac{m+2}{2} \bigr )^{n} &{} \text {if { m} is even.} \end{array}\right. } \end{aligned}$$

For \(k \ge 4\), the best lower bound is due to Lin and Wolf [7], who showed that if p is a prime and \(k\le p\), then we have

$$\begin{aligned} r_{k}(\mathbb {Z}_{p}^{n}) \ge \bigl (p^{2(k-1)} + p^{k-1} - 1\bigr )^{\frac{n}{2k}}. \end{aligned}$$

In this paper, we adapt and extend the method of Elsholtz and Pach [5] to improve the lower bound of Lin and Wolf. We prove the following results.

Theorem 1.1

Let m be an integer and let \(k \ge 5\) be an odd integer. Let \(P^{-}(m)\) denote the least prime factor of m. If \(P^{-}(m)\ge (k+2)/2\), then the following estimate holds:

$$\begin{aligned} r_{k}(\mathbb {Z}_{m}^{n}) \gg _{m,k} \frac{\bigl \lfloor \frac{k-1}{k+1}m +1\bigr \rfloor ^{n}}{ n^{\lfloor \frac{k-1}{k+1}m \rfloor /2}}. \end{aligned}$$

Theorem 1.2

Let \(k \ge 4\) be an even integer. Let \(m \equiv -1 \bmod k\) and assume that \(P^{-}(m) \ge k\), then we have

$$\begin{aligned} r_{k}(\mathbb {Z}_{m}^{n}) \gg _{m,k} \frac{\bigl \lfloor \frac{k-2}{k}m + 2\bigr \rfloor ^{n}}{n^{\lfloor \frac{k-2}{k}m + 1\rfloor /2}}. \end{aligned}$$

Note that when \(m = p > k\) is a prime, then Theorems 1.1 and 1.2 improve the base \(p^{(k-1)/k}\) of Lin and Wolf [7] to \(\alpha _{k}p\) for some \(\alpha _{k}>0\).

Moreover, our main concern in the above two theorems has been to increase the exponential numerator. It seems possible that the methods of [4, 5] could also improve the polynomial denominator.

2 Construction of large sets without arithmetic progressions

The work of Elsholtz and Pach [5] suggests that for the construction of large subsets of \(\mathbb {Z}_{m}^{n}\) without arithmetic progressions of length k, it is a good idea to consider vectors whose entries only take values from a prescribed set of digits. To be more precise, we consider the following sets.

Definition 2.1

Let \(D = \{d_1, \ldots , d_{|D|}\} \subseteq \mathbb {Z}_m\) be a set of digits and let n be an integer with \(|D| \mid n\). Then we define

$$\begin{aligned} S(D,n)\, {:}{=}\, \bigl \{ (v_{1},\ldots ,v_{n}) \in \mathbb {Z}_m^{n} \mid \forall i \le |D|:v_{j}=d_{i}~\text {for}~n/|D|~\text {values of } j \bigr \}. \end{aligned}$$

Thus, S(Dn) is the set of n-dimensional vectors for which every digit of D occurs the same number of times. The task is then to construct “good” sets \(D \subseteq \mathbb {Z}_{m}\) such that the set S(Dn) does not contain an arithmetic progression of a given length. If S(Dn) does not contain an arithmetic progression, then we say that D is admissible.

By Stirling’s formula, one can give the asymptotic lower bound

$$\begin{aligned} |S(D,n)| = \left( {\begin{array}{c}n\\ \frac{n}{|D|}, \ldots , \frac{n}{|D|}\end{array}}\right) \gg \frac{|D|^{n}}{n^{(|D|-1)/2}} \end{aligned}$$
(2.1)

as \(n\rightarrow \infty \).

It remains to find large digit sets D such that S(Dn) is progression-free. In [5] it has been shown that one can take \(D=\{0, \ldots , (p-1)/2\}\) of size \(|D|=(p+1)/2\), without having an arithmetic progression of length 3 in S(Dn). For odd \(k \ge 5\) we shall see that we can extend this interval without having arithmetic progressions in S(Dn) of length k.

Theorem 2.2

Let m be an integer and let the progression length \(k\ge 5\) be odd. If \(P^{-}(m) \ge (k+2)/2\) and n is an integer divisible by \(\lfloor \frac{k-1}{k+1}m \rfloor +1\), then the set S(Dn) with

$$\begin{aligned} D=\Big \{0,1,\ldots ,\Bigl \lfloor \frac{k-1}{k+1}m \Bigr \rfloor \Big \} \end{aligned}$$

does not contain any arithmetic progression of length k.

For \(k=2\ell \ge 4\) even and \(m \equiv -1 \bmod k\) with \(P^{-}(m) \ge (k+1)/2\), we can extend the set D found in the case \(k=2\ell -1\) by one element.

Theorem 2.3

Let \(k \ge 4\) be an even integer and let m be an integer with \(m \equiv -1 \bmod k\). If \(P^{-}(m) \ge k\) and n is an integer divisible by \(\lfloor \frac{k-2}{k}m \rfloor + 2\), then the set S(Dn) with

$$\begin{aligned} D=\Big \{0,1,\dots , \Bigl \lfloor \frac{k-2}{k}m \Bigr \rfloor , \frac{(k-1)m-1}{k}\Big \} \end{aligned}$$

does not contain any arithmetic progression of length k.

From our computations (see Appendix B) it seems likely that it should also be possible to extend the construction from Theorem 2.2 to integers with \(m \not \equiv -1 \bmod k\). In particular, based on experiments with small primes, we have the following conjecture.

Conjecture 2.4

Let \(p \ge 13\) be a prime with \(p \equiv 1 \bmod 4\) and let n be an integer divisible by \(\frac{p+3}{2}\). Then the set

$$\begin{aligned} D=\Big \{ 0,1,\ldots ,\frac{p-1}{2},\frac{p+3}{2}\Big \} \end{aligned}$$

does not yield any arithmetic progression of length 4 in S(Dn).

Finally, Table 1 provides explicit results for some values of p respectively k. As the computational effort of finding large admissible digit sets grows for increasing p and k (see Sect. 4), the values of p and k given here are rather small. In particular, we list the size of the largest admissible digit set for each pair (pk), or a lower bound for it if the existence of larger digit sets cannot be excluded.

As an example we give a detailed discussion of the case \(p=11\) and \(k=3\) in Appendix A. A corresponding admissible digit set of maximal cardinality as well as the number of maximal admissible digit sets for each pair (pk) can be found in Appendix B.

3 Proofs

Proof of Theorem 2.2

Assume for the sake of a contradiction that S(Dn) contains a non-constant arithmetic progression \(\textbf{v}_{1},\textbf{v}_{2}\), ..., \(\textbf{v}_{k}\). Denote the jth coordinate of \(\textbf{v}_{i}\) by \(\textbf{v}_{i}^{(j)}\), i.e., \(\textbf{v}_{i}=(\textbf{v}_{i}^{(1)},\textbf{v}_{i}^{(2)}, \dots , \textbf{v}_{i}^{(k)})\). Notice that for every \(1 \le j \le n\) the elements \(\textbf{v}_{1}^{(j)},\textbf{v}_{2}^{(j)},\dots , \textbf{v}_{k}^{(j)}\) form an arithmetic progressions in \(\mathbb {Z}_{m}\).

Let \(d \le \frac{m(k-1)}{k+1}\) be the largest integer such that d occurs in a non-trivial progression \((\textbf{v}_{i}^{(j_{0})})_{1 \le i \le k}\). As d occurs equally often in every vector \(\textbf{v}_{i}\), we may choose \(j=j_{0}\) such that \((\textbf{v}_{i}^{(j_{0})})_{1 \le i \le k}\) is non-constant and \(\textbf{v}_{\ell +1}^{(j_{0})}=d\) with \(\ell =(k-1)/2\).

By writing \(\textbf{v}_{i}^{(j_{0})} = \textbf{v}_{1}^{(j_{0})}+(i-1)c\) for some non-zero element \(c \in \mathbb {Z}_{m}\) we see that the elements \(\textbf{v}_{i}^{(j_{0})}\) with \(1 \le i \le \ell +1\) are pairwise distinct since \(P^{-}(m) > \ell \). By the maximality of d we have \(((\textbf{v}_{i}^{(j_{0})})_{1 \le i \le k}) \subset [0,d]\). Thus, by the pigeonhole principle there exist indices \(1 \le i,i' \le \ell +1\) such that

$$\begin{aligned} 0<\textbf{v}_{i}^{(j_{0})}-\textbf{v}_{i'}^{(j_{0})} \le \frac{d}{\ell } < \frac{m}{\ell +1}, \end{aligned}$$

where the last inequality is strict since \(P^{-}(m)>\ell +1\).

However, this implies that \(\textbf{v}_{\ell +i-i'}^{(j_{0})} \in \{d+1,\ldots ,m-1 \}\), a contradiction.\(\square \)

Proof of Theorem 2.3

By Theorem 2.2 it suffices to show that a non-trivial arithmetic progression in D cannot have \(h:=\frac{(k-1)m-1}{k}\) in the first position. Assume that there is such a progression \(v_{1},v_{2},\dots , v_{k}\) with \(v_{1} = h\). Again, as \(P^{-}(m) \ge k\) all elements \(v_{1},v_{2},\dots , v_{k}\) are pairwise different. Note that the nearest elements in D to h, namely the residue classes of m (which is 0) and \(\lfloor \frac{(k-2)m}{k} \rfloor \), both have distance

$$\begin{aligned} |m-h|=\Big |h - \Bigl \lfloor \frac{(k-2)m}{k} \Bigr \rfloor \Big | = \frac{m+1}{k} \end{aligned}$$
(3.1)

to h.

The elements \(v_{2}\), \(v_{3}\), ..., \(v_{k}\) are all different from h and must therefore all lie in the interval \([0,\lfloor \frac{(k-2)m}{k} \rfloor ]\). Thus, by the pigeon hole principle there are two elements \(v_{i}\) and \(v_{j}\) with \(k \ge j>i \ge 2\) and distance \(|v_{i}-v_{j}|<\frac{m}{k}\). But this would mean that also \(|v_{1}-v_{j-i+1}|<\frac{m}{k}\), contradicting the minimal distance from h to another element given in (3.1). Thus, there can be no such progression.\(\square \)

Proof of Theorem 1.1

By Theorem 2.2 we can find a digit set D of size at least \(m(k-1)/(k+1)\) such that there is no arithmetic progression of length k in S(Dn) for \(n\in \mathbb {N}\) with \(|D|\mid n\). By (2.1) we find

$$\begin{aligned} |S(D,n)| \gg _{m,k} \frac{\bigl \lfloor \frac{k-1}{k+1}m + 1\bigr \rfloor ^{n}}{n^{\lfloor \frac{k-1}{k+1}m\rfloor /2}}. \end{aligned}$$

If \(|D| \not \mid n\), say \(n = |D|q+r\) and \(1 \le r < |D|\), we can embed the set \(S(D,n-r)\) into \(\mathbb {Z}_{m}^{n}\) by simply putting zeroes in the last r coordinates. The image does not contain any arithmetic progressions and is also of size

$$\begin{aligned} |S(D,n-r)| \gg _{m,k} \frac{\bigl \lfloor \frac{k-1}{k+1}m + 1\bigr \rfloor ^{n}}{n^{\lfloor \frac{k-1}{k+1}m\rfloor /2}}, \end{aligned}$$

as claimed.\(\square \)

Theorem 1.2 can be proven analogously, as a conclusion of Theorem 2.3.

4 Finding admissible digit sets

In this section, we present approaches to find admissible digit sets. In general, we are not able to strengthen the bounds given in Theorems 1.1 and 1.2. However, we can improve the bounds for small primes by using computer power and applying the following method. See also Table 1.

Most of the ideas given in this section can also be found in [4], where the authors use similar techniques for capset constructions.

4.1 Modelling the problem

As already seen in the previous section, the described construction relies on finding large digit sets \(D\subseteq \mathbb {Z}_p\) such that S(Dn) does not contain arithmetic progressions for all dimensions \(n\in \mathbb {N}\) with \(|D|\mid n\). For this purpose, let \(k\ge 3\) be the progression length and let p be a prime. Moreover, let \(P_k(D)\subseteq D^k\) be the set of non-trivial k-term arithmetic progressions in D. Assume that there are k points in S(Dn) which form an arithmetic progression for some \(n\in \mathbb {N}\). For each progression \(v = (v_1,\ldots ,v_k)\in P_k(D)\), let \(x_{v}\) be a variable which counts the occurrences of v in the components of these k points. Due to the fact that each digit \(d\in D\) has to occur the same number of time in each of the k points, the equation

$$\begin{aligned} \sum _{\begin{array}{c} v\in P_k(D)\\ v_{i} = d \end{array}}x_{v} = \sum _{\begin{array}{c} v\in P_k(D)\\ v_{j} = d \end{array}}x_{v} \end{aligned}$$
(4.1)

has to hold for each digit \(d\in D\) and for any pair (ij) with \(1\le i < j \le k\).

It is easy to check that the non-existence of a non-negative non-trivial integral solution \((x_{v}\mid v\in P_k(D))\) of the system of equations given in (4.1) is equivalent to the non-existence of a k-term arithmetic progression in S(Dn). Hence, if we want to prove the admissibility of some digit set D, we have to ensure that the set \(\mathcal {P}(D) = \{x\in \mathbb {Z}_{\ge 0}^{\ell }\,\vert \,\mathopen {}Ax=0\}\) only contains the zero vector, where the system of linear equations \(Ax = 0\) describes the equations stated in (4.1). If we want to show that a digit set is not admissible, on the other hand, then we have to find a non-negative non-trivial solution of \(Ax = 0\). This solution directly corresponds to a k-term arithmetic progression in S(Dn), for infinitely many dimensions n.

Both can be achieved by methods of integer linear programming. Unfortunately, the problem of deciding if a polyhedron contains an integral point is computationally hard and in general NP-complete [6]. This indicates that checking this condition for all possible digit sets modulo p can only be done for small p—and has been done for primes \(5 \le p \le 31\) and progression length \(3\le k \le 8\), as Table 1 indicates.

4.2 Reducibility as a sufficient condition

Next, we briefly describe a technique which allows showing admissibility in a computationally simple and comprehensible way. For some fixed digit set D and the corresponding constraint matrix A as mentioned above, let B be a fixed matrix which is equivalent to A in the sense that there exists an invertible matrix T such that \(TA = B\). This certainly implies \(\{x\in \mathbb {Z}_{\ge 0}^{\ell }\,\vert \,\mathopen {}Ax=0\} = \mathcal {P}(D) = \{x\in \mathbb {Z}_{\ge 0}^{\ell }\,\vert \,\mathopen {}Bx=0\}\).

Remember that we want to show the emptiness of \(\mathcal {P}(D)\). Therefore, if some non-zero row i of B only contains non-negative or non-positive entries, then it clearly follows that the variables corresponding to non-zero entries of this row have to be zero. This is because we are looking for non-negative solutions x of \(B x = 0\), and if the said variables were non-zero, then the equation corresponding to row i of B would not have such a solution.

Consequently, we remove those columns of B which belong to these variables, i.e., columns of B with non-zero entry in row i, and then proceed with the remaining matrix and the next non-negative or non-positive row. The deletion of columns possibly brings out new non-negative or non-positive rows. The process determines if no non-negative or non-positive non-zero row is left in the matrix. If at the end all columns of B are deleted—which means that all variables \(x_i\) have to be zero and that this is the only non-negative integral solution—, then the digit set D is admissible.

Two very natural choicesFootnote 1 for the initial matrix B are \(B = A\) and \(B = A_{\textrm{ech}}\), where \(A_{\textrm{ech}}\) denotes the reduced row echelon form of A. It turns out that these choices are not only intuitive but also very successful and good enough for our purpose: We were able to verify 50 of the 54 bounds given in Table 1 using them; see Appendix B. One comprehensible example with a different choice of B can be found in Appendix A.