Journal of Combinatorial Optimization

, Volume 35, Issue 2, pp 341–349

# Arcs in $$\mathbb Z^2_{2p}$$

Open Access
Article

## Abstract

An arc in $$\mathbb Z^2_n$$ is defined to be a set of points no three of which are collinear. We describe some properties of arcs and determine the maximum size of arcs for some small n.

## Keywords

No-three-in-line problem Arc Collinearity

05B99

## 1 Introduction

The no-three-in-line problem is an old question (see Dudeney 1917) which asks for the maximum number of points that can be placed in the $$n \times n$$ grid with no three points collinear. This question has been widely studied (see Erdös 1951; Flammenkamp 1992, 1998; Guy and Kelly 1968; Hall et al. 1975), but is still not resolved.

In this paper we consider the no-three-in-line problem over the $$\mathbb Z_n^2$$. This modified problem is still interesting and was investigated in Huizenga (2006), Kurz (2009) and Misiak et al. (2016). Many authors considered arcs in the context of projective geometry, see e.g. Bose (1947), Segre (1955) and Hirschfeld (1979) for further reference, and in a context of Hjelmslev geometry, see e.g. Honold and Landjev (2001), Honold and Landjev (2005), Kiermaier et al. (2011) and Kleinfeld (1959) for definition of abstract Hjelmslev plane.

Four integers abuv with $$\gcd (u,v)\!=\!1$$ correspond to the line $$\{(a+u k, b+v k):k\in \mathbb Z\}$$ on $$\mathbb Z^2$$. We define lines in $$\mathbb Z^2_n$$ to be images, by natural projection, of lines in the $$\mathbb Z^2$$ (see Misiak et al. 2016). We say that points $$a_1,\ldots ,a_k$$ are in line on $$\mathbb Z^2_n$$ (or collinear) if there exists a line l in $$\mathbb Z^2_n$$ such that $$a_1,\ldots ,a_n\in l$$. We would like to remark that one could also define a line as a coset of a (maximal) cyclic subgroup of $$\mathbb Z^2_n$$ (see Huizenga 2006; Kurz 2009).

If $$n=p$$ is a prime the resulting space is just $$\mathrm {AG}(2,p)$$ where every two distinct lines intersect in either 0 or 1 point. In contrast, for arbitrary n it may happen that two distinct lines meet each other in more than a single point.

We call $$X\subset \mathbb Z^2_n$$ an arc if it does not contain any three collinear points, and we call X complete if it is maximal with respect to the set-theoretical inclusion. We denote by $$\uptau (\mathbb Z^2_n)$$ the maximum possible size of an arc in $$\mathbb Z^2_n$$.

Kurz (2009) uses the integer linear programming to determine numbers $$\uptau (\mathbb Z^2_n)$$. He identifies values of $$\uptau (\mathbb Z^2_n)$$ for $$n \le 21$$ and, after transformations, the value of $$\uptau (\mathbb Z^2_{25})$$ (see also Kiermaier et al. 2011 for this case). We were interested in finding the lacking values of $$\uptau (\mathbb Z^2_{22})$$ and $$\uptau (\mathbb Z^2_{24})$$. Our first try was using the mathematical programming solver Gurobi. We succeed with computing $$\uptau (\mathbb Z^2_{24})$$ but were not able to determine $$\uptau (\mathbb Z^2_{22})$$ in this way. Therefore, we investigated some properties of arcs in $$\mathbb Z^2_{2p}$$ for p prime, which allowed us to compute $$\uptau (\mathbb Z^2_{22})$$.

We will use the following notation. Denote by $$\pi _n$$ the natural projection from $$\mathbb Z$$ to $$\mathbb Z_n$$. If the context is clear, we omit the index n. For $$u=(u_x,u_y)$$ we write $$\pi (u)$$ for $$(\pi (u_x), \pi (u_y))$$. If p|n then by $$\phi _p$$, we denote the projection $$\phi _p:\mathbb Z_n \rightarrow \mathbb Z_p$$ defined by $$\phi _p \circ \pi _n = \pi _p$$. Similarly, we write $$\phi _p(u)$$ for $$(\phi _p(u_x), \phi _p(u_y))$$.

