seating couples and tic-tac-toe - eötvös loránd...

34
Seating couples and Tic-Tac-Toe Master’s Thesis Written by: Tamás Róbert Mezei MSc Mathematics Supervisor Dömötör Pálvölgyi, assistant professor Department of Computer Science Eötvös Loránd University, Faculty of Science Eötvös Loránd University Faculty of Science Budapest, 2013

Upload: others

Post on 27-Mar-2020

4 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Seating couples and Tic-Tac-Toe - Eötvös Loránd Universityweb.cs.elte.hu/blobs/diplomamunkak/msc_mat/2013/mezei_tamas_robert.pdf · Seating couples and Tic-Tac-Toe Master’s Thesis

Seating couples and Tic-Tac-Toe

Master’s Thesis

Written by:

Tamás Róbert Mezei

MSc Mathematics

Supervisor

Dömötör Pálvölgyi, assistant professor

Department of Computer ScienceEötvös Loránd University, Faculty of Science

Eötvös Loránd University

Faculty of Science

Budapest, 2013

Page 2: Seating couples and Tic-Tac-Toe - Eötvös Loránd Universityweb.cs.elte.hu/blobs/diplomamunkak/msc_mat/2013/mezei_tamas_robert.pdf · Seating couples and Tic-Tac-Toe Master’s Thesis

Acknowledgment

I would like to thank my supervisor, Dömötör Pálvölgyi, for introducing me toCombinatorial Game theory and for the many hours he spent with me thinking

about mathematics.

I am also thankful for my family for encouraging me to try to create something new.

Page 3: Seating couples and Tic-Tac-Toe - Eötvös Loránd Universityweb.cs.elte.hu/blobs/diplomamunkak/msc_mat/2013/mezei_tamas_robert.pdf · Seating couples and Tic-Tac-Toe Master’s Thesis

Contents

Contents

1 Introduction 1

2 Partitioning Z2p into pairs of prescribed differences 2

2.1 Preliminaries . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22.2 The main theorem . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52.3 Connections to Snevily’s conjecture . . . . . . . . . . . . . . . . . . . . 8

3 Applying Theorem 2.4 to the Tic-Tac-Toe game on Zd 11

3.1 Positional Games . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 113.2 Tic-Tac-Toe on the integer lattice with numerous directions . . . . . . . 123.3 Sharpness and auxiliary statements . . . . . . . . . . . . . . . . . . . . 17

4 Simple and small cases 20

4.1 Linearly independent winning directions . . . . . . . . . . . . . . . . . 204.2 Case of n = 2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 214.3 Case of n = 3 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21

5 Conjectures 25

Bibliography 29

Page 4: Seating couples and Tic-Tac-Toe - Eötvös Loránd Universityweb.cs.elte.hu/blobs/diplomamunkak/msc_mat/2013/mezei_tamas_robert.pdf · Seating couples and Tic-Tac-Toe Master’s Thesis

Chapter 1: Introduction 1

Chapter 1

Introduction

The purpose of this thesis is to achieve new results in Combinatorial Game theory.While writing this thesis, it was also our goal to keep it as self-contained as possible.

In Chapter 2 we prove a variant of the “Seating couples” problem. We later use thistheorem in Chapter 3 to prove a sharp result in Combinatorial Game theory (orTic-Tac-Toe theory). We solve the generalized Tic-Tac-Toe game when there are atmost 3 winning directions in Chapter 4. Finally Chapter 5 contains a bouquet ofconjectures and unsolved problems, which if proven true would greatly benefit theinvestigation of the problems that are analyzed in this thesis.

A note on citation

Statements of theorems and lemmas are always cited unless they are the work of theauthor (of this thesis). If a proof is not cited but the corresponding statement is, thenthe proof and the statement are from the same author.

Page 5: Seating couples and Tic-Tac-Toe - Eötvös Loránd Universityweb.cs.elte.hu/blobs/diplomamunkak/msc_mat/2013/mezei_tamas_robert.pdf · Seating couples and Tic-Tac-Toe Master’s Thesis

Chapter 2: Partitioning Z2p into pairs of prescribed differences 2

Chapter 2

Partitioning Z2p into pairs of

prescribed differences

The need for finding p−12

disjoint pairs of prescribed differences in Zp arises in [MP10].Recently, this was shown to be possible for any subset of (non-zero) distances inde-pendently in [PM09] and [KP12]. Roland Bacher, who posed the problem, also gavea conjecture on generalizing the problem to (odd) finite cyclic groups [Bac08]. In[KP12], the authors discuss a possible way to tackle this generalized problem usingthe Combinatorial Nullstellensatz [Alo99] and ideas from [DKSS01]. We are going touse a similar approach to prove the conjecture for Z2p, where p is and odd prime.

2.1 Preliminaries

Theorem 2.1 (Combinatorial Nullstellensatz [Alo99]). Let F be a field and f a poly-nomial in F[x1, . . . , xn]. Suppose that deg(f) =

∑ni=1 ti, where ti are non-negative in-

tegers, and that the coefficient of∏n

i=1 xtii in f is non-zero. If Si ⊆ F and |Si| ≥ ti+1

for all i = 1, . . . , n, then there exists an (s1, . . . , sn) ∈ S1 × . . . × Sn, wheref(s1, . . . , sn) 6= 0.

Proof. ([SM10]) The proof is by induction on∑n

i=1 ti. If∑n

i=1 ti = 0, then f ≡ c,where c 6= 0, since it is the main coefficient, so f is nowhere zero on S1 × . . .× Sn.

Page 6: Seating couples and Tic-Tac-Toe - Eötvös Loránd Universityweb.cs.elte.hu/blobs/diplomamunkak/msc_mat/2013/mezei_tamas_robert.pdf · Seating couples and Tic-Tac-Toe Master’s Thesis

Chapter 2: Partitioning Z2p into pairs of prescribed differences 3

If∑n

i=1 ti > 0, we can assume without loss of generality that t1 > 0. Let a ∈ S1, andwe divide f by x1 − a as polynomial of x1:

f(x1, . . . , xn) = (x1 − a) · g(x1, . . . , xn) + h(x2, . . . , xn),

where h is independent from x1 and in g the coefficient of the monomial xt1−11 xt22 · · ·xtnnis nonzero.

If there exists an (s2, . . . , sn) ∈ S2 × . . . × Sn such that h(s2, . . . , sn) 6= 0, thenf(a, s2, . . . , sn) = (a − a) · g(a, s2, . . . , sn) + h(s2, . . . , sn) = h(s2, . . . , sn) 6= 0, so weare done in this case.

On the other hand, if h is everywhere zero on S2 × . . . × Sn, we use induction ong(x1, . . . , xn) and the sets S1 \ {a}, S2, S3, . . . , Sn to obtain a vector (s1, s2, . . . , sn) ∈S1 \ {a} × S2 × S3 × . . .× Sn where g does not vanish. Then

f(s1, . . . , sn) = (s1 − a) · g(s1, . . . , sn) + h(s2, . . . , sn) = (s1 − a) · g(s1, . . . , sn) 6= 0.

We will also use the Cauchy-Davenport theorem, whose proof is a classical applicationof the Combinatorial Nullstellensatz, which has numerous extensions, see for example[EK07, KMR11].

Theorem 2.2 (Cauchy-Davenport). If p is a prime and A, B are two nonemptysubsets of Zp, then

|A+B| ≥ min {p, |A|+ |B| − 1} .

Proof. ([Alo99]) If |A|+ |B| ≥ p+ 1, then A ∩ {g − b | b ∈ B} 6= ∅ by the pigeonholeprinciple for any g ∈ Zp, so there exist an a ∈ A and b ∈ B such that a = g − b.

If p ≥ |A|+ |B|, suppose for a contradiction that |A+ B| ≤ |A|+ |B| − 2. Thereforethere exists a subset C ⊆ Zp such that A+B ⊆ C and |C| = |A|+ |B| − 2. Considerthe polynomial

f(x, y) =∏c∈C

(x+ y − c),

which vanishes on A × B. The degree of f is |A| + |B| − 2, and the coefficient ofx|A|−1y|B|−1 is

(|A|+|B|−2|A|−1

), which is nonzero, since both |A| + |B| − 2 and |A| − 1 are

less than p. The Combinatorial Nullstellensatz provides an (a, b) ∈ A × B where fdoes not vanish, hence we reached a contradiction.