By automorphism of $$\mathbb Z_{n}^{2}$$ we mean mapping from $$\mathbb Z_{n}^{2}$$ to $$\mathbb Z_{n}^{2}$$ which preserves arcs. The group formed by these elements is denoted by $$\mathcal G_{n}.$$ Let $$GL_{2}(\mathbb Z_{2p})$$ denote the group of invertible $$2\times 2$$ matrices with coefficients in $$\mathbb Z_{2p}$$. We denote by $$f_{A}$$ the automorphism of $$\mathbb Z^{2}_{2p}$$ corresponding to the matrix A. Another class of automorphisms are translations. In this paper $$t_{v}$$ denotes the translation by a vector v. More explicitly, $$t_{(v_x,v_y)}(u_x,u_y)=(u_x+v_x, u_y+v_y)$$.

By D(uvw) we denote
\begin{aligned} \begin{vmatrix} 1&1&1 \\ u_x&v_x&w_x \\ u_y&v_y&w_y \\ \end{vmatrix} \end{aligned}
where $$u=(u_x, u_y)$$, $$v=(v_x, v_y)$$ and $$w=(w_x, w_y)$$.

## 2 Basic facts

Recall that the maximum size m(2, q) of a complete arc in projective spaces $$\mathrm {PG}(2,q)$$ is known (see Bose 1947; Hirschfeld 1979):

### Theorem 2.1

$$m(2,q)=\left\{ \begin{array}{l} q+2\quad for\ q\ even,\\ q+1\quad for\ q\ odd.\\ \end{array}\right.$$

It is easy to see that m(2, q) is an upper bound for $$\tau (\mathbb {Z}_p^2)$$ in the case of a prime $$q=p$$. To establish the lower bound for $$\tau (\mathbb {Z}_p^2)$$, recall that there are arcs of $$\mathbb {Z}_p^2$$ of cardinality $$p+1$$ (see for instance Misiak et al. 2016 for more details). Therefore, the following lemma is true.

### Lemma 2.2

Let p be an odd prime, then $$\uptau \left( \mathbb Z^{2}_{p}\right) =p+1.$$

The following bound was proven in Kurz (2009).

### Lemma 2.3

$$\uptau \left( \mathbb Z^{2}_{mn}\right) \le \min \left\{ m\cdot \uptau \left( \mathbb Z^{2}_{n}\right) ,n\cdot \uptau \left( \mathbb Z^{2}_{m}\right) \right\}$$ for coprime integers $$m, n>1$$.

Recall the well-known test to check whether three points are collinear or not.

### Lemma 2.4

Points $$a, b, c \in \mathbb Z^2_p$$ for p prime are in a line if and only if $$D(a,b,c)=0$$.

The following lemma is adapted from Huizenga (2006).

### Lemma 2.5

Let $$N = m\cdot n$$ with coprime m and n. Then any three points in $$\mathbb Z^{2}_{N}$$ are collinear if and only if both projections onto $$\mathbb Z^2_m$$ and $$\mathbb Z^2_n$$ give a collinear point set.

### Theorem 2.6

Let $$p_1, p_2$$ be primes such that $$p_1 \ne p_2$$. Then points $$a, b, c \in \mathbb Z^2_{p_1 \cdot p_2}$$ are in a line if and only if $$D(a,b,c)=0$$.

### Proof

Assume that $$D(a,b,c)=0\in \mathbb Z_{p_1 \cdot p_2}$$. Consequently, $$D(\phi _{p_i}(a), \phi _{p_i}(b), \phi _{p_i}(c))=0\in \mathbb Z_{p_i}$$ and by Lemma 2.4 $$\phi _{p_i}(a), \phi _{p_i}(b), \phi _{p_i}(c)$$ are in a line on $$\mathbb Z^2_{p_i}$$ for $$i=1,2$$. By Lemma 2.5 abc are in a line on $$Z^2_{p_1 \cdot p_2}$$.

Conversely, assume that $$a,b,c\in \mathbb Z^2_{p_1 \cdot p_2}$$ are in a line. There exists $$A,B,C\in \mathbb Z^2$$ in a line such that $$\pi (A)=a$$, $$\pi (B)=b$$ and $$\pi (C)=c$$. Hence, $$D(A,B,C)=0\in \mathbb Z$$ and consequently $$D(a,b,c)=0\in \mathbb Z_{p_1 \cdot p_2}$$. $$\square$$

### Remark 2.7

Generally, zeroing of determinant is necessary but not sufficient for three points to be collinear. Let $$p^2|m$$ for some prime p. Then for the points (0, 0), (p, 0), (0, p) we have
\begin{aligned} \begin{vmatrix} 1&1&1 \\ 0&p&0 \\ 0&0&p\\ \end{vmatrix} = 0 \end{aligned}
but these point are not collinear.

## 3 Arcs in $$\mathbb Z^{2}_{2p}$$

### Theorem 3.1

We have $$\uptau \left( \mathbb Z^{2}_{2p}\right) \le 2p+2$$ and $$\uptau \left( \mathbb Z^{2}_{2p}\right) =2p+2$$ for $$p=3,5$$.

### Proof

It is an immediate consequence of Lemmas 2.3 and 2.2, Figs. 1 and 2. $$\square$$

### Remark 3.2

We conjecture that $$p=3$$ and 5 are the only values for which the equality holds.

Define the maps $$\alpha _{2} :\mathbb Z_{p}\rightarrow \mathbb Z_{2p},$$ and $$\alpha _{p} :\mathbb Z_{2}\rightarrow \mathbb Z_{2p}$$ by
\begin{aligned} \alpha _{2} (i+p\mathbb Z, j+p\mathbb Z)= & {} (2i+2p\mathbb Z, 2j+2p\mathbb Z), \\ \alpha _{p} (i+2\mathbb Z, j+2\mathbb Z)= & {} (pi+2p\mathbb Z, pj+2p\mathbb Z). \end{aligned}

### Theorem 3.3

Let X be a complete arc of $$\mathbb Z^{2}_{p}$$. Then $$\alpha _2(X)$$ is the complete arc of $$\mathbb Z^{2}_{2p}$$.

### Proof

Let X be a complete arc of $$\mathbb Z^2_p$$. Then $$\alpha _2(X)$$ is obviously the arc of $$\mathbb Z^2_{2p}$$. Let $$c\in \mathbb Z^{2}_{2p}$$. We will show that there are $$a,b\in \alpha _2(X)$$ such that abc are collinear.

Assume first that $$c\in \phi ^{-1}_2(0,0).$$ Then there is $$c'\in Z^{2}_{p}$$ such that $$\alpha _2(c')=c.$$ Since X is a complete arc then there exist $$a', b' \in X$$ such that $$a',b',c'$$ are collinear. By Theorem 2.4, $$D(a',b',c')=0\in \mathbb Z_{p}.$$ Then $$D(\alpha _2(a'),\alpha _2(b'),c)=0\in \mathbb Z_{2p}.$$ By Theorem 2.6, $$a=\alpha _2(a'),$$ $$b=\alpha _2(b'),$$ c are collinear.

Now assume that $$c\notin \phi ^{-1}_2(0,0).$$ Then there is $$v\in \left\{ \left[ 0,p\right] ,\left[ p,0\right] ,\left[ p,p\right] \right\}$$ such that $$t_{v}(c)\in \phi ^{-1}_2(0,0).$$ Hence the first part of the proof shows that there are $$a,b\in \alpha _2(X)$$ such that a, b, $$t_{v}(c)$$ are collinear (i.e. $$D(a,b,t_{v}(c))=0$$). Because $$\alpha _{2}(X)\subset \phi ^{-1}_{2}(0,0),$$ a straightforward calculation shows that $$D(a,b,c)=D(a,b,t_{v}(c))$$ for $$a,b\in \alpha _{2}(X).$$ Hence $$D(a,b,c)=0$$ and abc are collinear, by Theorem 2.6. This completes the proof. $$\square$$

### Lemma 3.4

Let X be a complete arc of $$\mathbb Z^{2}_{2}$$. Then $$\alpha _{p}(X)$$ is the complete arc of $$\mathbb Z^{2}_{2p}$$.

### Proof

Let X be a complete arc in $$\mathbb Z^{2}_{2}.$$ Then $$X=\mathbb Z^{2}_{2}$$ and $$\alpha _p(X)$$ is obviously the arc of $$\mathbb Z^2_{2p}$$. It is easy to check that for every $$c \in Z^{2}_{2p}$$ there is $$b\in \alpha _{p}(X)\backslash {(0,0)}$$ such that $$D((0,0),b,c)=0.$$ By Theorem 2.6, (0, 0),  bc are collinear. $$\square$$