Page 7: Seating couples and Tic-Tac-Toe - Eötvös Loránd Universityweb.cs.elte.hu/blobs/diplomamunkak/msc_mat/2013/mezei_tamas_robert.pdf · Seating couples and Tic-Tac-Toe Master’s Thesis

Chapter 2: Partitioning Z2p into pairs of prescribed differences 4

Unfortunately, the extensions of the Combinatorial Nullstellensatz to commutativeunitary rings have additional conditions [KR12, Mez11, KMR11]. Moreover, the maincoefficient can easily become 0 if it is the product of non-invertible elements. Theeasiest way to get around this problem is to embed the additive group (of the ring)into the multiplicative group of a field. For this purpose, we are going to use thefollowing lemma:

Lemma 2.3 ([DKSS01, p. 3]). Let k > 1 be an integer, c1, c2, . . . , ck ∈ C andS1, . . . , Sk ⊂ C, with |Si| ≥ k for all i. If the permanent of the Vandermonde-matrixV (c1, c2, . . . , cn) is non-zero, then there exists (s1, s2, . . . , sk) ∈ S1 × S2 × · · · × Sksuch that if i 6= j then si 6= sj and cisi 6= cjsj (1 ≤ i, j ≤ k).

Proof. Let us consider the following polynomial:

f(x1, . . . , xn) =∏

1≤i<j≤k

(xi − xj) ·∏

1≤i<j≤k

(cixi − cjxj).

It is easy to see that deg f = 2(k2

)= k(k − 1). Let ti = k − 1, then |Si| > ti. We

want to prove that f takes a non-zero value somewhere on S1 × S2 × · · ·Sk. In orderto complete the proof, we only have to apply the Combinatorial Nullstellensatz to f ,and verify that the coefficient of

∏ki=1 x

k−1i in f is non-zero.

By expanding the formula for f we have

f(x1, . . . , xk) =