The proof of the Theorem 3.9 takes up the rest of this section. We prepare for the proof by collecting together some useful technical results.

### Lemma 3.5

Let $$\sigma$$ be an arbitrary permutation of the set $$\mathbb Z^{2}_{2}$$. Then there is $$f\in \mathcal G_{2p}$$ such that $$\phi _{2}\circ f =\sigma \circ \phi _{2}.$$

### Proof

Let $$f_{A},$$ $$f_{B}$$ be linear transformations determined by matrices $$A=\begin{pmatrix} 1 &{} 0\\ 1 &{} 1\\ \end{pmatrix}$$, $$B=\begin{pmatrix} 0 &{} 1\\ 1 &{} 0\\ \end{pmatrix}$$, respectively. Note that the group of permutations of the set $$\mathbb Z^{2}_{2}$$ is generated by transpositions $$\sigma _{1}=\left( {\scriptstyle (0,0), (0,1)}\right)$$, $$\sigma _{2}=\left( {\scriptstyle (0,1), (1,0)}\right)$$, $$\sigma _{3}=\left( {\scriptstyle (1,0), (1,1)}\right)$$.

One can verify by a straightforward calculation that $$\phi _{2}\circ f_{A}\circ t_{\left[ 1,1\right] }=\sigma _{1}\circ \phi _{2}$$, $$\phi _{2}\circ f_{B}=\sigma _{2}\circ \phi _{2}$$ and $$\phi _{2}\circ f_{A}=\sigma _{3}\circ \phi _{2}$$. $$\square$$

### Lemma 3.6

Let $$X\subset \mathbb Z^{2}_{2p}$$ be an arc. If $$\left| \phi _2\left( X\right) \right| \le 2$$, then $$|X|\le p+1.$$

### Proof

The condition $$\left| \phi _2\left( X\right) \right| \le 2$$ means that $$\phi _2\left( X\right)$$ is collinear in $$\mathbb Z^{2}_{2}.$$ Since X is an arc then, by Lemma 2.5, $$\phi _p\left( X\right) \subset \mathbb Z^{2}_{p}$$ is an arc and $$|\phi _p\left( X\right) |=|X|$$. By Lemma 2.2, $$|X|\le p+1.$$ $$\square$$

### Lemma 3.7

Let $$X\subset \mathbb Z^{2}_{2p}$$ be an arc and $$a\in X$$. If $$t_{v}(a)\in X$$ for some $$v\in \left\{ \left[ 0,p\right] ,\left[ p,0\right] ,\left[ p,p\right] \right\} ,$$ then $$|X|\le p+3.$$

### Proof

Consider first the case that $$v=[0,p].$$ Let $$l_0=\pi (L_{0})$$ and $$l_1=\pi (L_{1})$$ denote the lines in $$\mathbb Z^{2}_{2}$$, where $$L_0$$ and $$L_1$$ are given by the equations $$x=0$$, $$x=1$$, respectively. Assume without loss of generality that $$a\in \phi _2^{-1}\left( l_{0}\right) .$$ A straightforward calculation shows that $$D(a,t_{[0,p]}(a),b)=0$$ for all $$b\in \phi _2^{-1}\left( l_{0}\right) .$$ Hence, by Theorem 2.6, $$X\subseteq \left( \phi _2^{-1}\left( l_{1}\right) \cup \left\{ a,t_{[0,p]}(a)\right\} \right) .$$ The same argument as in Lemma 3.6 shows that $$\left| X\cap \phi _2^{-1}\left( l_{1}\right) \right| \le p+1.$$ The remaining two cases are dealt with similarly. $$\square$$

### Lemma 3.8

Let $$(a_{x},a_{y})\in \mathbb Z^{2}_{2p}$$ and $$a_{y}$$ is invertible in $$\mathbb Z_{2p}.$$ If $$a_{y}b_{x}^{1}-b_{y}^{1}a_{x}=a_{y}b_{x}^{2}-b_{y}^{1}a_{x}=a_{y}b_{x}^{3}-b_{y}^{1}a_{x}=A$$ then $$b^{1},$$ $$b^{2},$$ $$b^{3}$$ are on line.

### Proof

We have
\begin{aligned} D\left( b^{1},b^{2},b^{3}\right) = a_{y}^{-1} D\Big (\left( A,b_{y}^{1}\right) , \left( A,b_{y}^{2}\right) , \left( A,b_{y}^{3}\right) \Big )=0.\\ \end{aligned}
The result now follows from Theorem 2.6. $$\square$$

### Theorem 3.9

Let $$p\ge 5$$ and $$X\subset \mathbb Z^{2}_{2p}$$ be an arc. If $$|X|>p+3$$, then there is $$f\in \mathcal G_{2p}$$ such that (0, 0),  (1, 0),  $$(0,1)\in f(X).$$

### Proof

By Lemmas 3.6 and 3.5 we may assume that $$\phi _2^{-1}\left( 0,0\right) \cap X \ne \emptyset ,$$ $$\phi _2^{-1}\left( 0,1\right) \cap X \ne \emptyset$$ and $$\phi _2^{-1}\left( 1,0\right) \cap X\ne \emptyset .$$ Since $$|X|>8$$ we may assume that $$|\phi _2^{-1}\left( 1,0\right) \cap X|\ge 3,$$ by Lemma 3.5. We may also assume that $$(0,0)\in X$$. For if not, then we may translate X by a vector $$[-u,-v]$$ for some $$(u,v)\in \phi _2^{-1}\left( 0,0\right) \cap X$$. Let $$(a_{x},a_{y}) \in \phi _2^{-1}\left( 0,1\right) \cap X.$$ Then possibilities for $$a_{y}$$ are: (i) $$a_{y}=p,$$ (ii) $$a_{y}$$ is invertible in $$\mathbb Z_{2p}.$$

In the case (i), the assumption that $$|X|>p+3$$ and by Lemma 3.7 imply that $$a_{x}\ne 0.$$ Hence $$a_{x}b_{y}-b_{x} a_{y}\ne p$$ for all $$(b_{x},b_{y}) \in \phi _2^{-1}\left( 1,0\right) \cap X.$$

In the case (ii), the assumption that $$|\phi _2^{-1}\left( 1,0\right) \cap X|\ge 3$$ and Lemma 3.8 imply that there is $$(b_{x},b_{y}) \in \phi _2^{-1}\left( 1,0\right) \cap X$$ such that $$a_{x}b_{y}-b_{x} a_{y}\ne p.$$

In both cases, there is $$(b_{x},b_{y})\in \phi _2^{-1}\left( 1,0\right) \cap X$$ such that $$a_{x}b_{y}-b_{x} a_{y}$$ is invertible in $$\mathbb Z_{2p}.$$ Then the map $$f_{A}$$ with matrix $$A=\frac{1}{a_{x}\cdot b_{y}-b_{x}\cdot a_{y}}\begin{pmatrix} b_{y} &{} -b_{x}\\ -a_{y} &{} a_{x} \\ \end{pmatrix}$$ maps
\begin{aligned} (a_{x},a_{y})\longrightarrow (1,0), \\ (b_{x},b_{y})\longrightarrow (0,1), \\ (0,0)\longrightarrow (0,0). \end{aligned}
$$\square$$

## 4 Numerical results

Computing $$\uptau (\mathbb Z^2_{24})$$ was quite easy. We used the mathematical programming solver Gurobi. After expanding 12946227 nodes (602109089 simplex iterations) the solver found the solution depicted in Fig. 3. On the other hand, using the solver to compute $$\uptau (\mathbb Z^2_{22})$$ was not successful.
Consequently, we used a more direct approach. For finding the value of $$\uptau (\mathbb Z^2_{2p})$$ we implemented backtracking search algorithm depicted in Fig. 4. Figures 2, 5 and 6 show results of our search. Note that it is easy to find these complete arcs. The difficult part is showing that there are no bigger ones.
Table 1

Values for $$\uptau (\mathbb Z_m)$$

 m 4 6 8 9 10 12 14 15 16 18 20 21 22 24 25 $$\uptau (m)$$ 6 8 8 9 12 12 12 15 14 17 18 18 18 20 20