(∑σ

sgn(σ)k∏i=1

xσ(i)i

(∑τ

sgn(τ)k∏i=1

(cixi)τ(i)

).

We only get the desired monomial from the product of the two sums if we choose sucha σ and τ that σ(i) + τ(i) = k − 1 for all i. Let N(τ) be the number of inversions inτ . Since σ(i) = k− 1− τ(i), the number of inversion in σ is

(k2

)−N(τ). Therefore we

have that sgn(σ) · sgn(τ) = (−1)(k2), if the product of the monomials corresponding

to σ and τ is∏k

i=1 xk−1i .

For every τ permutation we have exactly one suitable σ, so the coefficient of∏k

i=1 xk−1i

in f is

(−1)(k2)∑τ

k∏i=1

cτ(i)i = (−1)(

k2)PerV (c1, c2, . . . , ck),

which is by the assumptions of the lemma non-zero.

Page 8: Seating couples and Tic-Tac-Toe - Eötvös Loránd Universityweb.cs.elte.hu/blobs/diplomamunkak/msc_mat/2013/mezei_tamas_robert.pdf · Seating couples and Tic-Tac-Toe Master’s Thesis

Chapter 2: Partitioning Z2p into pairs of prescribed differences 5

2.2 The main theorem

The main result of this chapter is the following theorem. It is closely related to themain theorem of [PM09] (aka the “Seating couples problem”).

Theorem 2.4 (Seating couples). Let p be a prime. Suppose we are given p elementsd1, d2, . . . , dp ∈ Z2p, where di is odd for all i = 1, 2, . . . , p, and with at most oneexception di 6= p. Then we can partition Z2p into pairs with differences d1, d2, . . . , dp.

In fact, we are going to prove a slightly stronger theorem.

Theorem 2.5. Let p be an odd prime. Suppose we are given p elements d1, d2, . . . , dp ∈Z2p, where di is odd for all i = 1, 2, . . . , p. Then we can select 2p different numbersa1, a2, . . . , ap, b1, b2, . . . , bp ∈ Z2p such that all ai are even and all bi are odd, andai + di ≡ bi mod 2p for all i = 1, 2, . . . , p, if and only if

∑pi=1 di ≡ 0 mod p.

Proof. It is easy to see that the condition is necessary. The sum of the elements ofZ2p can be counted by summing over all ai, bi pairs:

0 + 1 + . . .+ 2p− 1 ≡p∑i=1

(ai + bi) ≡p∑i=1

(2ai + di) (mod 2p)(2p

2

)≡ 4

(p

2

)+

p∑i=1

di (mod 2p)

p(2p− 1) ≡ 2p(p− 1) +

p∑i=1

di (mod 2p)

p ≡p∑i=1

di (mod 2p)

Since each di and p is odd, the last equation is equivalent to∑p

i=1 di ≡ 0 mod p.

Let us now prove that the previous condition is sufficient. Let ai be a permutation ofthe even elements of Z2p, and let bi = ai + di, which is an odd number. If bi are alldifferent elements of Z2p, then

⋃pi=1{ai, bi} would be a partitioning of Z2p into pairs.

We are going to work in the field of complex numbers. We identify Z2p with amultiplicative subgroup of C∗ which is generated by a primitive root of order 2p,for example ε = ei

πp . We want to apply Lemma 2.3. Let k = p, ci = εdi ,

Si ≡ S = {ε2j | j = 0, 1, . . . , p− 1}. If we can prove that PerV (εd1 , εd2 , . . . , εdp) is

Page 9: Seating couples and Tic-Tac-Toe - Eötvös Loránd Universityweb.cs.elte.hu/blobs/diplomamunkak/msc_mat/2013/mezei_tamas_robert.pdf · Seating couples and Tic-Tac-Toe Master’s Thesis

Chapter 2: Partitioning Z2p into pairs of prescribed differences 6

non-zero, the lemma would provide a suitable vector (εa1 , . . . , εapp ) ∈ Sp for which⋃p

i=1{εai} = S and⋃pi=1{εai+di} = {ε2j+1 | j = 0, 1, . . . , p − 1}. Since ε is a 2pth

primitive root, this is equivalent to⋃pi=1{ai, ai + di} being a partition of Z2p.

Now the only thing left for us to prove is that PerV (εd1 , εd2 , . . . , εdp) is non-zero. LetSym(p) be the set of all σ : {1, 2, . . . , p} → {0, 1, . . . , p−1} bijections. Expanding theformula for the permanent, we get

PerV (εd1 , εd2 , . . . , εdp) =∑

σ∈Sym(p)

p∏i=1

εσ(i)di =

2p−1∑j=0

rjεj, (2.1)

where

rj = |Rj| and Rj =

{σ ∈ Sym(p)

∣∣∣ p∑i=1

σ(i)di ≡ j (mod 2p)

}. (2.2)

Trivially,

2p−1∑i=0

ri = |Sym(p)| = p! (2.3)

We need to differentiate between two very similar cases to continue our analysis.

Case 1: p ≡ 1 mod 4.

We claim that r2j+1 = 0 (j = 0, . . . , p− 1). This follows from the fact that for a fixedσ, its values σ(i) take an odd number an even number of times, therefore

∑pi=1 σ(i)di

is even, since each di is odd.

Let us analyze the coefficient r2j now. We rewrite the congruence in (2.2):

p∑i=1

σ(i)(di − 1) ≡ 2j −(p

2

)≡ 2j − p · p− 1

2≡ 2j (mod 2p),

since p−12

is an even number. Now we can divide the congruence by 2.

p∑i=1

σ(i)di − 1

2≡ j (mod p). (2.4)

If j 6= 0, we can multiply (2.4) by any m which is relative prime to p to get a bijectionbetween the elements of Rj and Rmj:

p∑i=1

(mσ(i))di − 1

2≡ mj (mod p).

Page 10: Seating couples and Tic-Tac-Toe - Eötvös Loránd Universityweb.cs.elte.hu/blobs/diplomamunkak/msc_mat/2013/mezei_tamas_robert.pdf · Seating couples and Tic-Tac-Toe Master’s Thesis

Chapter 2: Partitioning Z2p into pairs of prescribed differences 7

Indeed, σ ←→ mσ is a bijection, because multiplication by m permutes the non-zero elements of Zp, since it is an invertible element. Thus we have r2j = r2k for allj, k = 1, 2, . . . , p− 1.

Furthermore, we claim that p divides r0. What happens if we multiply a σ ∈ R0 bythe full cycle permutation? Substituting into (2.4) and using the assumption of thetheorem we get

p∑i=1

(σ(i) + 1)di − 1

2≡ 0 +

p∑i=1

di − 1

2≡ 1

2

(p∑i=1

di − p

)≡ 0 (mod p).

Therefore, R0 contains the full orbits of its elements (on the action of the full cyclepermutation), which proves our claim.

All in all, we get by re-substituting into (2.1) that

PerV (εd1 , εd2 , . . . , εdp) = r0 +

p−1∑j=1

r2(ε2)j = r0 − r2.

Suppose for a contradiction, that r0 = r2. Therefore we have using (2.3) that

p · r0 = r0 + r2 + r4 + . . .+ r2p−2 = p!,

which implies r0 = (p − 1)!. This is a contradiction, since p does not divide (p − 1)!,so we proved in this case that the permanent cannot be zero.

Case 2: p ≡ 3 mod 4.

We claim that r2j = 0. For a fixed σ, its values σ(i) take an odd number an oddnumber of times, therefore

∑pi=1 σ(i)di is odd, since each di is odd.

To calculate the coefficient r2j+1, we rewrite the congruence in (2.2):p∑i=1

σ(i)(di − 1) ≡ 2j + 1−(p

2

)≡ 2j + 1− p · p− 1

2≡ 2j + 1− p (mod 2p),

since p−12

is an odd number. Now we can divide the congruence by 2.p∑i=1

σ(i)di − 1

2≡ j +

1− p2

(mod p). (2.5)

From here, the proof is almost the same as in the preceding case, except that the roleof r0 will now be played by rp, since the right side of (2.5) is zero for j = p−1

2. In

other words, the elements in the sum of (2.1) are rotated by 180◦ compared to the 1st

case.

Page 11: Seating couples and Tic-Tac-Toe - Eötvös Loránd Universityweb.cs.elte.hu/blobs/diplomamunkak/msc_mat/2013/mezei_tamas_robert.pdf · Seating couples and Tic-Tac-Toe Master’s Thesis

Chapter 2: Partitioning Z2p into pairs of prescribed differences 8

Remark 2.6. For n = p2 we have to prove that r0 − rp is non-zero.

The main difference between Theorem 2.4 and 2.5 is that in the latter the differencesare directed so to speak: if the theorem constructs a pair {ai, bi} where ai − bi = di,then ai is even. However, in the preceding theorem this is not assumed, and ai canvery well be odd too.

Proof of Theorem 2.4. Again, the case of p = 2 can be checked easily. When p is odd,the solution is to allow for both the differences di and −di between ai and bi. If wecan select ei ∈ {±1} such that

p∑i=1

eidi ≡ 0 (mod p), (2.6)

then we can use Theorem 2.5 to find an appropriate pairing.

Let Ti = {di,−di} for all i = 1, . . . , p. An equivalent formulation of 2.6 is that

0 ∈ T1 + T2 + . . .+ Tp (mod p). (2.7)

If di 6≡ 0 mod p then |Ti| = 2, otherwise |Ti| = 1. Using the Cauchy-Davenporttheorem repeatedly in Zp we have that

|T1 + T2 + . . .+ Tp| ≥ min

{p,

p∑i=1

|Ti| − (p− 1)

}≥

≥ min {p, 2(p− 1) + 1− (p− 1)} ≥ p.

This obviously implies 2.7, so we are done.

2.3 Connections to Snevily’s conjecture

It is of little surprise that Theorem 2.4 and 2.5 have many connections to the recentlysolved Snevily’s conjecture ([Ars11]), since the polynomial used to prove our theoremis identical to the one used in [DKSS01] to prove Snevily’s conjecture for finite oddcyclic groups (and a slightly different result on Zpα). First we prove the followingequivalence.

Page 12: Seating couples and Tic-Tac-Toe - Eötvös Loránd Universityweb.cs.elte.hu/blobs/diplomamunkak/msc_mat/2013/mezei_tamas_robert.pdf · Seating couples and Tic-Tac-Toe Master’s Thesis

Chapter 2: Partitioning Z2p into pairs of prescribed differences 9

Claim 2.7. Let n be a positive integer, and suppose we are given k elementsd1, d2, . . . , dk ∈ Z, where k ≤ n and a subset A ⊆ Zn of cardinality k. Then thefollowing are equivalent:

1. We can find an ordering a1, a2, . . . , ak of the elements of A such that ai+ di areall different in Zn.

2. We can find an ordering a′1, a′2, . . . , a′k of the elements of 2A ⊆ Z2n such thata′i + (2di + 1) are all different in Z2n.

Proof. 2 .⇒ 1 . Define ϕ(2i) = i and ϕ(2i + 1) = i (where i = 0, 1, . . . , p − 1) toget a Z2n → Zn function. Since a′i are all even and pairwise different, ai = ϕ(a′i) isa permutation of Zp. Similarly, a′i + (2di + 1) are all odd and pairwise different, soϕ(a′i + (2di + 1)) = ai + di ∈ Zp are also pairwise different.

1 .⇒ 2 . Let a′i = 2ai, these are pairwise different. Similarly, x 7→ 2x+1 is an injectionof the elements of Zn into the odd elements of Z2n, so 2(ai + di) + 1 = a′i + (2di + 1)

are pairwise different.

We state the following theorem due to Alon, which proves Snevily’s conjecture forcyclic groups of prime order.

Theorem 2.8 ([Alo00]). Let p be an odd prime, suppose k < p, let A be a subsetof cardinality k of Zp and let (d1, . . . , dk) be a sequence of not necessarily distinctmembers of Zp. Then there is an ordering {a1, . . . , ak} of the elements of A such thatthe sums ai + di are pairwise distinct in Zp.

Using this theorem we can give a different proof of Theorem 2.5.

2nd proof of Theorem 2.5. Let k = p − 1 and A = {1, 2, . . . , p − 1}. Apply Theorem2.8 to the differences d1−1

2, . . . , dp−1−1

2∈ Zp. Since ai + di−1

2are pairwise different

(i = 1, . . . , p − 1), the set Zp \{ai +

di−12, i = 1, . . . , p− 1

}contains exactly one

element, and it is equal to

p−1∑i=0

i−p−1∑i=1

(ai +

di − 1

2

)= −

p−1∑i=1

di − 1

2=dp − 1

2

since∑p

i=1 di ≡ 0 mod p implies∑p

i=1di−12≡ 0 mod p. If we take ap = 0, we can use

Claim 2.7 and we are done.

Page 13: Seating couples and Tic-Tac-Toe - Eötvös Loránd Universityweb.cs.elte.hu/blobs/diplomamunkak/msc_mat/2013/mezei_tamas_robert.pdf · Seating couples and Tic-Tac-Toe Master’s Thesis

Chapter 2: Partitioning Z2p into pairs of prescribed differences 10

Remark 2.9. In fact by using Theorem 2.8, we proved a little more: Theorem 2.5remains true even if we choose any subset A of cardinality k < p of the even elementsof Z2p, we can still pair them with odd numbers from Z2p using any sequence of k odddifferences.

Remark 2.10. Furthermore, if Theorem 2.5 is true for a number n, then Snevily’sconjecture is true for k = n− 1 in Zn, even if one of the subsets of cardinality k is amultiset.

Page 14: Seating couples and Tic-Tac-Toe - Eötvös Loránd Universityweb.cs.elte.hu/blobs/diplomamunkak/msc_mat/2013/mezei_tamas_robert.pdf · Seating couples and Tic-Tac-Toe Master’s Thesis

Chapter 3: Applying Theorem 2.4 to the Tic-Tac-Toe game on Zd 11

Chapter 3

Applying Theorem 2.4 to the

Tic-Tac-Toe game on Zd

The theory of combinatorial games is an increasingly popular field in mathematics. Itdeals with games of complete information where the combinatorial chaos stems fromthe exponential growth of the number of possible strategies as we increase the size ofthe game space/table. An exhaustive introduction to the field is [Bec08].

In this chapter we prove a conjecture of Kruczek and Sundberg from [KS08] in aspecial case using the main result of the previous chapter, Theorem 2.4.

3.1 Positional Games

A well-known positional game is Tic-Tac-Toe. The players take turns at putting theirmarks on the cells of the 3× 3 table until either one of the players occupies a completeline (horizontal, vertical, or diagonal) or no unmarked cells remain. The player whofirst occupies a complete line is the winner, if there is no winner, the game is a draw.

We can think of the table of the 3× 3 game as a hypergraph H = (V,E): let V be the9 cells of the table and E be the winning sets, which are in this case the set of linesof length 3. This hypergraph in itself does not completely define the game Tic-Tac-Toe, and indeed there are many versions of positional games. One such version is theso-called Maker-Breaker (or weak) game: the objective of the first player (Maker) is

Page 15: Seating couples and Tic-Tac-Toe - Eötvös Loránd Universityweb.cs.elte.hu/blobs/diplomamunkak/msc_mat/2013/mezei_tamas_robert.pdf · Seating couples and Tic-Tac-Toe Master’s Thesis

Chapter 3: Applying Theorem 2.4 to the Tic-Tac-Toe game on Zd 12

to occupy a winning set, and the objective of the second player (Breaker) is to keepMaker from doing so. In other words, if Maker cannot occupy a winning set, Breakeris the winner.

The traditional Tic-Tac-Toe can be referred to as a strong positional game. The winnerin a strong game is the player who can first occupy a whole winning set (and the gameis a draw if there is no winner). The main problem with strong games is that solvingthem is usually hopeless.

Weak games are still very difficult, but there are techniques to obtain non-trivialstrategies, again see [Bec08]. In [KS10], the authors demonstrate a potential basedapproach to finding winning strategies in the generalized version of Tic-Tac-Toe.This chapter is, however, about constructing pairing strategies for the generalizedTic-Tac-Toe.

A pairing strategy is a (sub)partition of V into pairs. If the other player puts his/hermark on a cell, we mark the cell’s pair according to the pairing (if the cell has no pairwe mark an arbitrary but yet unmarked cell). By pairing strategy we always mean awinning pairing strategy for Breaker in the weak game.

Another reason to investigate weak games is provided by the following idea: the firstplayer in the strong game can easily adopt Breaker’s weak game strategy. Thereforeif Breaker can win the weak game, in the strong game any player can force a draw.

A slightly stronger statement worth mentioning is the folklore idea called “StrategyStealing”: if the first player does not have a winning strategy in the strong game, thenthe first player can at least achieve a draw.

3.2 Tic-Tac-Toe on the integer lattice with numerous

directions

We define the weak Tic-Tac-Toe game determined by the set of winning directionsS = {~vi ∈ Zd | i = 1, . . . , n}, and in the rest of this thesis n = |S|. The underlyingpositional game is given by the hypergraph Hm

S = (Zd, EmS ), where

EmS =

{{~a+ t · ~vi

∣∣ t = 1, . . . ,m} ∣∣∣ ~a ∈ Zd, ~vi ∈ S }

Page 16: Seating couples and Tic-Tac-Toe - Eötvös Loránd Universityweb.cs.elte.hu/blobs/diplomamunkak/msc_mat/2013/mezei_tamas_robert.pdf · Seating couples and Tic-Tac-Toe Master’s Thesis

Chapter 3: Applying Theorem 2.4 to the Tic-Tac-Toe game on Zd 13

is the set of winning sets. If not indicated otherwise, we analyze games where ~vi ∈ S areprimitive: the greatest common divisor of the coordinates of ~vi is 1. For convenience,we always suppose that ~vi 6= ±~vi′ for i 6= i′. These two assumptions together implythat any two winning directions are linearly independent.

Kruczek and Sundberg proved in [KS08] that Breaker can win the weak game using apairing strategy if m ≥ 3n. They also conjectured that such a strategy exists even ifm ≥ 2n+1 (Conjecture 5.10), and Lemma 3.6 shows that this is sharp. This conjecturewas proved to be at least asymptotically true by Mukkamala and Pálvölgyi in [MP10].Specifically, they proved the following:

Theorem 3.1 ([MP10]). If p is a prime and p = m − 1 ≥ 2n + 1, then in theMaker-Breaker game played on Hm

S , Breaker has a pairing strategy win.

Unfortunately this theorem does not prove the conjecture of Kruczek and Sundbergfor any n, since even in the best case scenario we have m ≥ 2n + 2. However, in thefollowing we are going to use their ideas to prove the following theorem, which provesConjecture 5.10 in a special case.

Theorem 3.2. Suppose n = p is an odd prime and m ≥ 2n + 1. If there exists a~z ∈ {0, 1}d such that ~vi · ~z is odd for all ~vi ∈ S, then in the Maker-Breaker gameplayed on Hm

S , Breaker has a pairing strategy win.

The rest of this section is a simple modification of the proof of the main theorem of[MP10], but we elaborate on it for the sake of completeness.

Proof of Theorem 3.2.1. Compactifying the problem

Let VN = {0, . . . , N − 1}d. First we observe that we only have to prove Theorem 3.2for Hm

S |VN (the sub-hypergraph spanned by VN in HmS ) using a compactness argument

relying on Kőnig’s lemma. A pairing strategy is just a (sub)partition of the vertices ofthe hypergraph into 2 element subsets. Suppose there is a pairing strategy for Breakerfor every positive integer N . Let WN be the set of all pairing strategies for Breakeron Hm

S |VN (define W0 = {∅}). We say that there is an edge between X ∈ WN andY ∈ WN+1 if X is the restriction of Y to VN (we only keep the 2 element subsets).

We can apply Kőnig’s lemma to the graph we just defined on⋃∞N=0WN . The lemma

provides an infinitely long path starting from W0. If we take the union of the vertices

Page 17: Seating couples and Tic-Tac-Toe - Eötvös Loránd Universityweb.cs.elte.hu/blobs/diplomamunkak/msc_mat/2013/mezei_tamas_robert.pdf · Seating couples and Tic-Tac-Toe Master’s Thesis

Chapter 3: Applying Theorem 2.4 to the Tic-Tac-Toe game on Zd 14

of this infinitely long path, we get a partition of Zd into pairs. We claim that this isindeed a pairing strategy for Zd. Suppose Maker can occupy a complete winning setin finite time against this strategy. Then there is a sufficiently large N for which VNcontains all of the points marked by the players. But this cannot be the case, sincethe restriction of the partition to VN is a pairing strategy for Breaker.

2. Mapping VN into ZLet ~r = (r1, . . . , rd) ∈ Zd and let f~r = ∗ ·~r : VN → Z, where ∗ · ∗ is the scalar product.If rj > 0 and rj+1 > N(r1 + . . . + rj) for all j, then f~r is injective. The winningdirections ~vi are transformed into di = ~vi · ~r. We observe that the winning sets nowbecome arithmetic progressions of length m and difference di.

Suppose ~u ∈ {0, 1, 2, . . . , 2p− 1}d and rj = uj + (2pN)j. It easily verifiable that f~r isinjective. In addition, we claim that we can choose such a ~u ∈ {0, 1, 2, . . . , 2p − 1}d

that gcd(di, 2p) = 1. First we prove that there exists a ~w such that for all i

~vi · ~w 6≡p− ~vi · ~z

2(mod p). (3.1)

Suppose we choose ~w uniformly random from {0, 1, 2, . . . , p− 1}d, then for a single i,~w does not satisfy incongruence (3.1) with probability 1/p (we used the fact that pcannot divide all of the coordinates of vi). Therefore

Pr(for all i ~w does not satisfy (3.1)) ≤n∑i=1

Pr(~w does not satisfy (3.1) for i) (3.2)

=n∑i=1

1

p= 1,

However, we claim that there is strict inequality in (3.2). Equality would only bepossible in (3.2) if for all ~w ∈ {0, 1, . . . , p − 1}d there was a unique i for which ~w

satisfies (3.1). But this is not the case, if we let wj ≡ −zj/2 mod p for all j, then ~w

does not satisfy incongruence (3.1) for any i. All in all, we proved that there exists a~w ∈ {0, 1, . . . , p− 1}d which satisfies (3.1) for all i.

Using that p− ~vi · ~z is even, we can transform (3.1) to get

~vi · (2~w + ~z) 6≡ p (mod 2p), (3.3)

and there exists uj ∈ {0, 1, 2, . . . , 2p− 1} such that uj ≡ (2wj + zj) mod 2p. Moreover

~vi · ~u ≡ ~vi · 2~w + ~vi · ~z ≡ 0 + 1 (mod 2),

Page 18: Seating couples and Tic-Tac-Toe - Eötvös Loránd Universityweb.cs.elte.hu/blobs/diplomamunkak/msc_mat/2013/mezei_tamas_robert.pdf · Seating couples and Tic-Tac-Toe Master’s Thesis

Chapter 3: Applying Theorem 2.4 to the Tic-Tac-Toe game on Zd 15

and ~vi · ~u is not divisible by p, so we have gcd(~vi · ~u, 2p) = 1. This implies thatgcd(~vi · ~r, 2p) = 1.

3. Applying our theorem

Now we can apply Theorem 2.4 to the differences di = ~vi · ~r. Our theorem providesa partition

⋃pi=1{ai, bi} = Z2p, where ai + di ≡ bi mod 2p. This induces a pairing of

the elements of Z in the following way. Suppose x ∈ Z, if x ≡ ai mod 2p, we pair xwith x + di ∈ Z. Similarly, if x ≡ bi ∈ Z, we pair x with x − di ∈ Z. This pairing iswell-defined.

To see that this is indeed a pairing strategy for Breaker, consider an arithmetic pro-gression c1, . . . , cm with difference di. Since gcd(di, 2p) = 1, one of c1, c2, . . . , cm−1,say cj, is equal to ai modulo 2p. Therefore {cj, cj+1} is a pair from our partition of Z,so Maker cannot occupy both points.

The assumptions of the previous theorem can be relaxed in the following way.

Theorem 3.3. Suppose n = p is an odd prime and m ≥ 2n + 1. If there exists a~z ∈ Q such that ~vi · ~z is an odd integer for all i, then in the Maker-Breaker gameplayed on H, Breaker has a pairing strategy win.

Proof. The compactness argument can be used again, so we only need to create pairingstrategies for Breaker on the bounded parts of the integer lattice. Let q ∈ Z be suchthat q · ~z is an integer vector and let k ∈ Z be the largest number for which q

2kis an

integer.

Again, we are going to map VN into Z using f~r, thus the winning sets are transformedinto arithmetic progressions of length m and difference di = ~vi · ~r. We are looking foran ~r of the form rj = uj +

(2k+1pN

)j, where uj ∈ {0, 1, 2, . . . , 2k+1p− 1}, and it is

easy to check that f~r is injective on VN in this case.

First we find a vector ~w ∈ {0, 1, 2, . . . , p− 1}d such that

~vi · ~w 6≡2kp− ~vi · (q~z)

2k+1(mod p) (3.4)

for all i = 1, 2, . . . , p. This can be done just like in the proof of Theorem 3.2, if welet wj ≡ −~vi·(qwj)

2k+1 mod p for all j, then ~w does not satisfy (3.4) for any i. Using the

Page 19: Seating couples and Tic-Tac-Toe - Eötvös Loránd Universityweb.cs.elte.hu/blobs/diplomamunkak/msc_mat/2013/mezei_tamas_robert.pdf · Seating couples and Tic-Tac-Toe Master’s Thesis

Chapter 3: Applying Theorem 2.4 to the Tic-Tac-Toe game on Zd 16

assumption we made on ~z, we get that 2kp − ~vi · (q~z) is divisible by 2k+1, so we cantransform (3.4) to get

~vi · (2k+1 ~w + q~z) 6≡ 2kp (mod p) (3.5)

We can choose a vector ~u ∈{0, 1, 2, . . . , 2k+1p− 1

}d such that

ui ≡ 2k+1wi + qzi (mod 2k+1p).

Moreover, using our assumptions on ~z,

~vi · ~u ≡ ~vi ·(2k+1 ~w

)+ ~vi · (q~z) ≡ ~vi · (q~z) ≡ 2k (mod 2k+1).

Using this and (3.5), we conclude that gcd(~vi · ~u, 2k+1p) = 2k, and thereforegcd(di, 2

k+1p) = 2k.

Now the only thing left for us to do is to find a pairing strategy on Z2k+1p whichblocks any arithmetic progression of length m and difference di (in Z2k+1p). Thispairing induces a pairing of Z, which can be pulled back to Zd since f~r is injective(there can be unmatched points).

Since gcd(di, 2k+1p) = 2k, the order of di in Z2k+1p is 2p, and any arithmetic progressionof difference di in Z2k+1p stays in the same coset of 2kZ2k+1p. Thus it is enough topartition the elements of the subgroup 2kZ2k+1p into pairs of differences di, becausethe same matching can be used for the rest of the cosets. This problem is equivalent topartitioning the elements of Z2p using the differences di/2k. Since gcd(di/2

k, 2p) = 1,there is such a partition of Z2p according to Theorem 2.4.

Remark 3.4. Let I = Z(v1, v2, . . . , vn) be the lattice spanned by ~vi. If ZI � ZZd, wecan think of the game played on Zd as multiple Tic-Tac-Toe games played parallel onthe cosets of ZI: any winning set is completely contained in one of the cosets of ZI.

It is worth noting that if we relax the primitiveness condition on the vectors ~vi tobeing non-zero, we can derive the following result from the above proof.

Proposition 3.5. Suppose n = p is an odd prime and m ≥ 2n + 1 and ~vi are non-zero but not necessarily primitive vectors in Zd. If there exists a ~z ∈ Q such thatgcd(~vi ·~z, 2p) = 1 for all i, then in the Maker-Breaker game played on H, Breaker hasa pairing strategy win.

Page 20: Seating couples and Tic-Tac-Toe - Eötvös Loránd Universityweb.cs.elte.hu/blobs/diplomamunkak/msc_mat/2013/mezei_tamas_robert.pdf · Seating couples and Tic-Tac-Toe Master’s Thesis

Chapter 3: Applying Theorem 2.4 to the Tic-Tac-Toe game on Zd 17

3.3 Sharpness and auxiliary statements

Lemma 3.6 ([MP10, Section 3]). If m ≤ 2n then Breaker does not have a pairingstrategy win on Hm

S .

Proof. It is enough to prove that Breaker cannot win if we restrict the set of pointsto VN = {0, 1, 2, . . . , N − 1}d for a large enough N . Any set of the form

Wi(~x) = {~x+ k~vi | k = 1, 2, . . . ,m− 1} where ~x ∈ VN and ~x+m~vi ∈ VN ,

has to contain at least two points paired in the direction of ~vi: otherwise we can extendthis set to either Wi(~x)∪{~x} or Wi(~x)∪{~x+m~vi}, both of which are winning subsetsof VN , but one of them does not contain a pair in the direction of ~vi, so it can beoccupied by Maker.

Let us bound from below the maximum number of disjoint Wi(~x) sets we can choosefor a fix i. If ‖~x‖∞ ≤ N −m‖~vi‖∞, then Wi(~x) can be extended in both directions.Thus we can choose at least 1

m−1(N −m‖~vi‖∞)d disjoint sets, which can be extended

in both directions. These have to contain at least two points paired to each other inthe direction of ~vi, thus there are at least 2

m−1(N − m‖~vi‖∞)d points paired in thedirection of ~vi.

Let C = m ·maxni=1 ‖~vi‖∞, then we can conclude that there are at least

n2

m− 1(N − C)d

points paired in the direction of ~v1, . . . , ~vn (a pair can only belong to one winningdirection, since any two winning directions are linearly independent). There are onlyNd points, so

n2

m− 1(N − C)d ≤ Nd.

Substituting m ≤ 2n into the inequation we get

2n

2n− 1≤(

N

N − C

)d,

or equivalently

1− dCN≤(1− C

N

)d≤ 1− 1

2n,

which is a contradiction if N > 2n · d · C.

Page 21: Seating couples and Tic-Tac-Toe - Eötvös Loránd Universityweb.cs.elte.hu/blobs/diplomamunkak/msc_mat/2013/mezei_tamas_robert.pdf · Seating couples and Tic-Tac-Toe Master’s Thesis

Chapter 3: Applying Theorem 2.4 to the Tic-Tac-Toe game on Zd 18

This lemma states that our theorems are sharp if the vectors are fix and we arelooking for a pairing strategy. However, pairing strategies are a small subset of strate-gies and Combinatorial Game theory offers a variety of ways to construct strategies.Kruczek and Sundberg proved the following asymptotic result using a potential basedtechnique.

Theorem 3.7 ([KS10]). Suppose k →∞ and d→∞. If m ≥ (1+ o(1))d2 log k, thenBreaker has a winning strategy on Hm

S for any S ⊆ {~v ∈ Zd : ‖~v‖∞ ≤ k}.

Here, the lower bound on m does not directly depend on n, but on d and k. Informallythis theorem states that if there are many dependence relations between the winningdirections, Breaker can achieve a win even if it is not possible using a pairing strategy.

Using elementary linear algebra we make two easy statements.

Corollary 3.8. Suppose n = p is a prime and m ≥ 2n + 1. If vi ∈ Zd are linearlyindependent vectors over F2, then in the Maker-Breaker game played on Hm

S , Breakerhas a pairing strategy win.

Proof. Let M be an n× d matrix that has vi as its ith row. By our assumptions, theimage ofM contains Fn2 , in other words there exists a vector ~z ∈ Fd2 such thatM~z = ~1,so we can apply Theorem 3.2 and we are done.

If n = p, but we cannot apply Theorem 3.2, the following lemma gives us someinformation about the winning directions that will be useful in Chapter 4 for solvingthe conjecture of Kruczek and Sundberg when n = 3.

Lemma 3.9. Let M be a n×d matrix over F2. There exists ~z ∈ Fd2 such that M~z = ~1

if and only if no ~y ∈ Fn2 such that ~yM = ~0, ~y ·~1 = 1 exists.

Proof. Using the elementary identity colM = (kerMT )⊥, we conclude that ~1 /∈ colM

if and only if there is a ~y ∈ kerMT which is not perpendicular to ~1, that is ~y ·~1 = 1.

Using the previous lemma, we can devise a polynomial time algorithm to check if theassumptions of Theorem 3.2 hold. We check using Gauss-elimination if the rows of Mare linearly independent. If so, then ~1 ∈ colM . Otherwise, we find a vector ~y suchthat ~yM = ~0. If ~y · ~1 = 1, the assumptions of Theorem 3.2 do not hold for the rows

Page 22: Seating couples and Tic-Tac-Toe - Eötvös Loránd Universityweb.cs.elte.hu/blobs/diplomamunkak/msc_mat/2013/mezei_tamas_robert.pdf · Seating couples and Tic-Tac-Toe Master’s Thesis

Chapter 3: Applying Theorem 2.4 to the Tic-Tac-Toe game on Zd 19

of M . However, if ~y ·~1 = 0, we can express one of the rows of M as the sum of an oddnumber of other rows of M . Let M ′ be the matrix we get by deleting this row fromM . Now there exists a ~y such that ~yM = 0 and ~y · ~1 = 1 if and only if there exists a~w such that ~wM ′ = 0 and ~w ·~1 = 1, so we can recurse for M ′.

Page 23: Seating couples and Tic-Tac-Toe - Eötvös Loránd Universityweb.cs.elte.hu/blobs/diplomamunkak/msc_mat/2013/mezei_tamas_robert.pdf · Seating couples and Tic-Tac-Toe Master’s Thesis

Chapter 4: Simple and small cases 20

Chapter 4

Simple and small cases

Although it is not always possible to construct a pairing strategy using the methoddescribed in the previous section, in the following we prove that if m = 2n + 1, andn ≤ 3 or the winning vectors are linearly independent then Breaker has a pairingstrategy win.

4.1 Linearly independent winning directions

Lemma 4.1. Suppose m ≥ 2n+1 and vi ∈ S ⊂ Zd are linearly independent (over Q).Then in the Maker-Breaker game played on Hm

S , Breaker has a pairing strategy win.

Proof. Firstly, it is sufficient to prove the theorem for m = 2n+ 1. Secondly, we referto Remark 3.4, that we only have to construct an appropriate pairing on the integerlattice generated by the vectors ~v1, . . . , ~vn, since the same pairing can be used on allof its cosets in Zd. If these vectors are linearly independent, then the lattice generatedby them is isomorphic to Zn (as a Z-module or as an Abelian group). This followsfrom the fact that if we take the image of ~vi to be the ith element (~ei) of the standardbasis in Qn, we get a linear isomorphism over Q, which is also a Z-module morphismto Zn, since every element of the integer lattice Z(~v1, . . . , ~vn) has its image in Zn.

Now we only have to construct a suitable pairing for Zn. Let ~x = (x1, . . . , xn) ∈ Zn andlet i ∈ {1, . . . , n} be the number in the same residue class with

∑nj=1b

xj2c modulo n.

Page 24: Seating couples and Tic-Tac-Toe - Eötvös Loránd Universityweb.cs.elte.hu/blobs/diplomamunkak/msc_mat/2013/mezei_tamas_robert.pdf · Seating couples and Tic-Tac-Toe Master’s Thesis

Chapter 4: Simple and small cases 21

If xi = 2bxi2c, we pair ~x with ~x+ ~ei, and if xi = 2bxi

2c+ 1, we pair ~x with ~x− ~ei.

Finally, we have to prove that every winning set contains a pair. Take any winningset, for example {~z + r~ei | r = 0, 1, 2, . . . , 2n}. Then there is a k = 0, 1, 2, . . . , 2n− 1

of the same parity as xi for which

n∑j=1

⌊xj + kδi,j

2

⌋≡ i (mod n).

It follows from our pairing strategy that ~z + k~ei is paired to ~z + (k + 1)~ei, which isalso in the winning set.

Remark 4.2. When n is an odd prime, the lemma is also a consequence of Theorem 3.3.

4.2 Case of n = 2

If n = 2, the vectors ~v1 and ~v2 cannot be linearly dependent, as they are both primitiveand ~v1 6= ±~v2. If they are linearly independent, we can refer to Lemma 4.1, butfor demonstrative purposes we repeat its proof when n = 2. There is a Z-moduleisomorphism ϕ from Z(~v1, ~v2) to ZZ2, where ϕ(~v1) = (1, 0) and ϕ(~v2) = (0, 1). We caneasily block any winning set of size 5 in Z2 by tiling Z2 with the following 4×4 block.

Figure 4.1: This tile defines a periodic pairing strategy on Z2

The pairing defined on Z2 can be pulled back to the submodule Z(~v1, ~v2), and we canpair all of its cosets in Zd with the same strategy (see Remark 3.4).

4.3 Case of n = 3

Lemma 4.1 implies that if ~v1, ~v2, ~v3 are linearly independent, Breaker has a winningstrategy if m ≥ 7.

Page 25: Seating couples and Tic-Tac-Toe - Eötvös Loránd Universityweb.cs.elte.hu/blobs/diplomamunkak/msc_mat/2013/mezei_tamas_robert.pdf · Seating couples and Tic-Tac-Toe Master’s Thesis

Chapter 4: Simple and small cases 22

If ~v1, ~v2, ~v3 are linearly dependent, but there exists a vector z ∈ {0, 1}d such that ~vi ·~zis odd for i = 1, 2, 3, then we can find a pairing strategy using Theorem 3.2.

If there is no such ~z, then still there exists a vector (a, b, c) ∈ (Z \ {0})3 such thata~v1 + b~v2 + c~v3 = ~0, since no two vectors can be linearly dependent as we saw in theprevious case. Without loss of generality we may assume that gcd(a, b, c) = 1 (in otherwords (a, b, c) is a primitive vector).

We claim that a, b, c are all odd numbers. Let M be the matrix over F2 formed bytaking ~vi as rows mod 2. Using Lemma 3.9 we conclude that (1, 1, 1) ∈ kerMT ,since ~vi are primitive and thus all of them has an odd coordinate. Also, by def-inition (a mod 2, b mod 2, c mod 2) ∈ kerMT . Suppose a, b, c are not all odd, thenthere is a vector in kerMT which contains exactly one odd coordinate, either(a mod 2, b mod 2, c mod 2) or (a mod 2, b mod 2, c mod 2) + (1, 1, 1). Without lossof generality (1, 0, 0) ∈ kerMT , but then all of ~v1’s coordinates would be divisible bytwo, which is a contradiction.

We now want to analyze (a, b, c) mod 6. By taking either ~v1 or −~v1, we can change ato −a, therefore we may assume that (a, b, c) mod 6 is in the residue class of one of theelements of {1, 3}3. However, it cannot be in the residue class of (3, 3, 3), since (a, b, c)is a primitive vector. It also cannot be in the residue class of (3, 3, 1), since then thecoordinates of ~v3 would be divisible by 3, but ~v3 is also primitive. By permuting thevectors ~vi, we may assume that (a, b, c) is in the residue class of either (1, 1, 1) or(1, 3, 1).

Let us take the following (not necessarily surjective) morphism ϕ : Z(~v1, ~v2, ~v3)→ ZZ2,where ϕ(~v1) = (c, 0) and ϕ(~v2) = (0, c). Then we must have that ϕ(~v3) = (−a,−b),so this is indeed a Z-module morphism. In addition, ϕ is an isomorphism. Supposethat ϕ(a′~v1 + b′~v2 + c′~v3) = 0, that is a′(c, 0) + b′(0, c) + c′(−a,−b) = 0, so a′c = ac′

and b′c = bc′. Therefore c(a′, b′, c′) = c′(a, b, c), and using that (a, b, c) is primitive,there is an r ∈ Z such that c′ = rc, so (a′, b′, c′) = r(a, b, c). This implies thata′~v1 + b′~v2 + c′~v3 = 0, which proves that ϕ is indeed an isomorphism.

We now proved that it is enough to find a pairing for the Z-submodule generated by(c, 0), (0, c), (−a,−b) where (a, b, c) ≡ (1, 1, 1) mod 6 or (a, b, c) ≡ (1, 1, 3) mod 6. Weare going to use the following lemma to construct a pairing strategy in these cases.

Page 26: Seating couples and Tic-Tac-Toe - Eötvös Loránd Universityweb.cs.elte.hu/blobs/diplomamunkak/msc_mat/2013/mezei_tamas_robert.pdf · Seating couples and Tic-Tac-Toe Master’s Thesis

Chapter 4: Simple and small cases 23

If ~v ∈ Zd then by gcd~v we mean the greatest common divisor of its coordinates.

Lemma 4.3. Suppose that for all ~vi ∈ S we have gcd(gcd~vi, 2n) = 1 and m ≥ 2n+ 1.If we can find a partition of Zd2n into pairs {~xji , ~y

ji }, where i = 1, 2, . . . , n and

j = 1, 2, . . . , (2n)d−1, such that ~xji + ~vi = ~yji (mod 2n) and ~xji − ~xj′

i is not a multi-ple of ~vi (mod 2n) for j 6= j′, then Breaker has a winning pairing strategy on Hm

S .

Proof. Let us denote the submodule of Zd2n generated by the single vector ~vi with Mi.We claim that |Mi| = 2n. Trivially |Mi| ≤ 2n. There exists a vector ~wi ∈ Zd such that~vi · ~wi = gcd~vi. Then ϕi(~v) = ~v · ~wi defines a Z2n-module morphism from Zd2n → Z2n.Thus ϕ(Mi) = Z2n, since the image of ~vi, gcd~vi is an invertible element in Z2n.

The assumptions on ~xji for a fix i guarantee that we choose an element from all (2n)d−1

cosets of Mi in Zd2n. We pair the elements of Zd in the following way. If ~w ∈ Zd is inthe equivalence class of ~xji ∈ Zd2n, then we pair ~w with ~w + ~vi ∈ Zd. Vica versa, if ~wis in the equivalence class of ~yji , then we pair ~w with ~w − ~vi ∈ Zd, so our pairing iswell-defined.

Too see that this is indeed a good pairing strategy for Breaker, consider a subset of awinning set C = {~c,~c+~vi,~c+2~vi, . . . ,~c+(2n−1)~vi} ⊂ Zd which does not contain bothpoints of any pair. The image of C through the natural morphism Zd → Zd2n is a cosetof Mi, therefore an element of C is paired to one of the elements in C ∪ {~c+ (2n)~vi}.Thus we proved that any winning set contains a pair from the partition of Zd definedabove.

To use the lemma we only have to consider the equivalence class of the vectors(c, 0), (0, c), (−a,−b) in Z2

6. Therefore we have two cases.

In the first case a = 1, b = 1, c = 1, so the winning directions are ~v1 = (1, 0), ~v2 =

(0, 1), ~v3 = (−1,−1). Figure 4.2a shows a pairing of Z26 which satisfies the assumptions

of the lemma in this case.

In the second case a = 1, b = 3, c = 1, so the winning directions are ~v1 = (1, 0), ~v2 =

(0, 1), ~v3 = (−1,−3). Figure 4.2b shows a suitable pairing of Z26 for these vectors.

Page 27: Seating couples and Tic-Tac-Toe - Eötvös Loránd Universityweb.cs.elte.hu/blobs/diplomamunkak/msc_mat/2013/mezei_tamas_robert.pdf · Seating couples and Tic-Tac-Toe Master’s Thesis

Chapter 4: Simple and small cases 24

(a) (1, 0), (0, 1), (−1,−1)

(b) (1, 0), (0, 1), (−1,−3)

Figure 4.2: Pairing strategies on Z26

Page 28: Seating couples and Tic-Tac-Toe - Eötvös Loránd Universityweb.cs.elte.hu/blobs/diplomamunkak/msc_mat/2013/mezei_tamas_robert.pdf · Seating couples and Tic-Tac-Toe Master’s Thesis

Chapter 5: Conjectures 25

Chapter 5

Conjectures

We state a few conjectures.

Conjecture 5.1 (Snevily, [Sne99]). Every k × k sub-matrix of the addition table ofevery abelian group of odd order has a latin transversal.

Conjecture 5.2 (Snevily, [Sne99]). Every k × k sub-matrix of the addition table ofZ2n has a latin transversal, unless it is a translate of a cyclic subgroup of Z2n.

In fact Conjecture 5.1 was proved just recently by Arsovski [Ars11] after a series ofattempts [Alo99, DKSS01]. Unfortunately the proof relies heavily on the fact that agroup of odd order is fully representable over a large enough finite field of charac-teristic 2. A precursor to this idea was used in [DKSS01] to prove Conjecture 5.1 forcyclic groups of odd order. However, it is for this very reason that it is not likely thatArsovski’s proof can be easily modified to extend Snevily’s conjecture to Z2n.

Bacher, who posted the seating couples problem on an Internet forum [Bac08], con-jectured the following.

Conjecture 5.3 ([Bac08]). Suppose we are given n elements d1, d2, . . . , dn ∈ Z2n+1

that are relative prime to 2n + 1. Then there exists n disjoint pairs in Z2n+1, withdifferences d1, d2, . . . , dn.

The conditions are necessary in some sense. For example if r ∈ Z is a non-trivialdivisor of 2n+ 1, then we cannot select n disjoint pairs with difference r.

Page 29: Seating couples and Tic-Tac-Toe - Eötvös Loránd Universityweb.cs.elte.hu/blobs/diplomamunkak/msc_mat/2013/mezei_tamas_robert.pdf · Seating couples and Tic-Tac-Toe Master’s Thesis

Chapter 5: Conjectures 26

Karasev and Petrov conjectured, that this is the only kind of obstruction that existfor Z2n.

Conjecture 5.4 ([KP12]). Suppose we are given n elements d1, d2, . . . , dn ∈ Z2n thatare relative prime to 2n. Then there exists a partition of Z2n into pairs with differencesd1, d2, . . . , dn.

This conjecture states that a generalization of Theorem 2.4 holds for composite num-bers too. Moreover, just as we proved Theorem 2.4 using Theorem 2.5, we can separateConjecture 5.4 into two sub-problems. The following conjecture is a generalization ofTheorem 2.5.

Conjecture 5.5. Let n be a positive integer. Suppose we are given n elementsd1, d2, . . . , dn ∈ Z2n, where di is odd for all i = 1, 2, . . . , n. Then we can select 2n

different numbers a1, a2, . . . , an, b1, b2, . . . , bn ∈ Z2n such that all ai are even and all biare odd, and ai + di = bi for all i = 1, 2, . . . , n, if and only if

∑ni=1 di = n mod 2n.

The previous conjecture was verified by a computer program (written by the author)for n ≤ 14. To deduce Conjecture 5.4 from Conjecture 5.5, we prove the followinglemma.

Lemma 5.6. Suppose we are given n elements d1, d2, . . . , dn ∈ Z that are relativeprimes to 2n, except d1, which can be any integer. Then there exists a vector ~e ∈{−1,+1}n such that

∑ni=1 eidi ≡ n mod 2n.

Proof. Let Sk = {∑k

i=1 eidi : ~e ∈ {±1}n}. First we prove an easy statement.

Claim 5.7. Suppose S ⊆ 2Z2n or S ⊆ 1 + 2Z2n and d ∈ Z such that gcd(d, 2n) = 1.Then

|S ∪ (S + 2d)| ≥ min{n, |S|+ 1}.

Proof. We may assume that |S| < n (otherwise we are done). Suppose for a contra-diction that |S| = |S ∪ (S + 2d)|. This implies that S = S + 2d and that S contains acoset of the subgroup D = {2kd : k ∈ Z} ≤ Z2n. Using that gcd(2d, 2n) = 2, we havethat |D| = n which implies |S| ≥ n, a contradiction.

Page 30: Seating couples and Tic-Tac-Toe - Eötvös Loránd Universityweb.cs.elte.hu/blobs/diplomamunkak/msc_mat/2013/mezei_tamas_robert.pdf · Seating couples and Tic-Tac-Toe Master’s Thesis

Chapter 5: Conjectures 27

We prove by induction on k that |Sk| ≥ k for any k ≤ n. Trivially, |S1| ≥ 1. Supposethat |Sk−1| ≥ k − 1. Let S = Sk−1 − dk, then we can use the claim to infer that

|Sk| = |(Sk−1 − dk) ∪ (Sk−1 + dk)| = |S ∪ (S + 2dk)| ≥ k,

since every element of Sk−1− dk is the sum of exactly k odd numbers, so Sk−1− dk ⊆k + 2Z2n satisfies the assumptions of the claim.

We now know that |Sn| = n and that Sn ⊆ n + 2Z2n, which together imply thatn ∈ Sn, the claim of the lemma.

In Section 2.3 we gave another proof of Theorem 2.5 by reducing the problem to aversion of Snevily’s conjecture. Using Claim 2.7 we can write Conjecture 5.5 in thefollowing equivalent form. This form is also a generalization of a special case of bothTheorem 2.8 and Conjecture 5.2.

Conjecture 5.8 (Special case of the Kézdy-Snevily conjecture [KS02]). Let n be apositive integer, A = {1, 2, 3, . . . , n − 1} ⊂ Zn and let (d1, . . . , dn−1) be a sequence ofnot necessarily distinct members of Zn. Then there is a permutation {a1, . . . , an−1} ofthe elements of A such that the sums ai + di are pairwise distinct in Zn.

If Conjecture 5.5 is proved, it would imply the existence of a pairing strategy for manyTic-Tac-Toe games. For example, the following conjecture would be true (which is theanalogue of Proposition 3.5).

Conjecture 5.9. Supposem ≥ 2n+1 and ~vi are non-zero but not necessarily primitivevectors. If there exists a ~z ∈ Q such that ~vi · ~z ∈ Z and gcd(~vi · ~z, 2n) = 1 for all i,then in the Maker-Breaker game played on Hm

S , Breaker has a pairing strategy win.

Kruczek and Sundberg conjectured the following statement.

Conjecture 5.10 ([KS08]). If m ≥ 2n + 1, Breaker has a pairing strategy win onHmS .

An even stronger conjecture is due to Mukkamala and Pálvölgyi.

Conjecture 5.11 ([MP10]). Suppose we are given n primitive vectors ~vi in Zd2n.We can always find a partition of Zd2n into pairs {~xji , ~y

ji }, where i = 1, 2, . . . , n and

j = 1, 2, . . . , (2n)d−1, such that ~xji + ~vi = ~yji and ~xji − ~xj′

i is not a multiple of ~vi forj 6= j′.

Page 31: Seating couples and Tic-Tac-Toe - Eötvös Loránd Universityweb.cs.elte.hu/blobs/diplomamunkak/msc_mat/2013/mezei_tamas_robert.pdf · Seating couples and Tic-Tac-Toe Master’s Thesis

Chapter 5: Conjectures 28

This is also a generalization of Conjecture 5.4. In Theorem 2.4 we proved this ford = 1 when n is a prime. Lemma 4.3 shows that Conjecture 5.11 is indeed strongerthan Conjecture 5.10.

One may ask whether it is possible that Conjecture 5.10 holds, but Conjecture 5.11does not. Another similar question is whether every pairing strategy for Breaker whenm = 2n + 1 can be constructed by Lemma 4.3 using an appropriate pairing strategyon Zd2n or not. We suspect that the answer to the first question is no.

Page 32: Seating couples and Tic-Tac-Toe - Eötvös Loránd Universityweb.cs.elte.hu/blobs/diplomamunkak/msc_mat/2013/mezei_tamas_robert.pdf · Seating couples and Tic-Tac-Toe Master’s Thesis

Bibliography 29

Bibliography

[Alo99] N. Alon. Combinatorial Nullstellensatz. Combinatorics Probability andComputing, 8(1):7–30, 1999.

[Alo00] N. Alon. Additive latin transversals. Israel Journal of Mathematics,117(1):125–130, 2000.

[Ars11] B. Arsovski. A proof of Snevily’s conjecture. Israel Journal of Mathematics,182(1):505–508, 2011.http://dx.doi.org/10.1007/s11856-011-0040-6.

[Bac08] R. Bacher. Seating arrangements for couples at prescribed distances,January 2008.http://www.artofproblemsolving.com/Forum/viewtopic.php?t=

183554?ml=1.

[Bec08] J. Beck. Combinatorial Games: Tic-Tac-Toe Theory. Encyclopedia ofMathematics and its Applications. Cambridge University Press, 2008.http://books.google.hu/books?id=AU4dh_eKNfkC.

[DKSS01] S. Dasgupta, Gy. Károlyi, O. Serra, and B. Szegedy. Transversals of additivelatin squares. Israel Journal of Mathematics, 126(1):17–28, 2001.

[EK07] S. Eliahou and M. Kervaire. Some extensions of the Cauchy-Davenporttheorem. Electronic Notes in Discrete Mathematics, 28:557–564, 2007.

[HKK11] G. Harcos, Gy. Károlyi, and G. Kós. Remarks to Arsovski’s proof ofSnevily’s conjecture. In Annales Universitatis Scientiarum Budapestinen-sis de Rolando Eotvos Nominatae. Sectio Mathematica, volume 54, pages57–61. Eötvös Loránd University, 2011.

[Hor66] P. J. Horn. Permanent of a Certain Matrix. University of BritishColumbia, 1966.

Page 33: Seating couples and Tic-Tac-Toe - Eötvös Loránd Universityweb.cs.elte.hu/blobs/diplomamunkak/msc_mat/2013/mezei_tamas_robert.pdf · Seating couples and Tic-Tac-Toe Master’s Thesis

Bibliography 30

https://circle.ubc.ca/bitstream/handle/2429/36929/UBC_1966_A8%

20H64.pdf.

[KMR11] G. Kós, T. Mészáros, and L. Rónyai. Some extensions of Alon’s Nullstel-lensatz. arXiv preprint arXiv:1103.4768, 2011.

[KP12] R.N. Karasev and F.V. Petrov. Partitions of nonzero elements of a finitefield into pairs. Israel Journal of Mathematics, pages 1–14, 2012.

[KR12] G. Kós and L. Rónyai. Alon’s Nullstellensatz for multisets. Combinatorica,32(5):589–605, 2012.

[KS02] A. E. Kézdy and H. S. Snevily. Distinct sums modulo n and treeembeddings. Combinatorics, Probability & Computing, 11:35–42, 0 2002.http://journals.cambridge.org/article_S0963548301004874,doi:10.1017/S0963548301004874.

[KS08] K. Kruczek and E. Sundberg. A pairing strategy for Tic-Tac-Toe on theinteger lattice with numerous directions. Electr. J. Comb., 15(1), 2008.http://www.combinatorics.org/Volume_15/Abstracts/v15i1n42.html.

[KS10] K. Kruczek and E. Sundberg. Potential-based strategies for Tic-Tac-Toeon the integer lattice with numerous directions. Electr. J. Comb., 17(1),2010.http://www.combinatorics.org/Volume_17/Abstracts/v17i1r5.html.

[Mez11] T. R. Mezei. Combinatorial Nullstellensätze (in Hungarian). Bachelor’sthesis, Eötvös Loránd University, 2011.http://www.cs.elte.hu/blobs/diplomamunkak/bsc_mat/2011/mezei_

tamas_robert.pdf.

[MP10] P. Mukkamala and D. Pálvölgyi. Asymptotically optimal pairing strategyfor tic-tac-toe with numerous directions. Electr. J. Comb., 17(1), 2010.http://www.combinatorics.org/Volume_17/Abstracts/v17i1n33.html.

[PM09] E. Preissmann and M. Mischler. Seating Couples around the King’s Tableand a New Characterization of Prime Numbers. The American Mathemat-ical Monthly, 116(3):pp. 268–272, 2009.http://www.jstor.org/stable/40391072.

Page 34: Seating couples and Tic-Tac-Toe - Eötvös Loránd Universityweb.cs.elte.hu/blobs/diplomamunkak/msc_mat/2013/mezei_tamas_robert.pdf · Seating couples and Tic-Tac-Toe Master’s Thesis

Bibliography 31

[SM10] E. Scheinerman and M. Michałek. A short proof of Combinatorial Null-stellensatz. The American Mathematical Monthly, 117(9):821–823, 2010.

[Sne99] H. S. Snevily. The Cayley addition table of Zn. The American MathematicalMonthly, 106(6):584–585, 1999.

E-mail: [email protected]