Table 2

Bounds for $$\uptau (\mathbb Z_m)$$

 m 26 27 28 30 32 33 34 35 36 38 39 40 $$\uptau (m)$$ 20–28 20–28 22–32 23–30 23–35 23–36 22–36 26–40 25–36 23–40 25–42 26–40
Table 3

Examples of arcs

m

k

An arc of cardinality k over $$\mathbb Z^2_{m}$$

26

20

(0, 16) (0, 25) (2, 19) (2, 22) (4, 4) (4, 20) (5, 4) (7, 22) (8, 10) (9, 0) (11, 7) (13, 18) (13, 23) (15, 11) (16, 23) (18, 7) (21, 0) (22, 9) (25, 9) (25, 11)

27

20

(0,1) (0, 9) (2, 0) (2, 1) (3, 3) (6, 3) (6, 11) (7, 10) (13, 9) (13, 24) (15, 22) (16, 14) (16, 16) (18, 8) (20, 4) (20, 6) (21, 10) (23, 2) (23, 5) (25, 8)

28

22

(0, 21) (1, 22) (4, 23) (9, 13) (10, 7) (11, 8) (11, 17) (14, 22) (14, 27) (15, 20) (15, 23) (16, 14) (17, 2) (17, 20) (22, 12) (23, 17) (25, 4) (25, 7) (26, 12) (26, 13) (27, 2) (27, 18)

30

23

(4, 12) (5, 12) (5, 15) (6, 1) (6, 8) (7, 5) (7, 18) (9, 3) (13, 4) (13, 15) (14, 25) (17, 14) (18, 27) (19, 1) (19, 14) (20, 11) (20, 18) (21, 4) (21, 7) (22, 2) (23, 23) (26, 10) (27, 6)

32

23

(1, 22) (3, 13) (4, 15) (5, 12) (5, 22) (6,0) (6, 26) (7, 16) (11, 15) (12, 8) (14, 1) (16, 29) (16, 31) (18, 8) (19, 18) (24, 26) (25, 12) (26, 2) (26, 19) (28, 13) (29, 31) (31, 21) (31, 23)

33

23

(3, 7) (5, 22) (9, 15) (10, 27) (12, 7) (12, 26) (15, 27) (17, 25) (17, 26) (19, 10) (21, 0) (22, 5) (22, 32) (23, 5) (25, 12) (28, 0) (29, 9) (29, 21) (30, 22) (30, 23) (31,8) (31,31) (32,32)

34

22

(4,1) (4,19) (7,4) (7,8) (9,8) (12,7) (12,27) (16,3) (16, 12) (17, 11) (18, 0) (18, 14) (19, 10) (25, 5) (25, 19) (27, 30) (28, 30) (30, 10) (31, 3) (31, 13) (33, 2) (33, 7)

35

26

(0, 6) (6, 1) (6, 18) (8, 26) (9, 19) (9, 20) (12, 25) (17, 8) (17, 17) (18, 33) (19, 16) (19, 29) (21, 30) (23, 2) (23, 4) (25, 18) (25, 34) (26, 19) (27, 6) (29, 2) (30, 7) (30, 10) (31, 32) (32, 24) (33, 20) (34, 33)

36

25

(5, 24) (6, 9) (6, 32) (9, 25) (11, 24) (12, 21) (15, 7) (15, 13) (16, 2) (16, 25) (17, 30) (19, 27) (20, 35) (22, 1) (24, 8) (25, 9) (25, 15) (28, 32) (29, 4) (30, 2) (30, 27) (34, 19) (34, 26) (35, 4) (35, 18)

38

23

(1, 1) (6, 26) (6, 31) (7, 10) (7, 17) (8, 16) (8, 24) (9, 12) (10, 15) (10, 33) (11, 0) (11, 9) (12, 28) (14, 7) (16, 9) (21, 6) (21, 22) (23, 3) (26, 15) (26, 16) (33, 6) (33, 31) (35, 7)

39

25

(0, 12) (0, 31) (1, 9) (4, 13) (4, 32) (5, 10) (6, 14) (7, 32) (8, 0) (9, 33) (11, 11) (11, 14) (12, 30) (13, 30) (14, 1) (14, 24) (17, 2) (18, 17) (20, 10) (21, 38) (22, 9) (23, 33) (28, 4) (28, 37) (33, 28)

40

26

(0, 1) (0, 10) (1, 0) (2, 6) (3, 8) (3, 11) (4, 15) (7, 0) (7, 12) (9, 21) (10, 29) (10, 32) (11, 34) (12, 21) (21, 18) (23, 25) (24, 14) (26, 27) (29, 38) (32, 28) (32, 29) (33, 27) (36, 8) (38, 6) (39, 19) (39, 37)

To limit searching space we made some optimizations. Thanks to Theorem 3.9 we start with the set (0, 0), (1, 0), (0, 1) (lines 29–31). Since the initial set is symmetric, after checking the fourth point (xy) (line 34) we can exclude (yx) from further search (line 35 and 36). After choosing a point (xy) (line 3 and 4) we can also exclude points $$t_{[p,0]}(a)$$, $$t_{[0,p]}(a)$$ and $$t_{[p,p]}(a)$$ from further search (lines 8–11 and Lemma 3.7). The program presented here is simplified, the real computations were performed in parallel.

For reference we present in Table 1 all known values of $$\uptau (\mathbb Z^2_m)$$ for nonprime m (bold numbers are computed by us). Recall that $$\uptau (\mathbb Z^2_2)=4$$ and $$\uptau (\mathbb Z^2_p)=p+1$$ for primes $$p>2$$. We also attach a table with some lower and upper bounds for non-prime $$26\le n\le 40$$ found by computer search or application of Lemma 2.3 (Table 2). Note that with the exception of $$n = 3^3$$ and $$n = 2^5$$, upper bounds are derived from Lemma 2.3. We were not able to improve them using numerical computations. The corresponding examples for the lower bounds can be found in Table 3.

## Notes

### Acknowledgements

The authors are grateful to the reviewer whose valuable suggestions resulted in a better organized and improved paper.

## References

1. Bose RC (1947) Mathematical theory of the symmetrical factorial design. Sankhya: Indian J Stat (1933–1960) 8(2):107–166
2. Dudeney HE (1917) Amusements in mathematics. Nelson, Edinburgh, p 94, 222Google Scholar
3. Erdös P (1951) Appendix, in K.F. Roth, on a problem of Heilbronn. J Lond Math Soc 26:198–204Google Scholar
4. Flammenkamp A (1992) Progress in the no-three-in-line problem. J Combin Theory Ser A 60(2):305–311
5. Flammenkamp A (1998) Progress in the no-three-in-line problem II. J Combin Theory Ser A 81(1):108–113
6. Gurobi Optimizer 6.0.0 (2015). www.gurobi.com
7. Guy RK, Kelly PA (1968) The no-three-line problem. Math Bull 11:527–531
8. Hirschfeld JWP (1979) Projective geometries over finite fields. Clarendon Press, Oxford
9. Hall RR, Jackson TH, Sudbery A, Wild K (1975) Some advances in the no-three-in-line problem. J Combin Theory Ser A 18:336–341
10. Honold T, Landjev I (2001) On arcs in projective Hjelmslev planes. Discrete Math 231(1–3):265–278
11. Honold T, Landjev I (2005) On maximal arcs in projective Hjelmslev planes over chain rings of even characteristic. Finite Fields Appl 11(2):292–304
12. Huizenga J (2006) The minimum size of complete caps in $$(\mathbb{z}/n\mathbb{z})^2$$. Electron J Combin 13(1). Research Paper 58, p 19Google Scholar
13. Kiermaier M, Koch M, Kurz S (2011) 2-arcs of maximal size in the affine and the projective Hjelmslev plane over Z25. Adv Math Commun 5(2):287–301
14. Kleinfeld E (1959) Finite Hjelmslev planes. Illinois J Math 3:403–407
15. Kurz S (2009) Caps in $$\mathbb{Z}_n^2$$. Serdica J Comput 3:159–178
16. Misiak A, Stȩpień Z, Szymaszkiewicz A, Szymaszkiewicz L, Zwierzchowski M (2016) A note on the no-three-in-line problem on a torus. Discrete Math 339:217–221
17. Segre B (1955) Ovals in a finite projective plane. Canad J Math 7:414–416