<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://michaelnielsen.org/polymath/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=121.220.134.232</id>
	<title>Polymath Wiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://michaelnielsen.org/polymath/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=121.220.134.232"/>
	<link rel="alternate" type="text/html" href="https://michaelnielsen.org/polymath/index.php?title=Special:Contributions/121.220.134.232"/>
	<updated>2026-04-08T00:00:21Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.42.3</generator>
	<entry>
		<id>https://michaelnielsen.org/polymath/index.php?title=Higher-dimensional_DHJ_numbers&amp;diff=1225</id>
		<title>Higher-dimensional DHJ numbers</title>
		<link rel="alternate" type="text/html" href="https://michaelnielsen.org/polymath/index.php?title=Higher-dimensional_DHJ_numbers&amp;diff=1225"/>
		<updated>2009-03-31T04:36:07Z</updated>

		<summary type="html">&lt;p&gt;121.220.134.232: /* (4,k) is saturated for odd k */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;For any n, k let &amp;lt;math&amp;gt;c_{n,k}&amp;lt;/math&amp;gt; denote the cardinality of the largest subset of &amp;lt;math&amp;gt;[k]^n&amp;lt;/math&amp;gt; that does not contain a combinatorial line.  When k=3, the quantity &amp;lt;math&amp;gt;c_{n,k} = c_n&amp;lt;/math&amp;gt; is studied for instance in [[upper and lower bounds|this page]].  The [[DHJ|density Hales-Jewett theorem]] asserts that for any fixed k, &amp;lt;math&amp;gt;\lim_{n \to \infty} c_n / k^n = 0&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
A [http://abel.math.umu.se/~klasm/Data/HJ/ computer search] has found the following &amp;lt;math&amp;gt;c_n&amp;lt;/math&amp;gt; values for different values of dimension n and edgelength k.  Several of these values reach the upper bound of &amp;lt;math&amp;gt;(k-1)k^{n-1}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
{| border=1 | &lt;br /&gt;
|n\k || 2 || 3 || 4 || 5 || 6 || 7&lt;br /&gt;
|-&lt;br /&gt;
| 2 || 2 || 6 || 12 || 20 || 30 || 42&lt;br /&gt;
|-&lt;br /&gt;
| 3 || 3 || 18 || 48 || 100 || 180 || 294&lt;br /&gt;
|-&lt;br /&gt;
| 4 || 6 || 52 || 183 || 500 || 1029-1079 || 2058&lt;br /&gt;
|-&lt;br /&gt;
| 5 || 10 || 150 || 683-732 || 2500&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
We trivially have&lt;br /&gt;
:&amp;lt;math&amp;gt;c_{n,1} = 0&amp;lt;/math&amp;gt; for n &amp;gt; 0 (and &amp;lt;math&amp;gt;c_{0,0}=1&amp;lt;/math&amp;gt;)&lt;br /&gt;
and [[Sperner&#039;s theorem]] tells us that&lt;br /&gt;
:&amp;lt;math&amp;gt;c_{n,2} = \binom{n}{\lfloor n/2\rfloor}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Now we look at the opposite regime, in which n is small and k is large.  We easily have&lt;br /&gt;
:&amp;lt;math&amp;gt;c_{0,k} = 1&amp;lt;/math&amp;gt;&lt;br /&gt;
and&lt;br /&gt;
:&amp;lt;math&amp;gt;c_{1,k} = k-1&amp;lt;/math&amp;gt;;&lt;br /&gt;
&lt;br /&gt;
together with the trivial bound&lt;br /&gt;
:&amp;lt;math&amp;gt;c_{n+1,k} \leq k c_{n,k}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
this implies that&lt;br /&gt;
:&amp;lt;math&amp;gt;c_{n,k} \leq (k-1) k^{n-1}&amp;lt;/math&amp;gt;&lt;br /&gt;
for any &amp;lt;math&amp;gt;n \geq 1&amp;lt;/math&amp;gt;.  Let us call a pair (n,k) with n &amp;gt; 0 &#039;&#039;saturated&#039;&#039; if &amp;lt;math&amp;gt;c_{n,k} = (k-1) k^{n-1}&amp;lt;/math&amp;gt;, thus there exists a line-free set with exactly one point omitted from every row and column.  &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Question&#039;&#039;&#039;: Which pairs (n,k) are saturated?&lt;br /&gt;
&lt;br /&gt;
From the above discussion we see that (1,k) is saturated for all k &amp;gt;= 1, and (n,1) is (rather trivially) saturated for all n.  Sperner&#039;s theorem tells us that (n,2) is saturated only for n= 1, 2.  Note that if (n,k) is unsaturated then (n&#039;,k) will be unsaturated for all n&#039; &amp;gt; n. &lt;br /&gt;
&lt;br /&gt;
== (2,k) is saturated when k is at least 1 ==&lt;br /&gt;
&lt;br /&gt;
It is simple to show when restricting to dimension two the maximal set size has to be k(k-1). This can be done by removing the diagonal values 11, 22, 33, …, kk. Since they are in disjoint lines this removal is minimal.&lt;br /&gt;
&lt;br /&gt;
The k missing points are one per line and one per column.&lt;br /&gt;
So their y-coordinates are a shuffle of their x-coordinates.&lt;br /&gt;
There are k! rearrangements of the numbers 1 to k.&lt;br /&gt;
The k points include a point on the diagonal, so this shuffle is not a derangement. There are k!/e derangements of the numbers 1 to k, so k!(1-1/e) optimal solutions&lt;br /&gt;
&lt;br /&gt;
The number of optimal solutions is [http://www.research.att.com/~njas/sequences/A002467 this sequence].&lt;br /&gt;
&lt;br /&gt;
== (3,k) is saturated when k is at least 3 ==&lt;br /&gt;
&lt;br /&gt;
Let S be a latin square of side k on the symbols 1…k, with colour i in position (i,i) ( This is not possible for k=2 )&lt;br /&gt;
&lt;br /&gt;
Let axis one in S correspond to coordinate 1 in [k]^3, axis two to coordinate 2 and interpret the colour in position (i,j) as the third coordinate. Delete the points so defined.&lt;br /&gt;
&lt;br /&gt;
The line with three wild cards has now been removed.&lt;br /&gt;
A line with two wildcards will be missing the point corresponding to the diagonal in S.&lt;br /&gt;
A line with a single wildcard will be missing a point corresponding to an off diagonal point in S.&lt;br /&gt;
&lt;br /&gt;
Something similar should work in higher dimensions if one can find latin cubes etc with the right diagonal properties.&lt;br /&gt;
&lt;br /&gt;
== (n,k) is saturated when all prime divisors of k are at least n ==&lt;br /&gt;
&lt;br /&gt;
First consider the case when k is prime and at least n: Delete those points whose coordinates add up to a multiple of k.&lt;br /&gt;
Every combinatorial line has one point deleted, except for the major diagonal of d=k, which has all points deleted.&lt;br /&gt;
&lt;br /&gt;
Now consider for instance the case (n,k) = (4,35).  Select one value modulo 35 and eliminate it.&lt;br /&gt;
Combinatorial lines with one, two, three or four moving coordinates will&lt;br /&gt;
realize all values modulo 35 as one, two, three, or four are units modulo 35, thus (4,35) is saturated.&lt;br /&gt;
&lt;br /&gt;
The same argument tells us that (n,k) is saturated when all prime divisors of k are at least n.&lt;br /&gt;
&lt;br /&gt;
On the other hand, computer data shows that (4,4) and (4,6) are not saturated.&lt;br /&gt;
&lt;br /&gt;
== (4,k) ==&lt;br /&gt;
&lt;br /&gt;
There are five types of points: xyzw, xxyz, xxyy, xxxy and xxxx.  Let p(xyzw) be the number of points removed whose coordinates are all different, and so on.  &lt;br /&gt;
&lt;br /&gt;
There are seven types of line: *xyz, *xxy, *xxx, **xy, **xx, ***x, ****.  Enough points must be removed to remove all lines.  That leads to the following inequalities&lt;br /&gt;
* &amp;lt;math&amp;gt; 4p(xyzw)+2p(xxyz) \ge 4k(k-1)(k-2)&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt; 2p(xxyz)+4p(xxyy)+3p(xxxy) \ge 12k(k-1)&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;  p(xxxy)+4p(xxxx) \ge 4k &amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;  p(xxyz)+3p(xxxy) \ge 6k(k-1) &amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt; 2p(xxyy)+6p(xxxx) \ge 6k &amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt; p(xxxx) \ge 1&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If (4,k) is saturated, then for some h between 0 and k-1 inclusive the k^3 missing points fall into the following types&lt;br /&gt;
* (k-1)(k-2)(k-3) - 6h of type xyzw&lt;br /&gt;
* 6(k-1)(k-2) + 12h of type xxyz&lt;br /&gt;
* 3(k-1) - 3h of type xxyy&lt;br /&gt;
* 4(k-1) - 4h of type xxxy&lt;br /&gt;
* 1 + h of type xxxx&lt;br /&gt;
&lt;br /&gt;
== General lower bounds ==&lt;br /&gt;
&lt;br /&gt;
There are k^{n-1} disjoint lines *abcd..m, so the density of removed points must be at least 1/k, and retained points at most (k-1)/k.  If n \le p \le k then one can get a density of (p-1)/p by deleting points whose coordinates sum to a multiple of p.&lt;br /&gt;
The lower bound (p-1)/p approaches (k-1)/k as k\rightarrow \infty.&lt;br /&gt;
&lt;br /&gt;
If k is prime and &amp;lt;math&amp;gt;k \ge n&amp;lt;/math&amp;gt;, then one can remove all combinatorial lines by deleting all points whose coordinates sum to a multiple of k.  So the density of deleted points in the optimal configuration is 1/k when k is prime.&lt;br /&gt;
&lt;br /&gt;
Let p be the smallest prime greater than or equal to both k and n.  One can remove all combinatorial lines by deleting all points whose coordinates sum to &amp;lt;math&amp;gt;0\le x\le p-k&amp;lt;/math&amp;gt; (mod p),  So the density of deleted points is at most (p-k+1)/p.  This approaches zero as &amp;lt;math&amp;gt;k\rightarrow\infty&amp;lt;/math&amp;gt;.  For example, the following paper shows there is a prime between x-x^0.525 and x.&lt;br /&gt;
&lt;br /&gt;
Baker, R. C.(1-BYU); Harman, G.(4-LNDHB); Pintz, J.(H-AOS)&lt;br /&gt;
The difference between consecutive primes. II.&lt;br /&gt;
Proc. London Math. Soc. (3) 83 (2001), no. 3, 532–562.&lt;br /&gt;
&lt;br /&gt;
I think these results can be used to get lower bounds on lines free sets for large n for all values of k. For any k and any n we can find a prime prelatively close to k^n then we remove the first k+1 values mod p then we pick a value then we remove the must k+1 so we only have k+2, 2k+3, etch&lt;br /&gt;
the idea is to prevent any two values on a line because two points on a combinatorial line increase by at most k. This has density 1/k so we have&lt;br /&gt;
a line free density of 1/(k+1).&lt;br /&gt;
&lt;br /&gt;
I think the above bound could possibly be improved. First by getting most of the set concentrated around the point with equal numbers of ones twos and threes or the point with values closes to equality the standard deviation should be something like the square root of n. Then we could apply the near prime with sets c(k^.5 + 1) and get a density of roughly c/k^.5&lt;br /&gt;
which I think will be better than the Behrend-Elkin construction as e^-x will eventually be less than 1/x as x increases without limit and the square root of k will increase without limit.&lt;/div&gt;</summary>
		<author><name>121.220.134.232</name></author>
	</entry>
	<entry>
		<id>https://michaelnielsen.org/polymath/index.php?title=Higher-dimensional_DHJ_numbers&amp;diff=1220</id>
		<title>Higher-dimensional DHJ numbers</title>
		<link rel="alternate" type="text/html" href="https://michaelnielsen.org/polymath/index.php?title=Higher-dimensional_DHJ_numbers&amp;diff=1220"/>
		<updated>2009-03-31T04:25:56Z</updated>

		<summary type="html">&lt;p&gt;121.220.134.232: /* c(4,k) */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;For any n, k let &amp;lt;math&amp;gt;c_{n,k}&amp;lt;/math&amp;gt; denote the cardinality of the largest subset of &amp;lt;math&amp;gt;[k]^n&amp;lt;/math&amp;gt; that does not contain a combinatorial line.  When k=3, the quantity &amp;lt;math&amp;gt;c_{n,k} = c_n&amp;lt;/math&amp;gt; is studied for instance in [[upper and lower bounds|this page]].  The [[DHJ|density Hales-Jewett theorem]] asserts that for any fixed k, &amp;lt;math&amp;gt;\lim_{n \to \infty} c_n / k^n = 0&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
A [http://abel.math.umu.se/~klasm/Data/HJ/ computer search] has found the following &amp;lt;math&amp;gt;c_n&amp;lt;/math&amp;gt; values for different values of dimension n and edgelength k.  Several of these values reach the upper bound of &amp;lt;math&amp;gt;(k-1)k^{n-1}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
{| border=1 | &lt;br /&gt;
|n\k || 2 || 3 || 4 || 5 || 6 || 7&lt;br /&gt;
|-&lt;br /&gt;
| 2 || 2 || 6 || 12 || 20 || 30 || 42&lt;br /&gt;
|-&lt;br /&gt;
| 3 || 3 || 18 || 48 || 100 || 180 || 294&lt;br /&gt;
|-&lt;br /&gt;
| 4 || 6 || 52 || 183 || 500 || 1029-1079 || 2058&lt;br /&gt;
|-&lt;br /&gt;
| 5 || 10 || 150 || 683-732 || 2500&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
We trivially have&lt;br /&gt;
:&amp;lt;math&amp;gt;c_{n,1} = 0&amp;lt;/math&amp;gt; for n &amp;gt; 0 (and &amp;lt;math&amp;gt;c_{0,0}=1&amp;lt;/math&amp;gt;)&lt;br /&gt;
and [[Sperner&#039;s theorem]] tells us that&lt;br /&gt;
:&amp;lt;math&amp;gt;c_{n,2} = \binom{n}{\lfloor n/2\rfloor}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Now we look at the opposite regime, in which n is small and k is large.  We easily have&lt;br /&gt;
:&amp;lt;math&amp;gt;c_{0,k} = 1&amp;lt;/math&amp;gt;&lt;br /&gt;
and&lt;br /&gt;
:&amp;lt;math&amp;gt;c_{1,k} = k-1&amp;lt;/math&amp;gt;;&lt;br /&gt;
&lt;br /&gt;
together with the trivial bound&lt;br /&gt;
:&amp;lt;math&amp;gt;c_{n+1,k} \leq k c_{n,k}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
this implies that&lt;br /&gt;
:&amp;lt;math&amp;gt;c_{n,k} \leq (k-1) k^{n-1}&amp;lt;/math&amp;gt;&lt;br /&gt;
for any &amp;lt;math&amp;gt;n \geq 1&amp;lt;/math&amp;gt;.  Let us call a pair (n,k) with n &amp;gt; 0 &#039;&#039;saturated&#039;&#039; if &amp;lt;math&amp;gt;c_{n,k} = (k-1) k^{n-1}&amp;lt;/math&amp;gt;, thus there exists a line-free set with exactly one point omitted from every row and column.  &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Question&#039;&#039;&#039;: Which pairs (n,k) are saturated?&lt;br /&gt;
&lt;br /&gt;
From the above discussion we see that (1,k) is saturated for all k &amp;gt;= 1, and (n,1) is (rather trivially) saturated for all n.  Sperner&#039;s theorem tells us that (n,2) is saturated only for n= 1, 2.  Note that if (n,k) is unsaturated then (n&#039;,k) will be unsaturated for all n&#039; &amp;gt; n. &lt;br /&gt;
&lt;br /&gt;
== (2,k) is saturated when k is at least 1 ==&lt;br /&gt;
&lt;br /&gt;
It is simple to show when restricting to dimension two the maximal set size has to be k(k-1). This can be done by removing the diagonal values 11, 22, 33, …, kk. Since they are in disjoint lines this removal is minimal.&lt;br /&gt;
&lt;br /&gt;
The k missing points are one per line and one per column.&lt;br /&gt;
So their y-coordinates are a shuffle of their x-coordinates.&lt;br /&gt;
There are k! rearrangements of the numbers 1 to k.&lt;br /&gt;
The k points include a point on the diagonal, so this shuffle is not a derangement. There are k!/e derangements of the numbers 1 to k, so k!(1-1/e) optimal solutions&lt;br /&gt;
&lt;br /&gt;
The number of optimal solutions is [http://www.research.att.com/~njas/sequences/A002467 this sequence].&lt;br /&gt;
&lt;br /&gt;
== (3,k) is saturated when k is at least 3 ==&lt;br /&gt;
&lt;br /&gt;
Let S be a latin square of side k on the symbols 1…k, with colour i in position (i,i) ( This is not possible for k=2 )&lt;br /&gt;
&lt;br /&gt;
Let axis one in S correspond to coordinate 1 in [k]^3, axis two to coordinate 2 and interpret the colour in position (i,j) as the third coordinate. Delete the points so defined.&lt;br /&gt;
&lt;br /&gt;
The line with three wild cards has now been removed.&lt;br /&gt;
A line with two wildcards will be missing the point corresponding to the diagonal in S.&lt;br /&gt;
A line with a single wildcard will be missing a point corresponding to an off diagonal point in S.&lt;br /&gt;
&lt;br /&gt;
Something similar should work in higher dimensions if one can find latin cubes etc with the right diagonal properties.&lt;br /&gt;
&lt;br /&gt;
== (n,k) is saturated when all prime divisors of k are at least n ==&lt;br /&gt;
&lt;br /&gt;
First consider the case when k is prime and at least n: Delete those points whose coordinates add up to a multiple of k.&lt;br /&gt;
Every combinatorial line has one point deleted, except for the major diagonal of d=k, which has all points deleted.&lt;br /&gt;
&lt;br /&gt;
Now consider for instance the case (n,k) = (4,35).  Select one value modulo 35 and eliminate it.&lt;br /&gt;
Combinatorial lines with one, two, three or four moving coordinates will&lt;br /&gt;
realize all values modulo 35 as one, two, three, or four are units modulo 35, thus (4,35) is saturated.&lt;br /&gt;
&lt;br /&gt;
The same argument tells us that (n,k) is saturated when all prime divisors of k are at least n.&lt;br /&gt;
&lt;br /&gt;
On the other hand, computer data shows that (4,4) and (4,6) are not saturated.&lt;br /&gt;
&lt;br /&gt;
== (4,k) is saturated for odd k ==&lt;br /&gt;
&lt;br /&gt;
If k is odd, then (4,k) is saturated:&lt;br /&gt;
&lt;br /&gt;
Delete all xxxx points, and all points xxyz and xyzw whose coordinates add up to a multiple of k.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
There are five types of points: xyzw, xxyz, xxyy, xxxy and xxxx.  Let p(xyzw) be the number of points removed whose coordinates are all different, and so on.  &lt;br /&gt;
&lt;br /&gt;
There are seven types of line: *xyz, *xxy, *xxx, **xy, **xx, ***x, ****.  Enough points must be removed to remove all lines.  That leads to the following inequalities&lt;br /&gt;
* &amp;lt;math&amp;gt; 4p(xyzw)+2p(xxyz) \ge 4k(k-1)(k-2)&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt; 2p(xxyz)+4p(xxyy)+3p(xxxy) \ge 12k(k-1)&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;  p(xxxy)+4p(xxxx) \ge 4k &amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;  p(xxyz)+3p(xxxy) \ge 6k(k-1) &amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt; 2p(xxyy)+6p(xxxx) \ge 6k &amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt; p(xxxx) \ge 1&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If (4,k) is saturated, then for some h between 0 and k-1 inclusive the k^3 missing points fall into the following types&lt;br /&gt;
* (k-1)(k-2)(k-3) - 6h of type xyzw&lt;br /&gt;
* 6(k-1)(k-2) + 12h of type xxyz&lt;br /&gt;
* 3(k-1) - 3h of type xxyy&lt;br /&gt;
* 4(k-1) - 4h of type xxxy&lt;br /&gt;
* 1 + h of type xxxx&lt;br /&gt;
&lt;br /&gt;
== General lower bounds ==&lt;br /&gt;
&lt;br /&gt;
There are k^{n-1} disjoint lines *abcd..m, so the density of removed points must be at least 1/k, and retained points at most (k-1)/k.  If n \le p \le k then one can get a density of (p-1)/p by deleting points whose coordinates sum to a multiple of p.&lt;br /&gt;
The lower bound (p-1)/p approaches (k-1)/k as k\rightarrow \infty.&lt;br /&gt;
&lt;br /&gt;
If k is prime and &amp;lt;math&amp;gt;k \ge n&amp;lt;/math&amp;gt;, then one can remove all combinatorial lines by deleting all points whose coordinates sum to a multiple of k.  So the density of deleted points in the optimal configuration is 1/k when k is prime.&lt;br /&gt;
&lt;br /&gt;
Let p be the smallest prime greater than or equal to both k and n.  One can remove all combinatorial lines by deleting all points whose coordinates sum to &amp;lt;math&amp;gt;0\le x\le p-k&amp;lt;/math&amp;gt; (mod p),  So the density of deleted points is at most (p-k+1)/p.  This approaches zero as &amp;lt;math&amp;gt;k\rightarrow\infty&amp;lt;/math&amp;gt;.  For example, the following paper shows there is a prime between x-x^0.525 and x.&lt;br /&gt;
&lt;br /&gt;
Baker, R. C.(1-BYU); Harman, G.(4-LNDHB); Pintz, J.(H-AOS)&lt;br /&gt;
The difference between consecutive primes. II.&lt;br /&gt;
Proc. London Math. Soc. (3) 83 (2001), no. 3, 532–562.&lt;br /&gt;
&lt;br /&gt;
I think these results can be used to get lower bounds on lines free sets for large n for all values of k. For any k and any n we can find a prime prelatively close to k^n then we remove the first k+1 values mod p then we pick a value then we remove the must k+1 so we only have k+2, 2k+3, etch&lt;br /&gt;
the idea is to prevent any two values on a line because two points on a combinatorial line increase by at most k. This has density 1/k so we have&lt;br /&gt;
a line free density of 1/(k+1).&lt;br /&gt;
&lt;br /&gt;
I think the above bound could possibly be improved. First by getting most of the set concentrated around the point with equal numbers of ones twos and threes or the point with values closes to equality the standard deviation should be something like the square root of n. Then we could apply the near prime with sets c(k^.5 + 1) and get a density of roughly c/k^.5&lt;br /&gt;
which I think will be better than the Behrend-Elkin construction as e^-x will eventually be less than 1/x as x increases without limit and the square root of k will increase without limit.&lt;/div&gt;</summary>
		<author><name>121.220.134.232</name></author>
	</entry>
	<entry>
		<id>https://michaelnielsen.org/polymath/index.php?title=Higher-dimensional_DHJ_numbers&amp;diff=1200</id>
		<title>Higher-dimensional DHJ numbers</title>
		<link rel="alternate" type="text/html" href="https://michaelnielsen.org/polymath/index.php?title=Higher-dimensional_DHJ_numbers&amp;diff=1200"/>
		<updated>2009-03-31T02:40:44Z</updated>

		<summary type="html">&lt;p&gt;121.220.134.232: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;For any n, k let &amp;lt;math&amp;gt;c_{n,k}&amp;lt;/math&amp;gt; denote the cardinality of the largest subset of &amp;lt;math&amp;gt;[k]^n&amp;lt;/math&amp;gt; that does not contain a combinatorial line.  When k=3, the quantity &amp;lt;math&amp;gt;c_{n,k} = c_n&amp;lt;/math&amp;gt; is studied for instance in [[upper and lower bounds|this page]].  The [[DHJ|density Hales-Jewett theorem]] asserts that for any fixed k, &amp;lt;math&amp;gt;\lim_{n \to \infty} c_n / k^n = 0&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
A [http://abel.math.umu.se/~klasm/Data/HJ/ computer search] has found the following &amp;lt;math&amp;gt;c_n&amp;lt;/math&amp;gt; values for different values of dimension n and edgelength k.  Several of these values reach the upper bound of &amp;lt;math&amp;gt;(k-1)k^{n-1}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
{| border=1 | &lt;br /&gt;
|n\k || 2 || 3 || 4 || 5 || 6 || 7&lt;br /&gt;
|-&lt;br /&gt;
| 2 || 2 || 6 || 12 || 20 || 30 || 42&lt;br /&gt;
|-&lt;br /&gt;
| 3 || 3 || 18 || 48 || 100 || 180 || 294&lt;br /&gt;
|-&lt;br /&gt;
| 4 || 6 || 52 || 183 || 500 || 1029-1079 || 2058&lt;br /&gt;
|-&lt;br /&gt;
| 5 || 10 || 150 || 683-732 || 2500&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
We trivially have&lt;br /&gt;
:&amp;lt;math&amp;gt;c_{n,1} = 0&amp;lt;/math&amp;gt; for n &amp;gt; 0 (and &amp;lt;math&amp;gt;c_{0,0}=1&amp;lt;/math&amp;gt;)&lt;br /&gt;
and [[Sperner&#039;s theorem]] tells us that&lt;br /&gt;
:&amp;lt;math&amp;gt;c_{n,2} = \binom{n}{\lfloor n/2\rfloor}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Now we look at the opposite regime, in which n is small and k is large.  We easily have&lt;br /&gt;
:&amp;lt;math&amp;gt;c_{0,k} = 1&amp;lt;/math&amp;gt;&lt;br /&gt;
and&lt;br /&gt;
:&amp;lt;math&amp;gt;c_{1,k} = k-1&amp;lt;/math&amp;gt;;&lt;br /&gt;
&lt;br /&gt;
together with the trivial bound&lt;br /&gt;
:&amp;lt;math&amp;gt;c_{n+1,k} \leq k c_{n,k}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
this implies that&lt;br /&gt;
:&amp;lt;math&amp;gt;c_{n,k} \leq (k-1) k^{n-1}&amp;lt;/math&amp;gt;&lt;br /&gt;
for any &amp;lt;math&amp;gt;n \geq 1&amp;lt;/math&amp;gt;.  Let us call a pair (n,k) with n &amp;gt; 0 &#039;&#039;saturated&#039;&#039; if &amp;lt;math&amp;gt;c_{n,k} = (k-1) k^{n-1}&amp;lt;/math&amp;gt;, thus there exists a line-free set with exactly one point omitted from every row and column.  &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Question&#039;&#039;&#039;: Which pairs (n,k) are saturated?&lt;br /&gt;
&lt;br /&gt;
From the above discussion we see that (1,k) is saturated for all k &amp;gt;= 1, and (n,1) is (rather trivially) saturated for all n.  Sperner&#039;s theorem tells us that (n,2) is saturated only for n= 1, 2.  Note that if (n,k) is unsaturated then (n&#039;,k) will be unsaturated for all n&#039; &amp;gt; n. &lt;br /&gt;
&lt;br /&gt;
== (2,k) is saturated when k is at least 1 ==&lt;br /&gt;
&lt;br /&gt;
It is simple to show when restricting to dimension two the maximal set size has to be k(k-1). This can be done by removing the diagonal values 11, 22, 33, …, kk. Since they are in disjoint lines this removal is minimal.&lt;br /&gt;
&lt;br /&gt;
The k missing points are one per line and one per column.&lt;br /&gt;
So their y-coordinates are a shuffle of their x-coordinates.&lt;br /&gt;
There are k! rearrangements of the numbers 1 to k.&lt;br /&gt;
The k points include a point on the diagonal, so this shuffle is not a derangement. There are k!/e derangements of the numbers 1 to k, so k!(1-1/e) optimal solutions&lt;br /&gt;
&lt;br /&gt;
The number of optimal solutions is [http://www.research.att.com/~njas/sequences/A002467 this sequence].&lt;br /&gt;
&lt;br /&gt;
== (3,k) is saturated when k is at least 3 ==&lt;br /&gt;
&lt;br /&gt;
Let S be a latin square of side k on the symbols 1…k, with colour i in position (i,i) ( This is not possible for k=2 )&lt;br /&gt;
&lt;br /&gt;
Let axis one in S correspond to coordinate 1 in [k]^3, axis two to coordinate 2 and interpret the colour in position (i,j) as the third coordinate. Delete the points so defined.&lt;br /&gt;
&lt;br /&gt;
The line with three wild cards has now been removed.&lt;br /&gt;
A line with two wildcards will be missing the point corresponding to the diagonal in S.&lt;br /&gt;
A line with a single wildcard will be missing a point corresponding to an off diagonal point in S.&lt;br /&gt;
&lt;br /&gt;
Something similar should work in higher dimensions if one can find latin cubes etc with the right diagonal properties.&lt;br /&gt;
&lt;br /&gt;
== (n,k) is saturated when all prime divisors of k are at least n ==&lt;br /&gt;
&lt;br /&gt;
First consider the case when k is prime and at least n: Delete those points whose coordinates add up to a multiple of k.&lt;br /&gt;
Every combinatorial line has one point deleted, except for the major diagonal of d=k, which has all points deleted.&lt;br /&gt;
&lt;br /&gt;
Now consider for instance the case (n,k) = (4,35).  Select one value modulo 35 and eliminate it.&lt;br /&gt;
Combinatorial lines with one, two, three or four moving coordinates will&lt;br /&gt;
realize all values modulo 35 as one, two, three, or four are units modulo 35, thus (4,35) is saturated.&lt;br /&gt;
&lt;br /&gt;
The same argument tells us that (n,k) is saturated when all prime divisors of k are at least n.&lt;br /&gt;
&lt;br /&gt;
On the other hand, computer data shows that (4,4) and (4,6) are not saturated.&lt;br /&gt;
&lt;br /&gt;
== c(4,k) ==&lt;br /&gt;
&lt;br /&gt;
There are five types of points: xyzw, xxyz, xxyy, xxxy and xxxx.  Let p(xyzw) be the number of points removed whose coordinates are all different, and so on.  &lt;br /&gt;
&lt;br /&gt;
There are seven types of line: *xyz, *xxy, *xxx, **xy, **xx, ***x, ****.  Enough points must be removed to remove all lines.  That leads to the following inequalities&lt;br /&gt;
* &amp;lt;math&amp;gt; 4p(xyzw)+2p(xxyz) \ge 4k(k-1)(k-2)&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt; 2p(xxyz)+4p(xxyy)+3p(xxxy) \ge 12k(k-1)&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;  p(xxxy)+4p(xxxx) \ge 4k &amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;  p(xxyz)+3p(xxxy) \ge 6k(k-1) &amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt; 2p(xxyy)+6p(xxxx) \ge 6k &amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt; p(xxxx) \ge 1&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If (4,k) is saturated, then for some h between 0 and k-1 inclusive the k^3 missing points fall into the following types&lt;br /&gt;
* (k-1)(k-2)(k-3) - 6h of type xyzw&lt;br /&gt;
* 6(k-1)(k-2) + 12h of type xxyz&lt;br /&gt;
* 3(k-1) - 3h of type xxyy&lt;br /&gt;
* 4(k-1) - 4h of type xxxy&lt;br /&gt;
* 1 + h of type xxxx&lt;br /&gt;
&lt;br /&gt;
== General lower bounds ==&lt;br /&gt;
&lt;br /&gt;
There are k^{n-1} disjoint lines *abcd..m, so the density of removed points must be at least 1/k, and retained points at most (k-1)/k.  If n \le p \le k then one can get a density of (p-1)/p by deleting points whose coordinates sum to a multiple of p.&lt;br /&gt;
The lower bound (p-1)/p approaches (k-1)/k as k\rightarrow \infty.&lt;br /&gt;
&lt;br /&gt;
If k is prime and &amp;lt;math&amp;gt;k \ge n&amp;lt;/math&amp;gt;, then one can remove all combinatorial lines by deleting all points whose coordinates sum to a multiple of k.  So the density of deleted points in the optimal configuration is 1/k when k is prime.&lt;br /&gt;
&lt;br /&gt;
Let p be the smallest prime greater than or equal to both k and n.  One can remove all combinatorial lines by deleting all points whose coordinates sum to &amp;lt;math&amp;gt;0\le x\le p-k&amp;lt;/math&amp;gt; (mod p),  So the density of deleted points is at most (p-k+1)/p.  This approaches zero as &amp;lt;math&amp;gt;k\rightarrow\infty&amp;lt;/math&amp;gt;.  For example, the following paper shows there is a prime between x-x^0.525 and x.&lt;br /&gt;
&lt;br /&gt;
Baker, R. C.(1-BYU); Harman, G.(4-LNDHB); Pintz, J.(H-AOS)&lt;br /&gt;
The difference between consecutive primes. II.&lt;br /&gt;
Proc. London Math. Soc. (3) 83 (2001), no. 3, 532–562.&lt;br /&gt;
&lt;br /&gt;
I think these results can be used to get lower bounds on lines free sets for large n for all values of k. For any k and any n we can find a prime prelatively close to k^n then we remove the first k+1 values mod p then we pick a value then we remove the must k+1 so we only have k+2, 2k+3, etch&lt;br /&gt;
the idea is to prevent any two values on a line because two points on a combinatorial line increase by at most k. This has density 1/k so we have&lt;br /&gt;
a line free density of 1/(k+1).&lt;br /&gt;
&lt;br /&gt;
I think the above bound could possibly be improved. First by getting most of the set concentrated around the point with equal numbers of ones twos and threes or the point with values closes to equality the standard deviation should be something like the square root of n. Then we could apply the near prime with sets c(k^.5 + 1) and get a density of roughly c/k^.5&lt;br /&gt;
which I think will be better than the Behrend-Elkin construction as e^-x will eventually be less than 1/x as x increases without limit and the square root of k will increase without limit.&lt;/div&gt;</summary>
		<author><name>121.220.134.232</name></author>
	</entry>
	<entry>
		<id>https://michaelnielsen.org/polymath/index.php?title=Talk:Fujimura%27s_problem&amp;diff=1148</id>
		<title>Talk:Fujimura&#039;s problem</title>
		<link rel="alternate" type="text/html" href="https://michaelnielsen.org/polymath/index.php?title=Talk:Fujimura%27s_problem&amp;diff=1148"/>
		<updated>2009-03-29T10:22:40Z</updated>

		<summary type="html">&lt;p&gt;121.220.134.232: /* General n */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Let &amp;lt;math&amp;gt;\overline{c}^\mu_{n,4}&amp;lt;/math&amp;gt; be the largest subset of the tetrahedral grid:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt; \{ (a,b,c,d) \in {\Bbb Z}_+^4: a+b+c+d=n \}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
which contains no tetrahedrons &amp;lt;math&amp;gt;(a+r,b,c,d), (a,b+r,c,d), (a,b,c+r,d), (a,b,c,d+r)&amp;lt;/math&amp;gt; with &amp;lt;math&amp;gt;r &amp;gt; 0&amp;lt;/math&amp;gt;; call such sets &#039;&#039;tetrahedron-free&#039;&#039;. &lt;br /&gt;
&lt;br /&gt;
These are the currently known values of the sequence:&lt;br /&gt;
&lt;br /&gt;
{|&lt;br /&gt;
| n || 0 || 1 || 2&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;math&amp;gt;\overline{c}^\mu_{n,4}&amp;lt;/math&amp;gt; || 1 || 3 || 7&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== n=0 ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\overline{c}^\mu_{0,4} = 1&amp;lt;/math&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
There are no tetrahedrons, so no removals are needed.&lt;br /&gt;
&lt;br /&gt;
== n=1 ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\overline{c}^\mu_{1,4} = 3&amp;lt;/math&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
Removing any one point on the grid will leave the set tetrahedron-free.&lt;br /&gt;
&lt;br /&gt;
== n=2 ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\overline{c}^\mu_{2,4} = 7&amp;lt;/math&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
Suppose the set can be tetrahedron-free in two removals. One of (2,0,0,0), (0,2,0,0), (0,0,2,0), and (0,0,0,2) must be removed. Removing any one of the four leaves three tetrahedrons to remove. However, no point coincides with all three tetrahedrons, therefore there must be more than two removals.&lt;br /&gt;
&lt;br /&gt;
Three removals (for example (0,0,0,2), (1,1,0,0) and (0,0,2,0)) leaves the set tetrahedron-free with a set size of 7.&lt;br /&gt;
&lt;br /&gt;
== General n ==&lt;br /&gt;
&lt;br /&gt;
A lower bound of 2(n-1)(n-2) can be obtained by keeping all points with exactly one coordinate equal to zero.&lt;br /&gt;
&lt;br /&gt;
You get a non-constructive quadratic lower bound for the quadruple problem by taking a random subset of size &amp;lt;math&amp;gt;cn^2&amp;lt;/math&amp;gt;. If c is not too large the linearity of expectation shows that the expected number of tetrahedrons in such a set is less than one, and so there must be a set of that size with no tetrahedrons.  I think &amp;lt;math&amp;gt; c = \frac{24^{1/4}}{6} + o(\frac{1}{n})&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
With coordinates (a,b,c,d), take the value a+2b+3c.  This forms an arithmetic progression of length 4 for any of the tetrahedrons we are looking for.  So we can take subsets of the form a+2b+3c=k, where k comes from a set with no such arithmetic progressions. [[http://arxiv.org/PS_cache/arxiv/pdf/0811/0811.3057v2.pdf This paper]] gives a complicated formula for the possible number of subsets.&lt;br /&gt;
&lt;br /&gt;
One upper bound can be found by counting tetrahedrons. For a given n the tetrahedral grid has &amp;lt;math&amp;gt;\frac{1}{24}n(n+1)(n+2)(n+3)&amp;lt;/math&amp;gt; tetrahedrons. Each point on the grid is part of n tetrahedrons, so &amp;lt;math&amp;gt;\frac{1}{24}(n+1)(n+2)(n+3)&amp;lt;/math&amp;gt; points must be removed to remove all tetrahedrons. This gives an upper bound of &amp;lt;math&amp;gt;\frac{1}{8}(n+1)(n+2)(n+3)&amp;lt;/math&amp;gt;.&lt;/div&gt;</summary>
		<author><name>121.220.134.232</name></author>
	</entry>
	<entry>
		<id>https://michaelnielsen.org/polymath/index.php?title=Talk:Fujimura%27s_problem&amp;diff=1147</id>
		<title>Talk:Fujimura&#039;s problem</title>
		<link rel="alternate" type="text/html" href="https://michaelnielsen.org/polymath/index.php?title=Talk:Fujimura%27s_problem&amp;diff=1147"/>
		<updated>2009-03-29T10:17:04Z</updated>

		<summary type="html">&lt;p&gt;121.220.134.232: /* General n */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Let &amp;lt;math&amp;gt;\overline{c}^\mu_{n,4}&amp;lt;/math&amp;gt; be the largest subset of the tetrahedral grid:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt; \{ (a,b,c,d) \in {\Bbb Z}_+^4: a+b+c+d=n \}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
which contains no tetrahedrons &amp;lt;math&amp;gt;(a+r,b,c,d), (a,b+r,c,d), (a,b,c+r,d), (a,b,c,d+r)&amp;lt;/math&amp;gt; with &amp;lt;math&amp;gt;r &amp;gt; 0&amp;lt;/math&amp;gt;; call such sets &#039;&#039;tetrahedron-free&#039;&#039;. &lt;br /&gt;
&lt;br /&gt;
These are the currently known values of the sequence:&lt;br /&gt;
&lt;br /&gt;
{|&lt;br /&gt;
| n || 0 || 1 || 2&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;math&amp;gt;\overline{c}^\mu_{n,4}&amp;lt;/math&amp;gt; || 1 || 3 || 7&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== n=0 ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\overline{c}^\mu_{0,4} = 1&amp;lt;/math&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
There are no tetrahedrons, so no removals are needed.&lt;br /&gt;
&lt;br /&gt;
== n=1 ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\overline{c}^\mu_{1,4} = 3&amp;lt;/math&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
Removing any one point on the grid will leave the set tetrahedron-free.&lt;br /&gt;
&lt;br /&gt;
== n=2 ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\overline{c}^\mu_{2,4} = 7&amp;lt;/math&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
Suppose the set can be tetrahedron-free in two removals. One of (2,0,0,0), (0,2,0,0), (0,0,2,0), and (0,0,0,2) must be removed. Removing any one of the four leaves three tetrahedrons to remove. However, no point coincides with all three tetrahedrons, therefore there must be more than two removals.&lt;br /&gt;
&lt;br /&gt;
Three removals (for example (0,0,0,2), (1,1,0,0) and (0,0,2,0)) leaves the set tetrahedron-free with a set size of 7.&lt;br /&gt;
&lt;br /&gt;
== General n ==&lt;br /&gt;
&lt;br /&gt;
A lower bound of 2(n-1)(n-2) can be obtained by keeping all points with exactly one coordinate equal to zero.&lt;br /&gt;
&lt;br /&gt;
You get a non-constructive quadratic lower bound for the quadruple problem by taking a random subset of size &amp;lt;math&amp;gt;cn^2&amp;lt;/math&amp;gt;. If c is not too large the linearity of expectation shows that the expected number of tetrahedrons in such a set is less than one, and so there must be a set of that size with no tetrahedrons.  I think &amp;lt;math&amp;gt; c = \frac{24^{1/4}}{6} + o(\frac{1}{n})&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
One upper bound can be found by counting tetrahedrons. For a given n the tetrahedral grid has &amp;lt;math&amp;gt;\frac{1}{24}n(n+1)(n+2)(n+3)&amp;lt;/math&amp;gt; tetrahedrons. Each point on the grid is part of n tetrahedrons, so &amp;lt;math&amp;gt;\frac{1}{24}(n+1)(n+2)(n+3)&amp;lt;/math&amp;gt; points must be removed to remove all tetrahedrons. This gives an upper bound of &amp;lt;math&amp;gt;\frac{1}{8}(n+1)(n+2)(n+3)&amp;lt;/math&amp;gt;.&lt;/div&gt;</summary>
		<author><name>121.220.134.232</name></author>
	</entry>
	<entry>
		<id>https://michaelnielsen.org/polymath/index.php?title=Talk:Fujimura%27s_problem&amp;diff=1146</id>
		<title>Talk:Fujimura&#039;s problem</title>
		<link rel="alternate" type="text/html" href="https://michaelnielsen.org/polymath/index.php?title=Talk:Fujimura%27s_problem&amp;diff=1146"/>
		<updated>2009-03-29T10:14:25Z</updated>

		<summary type="html">&lt;p&gt;121.220.134.232: /* General n */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Let &amp;lt;math&amp;gt;\overline{c}^\mu_{n,4}&amp;lt;/math&amp;gt; be the largest subset of the tetrahedral grid:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt; \{ (a,b,c,d) \in {\Bbb Z}_+^4: a+b+c+d=n \}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
which contains no tetrahedrons &amp;lt;math&amp;gt;(a+r,b,c,d), (a,b+r,c,d), (a,b,c+r,d), (a,b,c,d+r)&amp;lt;/math&amp;gt; with &amp;lt;math&amp;gt;r &amp;gt; 0&amp;lt;/math&amp;gt;; call such sets &#039;&#039;tetrahedron-free&#039;&#039;. &lt;br /&gt;
&lt;br /&gt;
These are the currently known values of the sequence:&lt;br /&gt;
&lt;br /&gt;
{|&lt;br /&gt;
| n || 0 || 1 || 2&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;math&amp;gt;\overline{c}^\mu_{n,4}&amp;lt;/math&amp;gt; || 1 || 3 || 7&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== n=0 ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\overline{c}^\mu_{0,4} = 1&amp;lt;/math&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
There are no tetrahedrons, so no removals are needed.&lt;br /&gt;
&lt;br /&gt;
== n=1 ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\overline{c}^\mu_{1,4} = 3&amp;lt;/math&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
Removing any one point on the grid will leave the set tetrahedron-free.&lt;br /&gt;
&lt;br /&gt;
== n=2 ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\overline{c}^\mu_{2,4} = 7&amp;lt;/math&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
Suppose the set can be tetrahedron-free in two removals. One of (2,0,0,0), (0,2,0,0), (0,0,2,0), and (0,0,0,2) must be removed. Removing any one of the four leaves three tetrahedrons to remove. However, no point coincides with all three tetrahedrons, therefore there must be more than two removals.&lt;br /&gt;
&lt;br /&gt;
Three removals (for example (0,0,0,2), (1,1,0,0) and (0,0,2,0)) leaves the set tetrahedron-free with a set size of 7.&lt;br /&gt;
&lt;br /&gt;
== General n ==&lt;br /&gt;
&lt;br /&gt;
A lower bound of 2(n-1)(n-2) can be obtained by keeping all points with exactly one coordinate equal to zero.&lt;br /&gt;
&lt;br /&gt;
You get a non-constructive quadratic lower bound for the quadruple problem by taking a random subset of size &amp;lt;math&amp;gt;cn^2&amp;lt;/math&amp;gt;. If c is not too large the linearity of expectation shows that the expected number of tetrahedrons in such a set is less than one, and so there must be a set of that size with no tetrahedrons.  I think c = (1/6)*24^.25 + o(1/n).&lt;br /&gt;
&lt;br /&gt;
One upper bound can be found by counting tetrahedrons. For a given n the tetrahedral grid has &amp;lt;math&amp;gt;\frac{1}{24}n(n+1)(n+2)(n+3)&amp;lt;/math&amp;gt; tetrahedrons. Each point on the grid is part of n tetrahedrons, so &amp;lt;math&amp;gt;\frac{1}{24}(n+1)(n+2)(n+3)&amp;lt;/math&amp;gt; points must be removed to remove all tetrahedrons. This gives an upper bound of &amp;lt;math&amp;gt;\frac{1}{8}(n+1)(n+2)(n+3)&amp;lt;/math&amp;gt;.&lt;/div&gt;</summary>
		<author><name>121.220.134.232</name></author>
	</entry>
	<entry>
		<id>https://michaelnielsen.org/polymath/index.php?title=Talk:Fujimura%27s_problem&amp;diff=1100</id>
		<title>Talk:Fujimura&#039;s problem</title>
		<link rel="alternate" type="text/html" href="https://michaelnielsen.org/polymath/index.php?title=Talk:Fujimura%27s_problem&amp;diff=1100"/>
		<updated>2009-03-28T17:47:52Z</updated>

		<summary type="html">&lt;p&gt;121.220.134.232: /* General n */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Let &amp;lt;math&amp;gt;\overline{c}^\mu_{n,4}&amp;lt;/math&amp;gt; be the largest subset of the tetrahedral grid:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt; \{ (a,b,c,d) \in {\Bbb Z}_+^4: a+b+c+d=n \}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
which contains no tetrahedrons &amp;lt;math&amp;gt;(a+r,b,c,d), (a,b+r,c,d), (a,b,c+r,d), (a,b,c,d+r)&amp;lt;/math&amp;gt; with &amp;lt;math&amp;gt;r &amp;gt; 0&amp;lt;/math&amp;gt;; call such sets &#039;&#039;tetrahedron-free&#039;&#039;. &lt;br /&gt;
&lt;br /&gt;
These are the currently known values of the sequence:&lt;br /&gt;
&lt;br /&gt;
{|&lt;br /&gt;
| n || 0 || 1 || 2&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;math&amp;gt;\overline{c}^\mu_{n,4}&amp;lt;/math&amp;gt; || 1 || 3 || 7&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== n=0 ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\overline{c}^\mu_{0,4} = 1&amp;lt;/math&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
There are no tetrahedrons, so no removals are needed.&lt;br /&gt;
&lt;br /&gt;
== n=1 ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\overline{c}^\mu_{1,4} = 3&amp;lt;/math&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
Removing any one point on the grid will leave the set tetrahedron-free.&lt;br /&gt;
&lt;br /&gt;
== n=2 ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\overline{c}^\mu_{2,4} = 7&amp;lt;/math&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
Suppose the set can be tetrahedron-free in two removals. One of (2,0,0,0), (0,2,0,0), (0,0,2,0), and (0,0,0,2) must be removed. Removing any one of the four leaves three tetrahedrons to remove. However, no point coincides with all three tetrahedrons, therefore there must be more than two removals.&lt;br /&gt;
&lt;br /&gt;
Three removals (for example (0,0,0,2), (1,1,0,0) and (0,0,2,0)) leaves the set tetrahedron-free with a set size of 7.&lt;br /&gt;
&lt;br /&gt;
== General n ==&lt;br /&gt;
&lt;br /&gt;
A lower bound of 6(n-1) can be obtained by removing (n,0,0,0), (0,n,0,0), (0,0,n,0), and (0,0,0,n) and all &amp;quot;internal points&amp;quot; (points where no coordinate is a zero). Alternatively, this can be thought of as keeping all points with exactly two coordinates equal to zero.&lt;br /&gt;
&lt;br /&gt;
A lower bound of 2(n-1)(n-2) can be obtained by keeping all points with exactly one coordinate equal to zero.&lt;br /&gt;
&lt;br /&gt;
You get a non-constructive quadratic lower bound for the quadruple problem by taking a random subset of size &amp;lt;math&amp;gt;cn^2&amp;lt;/math&amp;gt;. If c is not too large the linearity of expectation shows that the expected number of tetrahedrons in such a set is less than one, and so there must be a set of that size with no tetrahedrons.&lt;br /&gt;
&lt;br /&gt;
One upper bound can be found by counting tetrahedrons. For a given n the tetrahedral grid has &amp;lt;math&amp;gt;\frac{1}{24}n(n+1)(n+2)(n+3)&amp;lt;/math&amp;gt; tetrahedrons. Each point on the grid is part of n tetrahedrons, so &amp;lt;math&amp;gt;\frac{1}{24}(n+1)(n+2)(n+3)&amp;lt;/math&amp;gt; points must be removed to remove all tetrahedrons. This gives an upper bound of &amp;lt;math&amp;gt;\frac{1}{8}(n+1)(n+2)(n+3)&amp;lt;/math&amp;gt;.&lt;/div&gt;</summary>
		<author><name>121.220.134.232</name></author>
	</entry>
	<entry>
		<id>https://michaelnielsen.org/polymath/index.php?title=Upper_and_lower_bounds&amp;diff=1061</id>
		<title>Upper and lower bounds</title>
		<link rel="alternate" type="text/html" href="https://michaelnielsen.org/polymath/index.php?title=Upper_and_lower_bounds&amp;diff=1061"/>
		<updated>2009-03-26T05:38:56Z</updated>

		<summary type="html">&lt;p&gt;121.220.134.232: /* Other k values */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;center&amp;gt;&#039;&#039;&#039;Upper and lower bounds for &amp;lt;math&amp;gt;c_n&amp;lt;/math&amp;gt; for small values of n.&#039;&#039;&#039;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;c_n&amp;lt;/math&amp;gt; is the size of the largest subset of &amp;lt;math&amp;gt;[3]^n&amp;lt;/math&amp;gt; that does not contain a combinatorial line (OEIS [http://www.research.att.com/~njas/sequences/A156762 A156762].  A spreadsheet for all the latest bounds on &amp;lt;math&amp;gt;c_n&amp;lt;/math&amp;gt; [http://spreadsheets.google.com/ccc?key=p5T0SktZY9DsU-uZ1tK7VEg can be found here].  In this page we record the proofs justifying these bounds.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{|&lt;br /&gt;
| n || 0 || 1 || 2 || 3 || 4 || 5 || 6 || 7&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;math&amp;gt;c_n&amp;lt;/math&amp;gt; || 1 || 2 || 6 || 18 || 52 || 150 || 450 || [1302,1348]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Basic constructions ==&lt;br /&gt;
&lt;br /&gt;
For all &amp;lt;math&amp;gt;n \geq 1&amp;lt;/math&amp;gt;, a basic example of a mostly line-free set is&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;D_n := \{ (x_1,\ldots,x_n) \in [3]^n: \sum_{i=1}^n x_i \neq 0 \ \operatorname{mod}\ 3 \}&amp;lt;/math&amp;gt;.  (1)&lt;br /&gt;
&lt;br /&gt;
This has cardinality &amp;lt;math&amp;gt;|D_n| = 2 \times 3^{n-1}&amp;lt;/math&amp;gt;.  The only lines in &amp;lt;math&amp;gt;D_n&amp;lt;/math&amp;gt; are those with&lt;br /&gt;
&lt;br /&gt;
# A number of wildcards equal to a multiple of three;&lt;br /&gt;
# The number of 1s unequal to the number of 2s modulo 3.&lt;br /&gt;
&lt;br /&gt;
One way to construct line-free sets is to start with &amp;lt;math&amp;gt;D_n&amp;lt;/math&amp;gt; and remove some additional points.  We also have the variants &amp;lt;math&amp;gt;D_{n,0}=D_n, D_{n,1}, D_{n,2}&amp;lt;/math&amp;gt; defined as&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;D_{n,j} := \{ (x_1,\ldots,x_n) \in [3]^n: \sum_{i=1}^n x_i \neq j \ \operatorname{mod}\ 3 \}&amp;lt;/math&amp;gt;.  (1&#039;)&lt;br /&gt;
&lt;br /&gt;
When n is not a multiple of 3, then &amp;lt;math&amp;gt;D_{n,0}, D_{n,1}, D_{n,2}&amp;lt;/math&amp;gt; are all cyclic permutations of each other; but when n is a multiple of 3, then &amp;lt;math&amp;gt;D_{n,0}&amp;lt;/math&amp;gt; plays a special role (though &amp;lt;math&amp;gt;D_{n,1}, D_{n,2}&amp;lt;/math&amp;gt; are still interchangeable).&lt;br /&gt;
&lt;br /&gt;
Another useful construction proceeds by using the slices &amp;lt;math&amp;gt;\Gamma_{a,b,c} \subset [3]^n&amp;lt;/math&amp;gt; for &amp;lt;math&amp;gt;(a,b,c)&amp;lt;/math&amp;gt; in the triangular grid&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\Delta_n := \{ (a,b,c) \in {\Bbb Z}_+^3: a+b+c = n \},&amp;lt;/math&amp;gt;.  (2)&lt;br /&gt;
&lt;br /&gt;
where &amp;lt;math&amp;gt;\Gamma_{a,b,c}&amp;lt;/math&amp;gt; is defined as the strings in &amp;lt;math&amp;gt;[3]^n&amp;lt;/math&amp;gt; with &amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt; 1s, &amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt; 2s, and &amp;lt;math&amp;gt;c&amp;lt;/math&amp;gt; 3s.  Note that&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;|\Gamma_{a,b,c}| = \frac{n!}{a! b! c!}.&amp;lt;/math&amp;gt; (3)&lt;br /&gt;
&lt;br /&gt;
Given any set &amp;lt;math&amp;gt;B \subset \Delta_n&amp;lt;/math&amp;gt; that avoids equilateral triangles &amp;lt;math&amp;gt; (a+r,b,c), (a,b+r,c), (a,b,c+r)&amp;lt;/math&amp;gt;, the set&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\Gamma_B := \bigcup_{(a,b,c) \in B} \Gamma_{a,b,c}&amp;lt;/math&amp;gt; (4)&lt;br /&gt;
&lt;br /&gt;
is line-free and has cardinality&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;|\Gamma_B| = \sum_{(a,b,c) \in B} \frac{n!}{a! b! c!},&amp;lt;/math&amp;gt; (5)&lt;br /&gt;
&lt;br /&gt;
and thus provides a lower bound for &amp;lt;math&amp;gt;c_n&amp;lt;/math&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;c_n \geq \sum_{(a,b,c) \in B} \frac{n!}{a! b! c!}.&amp;lt;/math&amp;gt; (6)&lt;br /&gt;
&lt;br /&gt;
All lower bounds on &amp;lt;math&amp;gt;c_n&amp;lt;/math&amp;gt; have proceeded so far by choosing a good set of B and applying (6).  Note that &amp;lt;math&amp;gt;D_n&amp;lt;/math&amp;gt; is the same as &amp;lt;math&amp;gt;\Gamma_{B_n}&amp;lt;/math&amp;gt;, where &amp;lt;math&amp;gt;B_n&amp;lt;/math&amp;gt; consists of those triples &amp;lt;math&amp;gt;(a,b,c) \in \Delta_n&amp;lt;/math&amp;gt; in which &amp;lt;math&amp;gt;a \neq b\ \operatorname{mod}\ 3&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Note that if one takes a line-free set and permutes the alphabet &amp;lt;math&amp;gt;\{1,2,3\}&amp;lt;/math&amp;gt; in any fashion (e.g. replacing all 1s by 2s and vice versa), one also gets a line-free set.  This potentially gives six examples from any given starting example of a line-free set, though in practice there is enough symmetry that the total number of examples produced this way is less than six.  (These six examples also correspond to the six symmetries of the triangular grid &amp;lt;math&amp;gt;\Delta_n&amp;lt;/math&amp;gt; formed by rotation and reflection.)&lt;br /&gt;
&lt;br /&gt;
Another symmetry comes from permuting the &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt; indices in the strings of &amp;lt;math&amp;gt;[3]^n&amp;lt;/math&amp;gt; (e.g. replacing every string by its reversal).  But the sets &amp;lt;math&amp;gt;\Gamma_B&amp;lt;/math&amp;gt; are automatically invariant under such permutations and thus do not produce new line-free sets via this symmetry.&lt;br /&gt;
&lt;br /&gt;
== The basic upper bound ==&lt;br /&gt;
&lt;br /&gt;
Because &amp;lt;math&amp;gt;[3]^{n+1}&amp;lt;/math&amp;gt; can be expressed as the union of three copies of &amp;lt;math&amp;gt;[3]^n&amp;lt;/math&amp;gt;, we have the basic upper bound&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;c_{n+1} \leq 3 c_n.&amp;lt;/math&amp;gt; (7)&lt;br /&gt;
&lt;br /&gt;
Note that equality only occurs if one can find an &amp;lt;math&amp;gt;n+1&amp;lt;/math&amp;gt;-dimensional line-free set such that every n-dimensional slice has the maximum possible cardinality of &amp;lt;math&amp;gt;c_n&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== n=0 ==&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;c_0=1&amp;lt;/math&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
This is clear.&lt;br /&gt;
&lt;br /&gt;
== n=1 ==&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;c_1=2&amp;lt;/math&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
The three sets &amp;lt;math&amp;gt;D_1 = \{1,2\}&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;D_{1,1} = \{2,3\}&amp;lt;/math&amp;gt;, and &amp;lt;math&amp;gt;D_{1,2} = \{1,3\}&amp;lt;/math&amp;gt; are the only two-element sets which are line-free in &amp;lt;math&amp;gt;[3]^1&amp;lt;/math&amp;gt;, and there are no three-element sets.&lt;br /&gt;
&lt;br /&gt;
== n=2 ==&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;c_2=6&amp;lt;/math&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
There are four six-element sets in &amp;lt;math&amp;gt;[3]^2&amp;lt;/math&amp;gt; which are line-free, which we denote &amp;lt;math&amp;gt;x = D_{2,2}&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;y=D_{2,1}&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;z=D_2&amp;lt;/math&amp;gt;, and &amp;lt;math&amp;gt;w&amp;lt;/math&amp;gt; and are displayed graphically as follows.&lt;br /&gt;
&lt;br /&gt;
     13 .. 33       .. 23 33       13 23 ..       13 23 ..&lt;br /&gt;
 x = 12 22 ..   y = 12 .. 32   z = .. 22 32   w = 12 .. 32&lt;br /&gt;
     .. 21 31       11 21 ..       11 .. 31       .. 21 31&lt;br /&gt;
&lt;br /&gt;
Combining this with the basic upper bound (7) we see that &amp;lt;math&amp;gt;c_2=6&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== n=3 ==&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;c_3=18&amp;lt;/math&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
We describe a subset &amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt; of &amp;lt;math&amp;gt;[3]^3&amp;lt;/math&amp;gt; as a string &amp;lt;math&amp;gt;abc&amp;lt;/math&amp;gt;, where &amp;lt;math&amp;gt;a, b, c \subset [3]^2&amp;lt;/math&amp;gt; correspond to strings of the form &amp;lt;math&amp;gt;1**&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;2**&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;3**&amp;lt;/math&amp;gt; in &amp;lt;math&amp;gt;[3]^3&amp;lt;/math&amp;gt; respectively.  Thus for instance &amp;lt;math&amp;gt;D_3 = xyz&amp;lt;/math&amp;gt;, and so from (7) we have &amp;lt;math&amp;gt;c_3=18&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Lemma 1.&#039;&#039;&#039;&lt;br /&gt;
* The only 18-element line-free subset of &amp;lt;math&amp;gt;[3]^3&amp;lt;/math&amp;gt; is &amp;lt;math&amp;gt;D_3 = xyz&amp;lt;/math&amp;gt;.&lt;br /&gt;
* The only 17-element line-free subsets of &amp;lt;math&amp;gt;[3]^3&amp;lt;/math&amp;gt; are formed by removing a point from &amp;lt;math&amp;gt;D_3=xyz&amp;lt;/math&amp;gt;, or by removing either 111, 222, or 333 from &amp;lt;math&amp;gt;D_{3,2} = yzx&amp;lt;/math&amp;gt; or &amp;lt;math&amp;gt;D_{3,3}=zxy&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039;.  We prove the second claim. As &amp;lt;math&amp;gt;17=6+6+5&amp;lt;/math&amp;gt;, and &amp;lt;math&amp;gt;c_2=6&amp;lt;/math&amp;gt;, at least two of the slices of a 17-element line-free set must be from x, y, z, w, with the third slice having 5 points.  If two of the slices are identical, the last slice can have only 3 points, a contradiction.  If one of the slices is a w, then the 5-point slice will contain a diagonal, contradiction.  By symmetry we may now assume that two of the slices are x and y, which force the last slice to be z with one point removed.  Now one sees that the slices must be in the order xyz, yzx, or zxy, because any other combination has too many lines that need to be removed.  The sets yzx, zxy contain the diagonal {111,222,333} and so one additional point needs to be removed. &lt;br /&gt;
&lt;br /&gt;
The first claim follows by a similar argument to the second.&lt;br /&gt;
&amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== n=4 ==&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;c_4=52&amp;lt;/math&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
Indeed, divide a line-free set in &amp;lt;math&amp;gt;[3]^4&amp;lt;/math&amp;gt; into three blocks &amp;lt;math&amp;gt;1***, 2***, 3***&amp;lt;/math&amp;gt; of &amp;lt;math&amp;gt;[3]^3&amp;lt;/math&amp;gt;.  If two of them are of size 18, then they must both be xyz, and the third block can have at most 6 elements, leading to an inferior bound of 42.  So the best one can do is &amp;lt;math&amp;gt;18+17+17=52&amp;lt;/math&amp;gt; which can be attained by deleting the diagonal {1111,2222,3333} from &amp;lt;math&amp;gt;D_{4,1} = xyz\ yzx\ xzy&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;D_4 = yzx\ zxy\ xyz&amp;lt;/math&amp;gt;, or &amp;lt;math&amp;gt;D_{4,2} = zxy\ xyz\ yzx&amp;lt;/math&amp;gt;.  In fact,&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Lemma 2.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* The only 52-element line-free sets in &amp;lt;math&amp;gt;[3]^4&amp;lt;/math&amp;gt; are formed by removing the diagonal {1111,2222,3333} from &amp;lt;math&amp;gt;D_{4,j}&amp;lt;/math&amp;gt; for some j=0,1,2.&lt;br /&gt;
* The only 51-element line-free sets in &amp;lt;math&amp;gt;[3]^4&amp;lt;/math&amp;gt; are formed by removing the diagonal and one further point from &amp;lt;math&amp;gt;D_{4,j}&amp;lt;/math&amp;gt; for some j=0,1,2.&lt;br /&gt;
* The only 50-element line-free sets in &amp;lt;math&amp;gt;[3]^4&amp;lt;/math&amp;gt; are formed by removing the diagonal and two further points from &amp;lt;math&amp;gt;D_{4,j}&amp;lt;/math&amp;gt; for some j=0,1,2  OR is equal to one of the three permutations of the set &amp;lt;math&amp;gt;X := \Gamma_{3,1,0} \cup \Gamma_{3,0,1} \cup \Gamma_{2,2,0} \cup \Gamma_{2,0,2} \cup \Gamma_{1,1,2} \cup \Gamma_{1,2,1} \cup \Gamma_{0,2,2}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; It suffices to prove the third claim.  In fact it suffices to show that every 50-point line-free set is either contained in the 54-point set &amp;lt;math&amp;gt;D_{4,j}&amp;lt;/math&amp;gt; for some j=0,1,2, or is some permutation of the set X. Indeed, if a 50-point line-free set is contained in, say, &amp;lt;math&amp;gt;D_4&amp;lt;/math&amp;gt;, then it cannot contain 2222, since otherwise it must omit one point from each of the four pairs formed from {2333, 2111} by permuting the indices, and must also omit one of {1111, 1222, 1333}, leading to at most 49 points in all; similarly, it cannot contain 1111, and so omits the entire diagonal {1111,2222,3333}, with two more points to be omitted.  Similarly when &amp;lt;math&amp;gt;D_4&amp;lt;/math&amp;gt; is replaced by one of the other &amp;lt;math&amp;gt;D_{4,j}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Next, observe that every three-dimensional slice of a line-free set can have at most &amp;lt;math&amp;gt;c_3=18&amp;lt;/math&amp;gt; points; thus when one partitions a 50-point line-free set into three such slices, it must divide either as 18+16+16, 17+17+16, or some permutation of these.&lt;br /&gt;
&lt;br /&gt;
Suppose that we can slice the set into two slices of 17 points and one slice of 16 points.  By the various symmetries, we may assume that the 1*** slice and 2*** slices have 17 points, and the 3*** slice has 16 points.  By Lemma 1, the 1-slice is &amp;lt;math&amp;gt;\{1\} \times D_{3,j}&amp;lt;/math&amp;gt; with one point removed, and the 2-slice is &amp;lt;math&amp;gt;\{2\} \times D_{3,k}&amp;lt;/math&amp;gt; with one point removed, for some &amp;lt;math&amp;gt;j,k \in \{0,1,2\}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
If j=k, then the 1-slice and 2-slice have at least 15 points in common, so the 3-slice can have at most &amp;lt;math&amp;gt;27-15=12&amp;lt;/math&amp;gt; points, a contradiction.  If jk = 01, 12, or 20, then observe that from Lemma 1 the *1**, *2**, *3** slices cannot equal a 17-point or 18-point line-free set, so each have at most 16 points, leading to only 48 points in all, a contradiction.  Thus we must have jk = 10, 21, or 02.&lt;br /&gt;
&lt;br /&gt;
Let&#039;s first suppose that jk=02.  Then by Lemma 1, the 2*** slice contains the nine points formed from {2211, 2322, 2331} and permuting the last three indices, while the 1*** slice contains at least eight of the nine points formed from {1211, 1322, 1311} and permuting the last three indices.  Thus the 3*** slice can contain at most one of the nine points formed from {3211, 3322, 3311} and permuting the last three indices.  If it does contain one of these points, say 3211, then it must omit one point from each of the four pairs {3222, 3233}, {3212, 3213}, {3221, 3231}, {3111, 3311}, leading to at most 15 points on this slice, a contradiction.  So the 3*** slice must omit all nine points, and is therefore contained in &amp;lt;math&amp;gt;\{3\} \times D_{4,1}&amp;lt;/math&amp;gt;, and so the 50-point set is contained in &amp;lt;math&amp;gt;D_{4,1}&amp;lt;/math&amp;gt;, and we are done by the discussion at the beginning of the proof.&lt;br /&gt;
&lt;br /&gt;
The case jk=10 is similar to the jk=02 case (indeed one can get from one case to the other by swapping the 1 and 2 indices).  Now suppose instead that jk=12.  Then by Lemma 1, the 1*** slice contains the six points from permuting the last three indices of 1123, and similarly the 2*** slice contains the six points from permuting the last three indices of 2123.  Thus the 3*** slice must avoid all six points formed by permuting the last three indices of 3123.  Similarly, as 1133 lies in the 1*** slice and 2233 lies in the 2*** slice, 3333 must be avoided in the 3*** slice.&lt;br /&gt;
&lt;br /&gt;
Now we claim that 3111 must be avoided also; for if 3111 was in the set, then one point from each of the six pairs formed from {3311, 3211}, {3331, 3221} and permuting the last three indices must lie outside the 3*** slice, which reduces the size of that slice to at most &amp;lt;math&amp;gt;27-6-1-6=14&amp;lt;/math&amp;gt;, which is too small.  Similarly, 3222 must be avoided, which puts the 3*** slice inside &amp;lt;math&amp;gt;\{3\} \times D_3&amp;lt;/math&amp;gt; and then places the 50-point set inside &amp;lt;math&amp;gt;D_4&amp;lt;/math&amp;gt;, and we are done by the discussion at the beginning of the proof.&lt;br /&gt;
&lt;br /&gt;
We have handled the case in which at least one of the slicings of the 50-point set is of the form 50=17+17+16.  The only remaining case is when all slicings of the 50-point set are of the form 18+17+16 (or a permutation thereof).  By the symmetries of the situation, we may assume that the 1*** slice has 18 points, and thus by Lemma 1 takes the form &amp;lt;math&amp;gt;\{1\} \times D_3&amp;lt;/math&amp;gt;.  Inspecting the *1**, *2**, *3** slices, we then see (from Lemma 1) that only the *1** slice can have 18 points; since we are assuming that this slicing is some permutation of 50=18+17+16, we conclude that the *1** slice must have exactly 18 points, and is thus described precisely by Lemma 1.  Similarly for the **1* and ***1 slices.  Indeed, by Lemma 1, we see that the 50-point set must agree exactly with &amp;lt;math&amp;gt;D_{4,1}&amp;lt;/math&amp;gt; on any of these slices.  In particular, on the remaining portion &amp;lt;math&amp;gt;\{2,3\}^4&amp;lt;/math&amp;gt; of the cube, there are exactly 6 points of the 50-point set in &amp;lt;math&amp;gt;\{2,3\}^4&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Suppose that 3333 was in the set; then since all permutations of 3311, 3331 are known to lie in the set, then 3322, 3332 must lie outside the set.  Also, as 1222 lies in the set, at least one of 2222, 3222 lie outside the set.  This leaves only 5 points in &amp;lt;math&amp;gt;\{2,3\}^4&amp;lt;/math&amp;gt;, a contradiction.  Thus 3333 lies outside the set; similarly 2222 lies outside the set.&lt;br /&gt;
&lt;br /&gt;
Let a be the number of points in the 50-point set which are some permutation of 2233, thus &amp;lt;math&amp;gt;0 \leq a \leq 6&amp;lt;/math&amp;gt;.  If a=0 then the set lies in &amp;lt;math&amp;gt;D_{4,1}&amp;lt;/math&amp;gt; and we are done.  If a=6 then the set is exactly X and we are done.  Now suppose a=1,2,3.  By symmetry we may assume that 2233 lies in the set.  Then (since 2133, 1233 2231, 2213 are known to lie in the set) 2333, 3233, 2223, 2232 lie outside the set, which leaves at most 5 points inside &amp;lt;math&amp;gt;\{2,3\}^4&amp;lt;/math&amp;gt;, a contradiction.&lt;br /&gt;
&lt;br /&gt;
The remaining case is when a=4,5.  Then one of the three pairs {2233, 3322}, {2323, 3232}, {2332, 3223} lie in the set.  By symmetry we may assume that {2233, 3322} lie in the set.  Then by arguing as before we see that all eight points formed by permuting 2333 or 3222 lie outside the set, leading to at most 5 points inside &amp;lt;math&amp;gt;\{2,3\}^4&amp;lt;/math&amp;gt;, a contradiction.&lt;br /&gt;
&amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== n=5 ==&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;c_5=150&amp;lt;/math&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Lemma 3&#039;&#039;&#039;.  Any line-free subset of &amp;lt;math&amp;gt;D_{5,j}&amp;lt;/math&amp;gt; can have at most 150 points.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039;.  By rotation we may work with &amp;lt;math&amp;gt;D_5&amp;lt;/math&amp;gt;.  This set has 162 points.  By looking at the triplets {10000, 11110, 12220} and cyclic permutations we must lose 5 points; similarly from the triplets {20000,22220, 21110} and cyclic permutations.  Finally from {11000,11111,11222} and {22000,22222,22111} we lose two more points. &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Equality can be attained by removing  &amp;lt;math&amp;gt;\Gamma_{0,4,1}, \Gamma_{0,5,0}, \Gamma_{4,0,1}, \Gamma_{5,0,0}&amp;lt;/math&amp;gt; from &amp;lt;math&amp;gt;D_5&amp;lt;/math&amp;gt;.  Thus &amp;lt;math&amp;gt;c_5 \geq 150&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Another pattern of 150 points is this: Take the 450 points&lt;br /&gt;
in &amp;lt;math&amp;gt;{}[3]^6&amp;lt;/math&amp;gt; which are (1,2,3), (0,2,4) and permutations,&lt;br /&gt;
then select the 150 whose final coordinate is 1. That gives&lt;br /&gt;
this many points in each cube:&lt;br /&gt;
&lt;br /&gt;
17 18 17&lt;br /&gt;
&lt;br /&gt;
17 17 18&lt;br /&gt;
&lt;br /&gt;
12 17 17&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Lemma 4&#039;&#039;&#039;.  A line-free subset of &amp;lt;math&amp;gt;[3]^5&amp;lt;/math&amp;gt; with over 150 points cannot have two parallel &amp;lt;math&amp;gt;[3]^4&amp;lt;/math&amp;gt; slices, each of which contain at least 51 points.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039;.  Suppose not.  By symmetry, we may assume that the 1**** and 2**** slices have at least 51 points, and that the whole set has at least 151 points, which force the third slice to have at least &amp;lt;math&amp;gt;151-2c_4 = 47&amp;lt;/math&amp;gt; points.&lt;br /&gt;
&lt;br /&gt;
By Lemma 2, the 1**** slice takes the form &amp;lt;math&amp;gt;\{1\} \times D_{4,j}&amp;lt;/math&amp;gt; for some &amp;lt;math&amp;gt;j=0,1,2&amp;lt;/math&amp;gt; with the diagonal {11111,12222,13333} and possibly one more point removed, and similarly the 2**** slice takes the form &amp;lt;math&amp;gt;\{2\} \times D_{4,k}&amp;lt;/math&amp;gt; for some &amp;lt;math&amp;gt;k=0,1,2&amp;lt;/math&amp;gt; with the diagonal {21111,22222,23333} and possibly one more point removed.&lt;br /&gt;
&lt;br /&gt;
Suppose first that j=k.  Then the 1-slice and 2-slice have at least 50 points in common, leaving at most 31 points for the 3-slice, a contradiction.  Next, suppose that jk=01.  Then observe that the *i*** slice cannot look like any of the configurations in Lemma 2 and so must have at most 50 points for i=1,2,3, leading to 150 points in all, a contradiction.  Similarly if jk=12 or 20.  Thus we must have jk equal to 10, 21, or 02.&lt;br /&gt;
&lt;br /&gt;
Let&#039;s suppose first that jk=10.  The first slice then is equal to &amp;lt;math&amp;gt;\{1\} \times D_{4,1}&amp;lt;/math&amp;gt; with the diagonal and possibly one more point removed, while the second slice is equal to &amp;lt;math&amp;gt;\{2\} \times D_{4,0}&amp;lt;/math&amp;gt; with the diagonal and possibly one more point removed.  Superimposing these slices, we thus see that the third slice is contained in &amp;lt;math&amp;gt;\{3\} \times D_{4,2}&amp;lt;/math&amp;gt; except possibly for two additional points, together with the one point 32222 of the diagonal that lies outside of &amp;lt;math&amp;gt;\{3\} \times D_{4,2}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
The lines x12xx, x13xx (plus permutations of the last four digits) must each contain one point outside the set.  The first two slices can only absorb two of these, and so at least 14 of the 16 points formed by permuting the last four digits of 31233, 31333 must lie outside the set.  These points all lie in &amp;lt;math&amp;gt;\{3\} \times D_{4,2}&amp;lt;/math&amp;gt;, and so the 3**** slice can have at most &amp;lt;math&amp;gt;|D_{4,2}|-14+3=43&amp;lt;/math&amp;gt; points, a contradiction.&lt;br /&gt;
&lt;br /&gt;
The case jk=02 is similar to the case jk=10 (indeed one can obtain one from the other by swapping 1 and 2).  Now we turn to the case jk=21.  Arguing as before we see that the third slice is contained in &amp;lt;math&amp;gt;\{3\} \times D_4&amp;lt;/math&amp;gt; except possibly for two points, together with 33333.  &lt;br /&gt;
&lt;br /&gt;
If 33333 was in the set, then each of the lines xx333, xxx33 (and permutations of the last four digits) must have a point missing from the first two slices, which cannot be absorbed by the two points we are permitted to remove; thus 33333 is not in the set.  For similar reasons, 33331 is not in the set, as can be seen by looking at xxx31 and permutations of the last four digits.  Indeed, any string containing four threes does not lie in the set; this means that at least 8 points are missing from &amp;lt;math&amp;gt;\{3\} \times D_4&amp;lt;/math&amp;gt;, leaving only at most 46 points inside that set.  Furthermore, any point in the 3**** slice outside of &amp;lt;math&amp;gt;\{3\} \times D_4&amp;lt;/math&amp;gt; can only be created by removing a point from the first two slices, so the total cardinality is at most &amp;lt;math&amp;gt;46+52+52 = 150&amp;lt;/math&amp;gt;, a contradiction.&amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Corollary&#039;&#039;&#039;. &amp;lt;math&amp;gt;c_5 \leq 152&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039;.  By Lemma 4 and the bound &amp;lt;math&amp;gt;c_4=52&amp;lt;/math&amp;gt;, any line-free set with over 150 points can have one slice of cardinality 52, but then the other two slices can have at most 50 points. &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Lemma 5&#039;&#039;&#039; Any solution with 151 or more points has a slice with at most 49 points.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; Suppose we have 151 points without a line, and each of three slices has at least 50 points.&lt;br /&gt;
&lt;br /&gt;
Using earlier notation, we split subsets of &amp;lt;math&amp;gt;[3]^4&amp;lt;/math&amp;gt; into nine subsets of &amp;lt;math&amp;gt;[3]^2&amp;lt;/math&amp;gt;.  &lt;br /&gt;
So we think of x,y,z,a,b and c as subsets of a square.  Each slice is one of the following.&lt;br /&gt;
*&amp;lt;math&amp;gt;D_4 = y&#039;zx,zx&#039;y,xyz&amp;lt;/math&amp;gt; (with one or two points removed)&lt;br /&gt;
*&amp;lt;math&amp;gt;D_{4,2} = z&#039;xy,xyz,yzx&#039;&amp;lt;/math&amp;gt; (with one or two points removed)&lt;br /&gt;
*&amp;lt;math&amp;gt;D_{4,1} = xyz,yz&#039;x,zxy&#039;&amp;lt;/math&amp;gt; (with one or two points removed)&lt;br /&gt;
*&amp;lt;math&amp;gt;X = xyz, ybw, zwc&amp;lt;/math&amp;gt;&lt;br /&gt;
*&amp;lt;math&amp;gt;Y = axw, xyz, wzc&amp;lt;/math&amp;gt;&lt;br /&gt;
*&amp;lt;math&amp;gt;Z = awx, wby, xyz&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where a, b and c have four points each.&lt;br /&gt;
&lt;br /&gt;
        .. 32 33          31 .. 33         .. .. ..&lt;br /&gt;
    a = .. 22 23      b = .. .. ..     c = 21 22 ..&lt;br /&gt;
        .. .. ..          11 .. 13         11 12 ..&lt;br /&gt;
&lt;br /&gt;
x&#039;, y&#039; and z&#039; are subsets of x, y and z respectively, and have five points each.&lt;br /&gt;
&lt;br /&gt;
Suppose all three slices are subsets of &amp;lt;math&amp;gt;D_{4,j}&amp;lt;/math&amp;gt;.  &lt;br /&gt;
We can remove at most five points from the full set of three D_{4,j}.  &lt;br /&gt;
Consider columns 2,3,4,6,7,8.  At most two of these columns contain xyz, so one point must be removed from the other four.&lt;br /&gt;
This uses up all but one of the removals.&lt;br /&gt;
So the slices must be &amp;lt;math&amp;gt;D_{4,2},D_{4,1},D_{4,0}&amp;lt;/math&amp;gt; or a cyclic permutation of that.&lt;br /&gt;
Then the cube, which contains the first square of slice 1; the fifth square of slice 2; &lt;br /&gt;
and the ninth square of slice 3, contains three copies of the same square.  &lt;br /&gt;
It takes more than one point removed to remove all lines from that cube.&lt;br /&gt;
So we can&#039;t have all three slices subsets of &amp;lt;math&amp;gt;D_{4,j}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Suppose one slice is X,Y or Z, and two others are subsets of &amp;lt;math&amp;gt;D_{4,j}&amp;lt;/math&amp;gt;.  &lt;br /&gt;
We can remove at most three points from the full &amp;lt;math&amp;gt;D_{4,j}&amp;lt;/math&amp;gt;&lt;br /&gt;
By symmetry, suppose one slice is X.  Consider columns 2,3,4 and 7.  They must be cyclic permutations of x,y,z,&lt;br /&gt;
and two of them are not xyz, so must lose a point.  &lt;br /&gt;
Columns 6 and 8 must both lose a point, and we only have 150 points left.&lt;br /&gt;
So if one slice is X,Y or Z, the full set contains a line.&lt;br /&gt;
&lt;br /&gt;
Suppose two slices are from X,Y and Z, and the other is a subset of &amp;lt;math&amp;gt;D_{4,j}&amp;lt;/math&amp;gt;.  &lt;br /&gt;
By symmetry, suppose two slices are X and Y.  Columns 3,6,7 and 8 all contain w, and therefore at most 16 points each.&lt;br /&gt;
Columns 1,5 and 9 contain a,b, or c, and therefore at most 16 points. &lt;br /&gt;
So the total number of points is at most 7*16+2*18 = 148.  This contradicts the assumption of 151 points.&lt;br /&gt;
&amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Corollary&#039;&#039;&#039; &amp;lt;math&amp;gt;c_5 \leq 151 &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; By Lemmas 2 and 4, the maximum number of points is 52+50+49=151. &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Lemma 5.1&#039;&#039;&#039; No solution with 151 points contains as a slice the X defined in Lemma 2&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; Suppose one row is X.  Another row is &amp;lt;math&amp;gt;D_{4,j}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Suppose X is in the first row.  Label the other rows with letters from the alphabet.&lt;br /&gt;
&lt;br /&gt;
xyz ybw zwc&lt;br /&gt;
&lt;br /&gt;
mno pqr stu&lt;br /&gt;
&lt;br /&gt;
def ghi jkl&lt;br /&gt;
&lt;br /&gt;
Reslice the array into a left nine, middle nine and right nine.  One of these squares&lt;br /&gt;
contains 52 points, and it can only be the left nine.  One of its three columns contains&lt;br /&gt;
18 points, and it can only be its left-hand column, xmd.  So m=y and d=z.  But none of the {math&amp;gt;D_{4,j}&amp;lt;/math&amp;gt; begins with y or z, which is a contradiction.  So X is not in the first row.&lt;br /&gt;
&lt;br /&gt;
So X is in the second or third row.  By symmetry, suppose it is in the second row&lt;br /&gt;
&lt;br /&gt;
def ghi jkl&lt;br /&gt;
&lt;br /&gt;
xyz ybw zwc&lt;br /&gt;
&lt;br /&gt;
mno pqr stu&lt;br /&gt;
&lt;br /&gt;
Again, the left-hand nine must contain 52 points, so it is &amp;lt;math&amp;gt;D_{4,2}&amp;lt;/math&amp;gt;.&lt;br /&gt;
So either the first row is &amp;lt;math&amp;gt;D_{4,2}&amp;lt;/math&amp;gt; or the third row is &amp;lt;math&amp;gt;D_{4,0}&amp;lt;/math&amp;gt;.&lt;br /&gt;
If the first row is &amp;lt;math&amp;gt;D_{4,2}&amp;lt;/math&amp;gt; then the only way to have 50 points in the middle or right-hand nine is if the middle nine is X&lt;br /&gt;
&lt;br /&gt;
z&#039;xy xyz yzx&#039;&lt;br /&gt;
&lt;br /&gt;
xyz  ybw zwc&lt;br /&gt;
&lt;br /&gt;
yzx&#039; zwc stu&lt;br /&gt;
&lt;br /&gt;
In the seventh column, s contains 5 points and in the eighth column, t contains 4 points.&lt;br /&gt;
The final row can now contain at most 48 points, and the whole array contains only 52+50+48 = 150 points.&lt;br /&gt;
&lt;br /&gt;
If the third row is &amp;lt;math&amp;gt;D_{4,0}&amp;lt;/math&amp;gt;, then neither the middle nine nor the right-hand nine contains 50 points, by the classification of Lemma 4 and the formulas at the start of Lemma 5.&lt;br /&gt;
Again, only 52+49+49 = 150 points are possible.&lt;br /&gt;
&lt;br /&gt;
A similar argument is possible if X is in the third row; or if X is replaced by Y or Z.&lt;br /&gt;
&lt;br /&gt;
So when a 151-point set is sliced into three, one slice is &amp;lt;math&amp;gt;D_{4,j}&amp;lt;/math&amp;gt; and another slice is 50 points contained in &amp;lt;math&amp;gt;D_{4,k}&amp;lt;/math&amp;gt;. &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Lemma 5.2&#039;&#039;&#039; There is no 151-point solution&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; Assume by symmetry that the first row contains 52 points and the second row contains 50.&lt;br /&gt;
&lt;br /&gt;
If &amp;lt;math&amp;gt;D_{4,1}&amp;lt;/math&amp;gt; is in the first row, then the second row must be contained in &amp;lt;math&amp;gt;D_{4,0}&amp;lt;/math&amp;gt;.  &lt;br /&gt;
&lt;br /&gt;
xyz  yz&#039;x zxy&#039;&lt;br /&gt;
&lt;br /&gt;
y&#039;zx zx&#039;y xyz&lt;br /&gt;
&lt;br /&gt;
def  ghi  jkl&lt;br /&gt;
&lt;br /&gt;
But then none of the left nine, middle nine or right nine can contain 52 points, which contradicts the corollary to Lemma 5.&lt;br /&gt;
&lt;br /&gt;
Suppose the first row contains D_{4,0}.  Then the second row is contained in &amp;lt;math&amp;gt;D_{4,2}&amp;lt;/math&amp;gt;, otherwise the cubes formed from the nine columns of the diagram would need to remove too many points.&lt;br /&gt;
&lt;br /&gt;
y&#039;zx zx&#039;y xyz&lt;br /&gt;
&lt;br /&gt;
z&#039;xy xyz  yzx&#039;&lt;br /&gt;
&lt;br /&gt;
def  ghi  jkl&lt;br /&gt;
&lt;br /&gt;
But then neither the left nine, middle nine or right nine contains 52 points.&lt;br /&gt;
&lt;br /&gt;
So the first row contains &amp;lt;math&amp;gt;D_{4,2}&amp;lt;/math&amp;gt;, and the second row is contained in &amp;lt;math&amp;gt;D_{4,1}&amp;lt;/math&amp;gt;.  Two points may be removed from the second row of this diagram.&lt;br /&gt;
&lt;br /&gt;
z&#039;xy xyz  yzx&#039;&lt;br /&gt;
&lt;br /&gt;
xyz  yz&#039;x zxy&#039;&lt;br /&gt;
&lt;br /&gt;
def  ghi  jkl&lt;br /&gt;
&lt;br /&gt;
Slice it into the left nine, middle nine and right nine.  Two of them are contained in &amp;lt;math&amp;gt;D_{4,j}&amp;lt;/math&amp;gt;&lt;br /&gt;
so at least two of def, ghi, and jkl are contained in the corresponding slice of &amp;lt;math&amp;gt;D_{4,0}&amp;lt;/math&amp;gt;.&lt;br /&gt;
Slice along a different axis, and at least two of dgj,ehk,fil are contained in the corresponding slice of &lt;br /&gt;
&amp;lt;math&amp;gt;D_{4,0}&amp;lt;/math&amp;gt;.  &lt;br /&gt;
So eight of the nine squares in the bottom row are contained in the corresponding square of &amp;lt;math&amp;gt;D_{4,0}&amp;lt;/math&amp;gt;.&lt;br /&gt;
Indeed, slice along other axes, and all points except one are contained within &amp;lt;math&amp;gt;D_{4,0}&amp;lt;/math&amp;gt;.  &lt;br /&gt;
This point is the intersection of all the 49-point slices.  &lt;br /&gt;
&lt;br /&gt;
So, if there is a 151-point solution, then after removal of the specified point, &lt;br /&gt;
there is a 150-point solution, within &amp;lt;math&amp;gt;D_{5,j}&amp;lt;/math&amp;gt;, whose slices in each direction are 52+50+48.&lt;br /&gt;
&lt;br /&gt;
z&#039;xy xyz  yzx&#039;&lt;br /&gt;
&lt;br /&gt;
xyz  yz&#039;x zxy&#039;&lt;br /&gt;
&lt;br /&gt;
y&#039;zx zx&#039;y xyz&lt;br /&gt;
&lt;br /&gt;
One point must be lost from columns 3, 6, 7 and 8, and four more from the major diagonal z&#039;z&#039;z.  That leaves 148 points instead of 150.&lt;br /&gt;
&lt;br /&gt;
So the 150-point solution does not exist with 52+50+48 slices; so the 151 point solution does not exist.&amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
An integer programming method has established the upper bound &amp;lt;math&amp;gt;c_5\leq 150&amp;lt;/math&amp;gt;, with 12 extremal solutions.&lt;br /&gt;
&lt;br /&gt;
[http://abel.math.umu.se/~klasm/extremal-c5 This file] contains the extermisers. One point per line and different extermisers separated by a line with “—”&lt;br /&gt;
&lt;br /&gt;
[http://abel.math.umu.se/~klasm/linprog-d=5-t=3.lpt This is the linear program], readable by Gnu’s glpsol linear programing solver, which also quickly proves that 150 is the optimum.&lt;br /&gt;
&lt;br /&gt;
Each variable corresponds to a point in the cube, numbered according to their lexicografic ordering. If a variable is 1 then the point is in the set, if it is 0 then it is not in the set.&lt;br /&gt;
There is one linear inequality for each combinatorial line, stating that at least one point must be missing from the line.&lt;br /&gt;
&lt;br /&gt;
== n=6 ==&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;c_6=450&amp;lt;/math&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
The upper bound follows since &amp;lt;math&amp;gt;c_6 \leq 3 c_5&amp;lt;/math&amp;gt;.   The lower bound can be formed by gluing together all the [[slice]]s &amp;lt;math&amp;gt;\Gamma_{a,b,c}&amp;lt;/math&amp;gt; where (a,b,c) is a permutation of (0,2,4) or (1,2,3).&lt;br /&gt;
&lt;br /&gt;
Computer verification, using the &amp;lt;math&amp;gt;c_5=150&amp;lt;/math&amp;gt; extremals, has shown that there is exactly one extremiser for &amp;lt;math&amp;gt;c_6=450&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== n=7 ==&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;1302 \leq c_7 \leq 1348&amp;lt;/math&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
To see the upper bound &amp;lt;math&amp;gt;c_7 \leq 3c_6-2&amp;lt;/math&amp;gt;, observe that if two parallel six-dimensional slices had &amp;lt;math&amp;gt;c_6&amp;lt;/math&amp;gt; points, then by uniqueness they are identical, and the third slice can have at most &amp;lt;math&amp;gt;3^6-c_6=279&amp;lt;/math&amp;gt; points, far too few to get anywhere close to &amp;lt;math&amp;gt;1348&amp;lt;/math&amp;gt;.  Thus there can be at most one slice with &amp;lt;math&amp;gt;c_6&amp;lt;/math&amp;gt; points, and the other two have at most &amp;lt;math&amp;gt;c_6-1&amp;lt;/math&amp;gt;, giving the claim.&lt;br /&gt;
&lt;br /&gt;
The lower bound can be formed by removing 016,106,052,502,151,511,160,610 from &amp;lt;math&amp;gt;D_7&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Lemma 6&#039;&#039;&#039; Any line-free subset of &amp;lt;math&amp;gt;D_7&amp;lt;/math&amp;gt; has at most 1302 points.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; Start with the 1458 points of &amp;lt;math&amp;gt;D_7&amp;lt;/math&amp;gt;.  You must lose:&lt;br /&gt;
&lt;br /&gt;
* 42 points from (1,2,4),(1,5,1),(4,2,1)&lt;br /&gt;
* 42 points from (2,1,4),(2,4,1),(5,1,1)&lt;br /&gt;
* 21 points from (0,2,5),(0,5,2),(3,2,2)&lt;br /&gt;
* 21 points from (2,0,5),(2,3,2),(5,0,2)&lt;br /&gt;
* 15 points from (0,1,6),(0,4,3),(3,1,3),(0,7,0),(3,4,0),(6,1,0)&lt;br /&gt;
* 15 points from (1,0,6),(1,3,3),(4,0,3),(7,0,0),(4,3,0),(1,6,0)&lt;br /&gt;
&lt;br /&gt;
where (a,b,c) is shorthand for the [[slice]] &amp;lt;math&amp;gt;\Gamma_{a,b,c}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Larger n ==&lt;br /&gt;
&lt;br /&gt;
The following construction gives lower bounds for the number of triangle-free points, &lt;br /&gt;
There are of the order &amp;lt;math&amp;gt;2.7 \sqrt{log(N)/N}3^N&amp;lt;/math&amp;gt; points for large N (N ~ 5000)&lt;br /&gt;
&lt;br /&gt;
It applies when N is a multiple of 3. &lt;br /&gt;
* For N=3M-1, restrict the first digit of a 3M sequence to be 1.  So this construction has exactly one-third as many points for N=3M-1 as it has for N=3M. &lt;br /&gt;
* For N=3M-2, restrict the first two digits of a 3M sequence to be 12.  This leaves roughly one ninth of the points for N=3M-2 as for N=3M.&lt;br /&gt;
&lt;br /&gt;
The current lower bounds for &amp;lt;math&amp;gt;c_{3m}&amp;lt;/math&amp;gt; are built like this, with abc being shorthand for &amp;lt;math&amp;gt;\Gamma_{a,b,c}&amp;lt;/math&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;math&amp;gt;c_3&amp;lt;/math&amp;gt; from (012) and permutations&lt;br /&gt;
* &amp;lt;math&amp;gt;c_6&amp;lt;/math&amp;gt; from (123,024) and perms&lt;br /&gt;
* &amp;lt;math&amp;gt;c_9&amp;lt;/math&amp;gt; from (234,135,045) and perms&lt;br /&gt;
* &amp;lt;math&amp;gt;c_{12}&amp;lt;/math&amp;gt; from (345,246,156,02A,057) and perms (A=10)&lt;br /&gt;
* &amp;lt;math&amp;gt;c_{15}&amp;lt;/math&amp;gt; from (456,357,267,13B,168,04B,078) and perms (B=11)&lt;br /&gt;
&lt;br /&gt;
To get the triples in each row, add 1 to the triples in the previous row; then include new triples that have a zero.&lt;br /&gt;
&lt;br /&gt;
A general formula for these points is given below.  I think that they are triangle-free.  (For N&amp;lt;21, ignore any triple with a negative entry.)&lt;br /&gt;
&lt;br /&gt;
* There are thirteen groups of points in the centre, formed from adding one of the following points, or its permutation, to (M,M,M), when N=3M:&lt;br /&gt;
** (-7,-3,+10), (-7, 0,+7),(-7,+3,+4),(-6,-4,+10),(-6,-1,+7),(-6,+2,+4),(-5,-1,+6),(-5,+2,+3),(-4,-2,+6),(-4,+1,+3),(-3,+1,+2),(-2,0,+2),(-1,0,+1) &lt;br /&gt;
* There are also eight string of points, stretching to the edges of the (abc) triangle:&lt;br /&gt;
** For N=6K = 3M&lt;br /&gt;
*** M+(-8-2x,-6-2x,14+4x),M+(-8-2x,-3-2x,11+4x),M+(-8-2x,x,8+x),M+(-8-2x,3+x,5+x) and permutations (x&amp;gt;=0, M-8-2x&amp;gt;=0)&lt;br /&gt;
*** M+(-9-2x,-5-2x,14+4x),M+(-9-2x,-2-2x,11+4x),M+(-9-2x,1+x,8+x),M+(-9-2x,4+x,5+x) and permutations (x&amp;gt;=0, M-9-2x&amp;gt;=0)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
An alternate construction:&lt;br /&gt;
&lt;br /&gt;
First define a sequence, of all positive numbers which, in base 3, do not contain a 1. Add 1 to all multiples of 3 in this sequence. This sequence does not contain a length-3 arithmetic progression.&lt;br /&gt;
&lt;br /&gt;
It starts 1,2,7,8,19,20,25,26,55, …&lt;br /&gt;
&lt;br /&gt;
Second, list all the (abc) triples for which the larger two differ by a number&lt;br /&gt;
from the sequence, excluding the case when the smaller two differ by 1, but then including the case when (a,b,c) is a permutation of N/3+(-1,0,1)&lt;br /&gt;
&lt;br /&gt;
== Asymptotics ==&lt;br /&gt;
&lt;br /&gt;
DHJ(3) is equivalent to the upper bound&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;c_n \leq o(3^n)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In the opposite direction, observe that if we take a set &amp;lt;math&amp;gt;S \subset [3n]&amp;lt;/math&amp;gt; that contains no 3-term arithmetic progressions, then the set &amp;lt;math&amp;gt;\bigcup_{(a,b,c) \in \Delta_n: a+2b \in S} \Gamma_{a,b,c}&amp;lt;/math&amp;gt; is line-free.  From this and the Behrend construction it appears that we have the lower bound&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;c_n \geq 3^{n-O(\sqrt{\log n})}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
More precisely, we have&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;c_n &amp;gt; C 3^{n - 4\sqrt{\log 2}\sqrt{\log n}+\frac 12 \log \log n}&amp;lt;/math&amp;gt;&lt;br /&gt;
for some absolute constant C, and where all logarithms are base-3.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; For convenience, let n be a multiple of 3. Elkin’s bound gives &amp;lt;math&amp;gt;r_3(\sqrt{n}) &amp;gt; C \sqrt{n} (\log n)^{1/4} \exp_2(-2 \sqrt{\log_2 n})&amp;lt;/math&amp;gt;, and let &amp;lt;math&amp;gt;R&amp;lt;/math&amp;gt; be a subset of &amp;lt;math&amp;gt;(-3\sqrt{n}/2,3\sqrt{n}/2)&amp;lt;/math&amp;gt; without 3-term APs and with size &amp;lt;math&amp;gt;r_3(\sqrt{n})&amp;lt;/math&amp;gt;, and with all elements being integer multiples of 3 (again as a matter of convenience). For each &amp;lt;math&amp;gt;r,s\in R&amp;lt;/math&amp;gt;, let &amp;lt;math&amp;gt;a = (n-r-s)/3&amp;lt;/math&amp;gt;. The set &amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt; is the union of all &amp;lt;math&amp;gt;\Gamma_{a,a+r,a+s}&amp;lt;/math&amp;gt;. Since all of &amp;lt;math&amp;gt;a, a+r,a+s&amp;lt;/math&amp;gt; are between &amp;lt;math&amp;gt;n/3-2\sqrt{n}&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;n/3+2\sqrt{n}&amp;lt;/math&amp;gt;, the size of &amp;lt;math&amp;gt;\Gamma_{a,a+r,a+s}&amp;lt;/math&amp;gt; is at least &amp;lt;math&amp;gt;C 3^n / n&amp;lt;/math&amp;gt;. Since there are &amp;lt;math&amp;gt;r_3(\sqrt{n})^2&amp;lt;/math&amp;gt; choices for r and s, we have a set with size at least&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;C (\sqrt{n} (\log n)^{1/4} \exp_2(-2 \sqrt{\log_2 n}))^2 3^n / n&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
This simplifies to &amp;lt;math&amp;gt;C \sqrt{\log n} \exp_3(n-\alpha \sqrt{\log_3(n)})&amp;lt;/math&amp;gt;, where &amp;lt;math&amp;gt;\alpha=4 \sqrt{\log_3(2)}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Now suppose that &amp;lt;math&amp;gt;x_i\in \Gamma_{a_i,a_i+r_i,a_i+s_i}&amp;lt;/math&amp;gt; is a combinatorial line in the set A. Then &amp;lt;math&amp;gt;(a_i+s_i)-(a_i)=s_i&amp;lt;/math&amp;gt; is a 3-term AP contained in R, so the &amp;lt;math&amp;gt;s_i&amp;lt;/math&amp;gt; are all the same. Similarly, all of the &amp;lt;math&amp;gt;r_i&amp;lt;/math&amp;gt; are the same, and therefore all of the &amp;lt;math&amp;gt;a_i&amp;lt;/math&amp;gt; are the same, too. But this implies that the &amp;lt;math&amp;gt;x_i&amp;lt;/math&amp;gt; sequence is constant, which means the line is degenerate. &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[http://terrytao.wordpress.com/2009/02/05/upper-and-lower-bounds-for-the-density-hales-jewett-problem/#comment-35652 Numerics suggest] that the first large n construction given above above give a lower bound of roughly &amp;lt;math&amp;gt;2.7 \sqrt{\log(n)/n} \times 3^n&amp;lt;/math&amp;gt;, which would asymptotically be inferior to the Behrend bound.&lt;br /&gt;
&lt;br /&gt;
The second large n construction had numerical asymptotics for &amp;lt;math&amp;gt;\log(c_n/3^n)&amp;lt;/math&amp;gt; close to &amp;lt;math&amp;gt;1.2-\sqrt{\log(n)}&amp;lt;/math&amp;gt; between n=1000 and n=10000, consistent with the Behrend bound.&lt;br /&gt;
&lt;br /&gt;
== Other k values ==&lt;br /&gt;
&lt;br /&gt;
A [http://abel.math.umu.se/~klasm/Data/HJ/ computer search] has found the following &amp;lt;math&amp;gt;c_n&amp;lt;/math&amp;gt; values for different values of dimension n and edgelength k.  Several of these values reach the upper bound of &amp;lt;math&amp;gt;(k-1)k^{n-1}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
{| border=1 | &lt;br /&gt;
|n\k || 2 || 3 || 4 || 5 || 6 || 7&lt;br /&gt;
|-&lt;br /&gt;
| 2 || 2 || 6 || 12 || 20 || 30 || 42&lt;br /&gt;
|-&lt;br /&gt;
| 3 || 3 || 18 || 48 || 100 || 180 || 294&lt;br /&gt;
|-&lt;br /&gt;
| 4 || 6 || 52 || 183 || 500 || 1029-1079 || 2058&lt;br /&gt;
|-&lt;br /&gt;
| 5 || 10 || 150 || 683-732 || 2500&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
If k is prime and &amp;lt;math&amp;gt;k \ge n&amp;lt;/math&amp;gt;, then one can remove all combinatorial lines by deleting all points whose coordinates sum to a multiple of k.  So the density of deleted points in the optimal configuration is 1/k when k is prime.&lt;br /&gt;
&lt;br /&gt;
Let p be the smallest prime greater than or equal to both k and n.  One can remove all combinatorial lines by deleting all points whose coordinates sum to &amp;lt;math&amp;gt;0\le x\le p-k&amp;lt;/math&amp;gt; (mod p),  So the density of deleted points is at most (p-k+1)/p.  This approaches zero as &amp;lt;math&amp;gt;k\rightarrow\infty&amp;lt;/math&amp;gt;.  For example, the following paper shows there is a prime between x-x^0.525 and x.&lt;br /&gt;
&lt;br /&gt;
Baker, R. C.(1-BYU); Harman, G.(4-LNDHB); Pintz, J.(H-AOS)&lt;br /&gt;
The difference between consecutive primes. II.&lt;br /&gt;
Proc. London Math. Soc. (3) 83 (2001), no. 3, 532–562.&lt;br /&gt;
&lt;br /&gt;
== Numerical methods ==&lt;br /&gt;
&lt;br /&gt;
A greedy algorithm [http://thetangentspace.com/wiki/Hales-Jewett_Theorem was implemented here].  The results were sharp for &amp;lt;math&amp;gt;n \leq 3&amp;lt;/math&amp;gt; but were slightly inferior to the constructions above for larger n.&lt;/div&gt;</summary>
		<author><name>121.220.134.232</name></author>
	</entry>
	<entry>
		<id>https://michaelnielsen.org/polymath/index.php?title=Upper_and_lower_bounds&amp;diff=1060</id>
		<title>Upper and lower bounds</title>
		<link rel="alternate" type="text/html" href="https://michaelnielsen.org/polymath/index.php?title=Upper_and_lower_bounds&amp;diff=1060"/>
		<updated>2009-03-26T05:21:59Z</updated>

		<summary type="html">&lt;p&gt;121.220.134.232: /* Other k values */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;center&amp;gt;&#039;&#039;&#039;Upper and lower bounds for &amp;lt;math&amp;gt;c_n&amp;lt;/math&amp;gt; for small values of n.&#039;&#039;&#039;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;c_n&amp;lt;/math&amp;gt; is the size of the largest subset of &amp;lt;math&amp;gt;[3]^n&amp;lt;/math&amp;gt; that does not contain a combinatorial line (OEIS [http://www.research.att.com/~njas/sequences/A156762 A156762].  A spreadsheet for all the latest bounds on &amp;lt;math&amp;gt;c_n&amp;lt;/math&amp;gt; [http://spreadsheets.google.com/ccc?key=p5T0SktZY9DsU-uZ1tK7VEg can be found here].  In this page we record the proofs justifying these bounds.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{|&lt;br /&gt;
| n || 0 || 1 || 2 || 3 || 4 || 5 || 6 || 7&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;math&amp;gt;c_n&amp;lt;/math&amp;gt; || 1 || 2 || 6 || 18 || 52 || 150 || 450 || [1302,1348]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Basic constructions ==&lt;br /&gt;
&lt;br /&gt;
For all &amp;lt;math&amp;gt;n \geq 1&amp;lt;/math&amp;gt;, a basic example of a mostly line-free set is&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;D_n := \{ (x_1,\ldots,x_n) \in [3]^n: \sum_{i=1}^n x_i \neq 0 \ \operatorname{mod}\ 3 \}&amp;lt;/math&amp;gt;.  (1)&lt;br /&gt;
&lt;br /&gt;
This has cardinality &amp;lt;math&amp;gt;|D_n| = 2 \times 3^{n-1}&amp;lt;/math&amp;gt;.  The only lines in &amp;lt;math&amp;gt;D_n&amp;lt;/math&amp;gt; are those with&lt;br /&gt;
&lt;br /&gt;
# A number of wildcards equal to a multiple of three;&lt;br /&gt;
# The number of 1s unequal to the number of 2s modulo 3.&lt;br /&gt;
&lt;br /&gt;
One way to construct line-free sets is to start with &amp;lt;math&amp;gt;D_n&amp;lt;/math&amp;gt; and remove some additional points.  We also have the variants &amp;lt;math&amp;gt;D_{n,0}=D_n, D_{n,1}, D_{n,2}&amp;lt;/math&amp;gt; defined as&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;D_{n,j} := \{ (x_1,\ldots,x_n) \in [3]^n: \sum_{i=1}^n x_i \neq j \ \operatorname{mod}\ 3 \}&amp;lt;/math&amp;gt;.  (1&#039;)&lt;br /&gt;
&lt;br /&gt;
When n is not a multiple of 3, then &amp;lt;math&amp;gt;D_{n,0}, D_{n,1}, D_{n,2}&amp;lt;/math&amp;gt; are all cyclic permutations of each other; but when n is a multiple of 3, then &amp;lt;math&amp;gt;D_{n,0}&amp;lt;/math&amp;gt; plays a special role (though &amp;lt;math&amp;gt;D_{n,1}, D_{n,2}&amp;lt;/math&amp;gt; are still interchangeable).&lt;br /&gt;
&lt;br /&gt;
Another useful construction proceeds by using the slices &amp;lt;math&amp;gt;\Gamma_{a,b,c} \subset [3]^n&amp;lt;/math&amp;gt; for &amp;lt;math&amp;gt;(a,b,c)&amp;lt;/math&amp;gt; in the triangular grid&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\Delta_n := \{ (a,b,c) \in {\Bbb Z}_+^3: a+b+c = n \},&amp;lt;/math&amp;gt;.  (2)&lt;br /&gt;
&lt;br /&gt;
where &amp;lt;math&amp;gt;\Gamma_{a,b,c}&amp;lt;/math&amp;gt; is defined as the strings in &amp;lt;math&amp;gt;[3]^n&amp;lt;/math&amp;gt; with &amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt; 1s, &amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt; 2s, and &amp;lt;math&amp;gt;c&amp;lt;/math&amp;gt; 3s.  Note that&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;|\Gamma_{a,b,c}| = \frac{n!}{a! b! c!}.&amp;lt;/math&amp;gt; (3)&lt;br /&gt;
&lt;br /&gt;
Given any set &amp;lt;math&amp;gt;B \subset \Delta_n&amp;lt;/math&amp;gt; that avoids equilateral triangles &amp;lt;math&amp;gt; (a+r,b,c), (a,b+r,c), (a,b,c+r)&amp;lt;/math&amp;gt;, the set&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\Gamma_B := \bigcup_{(a,b,c) \in B} \Gamma_{a,b,c}&amp;lt;/math&amp;gt; (4)&lt;br /&gt;
&lt;br /&gt;
is line-free and has cardinality&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;|\Gamma_B| = \sum_{(a,b,c) \in B} \frac{n!}{a! b! c!},&amp;lt;/math&amp;gt; (5)&lt;br /&gt;
&lt;br /&gt;
and thus provides a lower bound for &amp;lt;math&amp;gt;c_n&amp;lt;/math&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;c_n \geq \sum_{(a,b,c) \in B} \frac{n!}{a! b! c!}.&amp;lt;/math&amp;gt; (6)&lt;br /&gt;
&lt;br /&gt;
All lower bounds on &amp;lt;math&amp;gt;c_n&amp;lt;/math&amp;gt; have proceeded so far by choosing a good set of B and applying (6).  Note that &amp;lt;math&amp;gt;D_n&amp;lt;/math&amp;gt; is the same as &amp;lt;math&amp;gt;\Gamma_{B_n}&amp;lt;/math&amp;gt;, where &amp;lt;math&amp;gt;B_n&amp;lt;/math&amp;gt; consists of those triples &amp;lt;math&amp;gt;(a,b,c) \in \Delta_n&amp;lt;/math&amp;gt; in which &amp;lt;math&amp;gt;a \neq b\ \operatorname{mod}\ 3&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Note that if one takes a line-free set and permutes the alphabet &amp;lt;math&amp;gt;\{1,2,3\}&amp;lt;/math&amp;gt; in any fashion (e.g. replacing all 1s by 2s and vice versa), one also gets a line-free set.  This potentially gives six examples from any given starting example of a line-free set, though in practice there is enough symmetry that the total number of examples produced this way is less than six.  (These six examples also correspond to the six symmetries of the triangular grid &amp;lt;math&amp;gt;\Delta_n&amp;lt;/math&amp;gt; formed by rotation and reflection.)&lt;br /&gt;
&lt;br /&gt;
Another symmetry comes from permuting the &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt; indices in the strings of &amp;lt;math&amp;gt;[3]^n&amp;lt;/math&amp;gt; (e.g. replacing every string by its reversal).  But the sets &amp;lt;math&amp;gt;\Gamma_B&amp;lt;/math&amp;gt; are automatically invariant under such permutations and thus do not produce new line-free sets via this symmetry.&lt;br /&gt;
&lt;br /&gt;
== The basic upper bound ==&lt;br /&gt;
&lt;br /&gt;
Because &amp;lt;math&amp;gt;[3]^{n+1}&amp;lt;/math&amp;gt; can be expressed as the union of three copies of &amp;lt;math&amp;gt;[3]^n&amp;lt;/math&amp;gt;, we have the basic upper bound&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;c_{n+1} \leq 3 c_n.&amp;lt;/math&amp;gt; (7)&lt;br /&gt;
&lt;br /&gt;
Note that equality only occurs if one can find an &amp;lt;math&amp;gt;n+1&amp;lt;/math&amp;gt;-dimensional line-free set such that every n-dimensional slice has the maximum possible cardinality of &amp;lt;math&amp;gt;c_n&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== n=0 ==&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;c_0=1&amp;lt;/math&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
This is clear.&lt;br /&gt;
&lt;br /&gt;
== n=1 ==&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;c_1=2&amp;lt;/math&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
The three sets &amp;lt;math&amp;gt;D_1 = \{1,2\}&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;D_{1,1} = \{2,3\}&amp;lt;/math&amp;gt;, and &amp;lt;math&amp;gt;D_{1,2} = \{1,3\}&amp;lt;/math&amp;gt; are the only two-element sets which are line-free in &amp;lt;math&amp;gt;[3]^1&amp;lt;/math&amp;gt;, and there are no three-element sets.&lt;br /&gt;
&lt;br /&gt;
== n=2 ==&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;c_2=6&amp;lt;/math&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
There are four six-element sets in &amp;lt;math&amp;gt;[3]^2&amp;lt;/math&amp;gt; which are line-free, which we denote &amp;lt;math&amp;gt;x = D_{2,2}&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;y=D_{2,1}&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;z=D_2&amp;lt;/math&amp;gt;, and &amp;lt;math&amp;gt;w&amp;lt;/math&amp;gt; and are displayed graphically as follows.&lt;br /&gt;
&lt;br /&gt;
     13 .. 33       .. 23 33       13 23 ..       13 23 ..&lt;br /&gt;
 x = 12 22 ..   y = 12 .. 32   z = .. 22 32   w = 12 .. 32&lt;br /&gt;
     .. 21 31       11 21 ..       11 .. 31       .. 21 31&lt;br /&gt;
&lt;br /&gt;
Combining this with the basic upper bound (7) we see that &amp;lt;math&amp;gt;c_2=6&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== n=3 ==&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;c_3=18&amp;lt;/math&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
We describe a subset &amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt; of &amp;lt;math&amp;gt;[3]^3&amp;lt;/math&amp;gt; as a string &amp;lt;math&amp;gt;abc&amp;lt;/math&amp;gt;, where &amp;lt;math&amp;gt;a, b, c \subset [3]^2&amp;lt;/math&amp;gt; correspond to strings of the form &amp;lt;math&amp;gt;1**&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;2**&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;3**&amp;lt;/math&amp;gt; in &amp;lt;math&amp;gt;[3]^3&amp;lt;/math&amp;gt; respectively.  Thus for instance &amp;lt;math&amp;gt;D_3 = xyz&amp;lt;/math&amp;gt;, and so from (7) we have &amp;lt;math&amp;gt;c_3=18&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Lemma 1.&#039;&#039;&#039;&lt;br /&gt;
* The only 18-element line-free subset of &amp;lt;math&amp;gt;[3]^3&amp;lt;/math&amp;gt; is &amp;lt;math&amp;gt;D_3 = xyz&amp;lt;/math&amp;gt;.&lt;br /&gt;
* The only 17-element line-free subsets of &amp;lt;math&amp;gt;[3]^3&amp;lt;/math&amp;gt; are formed by removing a point from &amp;lt;math&amp;gt;D_3=xyz&amp;lt;/math&amp;gt;, or by removing either 111, 222, or 333 from &amp;lt;math&amp;gt;D_{3,2} = yzx&amp;lt;/math&amp;gt; or &amp;lt;math&amp;gt;D_{3,3}=zxy&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039;.  We prove the second claim. As &amp;lt;math&amp;gt;17=6+6+5&amp;lt;/math&amp;gt;, and &amp;lt;math&amp;gt;c_2=6&amp;lt;/math&amp;gt;, at least two of the slices of a 17-element line-free set must be from x, y, z, w, with the third slice having 5 points.  If two of the slices are identical, the last slice can have only 3 points, a contradiction.  If one of the slices is a w, then the 5-point slice will contain a diagonal, contradiction.  By symmetry we may now assume that two of the slices are x and y, which force the last slice to be z with one point removed.  Now one sees that the slices must be in the order xyz, yzx, or zxy, because any other combination has too many lines that need to be removed.  The sets yzx, zxy contain the diagonal {111,222,333} and so one additional point needs to be removed. &lt;br /&gt;
&lt;br /&gt;
The first claim follows by a similar argument to the second.&lt;br /&gt;
&amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== n=4 ==&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;c_4=52&amp;lt;/math&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
Indeed, divide a line-free set in &amp;lt;math&amp;gt;[3]^4&amp;lt;/math&amp;gt; into three blocks &amp;lt;math&amp;gt;1***, 2***, 3***&amp;lt;/math&amp;gt; of &amp;lt;math&amp;gt;[3]^3&amp;lt;/math&amp;gt;.  If two of them are of size 18, then they must both be xyz, and the third block can have at most 6 elements, leading to an inferior bound of 42.  So the best one can do is &amp;lt;math&amp;gt;18+17+17=52&amp;lt;/math&amp;gt; which can be attained by deleting the diagonal {1111,2222,3333} from &amp;lt;math&amp;gt;D_{4,1} = xyz\ yzx\ xzy&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;D_4 = yzx\ zxy\ xyz&amp;lt;/math&amp;gt;, or &amp;lt;math&amp;gt;D_{4,2} = zxy\ xyz\ yzx&amp;lt;/math&amp;gt;.  In fact,&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Lemma 2.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* The only 52-element line-free sets in &amp;lt;math&amp;gt;[3]^4&amp;lt;/math&amp;gt; are formed by removing the diagonal {1111,2222,3333} from &amp;lt;math&amp;gt;D_{4,j}&amp;lt;/math&amp;gt; for some j=0,1,2.&lt;br /&gt;
* The only 51-element line-free sets in &amp;lt;math&amp;gt;[3]^4&amp;lt;/math&amp;gt; are formed by removing the diagonal and one further point from &amp;lt;math&amp;gt;D_{4,j}&amp;lt;/math&amp;gt; for some j=0,1,2.&lt;br /&gt;
* The only 50-element line-free sets in &amp;lt;math&amp;gt;[3]^4&amp;lt;/math&amp;gt; are formed by removing the diagonal and two further points from &amp;lt;math&amp;gt;D_{4,j}&amp;lt;/math&amp;gt; for some j=0,1,2  OR is equal to one of the three permutations of the set &amp;lt;math&amp;gt;X := \Gamma_{3,1,0} \cup \Gamma_{3,0,1} \cup \Gamma_{2,2,0} \cup \Gamma_{2,0,2} \cup \Gamma_{1,1,2} \cup \Gamma_{1,2,1} \cup \Gamma_{0,2,2}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; It suffices to prove the third claim.  In fact it suffices to show that every 50-point line-free set is either contained in the 54-point set &amp;lt;math&amp;gt;D_{4,j}&amp;lt;/math&amp;gt; for some j=0,1,2, or is some permutation of the set X. Indeed, if a 50-point line-free set is contained in, say, &amp;lt;math&amp;gt;D_4&amp;lt;/math&amp;gt;, then it cannot contain 2222, since otherwise it must omit one point from each of the four pairs formed from {2333, 2111} by permuting the indices, and must also omit one of {1111, 1222, 1333}, leading to at most 49 points in all; similarly, it cannot contain 1111, and so omits the entire diagonal {1111,2222,3333}, with two more points to be omitted.  Similarly when &amp;lt;math&amp;gt;D_4&amp;lt;/math&amp;gt; is replaced by one of the other &amp;lt;math&amp;gt;D_{4,j}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Next, observe that every three-dimensional slice of a line-free set can have at most &amp;lt;math&amp;gt;c_3=18&amp;lt;/math&amp;gt; points; thus when one partitions a 50-point line-free set into three such slices, it must divide either as 18+16+16, 17+17+16, or some permutation of these.&lt;br /&gt;
&lt;br /&gt;
Suppose that we can slice the set into two slices of 17 points and one slice of 16 points.  By the various symmetries, we may assume that the 1*** slice and 2*** slices have 17 points, and the 3*** slice has 16 points.  By Lemma 1, the 1-slice is &amp;lt;math&amp;gt;\{1\} \times D_{3,j}&amp;lt;/math&amp;gt; with one point removed, and the 2-slice is &amp;lt;math&amp;gt;\{2\} \times D_{3,k}&amp;lt;/math&amp;gt; with one point removed, for some &amp;lt;math&amp;gt;j,k \in \{0,1,2\}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
If j=k, then the 1-slice and 2-slice have at least 15 points in common, so the 3-slice can have at most &amp;lt;math&amp;gt;27-15=12&amp;lt;/math&amp;gt; points, a contradiction.  If jk = 01, 12, or 20, then observe that from Lemma 1 the *1**, *2**, *3** slices cannot equal a 17-point or 18-point line-free set, so each have at most 16 points, leading to only 48 points in all, a contradiction.  Thus we must have jk = 10, 21, or 02.&lt;br /&gt;
&lt;br /&gt;
Let&#039;s first suppose that jk=02.  Then by Lemma 1, the 2*** slice contains the nine points formed from {2211, 2322, 2331} and permuting the last three indices, while the 1*** slice contains at least eight of the nine points formed from {1211, 1322, 1311} and permuting the last three indices.  Thus the 3*** slice can contain at most one of the nine points formed from {3211, 3322, 3311} and permuting the last three indices.  If it does contain one of these points, say 3211, then it must omit one point from each of the four pairs {3222, 3233}, {3212, 3213}, {3221, 3231}, {3111, 3311}, leading to at most 15 points on this slice, a contradiction.  So the 3*** slice must omit all nine points, and is therefore contained in &amp;lt;math&amp;gt;\{3\} \times D_{4,1}&amp;lt;/math&amp;gt;, and so the 50-point set is contained in &amp;lt;math&amp;gt;D_{4,1}&amp;lt;/math&amp;gt;, and we are done by the discussion at the beginning of the proof.&lt;br /&gt;
&lt;br /&gt;
The case jk=10 is similar to the jk=02 case (indeed one can get from one case to the other by swapping the 1 and 2 indices).  Now suppose instead that jk=12.  Then by Lemma 1, the 1*** slice contains the six points from permuting the last three indices of 1123, and similarly the 2*** slice contains the six points from permuting the last three indices of 2123.  Thus the 3*** slice must avoid all six points formed by permuting the last three indices of 3123.  Similarly, as 1133 lies in the 1*** slice and 2233 lies in the 2*** slice, 3333 must be avoided in the 3*** slice.&lt;br /&gt;
&lt;br /&gt;
Now we claim that 3111 must be avoided also; for if 3111 was in the set, then one point from each of the six pairs formed from {3311, 3211}, {3331, 3221} and permuting the last three indices must lie outside the 3*** slice, which reduces the size of that slice to at most &amp;lt;math&amp;gt;27-6-1-6=14&amp;lt;/math&amp;gt;, which is too small.  Similarly, 3222 must be avoided, which puts the 3*** slice inside &amp;lt;math&amp;gt;\{3\} \times D_3&amp;lt;/math&amp;gt; and then places the 50-point set inside &amp;lt;math&amp;gt;D_4&amp;lt;/math&amp;gt;, and we are done by the discussion at the beginning of the proof.&lt;br /&gt;
&lt;br /&gt;
We have handled the case in which at least one of the slicings of the 50-point set is of the form 50=17+17+16.  The only remaining case is when all slicings of the 50-point set are of the form 18+17+16 (or a permutation thereof).  By the symmetries of the situation, we may assume that the 1*** slice has 18 points, and thus by Lemma 1 takes the form &amp;lt;math&amp;gt;\{1\} \times D_3&amp;lt;/math&amp;gt;.  Inspecting the *1**, *2**, *3** slices, we then see (from Lemma 1) that only the *1** slice can have 18 points; since we are assuming that this slicing is some permutation of 50=18+17+16, we conclude that the *1** slice must have exactly 18 points, and is thus described precisely by Lemma 1.  Similarly for the **1* and ***1 slices.  Indeed, by Lemma 1, we see that the 50-point set must agree exactly with &amp;lt;math&amp;gt;D_{4,1}&amp;lt;/math&amp;gt; on any of these slices.  In particular, on the remaining portion &amp;lt;math&amp;gt;\{2,3\}^4&amp;lt;/math&amp;gt; of the cube, there are exactly 6 points of the 50-point set in &amp;lt;math&amp;gt;\{2,3\}^4&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Suppose that 3333 was in the set; then since all permutations of 3311, 3331 are known to lie in the set, then 3322, 3332 must lie outside the set.  Also, as 1222 lies in the set, at least one of 2222, 3222 lie outside the set.  This leaves only 5 points in &amp;lt;math&amp;gt;\{2,3\}^4&amp;lt;/math&amp;gt;, a contradiction.  Thus 3333 lies outside the set; similarly 2222 lies outside the set.&lt;br /&gt;
&lt;br /&gt;
Let a be the number of points in the 50-point set which are some permutation of 2233, thus &amp;lt;math&amp;gt;0 \leq a \leq 6&amp;lt;/math&amp;gt;.  If a=0 then the set lies in &amp;lt;math&amp;gt;D_{4,1}&amp;lt;/math&amp;gt; and we are done.  If a=6 then the set is exactly X and we are done.  Now suppose a=1,2,3.  By symmetry we may assume that 2233 lies in the set.  Then (since 2133, 1233 2231, 2213 are known to lie in the set) 2333, 3233, 2223, 2232 lie outside the set, which leaves at most 5 points inside &amp;lt;math&amp;gt;\{2,3\}^4&amp;lt;/math&amp;gt;, a contradiction.&lt;br /&gt;
&lt;br /&gt;
The remaining case is when a=4,5.  Then one of the three pairs {2233, 3322}, {2323, 3232}, {2332, 3223} lie in the set.  By symmetry we may assume that {2233, 3322} lie in the set.  Then by arguing as before we see that all eight points formed by permuting 2333 or 3222 lie outside the set, leading to at most 5 points inside &amp;lt;math&amp;gt;\{2,3\}^4&amp;lt;/math&amp;gt;, a contradiction.&lt;br /&gt;
&amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== n=5 ==&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;c_5=150&amp;lt;/math&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Lemma 3&#039;&#039;&#039;.  Any line-free subset of &amp;lt;math&amp;gt;D_{5,j}&amp;lt;/math&amp;gt; can have at most 150 points.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039;.  By rotation we may work with &amp;lt;math&amp;gt;D_5&amp;lt;/math&amp;gt;.  This set has 162 points.  By looking at the triplets {10000, 11110, 12220} and cyclic permutations we must lose 5 points; similarly from the triplets {20000,22220, 21110} and cyclic permutations.  Finally from {11000,11111,11222} and {22000,22222,22111} we lose two more points. &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Equality can be attained by removing  &amp;lt;math&amp;gt;\Gamma_{0,4,1}, \Gamma_{0,5,0}, \Gamma_{4,0,1}, \Gamma_{5,0,0}&amp;lt;/math&amp;gt; from &amp;lt;math&amp;gt;D_5&amp;lt;/math&amp;gt;.  Thus &amp;lt;math&amp;gt;c_5 \geq 150&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Another pattern of 150 points is this: Take the 450 points&lt;br /&gt;
in &amp;lt;math&amp;gt;{}[3]^6&amp;lt;/math&amp;gt; which are (1,2,3), (0,2,4) and permutations,&lt;br /&gt;
then select the 150 whose final coordinate is 1. That gives&lt;br /&gt;
this many points in each cube:&lt;br /&gt;
&lt;br /&gt;
17 18 17&lt;br /&gt;
&lt;br /&gt;
17 17 18&lt;br /&gt;
&lt;br /&gt;
12 17 17&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Lemma 4&#039;&#039;&#039;.  A line-free subset of &amp;lt;math&amp;gt;[3]^5&amp;lt;/math&amp;gt; with over 150 points cannot have two parallel &amp;lt;math&amp;gt;[3]^4&amp;lt;/math&amp;gt; slices, each of which contain at least 51 points.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039;.  Suppose not.  By symmetry, we may assume that the 1**** and 2**** slices have at least 51 points, and that the whole set has at least 151 points, which force the third slice to have at least &amp;lt;math&amp;gt;151-2c_4 = 47&amp;lt;/math&amp;gt; points.&lt;br /&gt;
&lt;br /&gt;
By Lemma 2, the 1**** slice takes the form &amp;lt;math&amp;gt;\{1\} \times D_{4,j}&amp;lt;/math&amp;gt; for some &amp;lt;math&amp;gt;j=0,1,2&amp;lt;/math&amp;gt; with the diagonal {11111,12222,13333} and possibly one more point removed, and similarly the 2**** slice takes the form &amp;lt;math&amp;gt;\{2\} \times D_{4,k}&amp;lt;/math&amp;gt; for some &amp;lt;math&amp;gt;k=0,1,2&amp;lt;/math&amp;gt; with the diagonal {21111,22222,23333} and possibly one more point removed.&lt;br /&gt;
&lt;br /&gt;
Suppose first that j=k.  Then the 1-slice and 2-slice have at least 50 points in common, leaving at most 31 points for the 3-slice, a contradiction.  Next, suppose that jk=01.  Then observe that the *i*** slice cannot look like any of the configurations in Lemma 2 and so must have at most 50 points for i=1,2,3, leading to 150 points in all, a contradiction.  Similarly if jk=12 or 20.  Thus we must have jk equal to 10, 21, or 02.&lt;br /&gt;
&lt;br /&gt;
Let&#039;s suppose first that jk=10.  The first slice then is equal to &amp;lt;math&amp;gt;\{1\} \times D_{4,1}&amp;lt;/math&amp;gt; with the diagonal and possibly one more point removed, while the second slice is equal to &amp;lt;math&amp;gt;\{2\} \times D_{4,0}&amp;lt;/math&amp;gt; with the diagonal and possibly one more point removed.  Superimposing these slices, we thus see that the third slice is contained in &amp;lt;math&amp;gt;\{3\} \times D_{4,2}&amp;lt;/math&amp;gt; except possibly for two additional points, together with the one point 32222 of the diagonal that lies outside of &amp;lt;math&amp;gt;\{3\} \times D_{4,2}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
The lines x12xx, x13xx (plus permutations of the last four digits) must each contain one point outside the set.  The first two slices can only absorb two of these, and so at least 14 of the 16 points formed by permuting the last four digits of 31233, 31333 must lie outside the set.  These points all lie in &amp;lt;math&amp;gt;\{3\} \times D_{4,2}&amp;lt;/math&amp;gt;, and so the 3**** slice can have at most &amp;lt;math&amp;gt;|D_{4,2}|-14+3=43&amp;lt;/math&amp;gt; points, a contradiction.&lt;br /&gt;
&lt;br /&gt;
The case jk=02 is similar to the case jk=10 (indeed one can obtain one from the other by swapping 1 and 2).  Now we turn to the case jk=21.  Arguing as before we see that the third slice is contained in &amp;lt;math&amp;gt;\{3\} \times D_4&amp;lt;/math&amp;gt; except possibly for two points, together with 33333.  &lt;br /&gt;
&lt;br /&gt;
If 33333 was in the set, then each of the lines xx333, xxx33 (and permutations of the last four digits) must have a point missing from the first two slices, which cannot be absorbed by the two points we are permitted to remove; thus 33333 is not in the set.  For similar reasons, 33331 is not in the set, as can be seen by looking at xxx31 and permutations of the last four digits.  Indeed, any string containing four threes does not lie in the set; this means that at least 8 points are missing from &amp;lt;math&amp;gt;\{3\} \times D_4&amp;lt;/math&amp;gt;, leaving only at most 46 points inside that set.  Furthermore, any point in the 3**** slice outside of &amp;lt;math&amp;gt;\{3\} \times D_4&amp;lt;/math&amp;gt; can only be created by removing a point from the first two slices, so the total cardinality is at most &amp;lt;math&amp;gt;46+52+52 = 150&amp;lt;/math&amp;gt;, a contradiction.&amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Corollary&#039;&#039;&#039;. &amp;lt;math&amp;gt;c_5 \leq 152&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039;.  By Lemma 4 and the bound &amp;lt;math&amp;gt;c_4=52&amp;lt;/math&amp;gt;, any line-free set with over 150 points can have one slice of cardinality 52, but then the other two slices can have at most 50 points. &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Lemma 5&#039;&#039;&#039; Any solution with 151 or more points has a slice with at most 49 points.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; Suppose we have 151 points without a line, and each of three slices has at least 50 points.&lt;br /&gt;
&lt;br /&gt;
Using earlier notation, we split subsets of &amp;lt;math&amp;gt;[3]^4&amp;lt;/math&amp;gt; into nine subsets of &amp;lt;math&amp;gt;[3]^2&amp;lt;/math&amp;gt;.  &lt;br /&gt;
So we think of x,y,z,a,b and c as subsets of a square.  Each slice is one of the following.&lt;br /&gt;
*&amp;lt;math&amp;gt;D_4 = y&#039;zx,zx&#039;y,xyz&amp;lt;/math&amp;gt; (with one or two points removed)&lt;br /&gt;
*&amp;lt;math&amp;gt;D_{4,2} = z&#039;xy,xyz,yzx&#039;&amp;lt;/math&amp;gt; (with one or two points removed)&lt;br /&gt;
*&amp;lt;math&amp;gt;D_{4,1} = xyz,yz&#039;x,zxy&#039;&amp;lt;/math&amp;gt; (with one or two points removed)&lt;br /&gt;
*&amp;lt;math&amp;gt;X = xyz, ybw, zwc&amp;lt;/math&amp;gt;&lt;br /&gt;
*&amp;lt;math&amp;gt;Y = axw, xyz, wzc&amp;lt;/math&amp;gt;&lt;br /&gt;
*&amp;lt;math&amp;gt;Z = awx, wby, xyz&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where a, b and c have four points each.&lt;br /&gt;
&lt;br /&gt;
        .. 32 33          31 .. 33         .. .. ..&lt;br /&gt;
    a = .. 22 23      b = .. .. ..     c = 21 22 ..&lt;br /&gt;
        .. .. ..          11 .. 13         11 12 ..&lt;br /&gt;
&lt;br /&gt;
x&#039;, y&#039; and z&#039; are subsets of x, y and z respectively, and have five points each.&lt;br /&gt;
&lt;br /&gt;
Suppose all three slices are subsets of &amp;lt;math&amp;gt;D_{4,j}&amp;lt;/math&amp;gt;.  &lt;br /&gt;
We can remove at most five points from the full set of three D_{4,j}.  &lt;br /&gt;
Consider columns 2,3,4,6,7,8.  At most two of these columns contain xyz, so one point must be removed from the other four.&lt;br /&gt;
This uses up all but one of the removals.&lt;br /&gt;
So the slices must be &amp;lt;math&amp;gt;D_{4,2},D_{4,1},D_{4,0}&amp;lt;/math&amp;gt; or a cyclic permutation of that.&lt;br /&gt;
Then the cube, which contains the first square of slice 1; the fifth square of slice 2; &lt;br /&gt;
and the ninth square of slice 3, contains three copies of the same square.  &lt;br /&gt;
It takes more than one point removed to remove all lines from that cube.&lt;br /&gt;
So we can&#039;t have all three slices subsets of &amp;lt;math&amp;gt;D_{4,j}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Suppose one slice is X,Y or Z, and two others are subsets of &amp;lt;math&amp;gt;D_{4,j}&amp;lt;/math&amp;gt;.  &lt;br /&gt;
We can remove at most three points from the full &amp;lt;math&amp;gt;D_{4,j}&amp;lt;/math&amp;gt;&lt;br /&gt;
By symmetry, suppose one slice is X.  Consider columns 2,3,4 and 7.  They must be cyclic permutations of x,y,z,&lt;br /&gt;
and two of them are not xyz, so must lose a point.  &lt;br /&gt;
Columns 6 and 8 must both lose a point, and we only have 150 points left.&lt;br /&gt;
So if one slice is X,Y or Z, the full set contains a line.&lt;br /&gt;
&lt;br /&gt;
Suppose two slices are from X,Y and Z, and the other is a subset of &amp;lt;math&amp;gt;D_{4,j}&amp;lt;/math&amp;gt;.  &lt;br /&gt;
By symmetry, suppose two slices are X and Y.  Columns 3,6,7 and 8 all contain w, and therefore at most 16 points each.&lt;br /&gt;
Columns 1,5 and 9 contain a,b, or c, and therefore at most 16 points. &lt;br /&gt;
So the total number of points is at most 7*16+2*18 = 148.  This contradicts the assumption of 151 points.&lt;br /&gt;
&amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Corollary&#039;&#039;&#039; &amp;lt;math&amp;gt;c_5 \leq 151 &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; By Lemmas 2 and 4, the maximum number of points is 52+50+49=151. &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Lemma 5.1&#039;&#039;&#039; No solution with 151 points contains as a slice the X defined in Lemma 2&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; Suppose one row is X.  Another row is &amp;lt;math&amp;gt;D_{4,j}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Suppose X is in the first row.  Label the other rows with letters from the alphabet.&lt;br /&gt;
&lt;br /&gt;
xyz ybw zwc&lt;br /&gt;
&lt;br /&gt;
mno pqr stu&lt;br /&gt;
&lt;br /&gt;
def ghi jkl&lt;br /&gt;
&lt;br /&gt;
Reslice the array into a left nine, middle nine and right nine.  One of these squares&lt;br /&gt;
contains 52 points, and it can only be the left nine.  One of its three columns contains&lt;br /&gt;
18 points, and it can only be its left-hand column, xmd.  So m=y and d=z.  But none of the {math&amp;gt;D_{4,j}&amp;lt;/math&amp;gt; begins with y or z, which is a contradiction.  So X is not in the first row.&lt;br /&gt;
&lt;br /&gt;
So X is in the second or third row.  By symmetry, suppose it is in the second row&lt;br /&gt;
&lt;br /&gt;
def ghi jkl&lt;br /&gt;
&lt;br /&gt;
xyz ybw zwc&lt;br /&gt;
&lt;br /&gt;
mno pqr stu&lt;br /&gt;
&lt;br /&gt;
Again, the left-hand nine must contain 52 points, so it is &amp;lt;math&amp;gt;D_{4,2}&amp;lt;/math&amp;gt;.&lt;br /&gt;
So either the first row is &amp;lt;math&amp;gt;D_{4,2}&amp;lt;/math&amp;gt; or the third row is &amp;lt;math&amp;gt;D_{4,0}&amp;lt;/math&amp;gt;.&lt;br /&gt;
If the first row is &amp;lt;math&amp;gt;D_{4,2}&amp;lt;/math&amp;gt; then the only way to have 50 points in the middle or right-hand nine is if the middle nine is X&lt;br /&gt;
&lt;br /&gt;
z&#039;xy xyz yzx&#039;&lt;br /&gt;
&lt;br /&gt;
xyz  ybw zwc&lt;br /&gt;
&lt;br /&gt;
yzx&#039; zwc stu&lt;br /&gt;
&lt;br /&gt;
In the seventh column, s contains 5 points and in the eighth column, t contains 4 points.&lt;br /&gt;
The final row can now contain at most 48 points, and the whole array contains only 52+50+48 = 150 points.&lt;br /&gt;
&lt;br /&gt;
If the third row is &amp;lt;math&amp;gt;D_{4,0}&amp;lt;/math&amp;gt;, then neither the middle nine nor the right-hand nine contains 50 points, by the classification of Lemma 4 and the formulas at the start of Lemma 5.&lt;br /&gt;
Again, only 52+49+49 = 150 points are possible.&lt;br /&gt;
&lt;br /&gt;
A similar argument is possible if X is in the third row; or if X is replaced by Y or Z.&lt;br /&gt;
&lt;br /&gt;
So when a 151-point set is sliced into three, one slice is &amp;lt;math&amp;gt;D_{4,j}&amp;lt;/math&amp;gt; and another slice is 50 points contained in &amp;lt;math&amp;gt;D_{4,k}&amp;lt;/math&amp;gt;. &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Lemma 5.2&#039;&#039;&#039; There is no 151-point solution&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; Assume by symmetry that the first row contains 52 points and the second row contains 50.&lt;br /&gt;
&lt;br /&gt;
If &amp;lt;math&amp;gt;D_{4,1}&amp;lt;/math&amp;gt; is in the first row, then the second row must be contained in &amp;lt;math&amp;gt;D_{4,0}&amp;lt;/math&amp;gt;.  &lt;br /&gt;
&lt;br /&gt;
xyz  yz&#039;x zxy&#039;&lt;br /&gt;
&lt;br /&gt;
y&#039;zx zx&#039;y xyz&lt;br /&gt;
&lt;br /&gt;
def  ghi  jkl&lt;br /&gt;
&lt;br /&gt;
But then none of the left nine, middle nine or right nine can contain 52 points, which contradicts the corollary to Lemma 5.&lt;br /&gt;
&lt;br /&gt;
Suppose the first row contains D_{4,0}.  Then the second row is contained in &amp;lt;math&amp;gt;D_{4,2}&amp;lt;/math&amp;gt;, otherwise the cubes formed from the nine columns of the diagram would need to remove too many points.&lt;br /&gt;
&lt;br /&gt;
y&#039;zx zx&#039;y xyz&lt;br /&gt;
&lt;br /&gt;
z&#039;xy xyz  yzx&#039;&lt;br /&gt;
&lt;br /&gt;
def  ghi  jkl&lt;br /&gt;
&lt;br /&gt;
But then neither the left nine, middle nine or right nine contains 52 points.&lt;br /&gt;
&lt;br /&gt;
So the first row contains &amp;lt;math&amp;gt;D_{4,2}&amp;lt;/math&amp;gt;, and the second row is contained in &amp;lt;math&amp;gt;D_{4,1}&amp;lt;/math&amp;gt;.  Two points may be removed from the second row of this diagram.&lt;br /&gt;
&lt;br /&gt;
z&#039;xy xyz  yzx&#039;&lt;br /&gt;
&lt;br /&gt;
xyz  yz&#039;x zxy&#039;&lt;br /&gt;
&lt;br /&gt;
def  ghi  jkl&lt;br /&gt;
&lt;br /&gt;
Slice it into the left nine, middle nine and right nine.  Two of them are contained in &amp;lt;math&amp;gt;D_{4,j}&amp;lt;/math&amp;gt;&lt;br /&gt;
so at least two of def, ghi, and jkl are contained in the corresponding slice of &amp;lt;math&amp;gt;D_{4,0}&amp;lt;/math&amp;gt;.&lt;br /&gt;
Slice along a different axis, and at least two of dgj,ehk,fil are contained in the corresponding slice of &lt;br /&gt;
&amp;lt;math&amp;gt;D_{4,0}&amp;lt;/math&amp;gt;.  &lt;br /&gt;
So eight of the nine squares in the bottom row are contained in the corresponding square of &amp;lt;math&amp;gt;D_{4,0}&amp;lt;/math&amp;gt;.&lt;br /&gt;
Indeed, slice along other axes, and all points except one are contained within &amp;lt;math&amp;gt;D_{4,0}&amp;lt;/math&amp;gt;.  &lt;br /&gt;
This point is the intersection of all the 49-point slices.  &lt;br /&gt;
&lt;br /&gt;
So, if there is a 151-point solution, then after removal of the specified point, &lt;br /&gt;
there is a 150-point solution, within &amp;lt;math&amp;gt;D_{5,j}&amp;lt;/math&amp;gt;, whose slices in each direction are 52+50+48.&lt;br /&gt;
&lt;br /&gt;
z&#039;xy xyz  yzx&#039;&lt;br /&gt;
&lt;br /&gt;
xyz  yz&#039;x zxy&#039;&lt;br /&gt;
&lt;br /&gt;
y&#039;zx zx&#039;y xyz&lt;br /&gt;
&lt;br /&gt;
One point must be lost from columns 3, 6, 7 and 8, and four more from the major diagonal z&#039;z&#039;z.  That leaves 148 points instead of 150.&lt;br /&gt;
&lt;br /&gt;
So the 150-point solution does not exist with 52+50+48 slices; so the 151 point solution does not exist.&amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
An integer programming method has established the upper bound &amp;lt;math&amp;gt;c_5\leq 150&amp;lt;/math&amp;gt;, with 12 extremal solutions.&lt;br /&gt;
&lt;br /&gt;
[http://abel.math.umu.se/~klasm/extremal-c5 This file] contains the extermisers. One point per line and different extermisers separated by a line with “—”&lt;br /&gt;
&lt;br /&gt;
[http://abel.math.umu.se/~klasm/linprog-d=5-t=3.lpt This is the linear program], readable by Gnu’s glpsol linear programing solver, which also quickly proves that 150 is the optimum.&lt;br /&gt;
&lt;br /&gt;
Each variable corresponds to a point in the cube, numbered according to their lexicografic ordering. If a variable is 1 then the point is in the set, if it is 0 then it is not in the set.&lt;br /&gt;
There is one linear inequality for each combinatorial line, stating that at least one point must be missing from the line.&lt;br /&gt;
&lt;br /&gt;
== n=6 ==&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;c_6=450&amp;lt;/math&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
The upper bound follows since &amp;lt;math&amp;gt;c_6 \leq 3 c_5&amp;lt;/math&amp;gt;.   The lower bound can be formed by gluing together all the [[slice]]s &amp;lt;math&amp;gt;\Gamma_{a,b,c}&amp;lt;/math&amp;gt; where (a,b,c) is a permutation of (0,2,4) or (1,2,3).&lt;br /&gt;
&lt;br /&gt;
Computer verification, using the &amp;lt;math&amp;gt;c_5=150&amp;lt;/math&amp;gt; extremals, has shown that there is exactly one extremiser for &amp;lt;math&amp;gt;c_6=450&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== n=7 ==&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;1302 \leq c_7 \leq 1348&amp;lt;/math&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
To see the upper bound &amp;lt;math&amp;gt;c_7 \leq 3c_6-2&amp;lt;/math&amp;gt;, observe that if two parallel six-dimensional slices had &amp;lt;math&amp;gt;c_6&amp;lt;/math&amp;gt; points, then by uniqueness they are identical, and the third slice can have at most &amp;lt;math&amp;gt;3^6-c_6=279&amp;lt;/math&amp;gt; points, far too few to get anywhere close to &amp;lt;math&amp;gt;1348&amp;lt;/math&amp;gt;.  Thus there can be at most one slice with &amp;lt;math&amp;gt;c_6&amp;lt;/math&amp;gt; points, and the other two have at most &amp;lt;math&amp;gt;c_6-1&amp;lt;/math&amp;gt;, giving the claim.&lt;br /&gt;
&lt;br /&gt;
The lower bound can be formed by removing 016,106,052,502,151,511,160,610 from &amp;lt;math&amp;gt;D_7&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Lemma 6&#039;&#039;&#039; Any line-free subset of &amp;lt;math&amp;gt;D_7&amp;lt;/math&amp;gt; has at most 1302 points.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; Start with the 1458 points of &amp;lt;math&amp;gt;D_7&amp;lt;/math&amp;gt;.  You must lose:&lt;br /&gt;
&lt;br /&gt;
* 42 points from (1,2,4),(1,5,1),(4,2,1)&lt;br /&gt;
* 42 points from (2,1,4),(2,4,1),(5,1,1)&lt;br /&gt;
* 21 points from (0,2,5),(0,5,2),(3,2,2)&lt;br /&gt;
* 21 points from (2,0,5),(2,3,2),(5,0,2)&lt;br /&gt;
* 15 points from (0,1,6),(0,4,3),(3,1,3),(0,7,0),(3,4,0),(6,1,0)&lt;br /&gt;
* 15 points from (1,0,6),(1,3,3),(4,0,3),(7,0,0),(4,3,0),(1,6,0)&lt;br /&gt;
&lt;br /&gt;
where (a,b,c) is shorthand for the [[slice]] &amp;lt;math&amp;gt;\Gamma_{a,b,c}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Larger n ==&lt;br /&gt;
&lt;br /&gt;
The following construction gives lower bounds for the number of triangle-free points, &lt;br /&gt;
There are of the order &amp;lt;math&amp;gt;2.7 \sqrt{log(N)/N}3^N&amp;lt;/math&amp;gt; points for large N (N ~ 5000)&lt;br /&gt;
&lt;br /&gt;
It applies when N is a multiple of 3. &lt;br /&gt;
* For N=3M-1, restrict the first digit of a 3M sequence to be 1.  So this construction has exactly one-third as many points for N=3M-1 as it has for N=3M. &lt;br /&gt;
* For N=3M-2, restrict the first two digits of a 3M sequence to be 12.  This leaves roughly one ninth of the points for N=3M-2 as for N=3M.&lt;br /&gt;
&lt;br /&gt;
The current lower bounds for &amp;lt;math&amp;gt;c_{3m}&amp;lt;/math&amp;gt; are built like this, with abc being shorthand for &amp;lt;math&amp;gt;\Gamma_{a,b,c}&amp;lt;/math&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;math&amp;gt;c_3&amp;lt;/math&amp;gt; from (012) and permutations&lt;br /&gt;
* &amp;lt;math&amp;gt;c_6&amp;lt;/math&amp;gt; from (123,024) and perms&lt;br /&gt;
* &amp;lt;math&amp;gt;c_9&amp;lt;/math&amp;gt; from (234,135,045) and perms&lt;br /&gt;
* &amp;lt;math&amp;gt;c_{12}&amp;lt;/math&amp;gt; from (345,246,156,02A,057) and perms (A=10)&lt;br /&gt;
* &amp;lt;math&amp;gt;c_{15}&amp;lt;/math&amp;gt; from (456,357,267,13B,168,04B,078) and perms (B=11)&lt;br /&gt;
&lt;br /&gt;
To get the triples in each row, add 1 to the triples in the previous row; then include new triples that have a zero.&lt;br /&gt;
&lt;br /&gt;
A general formula for these points is given below.  I think that they are triangle-free.  (For N&amp;lt;21, ignore any triple with a negative entry.)&lt;br /&gt;
&lt;br /&gt;
* There are thirteen groups of points in the centre, formed from adding one of the following points, or its permutation, to (M,M,M), when N=3M:&lt;br /&gt;
** (-7,-3,+10), (-7, 0,+7),(-7,+3,+4),(-6,-4,+10),(-6,-1,+7),(-6,+2,+4),(-5,-1,+6),(-5,+2,+3),(-4,-2,+6),(-4,+1,+3),(-3,+1,+2),(-2,0,+2),(-1,0,+1) &lt;br /&gt;
* There are also eight string of points, stretching to the edges of the (abc) triangle:&lt;br /&gt;
** For N=6K = 3M&lt;br /&gt;
*** M+(-8-2x,-6-2x,14+4x),M+(-8-2x,-3-2x,11+4x),M+(-8-2x,x,8+x),M+(-8-2x,3+x,5+x) and permutations (x&amp;gt;=0, M-8-2x&amp;gt;=0)&lt;br /&gt;
*** M+(-9-2x,-5-2x,14+4x),M+(-9-2x,-2-2x,11+4x),M+(-9-2x,1+x,8+x),M+(-9-2x,4+x,5+x) and permutations (x&amp;gt;=0, M-9-2x&amp;gt;=0)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
An alternate construction:&lt;br /&gt;
&lt;br /&gt;
First define a sequence, of all positive numbers which, in base 3, do not contain a 1. Add 1 to all multiples of 3 in this sequence. This sequence does not contain a length-3 arithmetic progression.&lt;br /&gt;
&lt;br /&gt;
It starts 1,2,7,8,19,20,25,26,55, …&lt;br /&gt;
&lt;br /&gt;
Second, list all the (abc) triples for which the larger two differ by a number&lt;br /&gt;
from the sequence, excluding the case when the smaller two differ by 1, but then including the case when (a,b,c) is a permutation of N/3+(-1,0,1)&lt;br /&gt;
&lt;br /&gt;
== Asymptotics ==&lt;br /&gt;
&lt;br /&gt;
DHJ(3) is equivalent to the upper bound&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;c_n \leq o(3^n)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In the opposite direction, observe that if we take a set &amp;lt;math&amp;gt;S \subset [3n]&amp;lt;/math&amp;gt; that contains no 3-term arithmetic progressions, then the set &amp;lt;math&amp;gt;\bigcup_{(a,b,c) \in \Delta_n: a+2b \in S} \Gamma_{a,b,c}&amp;lt;/math&amp;gt; is line-free.  From this and the Behrend construction it appears that we have the lower bound&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;c_n \geq 3^{n-O(\sqrt{\log n})}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
More precisely, we have&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;c_n &amp;gt; C 3^{n - 4\sqrt{\log 2}\sqrt{\log n}+\frac 12 \log \log n}&amp;lt;/math&amp;gt;&lt;br /&gt;
for some absolute constant C, and where all logarithms are base-3.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; For convenience, let n be a multiple of 3. Elkin’s bound gives &amp;lt;math&amp;gt;r_3(\sqrt{n}) &amp;gt; C \sqrt{n} (\log n)^{1/4} \exp_2(-2 \sqrt{\log_2 n})&amp;lt;/math&amp;gt;, and let &amp;lt;math&amp;gt;R&amp;lt;/math&amp;gt; be a subset of &amp;lt;math&amp;gt;(-3\sqrt{n}/2,3\sqrt{n}/2)&amp;lt;/math&amp;gt; without 3-term APs and with size &amp;lt;math&amp;gt;r_3(\sqrt{n})&amp;lt;/math&amp;gt;, and with all elements being integer multiples of 3 (again as a matter of convenience). For each &amp;lt;math&amp;gt;r,s\in R&amp;lt;/math&amp;gt;, let &amp;lt;math&amp;gt;a = (n-r-s)/3&amp;lt;/math&amp;gt;. The set &amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt; is the union of all &amp;lt;math&amp;gt;\Gamma_{a,a+r,a+s}&amp;lt;/math&amp;gt;. Since all of &amp;lt;math&amp;gt;a, a+r,a+s&amp;lt;/math&amp;gt; are between &amp;lt;math&amp;gt;n/3-2\sqrt{n}&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;n/3+2\sqrt{n}&amp;lt;/math&amp;gt;, the size of &amp;lt;math&amp;gt;\Gamma_{a,a+r,a+s}&amp;lt;/math&amp;gt; is at least &amp;lt;math&amp;gt;C 3^n / n&amp;lt;/math&amp;gt;. Since there are &amp;lt;math&amp;gt;r_3(\sqrt{n})^2&amp;lt;/math&amp;gt; choices for r and s, we have a set with size at least&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;C (\sqrt{n} (\log n)^{1/4} \exp_2(-2 \sqrt{\log_2 n}))^2 3^n / n&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
This simplifies to &amp;lt;math&amp;gt;C \sqrt{\log n} \exp_3(n-\alpha \sqrt{\log_3(n)})&amp;lt;/math&amp;gt;, where &amp;lt;math&amp;gt;\alpha=4 \sqrt{\log_3(2)}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Now suppose that &amp;lt;math&amp;gt;x_i\in \Gamma_{a_i,a_i+r_i,a_i+s_i}&amp;lt;/math&amp;gt; is a combinatorial line in the set A. Then &amp;lt;math&amp;gt;(a_i+s_i)-(a_i)=s_i&amp;lt;/math&amp;gt; is a 3-term AP contained in R, so the &amp;lt;math&amp;gt;s_i&amp;lt;/math&amp;gt; are all the same. Similarly, all of the &amp;lt;math&amp;gt;r_i&amp;lt;/math&amp;gt; are the same, and therefore all of the &amp;lt;math&amp;gt;a_i&amp;lt;/math&amp;gt; are the same, too. But this implies that the &amp;lt;math&amp;gt;x_i&amp;lt;/math&amp;gt; sequence is constant, which means the line is degenerate. &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[http://terrytao.wordpress.com/2009/02/05/upper-and-lower-bounds-for-the-density-hales-jewett-problem/#comment-35652 Numerics suggest] that the first large n construction given above above give a lower bound of roughly &amp;lt;math&amp;gt;2.7 \sqrt{\log(n)/n} \times 3^n&amp;lt;/math&amp;gt;, which would asymptotically be inferior to the Behrend bound.&lt;br /&gt;
&lt;br /&gt;
The second large n construction had numerical asymptotics for &amp;lt;math&amp;gt;\log(c_n/3^n)&amp;lt;/math&amp;gt; close to &amp;lt;math&amp;gt;1.2-\sqrt{\log(n)}&amp;lt;/math&amp;gt; between n=1000 and n=10000, consistent with the Behrend bound.&lt;br /&gt;
&lt;br /&gt;
== Other k values ==&lt;br /&gt;
&lt;br /&gt;
A [http://abel.math.umu.se/~klasm/Data/HJ/ computer search] has found the following &amp;lt;math&amp;gt;c_n&amp;lt;/math&amp;gt; values for different values of dimension n and edgelength k.  Several of these values reach the upper bound of &amp;lt;math&amp;gt;(k-1)k^{n-1}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
{|&lt;br /&gt;
|n\k || 2 || 3 || 4 || 5 || 6 || 7&lt;br /&gt;
|-&lt;br /&gt;
| 2 || 2 || 6 || 12 || 20 || 30 || 42&lt;br /&gt;
|-&lt;br /&gt;
| 3 || 3 || 18 || 48 || 100 || 180 || 294&lt;br /&gt;
|-&lt;br /&gt;
| 4 || 6 || 52 || 183 || 500 || 1029-1079 || 2058&lt;br /&gt;
|-&lt;br /&gt;
| 5 || 10 || 150 || 683-732 || 2500&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
If k is prime and &amp;lt;math&amp;gt;k \ge n&amp;lt;/math&amp;gt;, then one can remove all combinatorial lines by deleting all points whose coordinates sum to a multiple of k.  So the density of deleted points in the optimal configuration is 1/k when k is prime.&lt;br /&gt;
&lt;br /&gt;
Let p be the smallest prime greater than or equal to both k and n.  One can remove all combinatorial lines by deleting all points whose coordinates sum to &amp;lt;math&amp;gt;0\le x\le p-k&amp;lt;/math&amp;gt; (mod p),  So the density of deleted points is at most (p-k+1)/p.  This approaches zero as &amp;lt;math&amp;gt;k\rightarrow\infty&amp;lt;/math&amp;gt;.  For example, the following paper shows there is a prime between x-x^0.525 and x.&lt;br /&gt;
&lt;br /&gt;
Baker, R. C.(1-BYU); Harman, G.(4-LNDHB); Pintz, J.(H-AOS)&lt;br /&gt;
The difference between consecutive primes. II.&lt;br /&gt;
Proc. London Math. Soc. (3) 83 (2001), no. 3, 532–562.&lt;br /&gt;
&lt;br /&gt;
== Numerical methods ==&lt;br /&gt;
&lt;br /&gt;
A greedy algorithm [http://thetangentspace.com/wiki/Hales-Jewett_Theorem was implemented here].  The results were sharp for &amp;lt;math&amp;gt;n \leq 3&amp;lt;/math&amp;gt; but were slightly inferior to the constructions above for larger n.&lt;/div&gt;</summary>
		<author><name>121.220.134.232</name></author>
	</entry>
	<entry>
		<id>https://michaelnielsen.org/polymath/index.php?title=Upper_and_lower_bounds&amp;diff=1059</id>
		<title>Upper and lower bounds</title>
		<link rel="alternate" type="text/html" href="https://michaelnielsen.org/polymath/index.php?title=Upper_and_lower_bounds&amp;diff=1059"/>
		<updated>2009-03-26T05:21:22Z</updated>

		<summary type="html">&lt;p&gt;121.220.134.232: /* Other k values */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;center&amp;gt;&#039;&#039;&#039;Upper and lower bounds for &amp;lt;math&amp;gt;c_n&amp;lt;/math&amp;gt; for small values of n.&#039;&#039;&#039;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;c_n&amp;lt;/math&amp;gt; is the size of the largest subset of &amp;lt;math&amp;gt;[3]^n&amp;lt;/math&amp;gt; that does not contain a combinatorial line (OEIS [http://www.research.att.com/~njas/sequences/A156762 A156762].  A spreadsheet for all the latest bounds on &amp;lt;math&amp;gt;c_n&amp;lt;/math&amp;gt; [http://spreadsheets.google.com/ccc?key=p5T0SktZY9DsU-uZ1tK7VEg can be found here].  In this page we record the proofs justifying these bounds.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{|&lt;br /&gt;
| n || 0 || 1 || 2 || 3 || 4 || 5 || 6 || 7&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;math&amp;gt;c_n&amp;lt;/math&amp;gt; || 1 || 2 || 6 || 18 || 52 || 150 || 450 || [1302,1348]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Basic constructions ==&lt;br /&gt;
&lt;br /&gt;
For all &amp;lt;math&amp;gt;n \geq 1&amp;lt;/math&amp;gt;, a basic example of a mostly line-free set is&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;D_n := \{ (x_1,\ldots,x_n) \in [3]^n: \sum_{i=1}^n x_i \neq 0 \ \operatorname{mod}\ 3 \}&amp;lt;/math&amp;gt;.  (1)&lt;br /&gt;
&lt;br /&gt;
This has cardinality &amp;lt;math&amp;gt;|D_n| = 2 \times 3^{n-1}&amp;lt;/math&amp;gt;.  The only lines in &amp;lt;math&amp;gt;D_n&amp;lt;/math&amp;gt; are those with&lt;br /&gt;
&lt;br /&gt;
# A number of wildcards equal to a multiple of three;&lt;br /&gt;
# The number of 1s unequal to the number of 2s modulo 3.&lt;br /&gt;
&lt;br /&gt;
One way to construct line-free sets is to start with &amp;lt;math&amp;gt;D_n&amp;lt;/math&amp;gt; and remove some additional points.  We also have the variants &amp;lt;math&amp;gt;D_{n,0}=D_n, D_{n,1}, D_{n,2}&amp;lt;/math&amp;gt; defined as&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;D_{n,j} := \{ (x_1,\ldots,x_n) \in [3]^n: \sum_{i=1}^n x_i \neq j \ \operatorname{mod}\ 3 \}&amp;lt;/math&amp;gt;.  (1&#039;)&lt;br /&gt;
&lt;br /&gt;
When n is not a multiple of 3, then &amp;lt;math&amp;gt;D_{n,0}, D_{n,1}, D_{n,2}&amp;lt;/math&amp;gt; are all cyclic permutations of each other; but when n is a multiple of 3, then &amp;lt;math&amp;gt;D_{n,0}&amp;lt;/math&amp;gt; plays a special role (though &amp;lt;math&amp;gt;D_{n,1}, D_{n,2}&amp;lt;/math&amp;gt; are still interchangeable).&lt;br /&gt;
&lt;br /&gt;
Another useful construction proceeds by using the slices &amp;lt;math&amp;gt;\Gamma_{a,b,c} \subset [3]^n&amp;lt;/math&amp;gt; for &amp;lt;math&amp;gt;(a,b,c)&amp;lt;/math&amp;gt; in the triangular grid&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\Delta_n := \{ (a,b,c) \in {\Bbb Z}_+^3: a+b+c = n \},&amp;lt;/math&amp;gt;.  (2)&lt;br /&gt;
&lt;br /&gt;
where &amp;lt;math&amp;gt;\Gamma_{a,b,c}&amp;lt;/math&amp;gt; is defined as the strings in &amp;lt;math&amp;gt;[3]^n&amp;lt;/math&amp;gt; with &amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt; 1s, &amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt; 2s, and &amp;lt;math&amp;gt;c&amp;lt;/math&amp;gt; 3s.  Note that&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;|\Gamma_{a,b,c}| = \frac{n!}{a! b! c!}.&amp;lt;/math&amp;gt; (3)&lt;br /&gt;
&lt;br /&gt;
Given any set &amp;lt;math&amp;gt;B \subset \Delta_n&amp;lt;/math&amp;gt; that avoids equilateral triangles &amp;lt;math&amp;gt; (a+r,b,c), (a,b+r,c), (a,b,c+r)&amp;lt;/math&amp;gt;, the set&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\Gamma_B := \bigcup_{(a,b,c) \in B} \Gamma_{a,b,c}&amp;lt;/math&amp;gt; (4)&lt;br /&gt;
&lt;br /&gt;
is line-free and has cardinality&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;|\Gamma_B| = \sum_{(a,b,c) \in B} \frac{n!}{a! b! c!},&amp;lt;/math&amp;gt; (5)&lt;br /&gt;
&lt;br /&gt;
and thus provides a lower bound for &amp;lt;math&amp;gt;c_n&amp;lt;/math&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;c_n \geq \sum_{(a,b,c) \in B} \frac{n!}{a! b! c!}.&amp;lt;/math&amp;gt; (6)&lt;br /&gt;
&lt;br /&gt;
All lower bounds on &amp;lt;math&amp;gt;c_n&amp;lt;/math&amp;gt; have proceeded so far by choosing a good set of B and applying (6).  Note that &amp;lt;math&amp;gt;D_n&amp;lt;/math&amp;gt; is the same as &amp;lt;math&amp;gt;\Gamma_{B_n}&amp;lt;/math&amp;gt;, where &amp;lt;math&amp;gt;B_n&amp;lt;/math&amp;gt; consists of those triples &amp;lt;math&amp;gt;(a,b,c) \in \Delta_n&amp;lt;/math&amp;gt; in which &amp;lt;math&amp;gt;a \neq b\ \operatorname{mod}\ 3&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Note that if one takes a line-free set and permutes the alphabet &amp;lt;math&amp;gt;\{1,2,3\}&amp;lt;/math&amp;gt; in any fashion (e.g. replacing all 1s by 2s and vice versa), one also gets a line-free set.  This potentially gives six examples from any given starting example of a line-free set, though in practice there is enough symmetry that the total number of examples produced this way is less than six.  (These six examples also correspond to the six symmetries of the triangular grid &amp;lt;math&amp;gt;\Delta_n&amp;lt;/math&amp;gt; formed by rotation and reflection.)&lt;br /&gt;
&lt;br /&gt;
Another symmetry comes from permuting the &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt; indices in the strings of &amp;lt;math&amp;gt;[3]^n&amp;lt;/math&amp;gt; (e.g. replacing every string by its reversal).  But the sets &amp;lt;math&amp;gt;\Gamma_B&amp;lt;/math&amp;gt; are automatically invariant under such permutations and thus do not produce new line-free sets via this symmetry.&lt;br /&gt;
&lt;br /&gt;
== The basic upper bound ==&lt;br /&gt;
&lt;br /&gt;
Because &amp;lt;math&amp;gt;[3]^{n+1}&amp;lt;/math&amp;gt; can be expressed as the union of three copies of &amp;lt;math&amp;gt;[3]^n&amp;lt;/math&amp;gt;, we have the basic upper bound&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;c_{n+1} \leq 3 c_n.&amp;lt;/math&amp;gt; (7)&lt;br /&gt;
&lt;br /&gt;
Note that equality only occurs if one can find an &amp;lt;math&amp;gt;n+1&amp;lt;/math&amp;gt;-dimensional line-free set such that every n-dimensional slice has the maximum possible cardinality of &amp;lt;math&amp;gt;c_n&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== n=0 ==&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;c_0=1&amp;lt;/math&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
This is clear.&lt;br /&gt;
&lt;br /&gt;
== n=1 ==&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;c_1=2&amp;lt;/math&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
The three sets &amp;lt;math&amp;gt;D_1 = \{1,2\}&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;D_{1,1} = \{2,3\}&amp;lt;/math&amp;gt;, and &amp;lt;math&amp;gt;D_{1,2} = \{1,3\}&amp;lt;/math&amp;gt; are the only two-element sets which are line-free in &amp;lt;math&amp;gt;[3]^1&amp;lt;/math&amp;gt;, and there are no three-element sets.&lt;br /&gt;
&lt;br /&gt;
== n=2 ==&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;c_2=6&amp;lt;/math&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
There are four six-element sets in &amp;lt;math&amp;gt;[3]^2&amp;lt;/math&amp;gt; which are line-free, which we denote &amp;lt;math&amp;gt;x = D_{2,2}&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;y=D_{2,1}&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;z=D_2&amp;lt;/math&amp;gt;, and &amp;lt;math&amp;gt;w&amp;lt;/math&amp;gt; and are displayed graphically as follows.&lt;br /&gt;
&lt;br /&gt;
     13 .. 33       .. 23 33       13 23 ..       13 23 ..&lt;br /&gt;
 x = 12 22 ..   y = 12 .. 32   z = .. 22 32   w = 12 .. 32&lt;br /&gt;
     .. 21 31       11 21 ..       11 .. 31       .. 21 31&lt;br /&gt;
&lt;br /&gt;
Combining this with the basic upper bound (7) we see that &amp;lt;math&amp;gt;c_2=6&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== n=3 ==&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;c_3=18&amp;lt;/math&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
We describe a subset &amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt; of &amp;lt;math&amp;gt;[3]^3&amp;lt;/math&amp;gt; as a string &amp;lt;math&amp;gt;abc&amp;lt;/math&amp;gt;, where &amp;lt;math&amp;gt;a, b, c \subset [3]^2&amp;lt;/math&amp;gt; correspond to strings of the form &amp;lt;math&amp;gt;1**&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;2**&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;3**&amp;lt;/math&amp;gt; in &amp;lt;math&amp;gt;[3]^3&amp;lt;/math&amp;gt; respectively.  Thus for instance &amp;lt;math&amp;gt;D_3 = xyz&amp;lt;/math&amp;gt;, and so from (7) we have &amp;lt;math&amp;gt;c_3=18&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Lemma 1.&#039;&#039;&#039;&lt;br /&gt;
* The only 18-element line-free subset of &amp;lt;math&amp;gt;[3]^3&amp;lt;/math&amp;gt; is &amp;lt;math&amp;gt;D_3 = xyz&amp;lt;/math&amp;gt;.&lt;br /&gt;
* The only 17-element line-free subsets of &amp;lt;math&amp;gt;[3]^3&amp;lt;/math&amp;gt; are formed by removing a point from &amp;lt;math&amp;gt;D_3=xyz&amp;lt;/math&amp;gt;, or by removing either 111, 222, or 333 from &amp;lt;math&amp;gt;D_{3,2} = yzx&amp;lt;/math&amp;gt; or &amp;lt;math&amp;gt;D_{3,3}=zxy&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039;.  We prove the second claim. As &amp;lt;math&amp;gt;17=6+6+5&amp;lt;/math&amp;gt;, and &amp;lt;math&amp;gt;c_2=6&amp;lt;/math&amp;gt;, at least two of the slices of a 17-element line-free set must be from x, y, z, w, with the third slice having 5 points.  If two of the slices are identical, the last slice can have only 3 points, a contradiction.  If one of the slices is a w, then the 5-point slice will contain a diagonal, contradiction.  By symmetry we may now assume that two of the slices are x and y, which force the last slice to be z with one point removed.  Now one sees that the slices must be in the order xyz, yzx, or zxy, because any other combination has too many lines that need to be removed.  The sets yzx, zxy contain the diagonal {111,222,333} and so one additional point needs to be removed. &lt;br /&gt;
&lt;br /&gt;
The first claim follows by a similar argument to the second.&lt;br /&gt;
&amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== n=4 ==&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;c_4=52&amp;lt;/math&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
Indeed, divide a line-free set in &amp;lt;math&amp;gt;[3]^4&amp;lt;/math&amp;gt; into three blocks &amp;lt;math&amp;gt;1***, 2***, 3***&amp;lt;/math&amp;gt; of &amp;lt;math&amp;gt;[3]^3&amp;lt;/math&amp;gt;.  If two of them are of size 18, then they must both be xyz, and the third block can have at most 6 elements, leading to an inferior bound of 42.  So the best one can do is &amp;lt;math&amp;gt;18+17+17=52&amp;lt;/math&amp;gt; which can be attained by deleting the diagonal {1111,2222,3333} from &amp;lt;math&amp;gt;D_{4,1} = xyz\ yzx\ xzy&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;D_4 = yzx\ zxy\ xyz&amp;lt;/math&amp;gt;, or &amp;lt;math&amp;gt;D_{4,2} = zxy\ xyz\ yzx&amp;lt;/math&amp;gt;.  In fact,&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Lemma 2.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* The only 52-element line-free sets in &amp;lt;math&amp;gt;[3]^4&amp;lt;/math&amp;gt; are formed by removing the diagonal {1111,2222,3333} from &amp;lt;math&amp;gt;D_{4,j}&amp;lt;/math&amp;gt; for some j=0,1,2.&lt;br /&gt;
* The only 51-element line-free sets in &amp;lt;math&amp;gt;[3]^4&amp;lt;/math&amp;gt; are formed by removing the diagonal and one further point from &amp;lt;math&amp;gt;D_{4,j}&amp;lt;/math&amp;gt; for some j=0,1,2.&lt;br /&gt;
* The only 50-element line-free sets in &amp;lt;math&amp;gt;[3]^4&amp;lt;/math&amp;gt; are formed by removing the diagonal and two further points from &amp;lt;math&amp;gt;D_{4,j}&amp;lt;/math&amp;gt; for some j=0,1,2  OR is equal to one of the three permutations of the set &amp;lt;math&amp;gt;X := \Gamma_{3,1,0} \cup \Gamma_{3,0,1} \cup \Gamma_{2,2,0} \cup \Gamma_{2,0,2} \cup \Gamma_{1,1,2} \cup \Gamma_{1,2,1} \cup \Gamma_{0,2,2}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; It suffices to prove the third claim.  In fact it suffices to show that every 50-point line-free set is either contained in the 54-point set &amp;lt;math&amp;gt;D_{4,j}&amp;lt;/math&amp;gt; for some j=0,1,2, or is some permutation of the set X. Indeed, if a 50-point line-free set is contained in, say, &amp;lt;math&amp;gt;D_4&amp;lt;/math&amp;gt;, then it cannot contain 2222, since otherwise it must omit one point from each of the four pairs formed from {2333, 2111} by permuting the indices, and must also omit one of {1111, 1222, 1333}, leading to at most 49 points in all; similarly, it cannot contain 1111, and so omits the entire diagonal {1111,2222,3333}, with two more points to be omitted.  Similarly when &amp;lt;math&amp;gt;D_4&amp;lt;/math&amp;gt; is replaced by one of the other &amp;lt;math&amp;gt;D_{4,j}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Next, observe that every three-dimensional slice of a line-free set can have at most &amp;lt;math&amp;gt;c_3=18&amp;lt;/math&amp;gt; points; thus when one partitions a 50-point line-free set into three such slices, it must divide either as 18+16+16, 17+17+16, or some permutation of these.&lt;br /&gt;
&lt;br /&gt;
Suppose that we can slice the set into two slices of 17 points and one slice of 16 points.  By the various symmetries, we may assume that the 1*** slice and 2*** slices have 17 points, and the 3*** slice has 16 points.  By Lemma 1, the 1-slice is &amp;lt;math&amp;gt;\{1\} \times D_{3,j}&amp;lt;/math&amp;gt; with one point removed, and the 2-slice is &amp;lt;math&amp;gt;\{2\} \times D_{3,k}&amp;lt;/math&amp;gt; with one point removed, for some &amp;lt;math&amp;gt;j,k \in \{0,1,2\}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
If j=k, then the 1-slice and 2-slice have at least 15 points in common, so the 3-slice can have at most &amp;lt;math&amp;gt;27-15=12&amp;lt;/math&amp;gt; points, a contradiction.  If jk = 01, 12, or 20, then observe that from Lemma 1 the *1**, *2**, *3** slices cannot equal a 17-point or 18-point line-free set, so each have at most 16 points, leading to only 48 points in all, a contradiction.  Thus we must have jk = 10, 21, or 02.&lt;br /&gt;
&lt;br /&gt;
Let&#039;s first suppose that jk=02.  Then by Lemma 1, the 2*** slice contains the nine points formed from {2211, 2322, 2331} and permuting the last three indices, while the 1*** slice contains at least eight of the nine points formed from {1211, 1322, 1311} and permuting the last three indices.  Thus the 3*** slice can contain at most one of the nine points formed from {3211, 3322, 3311} and permuting the last three indices.  If it does contain one of these points, say 3211, then it must omit one point from each of the four pairs {3222, 3233}, {3212, 3213}, {3221, 3231}, {3111, 3311}, leading to at most 15 points on this slice, a contradiction.  So the 3*** slice must omit all nine points, and is therefore contained in &amp;lt;math&amp;gt;\{3\} \times D_{4,1}&amp;lt;/math&amp;gt;, and so the 50-point set is contained in &amp;lt;math&amp;gt;D_{4,1}&amp;lt;/math&amp;gt;, and we are done by the discussion at the beginning of the proof.&lt;br /&gt;
&lt;br /&gt;
The case jk=10 is similar to the jk=02 case (indeed one can get from one case to the other by swapping the 1 and 2 indices).  Now suppose instead that jk=12.  Then by Lemma 1, the 1*** slice contains the six points from permuting the last three indices of 1123, and similarly the 2*** slice contains the six points from permuting the last three indices of 2123.  Thus the 3*** slice must avoid all six points formed by permuting the last three indices of 3123.  Similarly, as 1133 lies in the 1*** slice and 2233 lies in the 2*** slice, 3333 must be avoided in the 3*** slice.&lt;br /&gt;
&lt;br /&gt;
Now we claim that 3111 must be avoided also; for if 3111 was in the set, then one point from each of the six pairs formed from {3311, 3211}, {3331, 3221} and permuting the last three indices must lie outside the 3*** slice, which reduces the size of that slice to at most &amp;lt;math&amp;gt;27-6-1-6=14&amp;lt;/math&amp;gt;, which is too small.  Similarly, 3222 must be avoided, which puts the 3*** slice inside &amp;lt;math&amp;gt;\{3\} \times D_3&amp;lt;/math&amp;gt; and then places the 50-point set inside &amp;lt;math&amp;gt;D_4&amp;lt;/math&amp;gt;, and we are done by the discussion at the beginning of the proof.&lt;br /&gt;
&lt;br /&gt;
We have handled the case in which at least one of the slicings of the 50-point set is of the form 50=17+17+16.  The only remaining case is when all slicings of the 50-point set are of the form 18+17+16 (or a permutation thereof).  By the symmetries of the situation, we may assume that the 1*** slice has 18 points, and thus by Lemma 1 takes the form &amp;lt;math&amp;gt;\{1\} \times D_3&amp;lt;/math&amp;gt;.  Inspecting the *1**, *2**, *3** slices, we then see (from Lemma 1) that only the *1** slice can have 18 points; since we are assuming that this slicing is some permutation of 50=18+17+16, we conclude that the *1** slice must have exactly 18 points, and is thus described precisely by Lemma 1.  Similarly for the **1* and ***1 slices.  Indeed, by Lemma 1, we see that the 50-point set must agree exactly with &amp;lt;math&amp;gt;D_{4,1}&amp;lt;/math&amp;gt; on any of these slices.  In particular, on the remaining portion &amp;lt;math&amp;gt;\{2,3\}^4&amp;lt;/math&amp;gt; of the cube, there are exactly 6 points of the 50-point set in &amp;lt;math&amp;gt;\{2,3\}^4&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Suppose that 3333 was in the set; then since all permutations of 3311, 3331 are known to lie in the set, then 3322, 3332 must lie outside the set.  Also, as 1222 lies in the set, at least one of 2222, 3222 lie outside the set.  This leaves only 5 points in &amp;lt;math&amp;gt;\{2,3\}^4&amp;lt;/math&amp;gt;, a contradiction.  Thus 3333 lies outside the set; similarly 2222 lies outside the set.&lt;br /&gt;
&lt;br /&gt;
Let a be the number of points in the 50-point set which are some permutation of 2233, thus &amp;lt;math&amp;gt;0 \leq a \leq 6&amp;lt;/math&amp;gt;.  If a=0 then the set lies in &amp;lt;math&amp;gt;D_{4,1}&amp;lt;/math&amp;gt; and we are done.  If a=6 then the set is exactly X and we are done.  Now suppose a=1,2,3.  By symmetry we may assume that 2233 lies in the set.  Then (since 2133, 1233 2231, 2213 are known to lie in the set) 2333, 3233, 2223, 2232 lie outside the set, which leaves at most 5 points inside &amp;lt;math&amp;gt;\{2,3\}^4&amp;lt;/math&amp;gt;, a contradiction.&lt;br /&gt;
&lt;br /&gt;
The remaining case is when a=4,5.  Then one of the three pairs {2233, 3322}, {2323, 3232}, {2332, 3223} lie in the set.  By symmetry we may assume that {2233, 3322} lie in the set.  Then by arguing as before we see that all eight points formed by permuting 2333 or 3222 lie outside the set, leading to at most 5 points inside &amp;lt;math&amp;gt;\{2,3\}^4&amp;lt;/math&amp;gt;, a contradiction.&lt;br /&gt;
&amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== n=5 ==&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;c_5=150&amp;lt;/math&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Lemma 3&#039;&#039;&#039;.  Any line-free subset of &amp;lt;math&amp;gt;D_{5,j}&amp;lt;/math&amp;gt; can have at most 150 points.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039;.  By rotation we may work with &amp;lt;math&amp;gt;D_5&amp;lt;/math&amp;gt;.  This set has 162 points.  By looking at the triplets {10000, 11110, 12220} and cyclic permutations we must lose 5 points; similarly from the triplets {20000,22220, 21110} and cyclic permutations.  Finally from {11000,11111,11222} and {22000,22222,22111} we lose two more points. &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Equality can be attained by removing  &amp;lt;math&amp;gt;\Gamma_{0,4,1}, \Gamma_{0,5,0}, \Gamma_{4,0,1}, \Gamma_{5,0,0}&amp;lt;/math&amp;gt; from &amp;lt;math&amp;gt;D_5&amp;lt;/math&amp;gt;.  Thus &amp;lt;math&amp;gt;c_5 \geq 150&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Another pattern of 150 points is this: Take the 450 points&lt;br /&gt;
in &amp;lt;math&amp;gt;{}[3]^6&amp;lt;/math&amp;gt; which are (1,2,3), (0,2,4) and permutations,&lt;br /&gt;
then select the 150 whose final coordinate is 1. That gives&lt;br /&gt;
this many points in each cube:&lt;br /&gt;
&lt;br /&gt;
17 18 17&lt;br /&gt;
&lt;br /&gt;
17 17 18&lt;br /&gt;
&lt;br /&gt;
12 17 17&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Lemma 4&#039;&#039;&#039;.  A line-free subset of &amp;lt;math&amp;gt;[3]^5&amp;lt;/math&amp;gt; with over 150 points cannot have two parallel &amp;lt;math&amp;gt;[3]^4&amp;lt;/math&amp;gt; slices, each of which contain at least 51 points.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039;.  Suppose not.  By symmetry, we may assume that the 1**** and 2**** slices have at least 51 points, and that the whole set has at least 151 points, which force the third slice to have at least &amp;lt;math&amp;gt;151-2c_4 = 47&amp;lt;/math&amp;gt; points.&lt;br /&gt;
&lt;br /&gt;
By Lemma 2, the 1**** slice takes the form &amp;lt;math&amp;gt;\{1\} \times D_{4,j}&amp;lt;/math&amp;gt; for some &amp;lt;math&amp;gt;j=0,1,2&amp;lt;/math&amp;gt; with the diagonal {11111,12222,13333} and possibly one more point removed, and similarly the 2**** slice takes the form &amp;lt;math&amp;gt;\{2\} \times D_{4,k}&amp;lt;/math&amp;gt; for some &amp;lt;math&amp;gt;k=0,1,2&amp;lt;/math&amp;gt; with the diagonal {21111,22222,23333} and possibly one more point removed.&lt;br /&gt;
&lt;br /&gt;
Suppose first that j=k.  Then the 1-slice and 2-slice have at least 50 points in common, leaving at most 31 points for the 3-slice, a contradiction.  Next, suppose that jk=01.  Then observe that the *i*** slice cannot look like any of the configurations in Lemma 2 and so must have at most 50 points for i=1,2,3, leading to 150 points in all, a contradiction.  Similarly if jk=12 or 20.  Thus we must have jk equal to 10, 21, or 02.&lt;br /&gt;
&lt;br /&gt;
Let&#039;s suppose first that jk=10.  The first slice then is equal to &amp;lt;math&amp;gt;\{1\} \times D_{4,1}&amp;lt;/math&amp;gt; with the diagonal and possibly one more point removed, while the second slice is equal to &amp;lt;math&amp;gt;\{2\} \times D_{4,0}&amp;lt;/math&amp;gt; with the diagonal and possibly one more point removed.  Superimposing these slices, we thus see that the third slice is contained in &amp;lt;math&amp;gt;\{3\} \times D_{4,2}&amp;lt;/math&amp;gt; except possibly for two additional points, together with the one point 32222 of the diagonal that lies outside of &amp;lt;math&amp;gt;\{3\} \times D_{4,2}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
The lines x12xx, x13xx (plus permutations of the last four digits) must each contain one point outside the set.  The first two slices can only absorb two of these, and so at least 14 of the 16 points formed by permuting the last four digits of 31233, 31333 must lie outside the set.  These points all lie in &amp;lt;math&amp;gt;\{3\} \times D_{4,2}&amp;lt;/math&amp;gt;, and so the 3**** slice can have at most &amp;lt;math&amp;gt;|D_{4,2}|-14+3=43&amp;lt;/math&amp;gt; points, a contradiction.&lt;br /&gt;
&lt;br /&gt;
The case jk=02 is similar to the case jk=10 (indeed one can obtain one from the other by swapping 1 and 2).  Now we turn to the case jk=21.  Arguing as before we see that the third slice is contained in &amp;lt;math&amp;gt;\{3\} \times D_4&amp;lt;/math&amp;gt; except possibly for two points, together with 33333.  &lt;br /&gt;
&lt;br /&gt;
If 33333 was in the set, then each of the lines xx333, xxx33 (and permutations of the last four digits) must have a point missing from the first two slices, which cannot be absorbed by the two points we are permitted to remove; thus 33333 is not in the set.  For similar reasons, 33331 is not in the set, as can be seen by looking at xxx31 and permutations of the last four digits.  Indeed, any string containing four threes does not lie in the set; this means that at least 8 points are missing from &amp;lt;math&amp;gt;\{3\} \times D_4&amp;lt;/math&amp;gt;, leaving only at most 46 points inside that set.  Furthermore, any point in the 3**** slice outside of &amp;lt;math&amp;gt;\{3\} \times D_4&amp;lt;/math&amp;gt; can only be created by removing a point from the first two slices, so the total cardinality is at most &amp;lt;math&amp;gt;46+52+52 = 150&amp;lt;/math&amp;gt;, a contradiction.&amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Corollary&#039;&#039;&#039;. &amp;lt;math&amp;gt;c_5 \leq 152&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039;.  By Lemma 4 and the bound &amp;lt;math&amp;gt;c_4=52&amp;lt;/math&amp;gt;, any line-free set with over 150 points can have one slice of cardinality 52, but then the other two slices can have at most 50 points. &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Lemma 5&#039;&#039;&#039; Any solution with 151 or more points has a slice with at most 49 points.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; Suppose we have 151 points without a line, and each of three slices has at least 50 points.&lt;br /&gt;
&lt;br /&gt;
Using earlier notation, we split subsets of &amp;lt;math&amp;gt;[3]^4&amp;lt;/math&amp;gt; into nine subsets of &amp;lt;math&amp;gt;[3]^2&amp;lt;/math&amp;gt;.  &lt;br /&gt;
So we think of x,y,z,a,b and c as subsets of a square.  Each slice is one of the following.&lt;br /&gt;
*&amp;lt;math&amp;gt;D_4 = y&#039;zx,zx&#039;y,xyz&amp;lt;/math&amp;gt; (with one or two points removed)&lt;br /&gt;
*&amp;lt;math&amp;gt;D_{4,2} = z&#039;xy,xyz,yzx&#039;&amp;lt;/math&amp;gt; (with one or two points removed)&lt;br /&gt;
*&amp;lt;math&amp;gt;D_{4,1} = xyz,yz&#039;x,zxy&#039;&amp;lt;/math&amp;gt; (with one or two points removed)&lt;br /&gt;
*&amp;lt;math&amp;gt;X = xyz, ybw, zwc&amp;lt;/math&amp;gt;&lt;br /&gt;
*&amp;lt;math&amp;gt;Y = axw, xyz, wzc&amp;lt;/math&amp;gt;&lt;br /&gt;
*&amp;lt;math&amp;gt;Z = awx, wby, xyz&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where a, b and c have four points each.&lt;br /&gt;
&lt;br /&gt;
        .. 32 33          31 .. 33         .. .. ..&lt;br /&gt;
    a = .. 22 23      b = .. .. ..     c = 21 22 ..&lt;br /&gt;
        .. .. ..          11 .. 13         11 12 ..&lt;br /&gt;
&lt;br /&gt;
x&#039;, y&#039; and z&#039; are subsets of x, y and z respectively, and have five points each.&lt;br /&gt;
&lt;br /&gt;
Suppose all three slices are subsets of &amp;lt;math&amp;gt;D_{4,j}&amp;lt;/math&amp;gt;.  &lt;br /&gt;
We can remove at most five points from the full set of three D_{4,j}.  &lt;br /&gt;
Consider columns 2,3,4,6,7,8.  At most two of these columns contain xyz, so one point must be removed from the other four.&lt;br /&gt;
This uses up all but one of the removals.&lt;br /&gt;
So the slices must be &amp;lt;math&amp;gt;D_{4,2},D_{4,1},D_{4,0}&amp;lt;/math&amp;gt; or a cyclic permutation of that.&lt;br /&gt;
Then the cube, which contains the first square of slice 1; the fifth square of slice 2; &lt;br /&gt;
and the ninth square of slice 3, contains three copies of the same square.  &lt;br /&gt;
It takes more than one point removed to remove all lines from that cube.&lt;br /&gt;
So we can&#039;t have all three slices subsets of &amp;lt;math&amp;gt;D_{4,j}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Suppose one slice is X,Y or Z, and two others are subsets of &amp;lt;math&amp;gt;D_{4,j}&amp;lt;/math&amp;gt;.  &lt;br /&gt;
We can remove at most three points from the full &amp;lt;math&amp;gt;D_{4,j}&amp;lt;/math&amp;gt;&lt;br /&gt;
By symmetry, suppose one slice is X.  Consider columns 2,3,4 and 7.  They must be cyclic permutations of x,y,z,&lt;br /&gt;
and two of them are not xyz, so must lose a point.  &lt;br /&gt;
Columns 6 and 8 must both lose a point, and we only have 150 points left.&lt;br /&gt;
So if one slice is X,Y or Z, the full set contains a line.&lt;br /&gt;
&lt;br /&gt;
Suppose two slices are from X,Y and Z, and the other is a subset of &amp;lt;math&amp;gt;D_{4,j}&amp;lt;/math&amp;gt;.  &lt;br /&gt;
By symmetry, suppose two slices are X and Y.  Columns 3,6,7 and 8 all contain w, and therefore at most 16 points each.&lt;br /&gt;
Columns 1,5 and 9 contain a,b, or c, and therefore at most 16 points. &lt;br /&gt;
So the total number of points is at most 7*16+2*18 = 148.  This contradicts the assumption of 151 points.&lt;br /&gt;
&amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Corollary&#039;&#039;&#039; &amp;lt;math&amp;gt;c_5 \leq 151 &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; By Lemmas 2 and 4, the maximum number of points is 52+50+49=151. &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Lemma 5.1&#039;&#039;&#039; No solution with 151 points contains as a slice the X defined in Lemma 2&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; Suppose one row is X.  Another row is &amp;lt;math&amp;gt;D_{4,j}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Suppose X is in the first row.  Label the other rows with letters from the alphabet.&lt;br /&gt;
&lt;br /&gt;
xyz ybw zwc&lt;br /&gt;
&lt;br /&gt;
mno pqr stu&lt;br /&gt;
&lt;br /&gt;
def ghi jkl&lt;br /&gt;
&lt;br /&gt;
Reslice the array into a left nine, middle nine and right nine.  One of these squares&lt;br /&gt;
contains 52 points, and it can only be the left nine.  One of its three columns contains&lt;br /&gt;
18 points, and it can only be its left-hand column, xmd.  So m=y and d=z.  But none of the {math&amp;gt;D_{4,j}&amp;lt;/math&amp;gt; begins with y or z, which is a contradiction.  So X is not in the first row.&lt;br /&gt;
&lt;br /&gt;
So X is in the second or third row.  By symmetry, suppose it is in the second row&lt;br /&gt;
&lt;br /&gt;
def ghi jkl&lt;br /&gt;
&lt;br /&gt;
xyz ybw zwc&lt;br /&gt;
&lt;br /&gt;
mno pqr stu&lt;br /&gt;
&lt;br /&gt;
Again, the left-hand nine must contain 52 points, so it is &amp;lt;math&amp;gt;D_{4,2}&amp;lt;/math&amp;gt;.&lt;br /&gt;
So either the first row is &amp;lt;math&amp;gt;D_{4,2}&amp;lt;/math&amp;gt; or the third row is &amp;lt;math&amp;gt;D_{4,0}&amp;lt;/math&amp;gt;.&lt;br /&gt;
If the first row is &amp;lt;math&amp;gt;D_{4,2}&amp;lt;/math&amp;gt; then the only way to have 50 points in the middle or right-hand nine is if the middle nine is X&lt;br /&gt;
&lt;br /&gt;
z&#039;xy xyz yzx&#039;&lt;br /&gt;
&lt;br /&gt;
xyz  ybw zwc&lt;br /&gt;
&lt;br /&gt;
yzx&#039; zwc stu&lt;br /&gt;
&lt;br /&gt;
In the seventh column, s contains 5 points and in the eighth column, t contains 4 points.&lt;br /&gt;
The final row can now contain at most 48 points, and the whole array contains only 52+50+48 = 150 points.&lt;br /&gt;
&lt;br /&gt;
If the third row is &amp;lt;math&amp;gt;D_{4,0}&amp;lt;/math&amp;gt;, then neither the middle nine nor the right-hand nine contains 50 points, by the classification of Lemma 4 and the formulas at the start of Lemma 5.&lt;br /&gt;
Again, only 52+49+49 = 150 points are possible.&lt;br /&gt;
&lt;br /&gt;
A similar argument is possible if X is in the third row; or if X is replaced by Y or Z.&lt;br /&gt;
&lt;br /&gt;
So when a 151-point set is sliced into three, one slice is &amp;lt;math&amp;gt;D_{4,j}&amp;lt;/math&amp;gt; and another slice is 50 points contained in &amp;lt;math&amp;gt;D_{4,k}&amp;lt;/math&amp;gt;. &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Lemma 5.2&#039;&#039;&#039; There is no 151-point solution&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; Assume by symmetry that the first row contains 52 points and the second row contains 50.&lt;br /&gt;
&lt;br /&gt;
If &amp;lt;math&amp;gt;D_{4,1}&amp;lt;/math&amp;gt; is in the first row, then the second row must be contained in &amp;lt;math&amp;gt;D_{4,0}&amp;lt;/math&amp;gt;.  &lt;br /&gt;
&lt;br /&gt;
xyz  yz&#039;x zxy&#039;&lt;br /&gt;
&lt;br /&gt;
y&#039;zx zx&#039;y xyz&lt;br /&gt;
&lt;br /&gt;
def  ghi  jkl&lt;br /&gt;
&lt;br /&gt;
But then none of the left nine, middle nine or right nine can contain 52 points, which contradicts the corollary to Lemma 5.&lt;br /&gt;
&lt;br /&gt;
Suppose the first row contains D_{4,0}.  Then the second row is contained in &amp;lt;math&amp;gt;D_{4,2}&amp;lt;/math&amp;gt;, otherwise the cubes formed from the nine columns of the diagram would need to remove too many points.&lt;br /&gt;
&lt;br /&gt;
y&#039;zx zx&#039;y xyz&lt;br /&gt;
&lt;br /&gt;
z&#039;xy xyz  yzx&#039;&lt;br /&gt;
&lt;br /&gt;
def  ghi  jkl&lt;br /&gt;
&lt;br /&gt;
But then neither the left nine, middle nine or right nine contains 52 points.&lt;br /&gt;
&lt;br /&gt;
So the first row contains &amp;lt;math&amp;gt;D_{4,2}&amp;lt;/math&amp;gt;, and the second row is contained in &amp;lt;math&amp;gt;D_{4,1}&amp;lt;/math&amp;gt;.  Two points may be removed from the second row of this diagram.&lt;br /&gt;
&lt;br /&gt;
z&#039;xy xyz  yzx&#039;&lt;br /&gt;
&lt;br /&gt;
xyz  yz&#039;x zxy&#039;&lt;br /&gt;
&lt;br /&gt;
def  ghi  jkl&lt;br /&gt;
&lt;br /&gt;
Slice it into the left nine, middle nine and right nine.  Two of them are contained in &amp;lt;math&amp;gt;D_{4,j}&amp;lt;/math&amp;gt;&lt;br /&gt;
so at least two of def, ghi, and jkl are contained in the corresponding slice of &amp;lt;math&amp;gt;D_{4,0}&amp;lt;/math&amp;gt;.&lt;br /&gt;
Slice along a different axis, and at least two of dgj,ehk,fil are contained in the corresponding slice of &lt;br /&gt;
&amp;lt;math&amp;gt;D_{4,0}&amp;lt;/math&amp;gt;.  &lt;br /&gt;
So eight of the nine squares in the bottom row are contained in the corresponding square of &amp;lt;math&amp;gt;D_{4,0}&amp;lt;/math&amp;gt;.&lt;br /&gt;
Indeed, slice along other axes, and all points except one are contained within &amp;lt;math&amp;gt;D_{4,0}&amp;lt;/math&amp;gt;.  &lt;br /&gt;
This point is the intersection of all the 49-point slices.  &lt;br /&gt;
&lt;br /&gt;
So, if there is a 151-point solution, then after removal of the specified point, &lt;br /&gt;
there is a 150-point solution, within &amp;lt;math&amp;gt;D_{5,j}&amp;lt;/math&amp;gt;, whose slices in each direction are 52+50+48.&lt;br /&gt;
&lt;br /&gt;
z&#039;xy xyz  yzx&#039;&lt;br /&gt;
&lt;br /&gt;
xyz  yz&#039;x zxy&#039;&lt;br /&gt;
&lt;br /&gt;
y&#039;zx zx&#039;y xyz&lt;br /&gt;
&lt;br /&gt;
One point must be lost from columns 3, 6, 7 and 8, and four more from the major diagonal z&#039;z&#039;z.  That leaves 148 points instead of 150.&lt;br /&gt;
&lt;br /&gt;
So the 150-point solution does not exist with 52+50+48 slices; so the 151 point solution does not exist.&amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
An integer programming method has established the upper bound &amp;lt;math&amp;gt;c_5\leq 150&amp;lt;/math&amp;gt;, with 12 extremal solutions.&lt;br /&gt;
&lt;br /&gt;
[http://abel.math.umu.se/~klasm/extremal-c5 This file] contains the extermisers. One point per line and different extermisers separated by a line with “—”&lt;br /&gt;
&lt;br /&gt;
[http://abel.math.umu.se/~klasm/linprog-d=5-t=3.lpt This is the linear program], readable by Gnu’s glpsol linear programing solver, which also quickly proves that 150 is the optimum.&lt;br /&gt;
&lt;br /&gt;
Each variable corresponds to a point in the cube, numbered according to their lexicografic ordering. If a variable is 1 then the point is in the set, if it is 0 then it is not in the set.&lt;br /&gt;
There is one linear inequality for each combinatorial line, stating that at least one point must be missing from the line.&lt;br /&gt;
&lt;br /&gt;
== n=6 ==&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;c_6=450&amp;lt;/math&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
The upper bound follows since &amp;lt;math&amp;gt;c_6 \leq 3 c_5&amp;lt;/math&amp;gt;.   The lower bound can be formed by gluing together all the [[slice]]s &amp;lt;math&amp;gt;\Gamma_{a,b,c}&amp;lt;/math&amp;gt; where (a,b,c) is a permutation of (0,2,4) or (1,2,3).&lt;br /&gt;
&lt;br /&gt;
Computer verification, using the &amp;lt;math&amp;gt;c_5=150&amp;lt;/math&amp;gt; extremals, has shown that there is exactly one extremiser for &amp;lt;math&amp;gt;c_6=450&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== n=7 ==&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;1302 \leq c_7 \leq 1348&amp;lt;/math&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
To see the upper bound &amp;lt;math&amp;gt;c_7 \leq 3c_6-2&amp;lt;/math&amp;gt;, observe that if two parallel six-dimensional slices had &amp;lt;math&amp;gt;c_6&amp;lt;/math&amp;gt; points, then by uniqueness they are identical, and the third slice can have at most &amp;lt;math&amp;gt;3^6-c_6=279&amp;lt;/math&amp;gt; points, far too few to get anywhere close to &amp;lt;math&amp;gt;1348&amp;lt;/math&amp;gt;.  Thus there can be at most one slice with &amp;lt;math&amp;gt;c_6&amp;lt;/math&amp;gt; points, and the other two have at most &amp;lt;math&amp;gt;c_6-1&amp;lt;/math&amp;gt;, giving the claim.&lt;br /&gt;
&lt;br /&gt;
The lower bound can be formed by removing 016,106,052,502,151,511,160,610 from &amp;lt;math&amp;gt;D_7&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Lemma 6&#039;&#039;&#039; Any line-free subset of &amp;lt;math&amp;gt;D_7&amp;lt;/math&amp;gt; has at most 1302 points.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; Start with the 1458 points of &amp;lt;math&amp;gt;D_7&amp;lt;/math&amp;gt;.  You must lose:&lt;br /&gt;
&lt;br /&gt;
* 42 points from (1,2,4),(1,5,1),(4,2,1)&lt;br /&gt;
* 42 points from (2,1,4),(2,4,1),(5,1,1)&lt;br /&gt;
* 21 points from (0,2,5),(0,5,2),(3,2,2)&lt;br /&gt;
* 21 points from (2,0,5),(2,3,2),(5,0,2)&lt;br /&gt;
* 15 points from (0,1,6),(0,4,3),(3,1,3),(0,7,0),(3,4,0),(6,1,0)&lt;br /&gt;
* 15 points from (1,0,6),(1,3,3),(4,0,3),(7,0,0),(4,3,0),(1,6,0)&lt;br /&gt;
&lt;br /&gt;
where (a,b,c) is shorthand for the [[slice]] &amp;lt;math&amp;gt;\Gamma_{a,b,c}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Larger n ==&lt;br /&gt;
&lt;br /&gt;
The following construction gives lower bounds for the number of triangle-free points, &lt;br /&gt;
There are of the order &amp;lt;math&amp;gt;2.7 \sqrt{log(N)/N}3^N&amp;lt;/math&amp;gt; points for large N (N ~ 5000)&lt;br /&gt;
&lt;br /&gt;
It applies when N is a multiple of 3. &lt;br /&gt;
* For N=3M-1, restrict the first digit of a 3M sequence to be 1.  So this construction has exactly one-third as many points for N=3M-1 as it has for N=3M. &lt;br /&gt;
* For N=3M-2, restrict the first two digits of a 3M sequence to be 12.  This leaves roughly one ninth of the points for N=3M-2 as for N=3M.&lt;br /&gt;
&lt;br /&gt;
The current lower bounds for &amp;lt;math&amp;gt;c_{3m}&amp;lt;/math&amp;gt; are built like this, with abc being shorthand for &amp;lt;math&amp;gt;\Gamma_{a,b,c}&amp;lt;/math&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;math&amp;gt;c_3&amp;lt;/math&amp;gt; from (012) and permutations&lt;br /&gt;
* &amp;lt;math&amp;gt;c_6&amp;lt;/math&amp;gt; from (123,024) and perms&lt;br /&gt;
* &amp;lt;math&amp;gt;c_9&amp;lt;/math&amp;gt; from (234,135,045) and perms&lt;br /&gt;
* &amp;lt;math&amp;gt;c_{12}&amp;lt;/math&amp;gt; from (345,246,156,02A,057) and perms (A=10)&lt;br /&gt;
* &amp;lt;math&amp;gt;c_{15}&amp;lt;/math&amp;gt; from (456,357,267,13B,168,04B,078) and perms (B=11)&lt;br /&gt;
&lt;br /&gt;
To get the triples in each row, add 1 to the triples in the previous row; then include new triples that have a zero.&lt;br /&gt;
&lt;br /&gt;
A general formula for these points is given below.  I think that they are triangle-free.  (For N&amp;lt;21, ignore any triple with a negative entry.)&lt;br /&gt;
&lt;br /&gt;
* There are thirteen groups of points in the centre, formed from adding one of the following points, or its permutation, to (M,M,M), when N=3M:&lt;br /&gt;
** (-7,-3,+10), (-7, 0,+7),(-7,+3,+4),(-6,-4,+10),(-6,-1,+7),(-6,+2,+4),(-5,-1,+6),(-5,+2,+3),(-4,-2,+6),(-4,+1,+3),(-3,+1,+2),(-2,0,+2),(-1,0,+1) &lt;br /&gt;
* There are also eight string of points, stretching to the edges of the (abc) triangle:&lt;br /&gt;
** For N=6K = 3M&lt;br /&gt;
*** M+(-8-2x,-6-2x,14+4x),M+(-8-2x,-3-2x,11+4x),M+(-8-2x,x,8+x),M+(-8-2x,3+x,5+x) and permutations (x&amp;gt;=0, M-8-2x&amp;gt;=0)&lt;br /&gt;
*** M+(-9-2x,-5-2x,14+4x),M+(-9-2x,-2-2x,11+4x),M+(-9-2x,1+x,8+x),M+(-9-2x,4+x,5+x) and permutations (x&amp;gt;=0, M-9-2x&amp;gt;=0)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
An alternate construction:&lt;br /&gt;
&lt;br /&gt;
First define a sequence, of all positive numbers which, in base 3, do not contain a 1. Add 1 to all multiples of 3 in this sequence. This sequence does not contain a length-3 arithmetic progression.&lt;br /&gt;
&lt;br /&gt;
It starts 1,2,7,8,19,20,25,26,55, …&lt;br /&gt;
&lt;br /&gt;
Second, list all the (abc) triples for which the larger two differ by a number&lt;br /&gt;
from the sequence, excluding the case when the smaller two differ by 1, but then including the case when (a,b,c) is a permutation of N/3+(-1,0,1)&lt;br /&gt;
&lt;br /&gt;
== Asymptotics ==&lt;br /&gt;
&lt;br /&gt;
DHJ(3) is equivalent to the upper bound&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;c_n \leq o(3^n)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In the opposite direction, observe that if we take a set &amp;lt;math&amp;gt;S \subset [3n]&amp;lt;/math&amp;gt; that contains no 3-term arithmetic progressions, then the set &amp;lt;math&amp;gt;\bigcup_{(a,b,c) \in \Delta_n: a+2b \in S} \Gamma_{a,b,c}&amp;lt;/math&amp;gt; is line-free.  From this and the Behrend construction it appears that we have the lower bound&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;c_n \geq 3^{n-O(\sqrt{\log n})}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
More precisely, we have&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;c_n &amp;gt; C 3^{n - 4\sqrt{\log 2}\sqrt{\log n}+\frac 12 \log \log n}&amp;lt;/math&amp;gt;&lt;br /&gt;
for some absolute constant C, and where all logarithms are base-3.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; For convenience, let n be a multiple of 3. Elkin’s bound gives &amp;lt;math&amp;gt;r_3(\sqrt{n}) &amp;gt; C \sqrt{n} (\log n)^{1/4} \exp_2(-2 \sqrt{\log_2 n})&amp;lt;/math&amp;gt;, and let &amp;lt;math&amp;gt;R&amp;lt;/math&amp;gt; be a subset of &amp;lt;math&amp;gt;(-3\sqrt{n}/2,3\sqrt{n}/2)&amp;lt;/math&amp;gt; without 3-term APs and with size &amp;lt;math&amp;gt;r_3(\sqrt{n})&amp;lt;/math&amp;gt;, and with all elements being integer multiples of 3 (again as a matter of convenience). For each &amp;lt;math&amp;gt;r,s\in R&amp;lt;/math&amp;gt;, let &amp;lt;math&amp;gt;a = (n-r-s)/3&amp;lt;/math&amp;gt;. The set &amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt; is the union of all &amp;lt;math&amp;gt;\Gamma_{a,a+r,a+s}&amp;lt;/math&amp;gt;. Since all of &amp;lt;math&amp;gt;a, a+r,a+s&amp;lt;/math&amp;gt; are between &amp;lt;math&amp;gt;n/3-2\sqrt{n}&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;n/3+2\sqrt{n}&amp;lt;/math&amp;gt;, the size of &amp;lt;math&amp;gt;\Gamma_{a,a+r,a+s}&amp;lt;/math&amp;gt; is at least &amp;lt;math&amp;gt;C 3^n / n&amp;lt;/math&amp;gt;. Since there are &amp;lt;math&amp;gt;r_3(\sqrt{n})^2&amp;lt;/math&amp;gt; choices for r and s, we have a set with size at least&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;C (\sqrt{n} (\log n)^{1/4} \exp_2(-2 \sqrt{\log_2 n}))^2 3^n / n&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
This simplifies to &amp;lt;math&amp;gt;C \sqrt{\log n} \exp_3(n-\alpha \sqrt{\log_3(n)})&amp;lt;/math&amp;gt;, where &amp;lt;math&amp;gt;\alpha=4 \sqrt{\log_3(2)}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Now suppose that &amp;lt;math&amp;gt;x_i\in \Gamma_{a_i,a_i+r_i,a_i+s_i}&amp;lt;/math&amp;gt; is a combinatorial line in the set A. Then &amp;lt;math&amp;gt;(a_i+s_i)-(a_i)=s_i&amp;lt;/math&amp;gt; is a 3-term AP contained in R, so the &amp;lt;math&amp;gt;s_i&amp;lt;/math&amp;gt; are all the same. Similarly, all of the &amp;lt;math&amp;gt;r_i&amp;lt;/math&amp;gt; are the same, and therefore all of the &amp;lt;math&amp;gt;a_i&amp;lt;/math&amp;gt; are the same, too. But this implies that the &amp;lt;math&amp;gt;x_i&amp;lt;/math&amp;gt; sequence is constant, which means the line is degenerate. &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[http://terrytao.wordpress.com/2009/02/05/upper-and-lower-bounds-for-the-density-hales-jewett-problem/#comment-35652 Numerics suggest] that the first large n construction given above above give a lower bound of roughly &amp;lt;math&amp;gt;2.7 \sqrt{\log(n)/n} \times 3^n&amp;lt;/math&amp;gt;, which would asymptotically be inferior to the Behrend bound.&lt;br /&gt;
&lt;br /&gt;
The second large n construction had numerical asymptotics for &amp;lt;math&amp;gt;\log(c_n/3^n)&amp;lt;/math&amp;gt; close to &amp;lt;math&amp;gt;1.2-\sqrt{\log(n)}&amp;lt;/math&amp;gt; between n=1000 and n=10000, consistent with the Behrend bound.&lt;br /&gt;
&lt;br /&gt;
== Other k values ==&lt;br /&gt;
&lt;br /&gt;
A [http://abel.math.umu.se/~klasm/Data/HJ/ computer search] has found the following &amp;lt;math&amp;gt;c_n&amp;lt;/math&amp;gt; values for different values of dimension n and edgelength k.  Several of these values reach the upper bound of &amp;lt;math&amp;gt;(k-1)k^{n-1}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
{|&lt;br /&gt;
|n\k || 2 || 3 || 4 || 5 || 6 || 7&lt;br /&gt;
|-&lt;br /&gt;
| 2 || 2 || 6 || 12 || 20 || 30 || 42&lt;br /&gt;
|-&lt;br /&gt;
| 3 || 3 || 18 || 48 || 100 || 180 || 294&lt;br /&gt;
|-&lt;br /&gt;
| 4 || 6 || 52 || 183 || 500 || 1029-1079 || 2058&lt;br /&gt;
|-&lt;br /&gt;
| 5 || 10 || 150 || 683-732 || 2500&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
If k is prime and &amp;lt;math&amp;gt;k \ge n&amp;lt;/math&amp;gt;, then one can remove all combinatorial lines by deleting all points whose coordinates sum to a multiple of k.  So the density of deleted points in the optimal configuration is 1/k when k is prime.&lt;br /&gt;
&lt;br /&gt;
Let p be the smallest prime greater than or equal to max(k,n).  One can remove all combinatorial lines by deleting all points whose coordinates sum to &amp;lt;math&amp;gt;0\le x\le p-k&amp;lt;/math&amp;gt; (mod p),  So the density of deleted points is at most (p-k+1)/p.  This approaches zero as &amp;lt;math&amp;gt;k\rightarrow\infty&amp;lt;/math&amp;gt;.  For example, the following paper shows there is a prime between x-x^0.525 and x.&lt;br /&gt;
&lt;br /&gt;
Baker, R. C.(1-BYU); Harman, G.(4-LNDHB); Pintz, J.(H-AOS)&lt;br /&gt;
The difference between consecutive primes. II.&lt;br /&gt;
Proc. London Math. Soc. (3) 83 (2001), no. 3, 532–562.&lt;br /&gt;
&lt;br /&gt;
== Numerical methods ==&lt;br /&gt;
&lt;br /&gt;
A greedy algorithm [http://thetangentspace.com/wiki/Hales-Jewett_Theorem was implemented here].  The results were sharp for &amp;lt;math&amp;gt;n \leq 3&amp;lt;/math&amp;gt; but were slightly inferior to the constructions above for larger n.&lt;/div&gt;</summary>
		<author><name>121.220.134.232</name></author>
	</entry>
	<entry>
		<id>https://michaelnielsen.org/polymath/index.php?title=Upper_and_lower_bounds&amp;diff=1057</id>
		<title>Upper and lower bounds</title>
		<link rel="alternate" type="text/html" href="https://michaelnielsen.org/polymath/index.php?title=Upper_and_lower_bounds&amp;diff=1057"/>
		<updated>2009-03-25T17:39:24Z</updated>

		<summary type="html">&lt;p&gt;121.220.134.232: /* Other k values */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;center&amp;gt;&#039;&#039;&#039;Upper and lower bounds for &amp;lt;math&amp;gt;c_n&amp;lt;/math&amp;gt; for small values of n.&#039;&#039;&#039;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;c_n&amp;lt;/math&amp;gt; is the size of the largest subset of &amp;lt;math&amp;gt;[3]^n&amp;lt;/math&amp;gt; that does not contain a combinatorial line (OEIS [http://www.research.att.com/~njas/sequences/A156762 A156762].  A spreadsheet for all the latest bounds on &amp;lt;math&amp;gt;c_n&amp;lt;/math&amp;gt; [http://spreadsheets.google.com/ccc?key=p5T0SktZY9DsU-uZ1tK7VEg can be found here].  In this page we record the proofs justifying these bounds.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{|&lt;br /&gt;
| n || 0 || 1 || 2 || 3 || 4 || 5 || 6 || 7&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;math&amp;gt;c_n&amp;lt;/math&amp;gt; || 1 || 2 || 6 || 18 || 52 || 150 || 450 || [1302,1348]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Basic constructions ==&lt;br /&gt;
&lt;br /&gt;
For all &amp;lt;math&amp;gt;n \geq 1&amp;lt;/math&amp;gt;, a basic example of a mostly line-free set is&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;D_n := \{ (x_1,\ldots,x_n) \in [3]^n: \sum_{i=1}^n x_i \neq 0 \ \operatorname{mod}\ 3 \}&amp;lt;/math&amp;gt;.  (1)&lt;br /&gt;
&lt;br /&gt;
This has cardinality &amp;lt;math&amp;gt;|D_n| = 2 \times 3^{n-1}&amp;lt;/math&amp;gt;.  The only lines in &amp;lt;math&amp;gt;D_n&amp;lt;/math&amp;gt; are those with&lt;br /&gt;
&lt;br /&gt;
# A number of wildcards equal to a multiple of three;&lt;br /&gt;
# The number of 1s unequal to the number of 2s modulo 3.&lt;br /&gt;
&lt;br /&gt;
One way to construct line-free sets is to start with &amp;lt;math&amp;gt;D_n&amp;lt;/math&amp;gt; and remove some additional points.  We also have the variants &amp;lt;math&amp;gt;D_{n,0}=D_n, D_{n,1}, D_{n,2}&amp;lt;/math&amp;gt; defined as&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;D_{n,j} := \{ (x_1,\ldots,x_n) \in [3]^n: \sum_{i=1}^n x_i \neq j \ \operatorname{mod}\ 3 \}&amp;lt;/math&amp;gt;.  (1&#039;)&lt;br /&gt;
&lt;br /&gt;
When n is not a multiple of 3, then &amp;lt;math&amp;gt;D_{n,0}, D_{n,1}, D_{n,2}&amp;lt;/math&amp;gt; are all cyclic permutations of each other; but when n is a multiple of 3, then &amp;lt;math&amp;gt;D_{n,0}&amp;lt;/math&amp;gt; plays a special role (though &amp;lt;math&amp;gt;D_{n,1}, D_{n,2}&amp;lt;/math&amp;gt; are still interchangeable).&lt;br /&gt;
&lt;br /&gt;
Another useful construction proceeds by using the slices &amp;lt;math&amp;gt;\Gamma_{a,b,c} \subset [3]^n&amp;lt;/math&amp;gt; for &amp;lt;math&amp;gt;(a,b,c)&amp;lt;/math&amp;gt; in the triangular grid&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\Delta_n := \{ (a,b,c) \in {\Bbb Z}_+^3: a+b+c = n \},&amp;lt;/math&amp;gt;.  (2)&lt;br /&gt;
&lt;br /&gt;
where &amp;lt;math&amp;gt;\Gamma_{a,b,c}&amp;lt;/math&amp;gt; is defined as the strings in &amp;lt;math&amp;gt;[3]^n&amp;lt;/math&amp;gt; with &amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt; 1s, &amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt; 2s, and &amp;lt;math&amp;gt;c&amp;lt;/math&amp;gt; 3s.  Note that&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;|\Gamma_{a,b,c}| = \frac{n!}{a! b! c!}.&amp;lt;/math&amp;gt; (3)&lt;br /&gt;
&lt;br /&gt;
Given any set &amp;lt;math&amp;gt;B \subset \Delta_n&amp;lt;/math&amp;gt; that avoids equilateral triangles &amp;lt;math&amp;gt; (a+r,b,c), (a,b+r,c), (a,b,c+r)&amp;lt;/math&amp;gt;, the set&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\Gamma_B := \bigcup_{(a,b,c) \in B} \Gamma_{a,b,c}&amp;lt;/math&amp;gt; (4)&lt;br /&gt;
&lt;br /&gt;
is line-free and has cardinality&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;|\Gamma_B| = \sum_{(a,b,c) \in B} \frac{n!}{a! b! c!},&amp;lt;/math&amp;gt; (5)&lt;br /&gt;
&lt;br /&gt;
and thus provides a lower bound for &amp;lt;math&amp;gt;c_n&amp;lt;/math&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;c_n \geq \sum_{(a,b,c) \in B} \frac{n!}{a! b! c!}.&amp;lt;/math&amp;gt; (6)&lt;br /&gt;
&lt;br /&gt;
All lower bounds on &amp;lt;math&amp;gt;c_n&amp;lt;/math&amp;gt; have proceeded so far by choosing a good set of B and applying (6).  Note that &amp;lt;math&amp;gt;D_n&amp;lt;/math&amp;gt; is the same as &amp;lt;math&amp;gt;\Gamma_{B_n}&amp;lt;/math&amp;gt;, where &amp;lt;math&amp;gt;B_n&amp;lt;/math&amp;gt; consists of those triples &amp;lt;math&amp;gt;(a,b,c) \in \Delta_n&amp;lt;/math&amp;gt; in which &amp;lt;math&amp;gt;a \neq b\ \operatorname{mod}\ 3&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Note that if one takes a line-free set and permutes the alphabet &amp;lt;math&amp;gt;\{1,2,3\}&amp;lt;/math&amp;gt; in any fashion (e.g. replacing all 1s by 2s and vice versa), one also gets a line-free set.  This potentially gives six examples from any given starting example of a line-free set, though in practice there is enough symmetry that the total number of examples produced this way is less than six.  (These six examples also correspond to the six symmetries of the triangular grid &amp;lt;math&amp;gt;\Delta_n&amp;lt;/math&amp;gt; formed by rotation and reflection.)&lt;br /&gt;
&lt;br /&gt;
Another symmetry comes from permuting the &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt; indices in the strings of &amp;lt;math&amp;gt;[3]^n&amp;lt;/math&amp;gt; (e.g. replacing every string by its reversal).  But the sets &amp;lt;math&amp;gt;\Gamma_B&amp;lt;/math&amp;gt; are automatically invariant under such permutations and thus do not produce new line-free sets via this symmetry.&lt;br /&gt;
&lt;br /&gt;
== The basic upper bound ==&lt;br /&gt;
&lt;br /&gt;
Because &amp;lt;math&amp;gt;[3]^{n+1}&amp;lt;/math&amp;gt; can be expressed as the union of three copies of &amp;lt;math&amp;gt;[3]^n&amp;lt;/math&amp;gt;, we have the basic upper bound&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;c_{n+1} \leq 3 c_n.&amp;lt;/math&amp;gt; (7)&lt;br /&gt;
&lt;br /&gt;
Note that equality only occurs if one can find an &amp;lt;math&amp;gt;n+1&amp;lt;/math&amp;gt;-dimensional line-free set such that every n-dimensional slice has the maximum possible cardinality of &amp;lt;math&amp;gt;c_n&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== n=0 ==&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;c_0=1&amp;lt;/math&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
This is clear.&lt;br /&gt;
&lt;br /&gt;
== n=1 ==&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;c_1=2&amp;lt;/math&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
The three sets &amp;lt;math&amp;gt;D_1 = \{1,2\}&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;D_{1,1} = \{2,3\}&amp;lt;/math&amp;gt;, and &amp;lt;math&amp;gt;D_{1,2} = \{1,3\}&amp;lt;/math&amp;gt; are the only two-element sets which are line-free in &amp;lt;math&amp;gt;[3]^1&amp;lt;/math&amp;gt;, and there are no three-element sets.&lt;br /&gt;
&lt;br /&gt;
== n=2 ==&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;c_2=6&amp;lt;/math&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
There are four six-element sets in &amp;lt;math&amp;gt;[3]^2&amp;lt;/math&amp;gt; which are line-free, which we denote &amp;lt;math&amp;gt;x = D_{2,2}&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;y=D_{2,1}&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;z=D_2&amp;lt;/math&amp;gt;, and &amp;lt;math&amp;gt;w&amp;lt;/math&amp;gt; and are displayed graphically as follows.&lt;br /&gt;
&lt;br /&gt;
     13 .. 33       .. 23 33       13 23 ..       13 23 ..&lt;br /&gt;
 x = 12 22 ..   y = 12 .. 32   z = .. 22 32   w = 12 .. 32&lt;br /&gt;
     .. 21 31       11 21 ..       11 .. 31       .. 21 31&lt;br /&gt;
&lt;br /&gt;
Combining this with the basic upper bound (7) we see that &amp;lt;math&amp;gt;c_2=6&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== n=3 ==&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;c_3=18&amp;lt;/math&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
We describe a subset &amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt; of &amp;lt;math&amp;gt;[3]^3&amp;lt;/math&amp;gt; as a string &amp;lt;math&amp;gt;abc&amp;lt;/math&amp;gt;, where &amp;lt;math&amp;gt;a, b, c \subset [3]^2&amp;lt;/math&amp;gt; correspond to strings of the form &amp;lt;math&amp;gt;1**&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;2**&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;3**&amp;lt;/math&amp;gt; in &amp;lt;math&amp;gt;[3]^3&amp;lt;/math&amp;gt; respectively.  Thus for instance &amp;lt;math&amp;gt;D_3 = xyz&amp;lt;/math&amp;gt;, and so from (7) we have &amp;lt;math&amp;gt;c_3=18&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Lemma 1.&#039;&#039;&#039;&lt;br /&gt;
* The only 18-element line-free subset of &amp;lt;math&amp;gt;[3]^3&amp;lt;/math&amp;gt; is &amp;lt;math&amp;gt;D_3 = xyz&amp;lt;/math&amp;gt;.&lt;br /&gt;
* The only 17-element line-free subsets of &amp;lt;math&amp;gt;[3]^3&amp;lt;/math&amp;gt; are formed by removing a point from &amp;lt;math&amp;gt;D_3=xyz&amp;lt;/math&amp;gt;, or by removing either 111, 222, or 333 from &amp;lt;math&amp;gt;D_{3,2} = yzx&amp;lt;/math&amp;gt; or &amp;lt;math&amp;gt;D_{3,3}=zxy&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039;.  We prove the second claim. As &amp;lt;math&amp;gt;17=6+6+5&amp;lt;/math&amp;gt;, and &amp;lt;math&amp;gt;c_2=6&amp;lt;/math&amp;gt;, at least two of the slices of a 17-element line-free set must be from x, y, z, w, with the third slice having 5 points.  If two of the slices are identical, the last slice can have only 3 points, a contradiction.  If one of the slices is a w, then the 5-point slice will contain a diagonal, contradiction.  By symmetry we may now assume that two of the slices are x and y, which force the last slice to be z with one point removed.  Now one sees that the slices must be in the order xyz, yzx, or zxy, because any other combination has too many lines that need to be removed.  The sets yzx, zxy contain the diagonal {111,222,333} and so one additional point needs to be removed. &lt;br /&gt;
&lt;br /&gt;
The first claim follows by a similar argument to the second.&lt;br /&gt;
&amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== n=4 ==&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;c_4=52&amp;lt;/math&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
Indeed, divide a line-free set in &amp;lt;math&amp;gt;[3]^4&amp;lt;/math&amp;gt; into three blocks &amp;lt;math&amp;gt;1***, 2***, 3***&amp;lt;/math&amp;gt; of &amp;lt;math&amp;gt;[3]^3&amp;lt;/math&amp;gt;.  If two of them are of size 18, then they must both be xyz, and the third block can have at most 6 elements, leading to an inferior bound of 42.  So the best one can do is &amp;lt;math&amp;gt;18+17+17=52&amp;lt;/math&amp;gt; which can be attained by deleting the diagonal {1111,2222,3333} from &amp;lt;math&amp;gt;D_{4,1} = xyz\ yzx\ xzy&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;D_4 = yzx\ zxy\ xyz&amp;lt;/math&amp;gt;, or &amp;lt;math&amp;gt;D_{4,2} = zxy\ xyz\ yzx&amp;lt;/math&amp;gt;.  In fact,&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Lemma 2.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* The only 52-element line-free sets in &amp;lt;math&amp;gt;[3]^4&amp;lt;/math&amp;gt; are formed by removing the diagonal {1111,2222,3333} from &amp;lt;math&amp;gt;D_{4,j}&amp;lt;/math&amp;gt; for some j=0,1,2.&lt;br /&gt;
* The only 51-element line-free sets in &amp;lt;math&amp;gt;[3]^4&amp;lt;/math&amp;gt; are formed by removing the diagonal and one further point from &amp;lt;math&amp;gt;D_{4,j}&amp;lt;/math&amp;gt; for some j=0,1,2.&lt;br /&gt;
* The only 50-element line-free sets in &amp;lt;math&amp;gt;[3]^4&amp;lt;/math&amp;gt; are formed by removing the diagonal and two further points from &amp;lt;math&amp;gt;D_{4,j}&amp;lt;/math&amp;gt; for some j=0,1,2  OR is equal to one of the three permutations of the set &amp;lt;math&amp;gt;X := \Gamma_{3,1,0} \cup \Gamma_{3,0,1} \cup \Gamma_{2,2,0} \cup \Gamma_{2,0,2} \cup \Gamma_{1,1,2} \cup \Gamma_{1,2,1} \cup \Gamma_{0,2,2}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; It suffices to prove the third claim.  In fact it suffices to show that every 50-point line-free set is either contained in the 54-point set &amp;lt;math&amp;gt;D_{4,j}&amp;lt;/math&amp;gt; for some j=0,1,2, or is some permutation of the set X. Indeed, if a 50-point line-free set is contained in, say, &amp;lt;math&amp;gt;D_4&amp;lt;/math&amp;gt;, then it cannot contain 2222, since otherwise it must omit one point from each of the four pairs formed from {2333, 2111} by permuting the indices, and must also omit one of {1111, 1222, 1333}, leading to at most 49 points in all; similarly, it cannot contain 1111, and so omits the entire diagonal {1111,2222,3333}, with two more points to be omitted.  Similarly when &amp;lt;math&amp;gt;D_4&amp;lt;/math&amp;gt; is replaced by one of the other &amp;lt;math&amp;gt;D_{4,j}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Next, observe that every three-dimensional slice of a line-free set can have at most &amp;lt;math&amp;gt;c_3=18&amp;lt;/math&amp;gt; points; thus when one partitions a 50-point line-free set into three such slices, it must divide either as 18+16+16, 17+17+16, or some permutation of these.&lt;br /&gt;
&lt;br /&gt;
Suppose that we can slice the set into two slices of 17 points and one slice of 16 points.  By the various symmetries, we may assume that the 1*** slice and 2*** slices have 17 points, and the 3*** slice has 16 points.  By Lemma 1, the 1-slice is &amp;lt;math&amp;gt;\{1\} \times D_{3,j}&amp;lt;/math&amp;gt; with one point removed, and the 2-slice is &amp;lt;math&amp;gt;\{2\} \times D_{3,k}&amp;lt;/math&amp;gt; with one point removed, for some &amp;lt;math&amp;gt;j,k \in \{0,1,2\}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
If j=k, then the 1-slice and 2-slice have at least 15 points in common, so the 3-slice can have at most &amp;lt;math&amp;gt;27-15=12&amp;lt;/math&amp;gt; points, a contradiction.  If jk = 01, 12, or 20, then observe that from Lemma 1 the *1**, *2**, *3** slices cannot equal a 17-point or 18-point line-free set, so each have at most 16 points, leading to only 48 points in all, a contradiction.  Thus we must have jk = 10, 21, or 02.&lt;br /&gt;
&lt;br /&gt;
Let&#039;s first suppose that jk=02.  Then by Lemma 1, the 2*** slice contains the nine points formed from {2211, 2322, 2331} and permuting the last three indices, while the 1*** slice contains at least eight of the nine points formed from {1211, 1322, 1311} and permuting the last three indices.  Thus the 3*** slice can contain at most one of the nine points formed from {3211, 3322, 3311} and permuting the last three indices.  If it does contain one of these points, say 3211, then it must omit one point from each of the four pairs {3222, 3233}, {3212, 3213}, {3221, 3231}, {3111, 3311}, leading to at most 15 points on this slice, a contradiction.  So the 3*** slice must omit all nine points, and is therefore contained in &amp;lt;math&amp;gt;\{3\} \times D_{4,1}&amp;lt;/math&amp;gt;, and so the 50-point set is contained in &amp;lt;math&amp;gt;D_{4,1}&amp;lt;/math&amp;gt;, and we are done by the discussion at the beginning of the proof.&lt;br /&gt;
&lt;br /&gt;
The case jk=10 is similar to the jk=02 case (indeed one can get from one case to the other by swapping the 1 and 2 indices).  Now suppose instead that jk=12.  Then by Lemma 1, the 1*** slice contains the six points from permuting the last three indices of 1123, and similarly the 2*** slice contains the six points from permuting the last three indices of 2123.  Thus the 3*** slice must avoid all six points formed by permuting the last three indices of 3123.  Similarly, as 1133 lies in the 1*** slice and 2233 lies in the 2*** slice, 3333 must be avoided in the 3*** slice.&lt;br /&gt;
&lt;br /&gt;
Now we claim that 3111 must be avoided also; for if 3111 was in the set, then one point from each of the six pairs formed from {3311, 3211}, {3331, 3221} and permuting the last three indices must lie outside the 3*** slice, which reduces the size of that slice to at most &amp;lt;math&amp;gt;27-6-1-6=14&amp;lt;/math&amp;gt;, which is too small.  Similarly, 3222 must be avoided, which puts the 3*** slice inside &amp;lt;math&amp;gt;\{3\} \times D_3&amp;lt;/math&amp;gt; and then places the 50-point set inside &amp;lt;math&amp;gt;D_4&amp;lt;/math&amp;gt;, and we are done by the discussion at the beginning of the proof.&lt;br /&gt;
&lt;br /&gt;
We have handled the case in which at least one of the slicings of the 50-point set is of the form 50=17+17+16.  The only remaining case is when all slicings of the 50-point set are of the form 18+17+16 (or a permutation thereof).  By the symmetries of the situation, we may assume that the 1*** slice has 18 points, and thus by Lemma 1 takes the form &amp;lt;math&amp;gt;\{1\} \times D_3&amp;lt;/math&amp;gt;.  Inspecting the *1**, *2**, *3** slices, we then see (from Lemma 1) that only the *1** slice can have 18 points; since we are assuming that this slicing is some permutation of 50=18+17+16, we conclude that the *1** slice must have exactly 18 points, and is thus described precisely by Lemma 1.  Similarly for the **1* and ***1 slices.  Indeed, by Lemma 1, we see that the 50-point set must agree exactly with &amp;lt;math&amp;gt;D_{4,1}&amp;lt;/math&amp;gt; on any of these slices.  In particular, on the remaining portion &amp;lt;math&amp;gt;\{2,3\}^4&amp;lt;/math&amp;gt; of the cube, there are exactly 6 points of the 50-point set in &amp;lt;math&amp;gt;\{2,3\}^4&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Suppose that 3333 was in the set; then since all permutations of 3311, 3331 are known to lie in the set, then 3322, 3332 must lie outside the set.  Also, as 1222 lies in the set, at least one of 2222, 3222 lie outside the set.  This leaves only 5 points in &amp;lt;math&amp;gt;\{2,3\}^4&amp;lt;/math&amp;gt;, a contradiction.  Thus 3333 lies outside the set; similarly 2222 lies outside the set.&lt;br /&gt;
&lt;br /&gt;
Let a be the number of points in the 50-point set which are some permutation of 2233, thus &amp;lt;math&amp;gt;0 \leq a \leq 6&amp;lt;/math&amp;gt;.  If a=0 then the set lies in &amp;lt;math&amp;gt;D_{4,1}&amp;lt;/math&amp;gt; and we are done.  If a=6 then the set is exactly X and we are done.  Now suppose a=1,2,3.  By symmetry we may assume that 2233 lies in the set.  Then (since 2133, 1233 2231, 2213 are known to lie in the set) 2333, 3233, 2223, 2232 lie outside the set, which leaves at most 5 points inside &amp;lt;math&amp;gt;\{2,3\}^4&amp;lt;/math&amp;gt;, a contradiction.&lt;br /&gt;
&lt;br /&gt;
The remaining case is when a=4,5.  Then one of the three pairs {2233, 3322}, {2323, 3232}, {2332, 3223} lie in the set.  By symmetry we may assume that {2233, 3322} lie in the set.  Then by arguing as before we see that all eight points formed by permuting 2333 or 3222 lie outside the set, leading to at most 5 points inside &amp;lt;math&amp;gt;\{2,3\}^4&amp;lt;/math&amp;gt;, a contradiction.&lt;br /&gt;
&amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== n=5 ==&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;c_5=150&amp;lt;/math&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Lemma 3&#039;&#039;&#039;.  Any line-free subset of &amp;lt;math&amp;gt;D_{5,j}&amp;lt;/math&amp;gt; can have at most 150 points.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039;.  By rotation we may work with &amp;lt;math&amp;gt;D_5&amp;lt;/math&amp;gt;.  This set has 162 points.  By looking at the triplets {10000, 11110, 12220} and cyclic permutations we must lose 5 points; similarly from the triplets {20000,22220, 21110} and cyclic permutations.  Finally from {11000,11111,11222} and {22000,22222,22111} we lose two more points. &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Equality can be attained by removing  &amp;lt;math&amp;gt;\Gamma_{0,4,1}, \Gamma_{0,5,0}, \Gamma_{4,0,1}, \Gamma_{5,0,0}&amp;lt;/math&amp;gt; from &amp;lt;math&amp;gt;D_5&amp;lt;/math&amp;gt;.  Thus &amp;lt;math&amp;gt;c_5 \geq 150&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Another pattern of 150 points is this: Take the 450 points&lt;br /&gt;
in &amp;lt;math&amp;gt;{}[3]^6&amp;lt;/math&amp;gt; which are (1,2,3), (0,2,4) and permutations,&lt;br /&gt;
then select the 150 whose final coordinate is 1. That gives&lt;br /&gt;
this many points in each cube:&lt;br /&gt;
&lt;br /&gt;
17 18 17&lt;br /&gt;
&lt;br /&gt;
17 17 18&lt;br /&gt;
&lt;br /&gt;
12 17 17&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Lemma 4&#039;&#039;&#039;.  A line-free subset of &amp;lt;math&amp;gt;[3]^5&amp;lt;/math&amp;gt; with over 150 points cannot have two parallel &amp;lt;math&amp;gt;[3]^4&amp;lt;/math&amp;gt; slices, each of which contain at least 51 points.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039;.  Suppose not.  By symmetry, we may assume that the 1**** and 2**** slices have at least 51 points, and that the whole set has at least 151 points, which force the third slice to have at least &amp;lt;math&amp;gt;151-2c_4 = 47&amp;lt;/math&amp;gt; points.&lt;br /&gt;
&lt;br /&gt;
By Lemma 2, the 1**** slice takes the form &amp;lt;math&amp;gt;\{1\} \times D_{4,j}&amp;lt;/math&amp;gt; for some &amp;lt;math&amp;gt;j=0,1,2&amp;lt;/math&amp;gt; with the diagonal {11111,12222,13333} and possibly one more point removed, and similarly the 2**** slice takes the form &amp;lt;math&amp;gt;\{2\} \times D_{4,k}&amp;lt;/math&amp;gt; for some &amp;lt;math&amp;gt;k=0,1,2&amp;lt;/math&amp;gt; with the diagonal {21111,22222,23333} and possibly one more point removed.&lt;br /&gt;
&lt;br /&gt;
Suppose first that j=k.  Then the 1-slice and 2-slice have at least 50 points in common, leaving at most 31 points for the 3-slice, a contradiction.  Next, suppose that jk=01.  Then observe that the *i*** slice cannot look like any of the configurations in Lemma 2 and so must have at most 50 points for i=1,2,3, leading to 150 points in all, a contradiction.  Similarly if jk=12 or 20.  Thus we must have jk equal to 10, 21, or 02.&lt;br /&gt;
&lt;br /&gt;
Let&#039;s suppose first that jk=10.  The first slice then is equal to &amp;lt;math&amp;gt;\{1\} \times D_{4,1}&amp;lt;/math&amp;gt; with the diagonal and possibly one more point removed, while the second slice is equal to &amp;lt;math&amp;gt;\{2\} \times D_{4,0}&amp;lt;/math&amp;gt; with the diagonal and possibly one more point removed.  Superimposing these slices, we thus see that the third slice is contained in &amp;lt;math&amp;gt;\{3\} \times D_{4,2}&amp;lt;/math&amp;gt; except possibly for two additional points, together with the one point 32222 of the diagonal that lies outside of &amp;lt;math&amp;gt;\{3\} \times D_{4,2}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
The lines x12xx, x13xx (plus permutations of the last four digits) must each contain one point outside the set.  The first two slices can only absorb two of these, and so at least 14 of the 16 points formed by permuting the last four digits of 31233, 31333 must lie outside the set.  These points all lie in &amp;lt;math&amp;gt;\{3\} \times D_{4,2}&amp;lt;/math&amp;gt;, and so the 3**** slice can have at most &amp;lt;math&amp;gt;|D_{4,2}|-14+3=43&amp;lt;/math&amp;gt; points, a contradiction.&lt;br /&gt;
&lt;br /&gt;
The case jk=02 is similar to the case jk=10 (indeed one can obtain one from the other by swapping 1 and 2).  Now we turn to the case jk=21.  Arguing as before we see that the third slice is contained in &amp;lt;math&amp;gt;\{3\} \times D_4&amp;lt;/math&amp;gt; except possibly for two points, together with 33333.  &lt;br /&gt;
&lt;br /&gt;
If 33333 was in the set, then each of the lines xx333, xxx33 (and permutations of the last four digits) must have a point missing from the first two slices, which cannot be absorbed by the two points we are permitted to remove; thus 33333 is not in the set.  For similar reasons, 33331 is not in the set, as can be seen by looking at xxx31 and permutations of the last four digits.  Indeed, any string containing four threes does not lie in the set; this means that at least 8 points are missing from &amp;lt;math&amp;gt;\{3\} \times D_4&amp;lt;/math&amp;gt;, leaving only at most 46 points inside that set.  Furthermore, any point in the 3**** slice outside of &amp;lt;math&amp;gt;\{3\} \times D_4&amp;lt;/math&amp;gt; can only be created by removing a point from the first two slices, so the total cardinality is at most &amp;lt;math&amp;gt;46+52+52 = 150&amp;lt;/math&amp;gt;, a contradiction.&amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Corollary&#039;&#039;&#039;. &amp;lt;math&amp;gt;c_5 \leq 152&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039;.  By Lemma 4 and the bound &amp;lt;math&amp;gt;c_4=52&amp;lt;/math&amp;gt;, any line-free set with over 150 points can have one slice of cardinality 52, but then the other two slices can have at most 50 points. &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Lemma 5&#039;&#039;&#039; Any solution with 151 or more points has a slice with at most 49 points.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; Suppose we have 151 points without a line, and each of three slices has at least 50 points.&lt;br /&gt;
&lt;br /&gt;
Using earlier notation, we split subsets of &amp;lt;math&amp;gt;[3]^4&amp;lt;/math&amp;gt; into nine subsets of &amp;lt;math&amp;gt;[3]^2&amp;lt;/math&amp;gt;.  &lt;br /&gt;
So we think of x,y,z,a,b and c as subsets of a square.  Each slice is one of the following.&lt;br /&gt;
*&amp;lt;math&amp;gt;D_4 = y&#039;zx,zx&#039;y,xyz&amp;lt;/math&amp;gt; (with one or two points removed)&lt;br /&gt;
*&amp;lt;math&amp;gt;D_{4,2} = z&#039;xy,xyz,yzx&#039;&amp;lt;/math&amp;gt; (with one or two points removed)&lt;br /&gt;
*&amp;lt;math&amp;gt;D_{4,1} = xyz,yz&#039;x,zxy&#039;&amp;lt;/math&amp;gt; (with one or two points removed)&lt;br /&gt;
*&amp;lt;math&amp;gt;X = xyz, ybw, zwc&amp;lt;/math&amp;gt;&lt;br /&gt;
*&amp;lt;math&amp;gt;Y = axw, xyz, wzc&amp;lt;/math&amp;gt;&lt;br /&gt;
*&amp;lt;math&amp;gt;Z = awx, wby, xyz&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where a, b and c have four points each.&lt;br /&gt;
&lt;br /&gt;
        .. 32 33          31 .. 33         .. .. ..&lt;br /&gt;
    a = .. 22 23      b = .. .. ..     c = 21 22 ..&lt;br /&gt;
        .. .. ..          11 .. 13         11 12 ..&lt;br /&gt;
&lt;br /&gt;
x&#039;, y&#039; and z&#039; are subsets of x, y and z respectively, and have five points each.&lt;br /&gt;
&lt;br /&gt;
Suppose all three slices are subsets of &amp;lt;math&amp;gt;D_{4,j}&amp;lt;/math&amp;gt;.  &lt;br /&gt;
We can remove at most five points from the full set of three D_{4,j}.  &lt;br /&gt;
Consider columns 2,3,4,6,7,8.  At most two of these columns contain xyz, so one point must be removed from the other four.&lt;br /&gt;
This uses up all but one of the removals.&lt;br /&gt;
So the slices must be &amp;lt;math&amp;gt;D_{4,2},D_{4,1},D_{4,0}&amp;lt;/math&amp;gt; or a cyclic permutation of that.&lt;br /&gt;
Then the cube, which contains the first square of slice 1; the fifth square of slice 2; &lt;br /&gt;
and the ninth square of slice 3, contains three copies of the same square.  &lt;br /&gt;
It takes more than one point removed to remove all lines from that cube.&lt;br /&gt;
So we can&#039;t have all three slices subsets of &amp;lt;math&amp;gt;D_{4,j}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Suppose one slice is X,Y or Z, and two others are subsets of &amp;lt;math&amp;gt;D_{4,j}&amp;lt;/math&amp;gt;.  &lt;br /&gt;
We can remove at most three points from the full &amp;lt;math&amp;gt;D_{4,j}&amp;lt;/math&amp;gt;&lt;br /&gt;
By symmetry, suppose one slice is X.  Consider columns 2,3,4 and 7.  They must be cyclic permutations of x,y,z,&lt;br /&gt;
and two of them are not xyz, so must lose a point.  &lt;br /&gt;
Columns 6 and 8 must both lose a point, and we only have 150 points left.&lt;br /&gt;
So if one slice is X,Y or Z, the full set contains a line.&lt;br /&gt;
&lt;br /&gt;
Suppose two slices are from X,Y and Z, and the other is a subset of &amp;lt;math&amp;gt;D_{4,j}&amp;lt;/math&amp;gt;.  &lt;br /&gt;
By symmetry, suppose two slices are X and Y.  Columns 3,6,7 and 8 all contain w, and therefore at most 16 points each.&lt;br /&gt;
Columns 1,5 and 9 contain a,b, or c, and therefore at most 16 points. &lt;br /&gt;
So the total number of points is at most 7*16+2*18 = 148.  This contradicts the assumption of 151 points.&lt;br /&gt;
&amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Corollary&#039;&#039;&#039; &amp;lt;math&amp;gt;c_5 \leq 151 &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; By Lemmas 2 and 4, the maximum number of points is 52+50+49=151. &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Lemma 5.1&#039;&#039;&#039; No solution with 151 points contains as a slice the X defined in Lemma 2&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; Suppose one row is X.  Another row is &amp;lt;math&amp;gt;D_{4,j}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Suppose X is in the first row.  Label the other rows with letters from the alphabet.&lt;br /&gt;
&lt;br /&gt;
xyz ybw zwc&lt;br /&gt;
&lt;br /&gt;
mno pqr stu&lt;br /&gt;
&lt;br /&gt;
def ghi jkl&lt;br /&gt;
&lt;br /&gt;
Reslice the array into a left nine, middle nine and right nine.  One of these squares&lt;br /&gt;
contains 52 points, and it can only be the left nine.  One of its three columns contains&lt;br /&gt;
18 points, and it can only be its left-hand column, xmd.  So m=y and d=z.  But none of the {math&amp;gt;D_{4,j}&amp;lt;/math&amp;gt; begins with y or z, which is a contradiction.  So X is not in the first row.&lt;br /&gt;
&lt;br /&gt;
So X is in the second or third row.  By symmetry, suppose it is in the second row&lt;br /&gt;
&lt;br /&gt;
def ghi jkl&lt;br /&gt;
&lt;br /&gt;
xyz ybw zwc&lt;br /&gt;
&lt;br /&gt;
mno pqr stu&lt;br /&gt;
&lt;br /&gt;
Again, the left-hand nine must contain 52 points, so it is &amp;lt;math&amp;gt;D_{4,2}&amp;lt;/math&amp;gt;.&lt;br /&gt;
So either the first row is &amp;lt;math&amp;gt;D_{4,2}&amp;lt;/math&amp;gt; or the third row is &amp;lt;math&amp;gt;D_{4,0}&amp;lt;/math&amp;gt;.&lt;br /&gt;
If the first row is &amp;lt;math&amp;gt;D_{4,2}&amp;lt;/math&amp;gt; then the only way to have 50 points in the middle or right-hand nine is if the middle nine is X&lt;br /&gt;
&lt;br /&gt;
z&#039;xy xyz yzx&#039;&lt;br /&gt;
&lt;br /&gt;
xyz  ybw zwc&lt;br /&gt;
&lt;br /&gt;
yzx&#039; zwc stu&lt;br /&gt;
&lt;br /&gt;
In the seventh column, s contains 5 points and in the eighth column, t contains 4 points.&lt;br /&gt;
The final row can now contain at most 48 points, and the whole array contains only 52+50+48 = 150 points.&lt;br /&gt;
&lt;br /&gt;
If the third row is &amp;lt;math&amp;gt;D_{4,0}&amp;lt;/math&amp;gt;, then neither the middle nine nor the right-hand nine contains 50 points, by the classification of Lemma 4 and the formulas at the start of Lemma 5.&lt;br /&gt;
Again, only 52+49+49 = 150 points are possible.&lt;br /&gt;
&lt;br /&gt;
A similar argument is possible if X is in the third row; or if X is replaced by Y or Z.&lt;br /&gt;
&lt;br /&gt;
So when a 151-point set is sliced into three, one slice is &amp;lt;math&amp;gt;D_{4,j}&amp;lt;/math&amp;gt; and another slice is 50 points contained in &amp;lt;math&amp;gt;D_{4,k}&amp;lt;/math&amp;gt;. &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Lemma 5.2&#039;&#039;&#039; There is no 151-point solution&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; Assume by symmetry that the first row contains 52 points and the second row contains 50.&lt;br /&gt;
&lt;br /&gt;
If &amp;lt;math&amp;gt;D_{4,1}&amp;lt;/math&amp;gt; is in the first row, then the second row must be contained in &amp;lt;math&amp;gt;D_{4,0}&amp;lt;/math&amp;gt;.  &lt;br /&gt;
&lt;br /&gt;
xyz  yz&#039;x zxy&#039;&lt;br /&gt;
&lt;br /&gt;
y&#039;zx zx&#039;y xyz&lt;br /&gt;
&lt;br /&gt;
def  ghi  jkl&lt;br /&gt;
&lt;br /&gt;
But then none of the left nine, middle nine or right nine can contain 52 points, which contradicts the corollary to Lemma 5.&lt;br /&gt;
&lt;br /&gt;
Suppose the first row contains D_{4,0}.  Then the second row is contained in &amp;lt;math&amp;gt;D_{4,2}&amp;lt;/math&amp;gt;, otherwise the cubes formed from the nine columns of the diagram would need to remove too many points.&lt;br /&gt;
&lt;br /&gt;
y&#039;zx zx&#039;y xyz&lt;br /&gt;
&lt;br /&gt;
z&#039;xy xyz  yzx&#039;&lt;br /&gt;
&lt;br /&gt;
def  ghi  jkl&lt;br /&gt;
&lt;br /&gt;
But then neither the left nine, middle nine or right nine contains 52 points.&lt;br /&gt;
&lt;br /&gt;
So the first row contains &amp;lt;math&amp;gt;D_{4,2}&amp;lt;/math&amp;gt;, and the second row is contained in &amp;lt;math&amp;gt;D_{4,1}&amp;lt;/math&amp;gt;.  Two points may be removed from the second row of this diagram.&lt;br /&gt;
&lt;br /&gt;
z&#039;xy xyz  yzx&#039;&lt;br /&gt;
&lt;br /&gt;
xyz  yz&#039;x zxy&#039;&lt;br /&gt;
&lt;br /&gt;
def  ghi  jkl&lt;br /&gt;
&lt;br /&gt;
Slice it into the left nine, middle nine and right nine.  Two of them are contained in &amp;lt;math&amp;gt;D_{4,j}&amp;lt;/math&amp;gt;&lt;br /&gt;
so at least two of def, ghi, and jkl are contained in the corresponding slice of &amp;lt;math&amp;gt;D_{4,0}&amp;lt;/math&amp;gt;.&lt;br /&gt;
Slice along a different axis, and at least two of dgj,ehk,fil are contained in the corresponding slice of &lt;br /&gt;
&amp;lt;math&amp;gt;D_{4,0}&amp;lt;/math&amp;gt;.  &lt;br /&gt;
So eight of the nine squares in the bottom row are contained in the corresponding square of &amp;lt;math&amp;gt;D_{4,0}&amp;lt;/math&amp;gt;.&lt;br /&gt;
Indeed, slice along other axes, and all points except one are contained within &amp;lt;math&amp;gt;D_{4,0}&amp;lt;/math&amp;gt;.  &lt;br /&gt;
This point is the intersection of all the 49-point slices.  &lt;br /&gt;
&lt;br /&gt;
So, if there is a 151-point solution, then after removal of the specified point, &lt;br /&gt;
there is a 150-point solution, within &amp;lt;math&amp;gt;D_{5,j}&amp;lt;/math&amp;gt;, whose slices in each direction are 52+50+48.&lt;br /&gt;
&lt;br /&gt;
z&#039;xy xyz  yzx&#039;&lt;br /&gt;
&lt;br /&gt;
xyz  yz&#039;x zxy&#039;&lt;br /&gt;
&lt;br /&gt;
y&#039;zx zx&#039;y xyz&lt;br /&gt;
&lt;br /&gt;
One point must be lost from columns 3, 6, 7 and 8, and four more from the major diagonal z&#039;z&#039;z.  That leaves 148 points instead of 150.&lt;br /&gt;
&lt;br /&gt;
So the 150-point solution does not exist with 52+50+48 slices; so the 151 point solution does not exist.&amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
An integer programming method has established the upper bound &amp;lt;math&amp;gt;c_5\leq 150&amp;lt;/math&amp;gt;, with 12 extremal solutions.&lt;br /&gt;
&lt;br /&gt;
[http://abel.math.umu.se/~klasm/extremal-c5 This file] contains the extermisers. One point per line and different extermisers separated by a line with “—”&lt;br /&gt;
&lt;br /&gt;
[http://abel.math.umu.se/~klasm/linprog-d=5-t=3.lpt This is the linear program], readable by Gnu’s glpsol linear programing solver, which also quickly proves that 150 is the optimum.&lt;br /&gt;
&lt;br /&gt;
Each variable corresponds to a point in the cube, numbered according to their lexicografic ordering. If a variable is 1 then the point is in the set, if it is 0 then it is not in the set.&lt;br /&gt;
There is one linear inequality for each combinatorial line, stating that at least one point must be missing from the line.&lt;br /&gt;
&lt;br /&gt;
== n=6 ==&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;c_6=450&amp;lt;/math&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
The upper bound follows since &amp;lt;math&amp;gt;c_6 \leq 3 c_5&amp;lt;/math&amp;gt;.   The lower bound can be formed by gluing together all the [[slice]]s &amp;lt;math&amp;gt;\Gamma_{a,b,c}&amp;lt;/math&amp;gt; where (a,b,c) is a permutation of (0,2,4) or (1,2,3).&lt;br /&gt;
&lt;br /&gt;
Computer verification, using the &amp;lt;math&amp;gt;c_5=150&amp;lt;/math&amp;gt; extremals, has shown that there is exactly one extremiser for &amp;lt;math&amp;gt;c_6=450&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== n=7 ==&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;1302 \leq c_7 \leq 1348&amp;lt;/math&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
To see the upper bound &amp;lt;math&amp;gt;c_7 \leq 3c_6-2&amp;lt;/math&amp;gt;, observe that if two parallel six-dimensional slices had &amp;lt;math&amp;gt;c_6&amp;lt;/math&amp;gt; points, then by uniqueness they are identical, and the third slice can have at most &amp;lt;math&amp;gt;3^6-c_6=279&amp;lt;/math&amp;gt; points, far too few to get anywhere close to &amp;lt;math&amp;gt;1348&amp;lt;/math&amp;gt;.  Thus there can be at most one slice with &amp;lt;math&amp;gt;c_6&amp;lt;/math&amp;gt; points, and the other two have at most &amp;lt;math&amp;gt;c_6-1&amp;lt;/math&amp;gt;, giving the claim.&lt;br /&gt;
&lt;br /&gt;
The lower bound can be formed by removing 016,106,052,502,151,511,160,610 from &amp;lt;math&amp;gt;D_7&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Lemma 6&#039;&#039;&#039; Any line-free subset of &amp;lt;math&amp;gt;D_7&amp;lt;/math&amp;gt; has at most 1302 points.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; Start with the 1458 points of &amp;lt;math&amp;gt;D_7&amp;lt;/math&amp;gt;.  You must lose:&lt;br /&gt;
&lt;br /&gt;
* 42 points from (1,2,4),(1,5,1),(4,2,1)&lt;br /&gt;
* 42 points from (2,1,4),(2,4,1),(5,1,1)&lt;br /&gt;
* 21 points from (0,2,5),(0,5,2),(3,2,2)&lt;br /&gt;
* 21 points from (2,0,5),(2,3,2),(5,0,2)&lt;br /&gt;
* 15 points from (0,1,6),(0,4,3),(3,1,3),(0,7,0),(3,4,0),(6,1,0)&lt;br /&gt;
* 15 points from (1,0,6),(1,3,3),(4,0,3),(7,0,0),(4,3,0),(1,6,0)&lt;br /&gt;
&lt;br /&gt;
where (a,b,c) is shorthand for the [[slice]] &amp;lt;math&amp;gt;\Gamma_{a,b,c}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Larger n ==&lt;br /&gt;
&lt;br /&gt;
The following construction gives lower bounds for the number of triangle-free points, &lt;br /&gt;
There are of the order &amp;lt;math&amp;gt;2.7 \sqrt{log(N)/N}3^N&amp;lt;/math&amp;gt; points for large N (N ~ 5000)&lt;br /&gt;
&lt;br /&gt;
It applies when N is a multiple of 3. &lt;br /&gt;
* For N=3M-1, restrict the first digit of a 3M sequence to be 1.  So this construction has exactly one-third as many points for N=3M-1 as it has for N=3M. &lt;br /&gt;
* For N=3M-2, restrict the first two digits of a 3M sequence to be 12.  This leaves roughly one ninth of the points for N=3M-2 as for N=3M.&lt;br /&gt;
&lt;br /&gt;
The current lower bounds for &amp;lt;math&amp;gt;c_{3m}&amp;lt;/math&amp;gt; are built like this, with abc being shorthand for &amp;lt;math&amp;gt;\Gamma_{a,b,c}&amp;lt;/math&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;math&amp;gt;c_3&amp;lt;/math&amp;gt; from (012) and permutations&lt;br /&gt;
* &amp;lt;math&amp;gt;c_6&amp;lt;/math&amp;gt; from (123,024) and perms&lt;br /&gt;
* &amp;lt;math&amp;gt;c_9&amp;lt;/math&amp;gt; from (234,135,045) and perms&lt;br /&gt;
* &amp;lt;math&amp;gt;c_{12}&amp;lt;/math&amp;gt; from (345,246,156,02A,057) and perms (A=10)&lt;br /&gt;
* &amp;lt;math&amp;gt;c_{15}&amp;lt;/math&amp;gt; from (456,357,267,13B,168,04B,078) and perms (B=11)&lt;br /&gt;
&lt;br /&gt;
To get the triples in each row, add 1 to the triples in the previous row; then include new triples that have a zero.&lt;br /&gt;
&lt;br /&gt;
A general formula for these points is given below.  I think that they are triangle-free.  (For N&amp;lt;21, ignore any triple with a negative entry.)&lt;br /&gt;
&lt;br /&gt;
* There are thirteen groups of points in the centre, formed from adding one of the following points, or its permutation, to (M,M,M), when N=3M:&lt;br /&gt;
** (-7,-3,+10), (-7, 0,+7),(-7,+3,+4),(-6,-4,+10),(-6,-1,+7),(-6,+2,+4),(-5,-1,+6),(-5,+2,+3),(-4,-2,+6),(-4,+1,+3),(-3,+1,+2),(-2,0,+2),(-1,0,+1) &lt;br /&gt;
* There are also eight string of points, stretching to the edges of the (abc) triangle:&lt;br /&gt;
** For N=6K = 3M&lt;br /&gt;
*** M+(-8-2x,-6-2x,14+4x),M+(-8-2x,-3-2x,11+4x),M+(-8-2x,x,8+x),M+(-8-2x,3+x,5+x) and permutations (x&amp;gt;=0, M-8-2x&amp;gt;=0)&lt;br /&gt;
*** M+(-9-2x,-5-2x,14+4x),M+(-9-2x,-2-2x,11+4x),M+(-9-2x,1+x,8+x),M+(-9-2x,4+x,5+x) and permutations (x&amp;gt;=0, M-9-2x&amp;gt;=0)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
An alternate construction:&lt;br /&gt;
&lt;br /&gt;
First define a sequence, of all positive numbers which, in base 3, do not contain a 1. Add 1 to all multiples of 3 in this sequence. This sequence does not contain a length-3 arithmetic progression.&lt;br /&gt;
&lt;br /&gt;
It starts 1,2,7,8,19,20,25,26,55, …&lt;br /&gt;
&lt;br /&gt;
Second, list all the (abc) triples for which the larger two differ by a number&lt;br /&gt;
from the sequence, excluding the case when the smaller two differ by 1, but then including the case when (a,b,c) is a permutation of N/3+(-1,0,1)&lt;br /&gt;
&lt;br /&gt;
== Asymptotics ==&lt;br /&gt;
&lt;br /&gt;
DHJ(3) is equivalent to the upper bound&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;c_n \leq o(3^n)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In the opposite direction, observe that if we take a set &amp;lt;math&amp;gt;S \subset [3n]&amp;lt;/math&amp;gt; that contains no 3-term arithmetic progressions, then the set &amp;lt;math&amp;gt;\bigcup_{(a,b,c) \in \Delta_n: a+2b \in S} \Gamma_{a,b,c}&amp;lt;/math&amp;gt; is line-free.  From this and the Behrend construction it appears that we have the lower bound&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;c_n \geq 3^{n-O(\sqrt{\log n})}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
More precisely, we have&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;c_n &amp;gt; C 3^{n - 4\sqrt{\log 2}\sqrt{\log n}+\frac 12 \log \log n}&amp;lt;/math&amp;gt;&lt;br /&gt;
for some absolute constant C, and where all logarithms are base-3.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; For convenience, let n be a multiple of 3. Elkin’s bound gives &amp;lt;math&amp;gt;r_3(\sqrt{n}) &amp;gt; C \sqrt{n} (\log n)^{1/4} \exp_2(-2 \sqrt{\log_2 n})&amp;lt;/math&amp;gt;, and let &amp;lt;math&amp;gt;R&amp;lt;/math&amp;gt; be a subset of &amp;lt;math&amp;gt;(-3\sqrt{n}/2,3\sqrt{n}/2)&amp;lt;/math&amp;gt; without 3-term APs and with size &amp;lt;math&amp;gt;r_3(\sqrt{n})&amp;lt;/math&amp;gt;, and with all elements being integer multiples of 3 (again as a matter of convenience). For each &amp;lt;math&amp;gt;r,s\in R&amp;lt;/math&amp;gt;, let &amp;lt;math&amp;gt;a = (n-r-s)/3&amp;lt;/math&amp;gt;. The set &amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt; is the union of all &amp;lt;math&amp;gt;\Gamma_{a,a+r,a+s}&amp;lt;/math&amp;gt;. Since all of &amp;lt;math&amp;gt;a, a+r,a+s&amp;lt;/math&amp;gt; are between &amp;lt;math&amp;gt;n/3-2\sqrt{n}&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;n/3+2\sqrt{n}&amp;lt;/math&amp;gt;, the size of &amp;lt;math&amp;gt;\Gamma_{a,a+r,a+s}&amp;lt;/math&amp;gt; is at least &amp;lt;math&amp;gt;C 3^n / n&amp;lt;/math&amp;gt;. Since there are &amp;lt;math&amp;gt;r_3(\sqrt{n})^2&amp;lt;/math&amp;gt; choices for r and s, we have a set with size at least&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;C (\sqrt{n} (\log n)^{1/4} \exp_2(-2 \sqrt{\log_2 n}))^2 3^n / n&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
This simplifies to &amp;lt;math&amp;gt;C \sqrt{\log n} \exp_3(n-\alpha \sqrt{\log_3(n)})&amp;lt;/math&amp;gt;, where &amp;lt;math&amp;gt;\alpha=4 \sqrt{\log_3(2)}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Now suppose that &amp;lt;math&amp;gt;x_i\in \Gamma_{a_i,a_i+r_i,a_i+s_i}&amp;lt;/math&amp;gt; is a combinatorial line in the set A. Then &amp;lt;math&amp;gt;(a_i+s_i)-(a_i)=s_i&amp;lt;/math&amp;gt; is a 3-term AP contained in R, so the &amp;lt;math&amp;gt;s_i&amp;lt;/math&amp;gt; are all the same. Similarly, all of the &amp;lt;math&amp;gt;r_i&amp;lt;/math&amp;gt; are the same, and therefore all of the &amp;lt;math&amp;gt;a_i&amp;lt;/math&amp;gt; are the same, too. But this implies that the &amp;lt;math&amp;gt;x_i&amp;lt;/math&amp;gt; sequence is constant, which means the line is degenerate. &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[http://terrytao.wordpress.com/2009/02/05/upper-and-lower-bounds-for-the-density-hales-jewett-problem/#comment-35652 Numerics suggest] that the first large n construction given above above give a lower bound of roughly &amp;lt;math&amp;gt;2.7 \sqrt{\log(n)/n} \times 3^n&amp;lt;/math&amp;gt;, which would asymptotically be inferior to the Behrend bound.&lt;br /&gt;
&lt;br /&gt;
The second large n construction had numerical asymptotics for &amp;lt;math&amp;gt;\log(c_n/3^n)&amp;lt;/math&amp;gt; close to &amp;lt;math&amp;gt;1.2-\sqrt{\log(n)}&amp;lt;/math&amp;gt; between n=1000 and n=10000, consistent with the Behrend bound.&lt;br /&gt;
&lt;br /&gt;
== Other k values ==&lt;br /&gt;
&lt;br /&gt;
A [http://abel.math.umu.se/~klasm/Data/HJ/ computer search] has found the following &amp;lt;math&amp;gt;c_n&amp;lt;/math&amp;gt; values for different values of dimension n and edgelength k.  Several of these values reach the upper bound of &amp;lt;math&amp;gt;(k-1)k^{n-1}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
{|&lt;br /&gt;
|n\k || 2 || 3 || 4 || 5 || 6 || 7&lt;br /&gt;
|-&lt;br /&gt;
| 2 || 2 || 6 || 12 || 20 || 30 || 42&lt;br /&gt;
|-&lt;br /&gt;
| 3 || 3 || 18 || 48 || 100 || 180 || 294&lt;br /&gt;
|-&lt;br /&gt;
| 4 || 6 || 52 || 183 || 500 || 1029-1079 || 2058&lt;br /&gt;
|-&lt;br /&gt;
| 5 || 10 || 150 || 683-732 || 2500&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
If k is prime and &amp;lt;math&amp;gt;k \ge n&amp;lt;/math&amp;gt;, then one can remove all combinatorial lines by deleting all points whose coordinates sum to a multiple of k.  So the density of deleted points in the optimal configuration is 1/k when k is prime.&lt;br /&gt;
&lt;br /&gt;
Let p be the smallest prime greater than or equal to k.  One can remove all combinatorial lines by deleting all points whose coordinates sum to &amp;lt;math&amp;gt;0\le x\le p-k&amp;lt;/math&amp;gt; (mod p),  So the density of deleted points is at most (p-k+1)/p.  This approaches zero as &amp;lt;math&amp;gt;k\rightarrow\infty&amp;lt;/math&amp;gt;.  For example, the following paper shows there is a prime between x-x^0.525 and x.&lt;br /&gt;
&lt;br /&gt;
Baker, R. C.(1-BYU); Harman, G.(4-LNDHB); Pintz, J.(H-AOS)&lt;br /&gt;
The difference between consecutive primes. II.&lt;br /&gt;
Proc. London Math. Soc. (3) 83 (2001), no. 3, 532–562.&lt;br /&gt;
&lt;br /&gt;
== Numerical methods ==&lt;br /&gt;
&lt;br /&gt;
A greedy algorithm [http://thetangentspace.com/wiki/Hales-Jewett_Theorem was implemented here].  The results were sharp for &amp;lt;math&amp;gt;n \leq 3&amp;lt;/math&amp;gt; but were slightly inferior to the constructions above for larger n.&lt;/div&gt;</summary>
		<author><name>121.220.134.232</name></author>
	</entry>
	<entry>
		<id>https://michaelnielsen.org/polymath/index.php?title=Upper_and_lower_bounds&amp;diff=1054</id>
		<title>Upper and lower bounds</title>
		<link rel="alternate" type="text/html" href="https://michaelnielsen.org/polymath/index.php?title=Upper_and_lower_bounds&amp;diff=1054"/>
		<updated>2009-03-24T13:30:56Z</updated>

		<summary type="html">&lt;p&gt;121.220.134.232: /* Other k values */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;center&amp;gt;&#039;&#039;&#039;Upper and lower bounds for &amp;lt;math&amp;gt;c_n&amp;lt;/math&amp;gt; for small values of n.&#039;&#039;&#039;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;c_n&amp;lt;/math&amp;gt; is the size of the largest subset of &amp;lt;math&amp;gt;[3]^n&amp;lt;/math&amp;gt; that does not contain a combinatorial line (OEIS [http://www.research.att.com/~njas/sequences/A156762 A156762].  A spreadsheet for all the latest bounds on &amp;lt;math&amp;gt;c_n&amp;lt;/math&amp;gt; [http://spreadsheets.google.com/ccc?key=p5T0SktZY9DsU-uZ1tK7VEg can be found here].  In this page we record the proofs justifying these bounds.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{|&lt;br /&gt;
| n || 0 || 1 || 2 || 3 || 4 || 5 || 6 || 7&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;math&amp;gt;c_n&amp;lt;/math&amp;gt; || 1 || 2 || 6 || 18 || 52 || 150 || 450 || [1302,1348]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Basic constructions ==&lt;br /&gt;
&lt;br /&gt;
For all &amp;lt;math&amp;gt;n \geq 1&amp;lt;/math&amp;gt;, a basic example of a mostly line-free set is&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;D_n := \{ (x_1,\ldots,x_n) \in [3]^n: \sum_{i=1}^n x_i \neq 0 \ \operatorname{mod}\ 3 \}&amp;lt;/math&amp;gt;.  (1)&lt;br /&gt;
&lt;br /&gt;
This has cardinality &amp;lt;math&amp;gt;|D_n| = 2 \times 3^{n-1}&amp;lt;/math&amp;gt;.  The only lines in &amp;lt;math&amp;gt;D_n&amp;lt;/math&amp;gt; are those with&lt;br /&gt;
&lt;br /&gt;
# A number of wildcards equal to a multiple of three;&lt;br /&gt;
# The number of 1s unequal to the number of 2s modulo 3.&lt;br /&gt;
&lt;br /&gt;
One way to construct line-free sets is to start with &amp;lt;math&amp;gt;D_n&amp;lt;/math&amp;gt; and remove some additional points.  We also have the variants &amp;lt;math&amp;gt;D_{n,0}=D_n, D_{n,1}, D_{n,2}&amp;lt;/math&amp;gt; defined as&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;D_{n,j} := \{ (x_1,\ldots,x_n) \in [3]^n: \sum_{i=1}^n x_i \neq j \ \operatorname{mod}\ 3 \}&amp;lt;/math&amp;gt;.  (1&#039;)&lt;br /&gt;
&lt;br /&gt;
When n is not a multiple of 3, then &amp;lt;math&amp;gt;D_{n,0}, D_{n,1}, D_{n,2}&amp;lt;/math&amp;gt; are all cyclic permutations of each other; but when n is a multiple of 3, then &amp;lt;math&amp;gt;D_{n,0}&amp;lt;/math&amp;gt; plays a special role (though &amp;lt;math&amp;gt;D_{n,1}, D_{n,2}&amp;lt;/math&amp;gt; are still interchangeable).&lt;br /&gt;
&lt;br /&gt;
Another useful construction proceeds by using the slices &amp;lt;math&amp;gt;\Gamma_{a,b,c} \subset [3]^n&amp;lt;/math&amp;gt; for &amp;lt;math&amp;gt;(a,b,c)&amp;lt;/math&amp;gt; in the triangular grid&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\Delta_n := \{ (a,b,c) \in {\Bbb Z}_+^3: a+b+c = n \},&amp;lt;/math&amp;gt;.  (2)&lt;br /&gt;
&lt;br /&gt;
where &amp;lt;math&amp;gt;\Gamma_{a,b,c}&amp;lt;/math&amp;gt; is defined as the strings in &amp;lt;math&amp;gt;[3]^n&amp;lt;/math&amp;gt; with &amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt; 1s, &amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt; 2s, and &amp;lt;math&amp;gt;c&amp;lt;/math&amp;gt; 3s.  Note that&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;|\Gamma_{a,b,c}| = \frac{n!}{a! b! c!}.&amp;lt;/math&amp;gt; (3)&lt;br /&gt;
&lt;br /&gt;
Given any set &amp;lt;math&amp;gt;B \subset \Delta_n&amp;lt;/math&amp;gt; that avoids equilateral triangles &amp;lt;math&amp;gt; (a+r,b,c), (a,b+r,c), (a,b,c+r)&amp;lt;/math&amp;gt;, the set&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\Gamma_B := \bigcup_{(a,b,c) \in B} \Gamma_{a,b,c}&amp;lt;/math&amp;gt; (4)&lt;br /&gt;
&lt;br /&gt;
is line-free and has cardinality&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;|\Gamma_B| = \sum_{(a,b,c) \in B} \frac{n!}{a! b! c!},&amp;lt;/math&amp;gt; (5)&lt;br /&gt;
&lt;br /&gt;
and thus provides a lower bound for &amp;lt;math&amp;gt;c_n&amp;lt;/math&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;c_n \geq \sum_{(a,b,c) \in B} \frac{n!}{a! b! c!}.&amp;lt;/math&amp;gt; (6)&lt;br /&gt;
&lt;br /&gt;
All lower bounds on &amp;lt;math&amp;gt;c_n&amp;lt;/math&amp;gt; have proceeded so far by choosing a good set of B and applying (6).  Note that &amp;lt;math&amp;gt;D_n&amp;lt;/math&amp;gt; is the same as &amp;lt;math&amp;gt;\Gamma_{B_n}&amp;lt;/math&amp;gt;, where &amp;lt;math&amp;gt;B_n&amp;lt;/math&amp;gt; consists of those triples &amp;lt;math&amp;gt;(a,b,c) \in \Delta_n&amp;lt;/math&amp;gt; in which &amp;lt;math&amp;gt;a \neq b\ \operatorname{mod}\ 3&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Note that if one takes a line-free set and permutes the alphabet &amp;lt;math&amp;gt;\{1,2,3\}&amp;lt;/math&amp;gt; in any fashion (e.g. replacing all 1s by 2s and vice versa), one also gets a line-free set.  This potentially gives six examples from any given starting example of a line-free set, though in practice there is enough symmetry that the total number of examples produced this way is less than six.  (These six examples also correspond to the six symmetries of the triangular grid &amp;lt;math&amp;gt;\Delta_n&amp;lt;/math&amp;gt; formed by rotation and reflection.)&lt;br /&gt;
&lt;br /&gt;
Another symmetry comes from permuting the &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt; indices in the strings of &amp;lt;math&amp;gt;[3]^n&amp;lt;/math&amp;gt; (e.g. replacing every string by its reversal).  But the sets &amp;lt;math&amp;gt;\Gamma_B&amp;lt;/math&amp;gt; are automatically invariant under such permutations and thus do not produce new line-free sets via this symmetry.&lt;br /&gt;
&lt;br /&gt;
== The basic upper bound ==&lt;br /&gt;
&lt;br /&gt;
Because &amp;lt;math&amp;gt;[3]^{n+1}&amp;lt;/math&amp;gt; can be expressed as the union of three copies of &amp;lt;math&amp;gt;[3]^n&amp;lt;/math&amp;gt;, we have the basic upper bound&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;c_{n+1} \leq 3 c_n.&amp;lt;/math&amp;gt; (7)&lt;br /&gt;
&lt;br /&gt;
Note that equality only occurs if one can find an &amp;lt;math&amp;gt;n+1&amp;lt;/math&amp;gt;-dimensional line-free set such that every n-dimensional slice has the maximum possible cardinality of &amp;lt;math&amp;gt;c_n&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== n=0 ==&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;c_0=1&amp;lt;/math&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
This is clear.&lt;br /&gt;
&lt;br /&gt;
== n=1 ==&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;c_1=2&amp;lt;/math&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
The three sets &amp;lt;math&amp;gt;D_1 = \{1,2\}&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;D_{1,1} = \{2,3\}&amp;lt;/math&amp;gt;, and &amp;lt;math&amp;gt;D_{1,2} = \{1,3\}&amp;lt;/math&amp;gt; are the only two-element sets which are line-free in &amp;lt;math&amp;gt;[3]^1&amp;lt;/math&amp;gt;, and there are no three-element sets.&lt;br /&gt;
&lt;br /&gt;
== n=2 ==&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;c_2=6&amp;lt;/math&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
There are four six-element sets in &amp;lt;math&amp;gt;[3]^2&amp;lt;/math&amp;gt; which are line-free, which we denote &amp;lt;math&amp;gt;x = D_{2,2}&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;y=D_{2,1}&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;z=D_2&amp;lt;/math&amp;gt;, and &amp;lt;math&amp;gt;w&amp;lt;/math&amp;gt; and are displayed graphically as follows.&lt;br /&gt;
&lt;br /&gt;
     13 .. 33       .. 23 33       13 23 ..       13 23 ..&lt;br /&gt;
 x = 12 22 ..   y = 12 .. 32   z = .. 22 32   w = 12 .. 32&lt;br /&gt;
     .. 21 31       11 21 ..       11 .. 31       .. 21 31&lt;br /&gt;
&lt;br /&gt;
Combining this with the basic upper bound (7) we see that &amp;lt;math&amp;gt;c_2=6&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== n=3 ==&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;c_3=18&amp;lt;/math&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
We describe a subset &amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt; of &amp;lt;math&amp;gt;[3]^3&amp;lt;/math&amp;gt; as a string &amp;lt;math&amp;gt;abc&amp;lt;/math&amp;gt;, where &amp;lt;math&amp;gt;a, b, c \subset [3]^2&amp;lt;/math&amp;gt; correspond to strings of the form &amp;lt;math&amp;gt;1**&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;2**&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;3**&amp;lt;/math&amp;gt; in &amp;lt;math&amp;gt;[3]^3&amp;lt;/math&amp;gt; respectively.  Thus for instance &amp;lt;math&amp;gt;D_3 = xyz&amp;lt;/math&amp;gt;, and so from (7) we have &amp;lt;math&amp;gt;c_3=18&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Lemma 1.&#039;&#039;&#039;&lt;br /&gt;
* The only 18-element line-free subset of &amp;lt;math&amp;gt;[3]^3&amp;lt;/math&amp;gt; is &amp;lt;math&amp;gt;D_3 = xyz&amp;lt;/math&amp;gt;.&lt;br /&gt;
* The only 17-element line-free subsets of &amp;lt;math&amp;gt;[3]^3&amp;lt;/math&amp;gt; are formed by removing a point from &amp;lt;math&amp;gt;D_3=xyz&amp;lt;/math&amp;gt;, or by removing either 111, 222, or 333 from &amp;lt;math&amp;gt;D_{3,2} = yzx&amp;lt;/math&amp;gt; or &amp;lt;math&amp;gt;D_{3,3}=zxy&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039;.  We prove the second claim. As &amp;lt;math&amp;gt;17=6+6+5&amp;lt;/math&amp;gt;, and &amp;lt;math&amp;gt;c_2=6&amp;lt;/math&amp;gt;, at least two of the slices of a 17-element line-free set must be from x, y, z, w, with the third slice having 5 points.  If two of the slices are identical, the last slice can have only 3 points, a contradiction.  If one of the slices is a w, then the 5-point slice will contain a diagonal, contradiction.  By symmetry we may now assume that two of the slices are x and y, which force the last slice to be z with one point removed.  Now one sees that the slices must be in the order xyz, yzx, or zxy, because any other combination has too many lines that need to be removed.  The sets yzx, zxy contain the diagonal {111,222,333} and so one additional point needs to be removed. &lt;br /&gt;
&lt;br /&gt;
The first claim follows by a similar argument to the second.&lt;br /&gt;
&amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== n=4 ==&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;c_4=52&amp;lt;/math&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
Indeed, divide a line-free set in &amp;lt;math&amp;gt;[3]^4&amp;lt;/math&amp;gt; into three blocks &amp;lt;math&amp;gt;1***, 2***, 3***&amp;lt;/math&amp;gt; of &amp;lt;math&amp;gt;[3]^3&amp;lt;/math&amp;gt;.  If two of them are of size 18, then they must both be xyz, and the third block can have at most 6 elements, leading to an inferior bound of 42.  So the best one can do is &amp;lt;math&amp;gt;18+17+17=52&amp;lt;/math&amp;gt; which can be attained by deleting the diagonal {1111,2222,3333} from &amp;lt;math&amp;gt;D_{4,1} = xyz\ yzx\ xzy&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;D_4 = yzx\ zxy\ xyz&amp;lt;/math&amp;gt;, or &amp;lt;math&amp;gt;D_{4,2} = zxy\ xyz\ yzx&amp;lt;/math&amp;gt;.  In fact,&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Lemma 2.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* The only 52-element line-free sets in &amp;lt;math&amp;gt;[3]^4&amp;lt;/math&amp;gt; are formed by removing the diagonal {1111,2222,3333} from &amp;lt;math&amp;gt;D_{4,j}&amp;lt;/math&amp;gt; for some j=0,1,2.&lt;br /&gt;
* The only 51-element line-free sets in &amp;lt;math&amp;gt;[3]^4&amp;lt;/math&amp;gt; are formed by removing the diagonal and one further point from &amp;lt;math&amp;gt;D_{4,j}&amp;lt;/math&amp;gt; for some j=0,1,2.&lt;br /&gt;
* The only 50-element line-free sets in &amp;lt;math&amp;gt;[3]^4&amp;lt;/math&amp;gt; are formed by removing the diagonal and two further points from &amp;lt;math&amp;gt;D_{4,j}&amp;lt;/math&amp;gt; for some j=0,1,2  OR is equal to one of the three permutations of the set &amp;lt;math&amp;gt;X := \Gamma_{3,1,0} \cup \Gamma_{3,0,1} \cup \Gamma_{2,2,0} \cup \Gamma_{2,0,2} \cup \Gamma_{1,1,2} \cup \Gamma_{1,2,1} \cup \Gamma_{0,2,2}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; It suffices to prove the third claim.  In fact it suffices to show that every 50-point line-free set is either contained in the 54-point set &amp;lt;math&amp;gt;D_{4,j}&amp;lt;/math&amp;gt; for some j=0,1,2, or is some permutation of the set X. Indeed, if a 50-point line-free set is contained in, say, &amp;lt;math&amp;gt;D_4&amp;lt;/math&amp;gt;, then it cannot contain 2222, since otherwise it must omit one point from each of the four pairs formed from {2333, 2111} by permuting the indices, and must also omit one of {1111, 1222, 1333}, leading to at most 49 points in all; similarly, it cannot contain 1111, and so omits the entire diagonal {1111,2222,3333}, with two more points to be omitted.  Similarly when &amp;lt;math&amp;gt;D_4&amp;lt;/math&amp;gt; is replaced by one of the other &amp;lt;math&amp;gt;D_{4,j}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Next, observe that every three-dimensional slice of a line-free set can have at most &amp;lt;math&amp;gt;c_3=18&amp;lt;/math&amp;gt; points; thus when one partitions a 50-point line-free set into three such slices, it must divide either as 18+16+16, 17+17+16, or some permutation of these.&lt;br /&gt;
&lt;br /&gt;
Suppose that we can slice the set into two slices of 17 points and one slice of 16 points.  By the various symmetries, we may assume that the 1*** slice and 2*** slices have 17 points, and the 3*** slice has 16 points.  By Lemma 1, the 1-slice is &amp;lt;math&amp;gt;\{1\} \times D_{3,j}&amp;lt;/math&amp;gt; with one point removed, and the 2-slice is &amp;lt;math&amp;gt;\{2\} \times D_{3,k}&amp;lt;/math&amp;gt; with one point removed, for some &amp;lt;math&amp;gt;j,k \in \{0,1,2\}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
If j=k, then the 1-slice and 2-slice have at least 15 points in common, so the 3-slice can have at most &amp;lt;math&amp;gt;27-15=12&amp;lt;/math&amp;gt; points, a contradiction.  If jk = 01, 12, or 20, then observe that from Lemma 1 the *1**, *2**, *3** slices cannot equal a 17-point or 18-point line-free set, so each have at most 16 points, leading to only 48 points in all, a contradiction.  Thus we must have jk = 10, 21, or 02.&lt;br /&gt;
&lt;br /&gt;
Let&#039;s first suppose that jk=02.  Then by Lemma 1, the 2*** slice contains the nine points formed from {2211, 2322, 2331} and permuting the last three indices, while the 1*** slice contains at least eight of the nine points formed from {1211, 1322, 1311} and permuting the last three indices.  Thus the 3*** slice can contain at most one of the nine points formed from {3211, 3322, 3311} and permuting the last three indices.  If it does contain one of these points, say 3211, then it must omit one point from each of the four pairs {3222, 3233}, {3212, 3213}, {3221, 3231}, {3111, 3311}, leading to at most 15 points on this slice, a contradiction.  So the 3*** slice must omit all nine points, and is therefore contained in &amp;lt;math&amp;gt;\{3\} \times D_{4,1}&amp;lt;/math&amp;gt;, and so the 50-point set is contained in &amp;lt;math&amp;gt;D_{4,1}&amp;lt;/math&amp;gt;, and we are done by the discussion at the beginning of the proof.&lt;br /&gt;
&lt;br /&gt;
The case jk=10 is similar to the jk=02 case (indeed one can get from one case to the other by swapping the 1 and 2 indices).  Now suppose instead that jk=12.  Then by Lemma 1, the 1*** slice contains the six points from permuting the last three indices of 1123, and similarly the 2*** slice contains the six points from permuting the last three indices of 2123.  Thus the 3*** slice must avoid all six points formed by permuting the last three indices of 3123.  Similarly, as 1133 lies in the 1*** slice and 2233 lies in the 2*** slice, 3333 must be avoided in the 3*** slice.&lt;br /&gt;
&lt;br /&gt;
Now we claim that 3111 must be avoided also; for if 3111 was in the set, then one point from each of the six pairs formed from {3311, 3211}, {3331, 3221} and permuting the last three indices must lie outside the 3*** slice, which reduces the size of that slice to at most &amp;lt;math&amp;gt;27-6-1-6=14&amp;lt;/math&amp;gt;, which is too small.  Similarly, 3222 must be avoided, which puts the 3*** slice inside &amp;lt;math&amp;gt;\{3\} \times D_3&amp;lt;/math&amp;gt; and then places the 50-point set inside &amp;lt;math&amp;gt;D_4&amp;lt;/math&amp;gt;, and we are done by the discussion at the beginning of the proof.&lt;br /&gt;
&lt;br /&gt;
We have handled the case in which at least one of the slicings of the 50-point set is of the form 50=17+17+16.  The only remaining case is when all slicings of the 50-point set are of the form 18+17+16 (or a permutation thereof).  By the symmetries of the situation, we may assume that the 1*** slice has 18 points, and thus by Lemma 1 takes the form &amp;lt;math&amp;gt;\{1\} \times D_3&amp;lt;/math&amp;gt;.  Inspecting the *1**, *2**, *3** slices, we then see (from Lemma 1) that only the *1** slice can have 18 points; since we are assuming that this slicing is some permutation of 50=18+17+16, we conclude that the *1** slice must have exactly 18 points, and is thus described precisely by Lemma 1.  Similarly for the **1* and ***1 slices.  Indeed, by Lemma 1, we see that the 50-point set must agree exactly with &amp;lt;math&amp;gt;D_{4,1}&amp;lt;/math&amp;gt; on any of these slices.  In particular, on the remaining portion &amp;lt;math&amp;gt;\{2,3\}^4&amp;lt;/math&amp;gt; of the cube, there are exactly 6 points of the 50-point set in &amp;lt;math&amp;gt;\{2,3\}^4&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Suppose that 3333 was in the set; then since all permutations of 3311, 3331 are known to lie in the set, then 3322, 3332 must lie outside the set.  Also, as 1222 lies in the set, at least one of 2222, 3222 lie outside the set.  This leaves only 5 points in &amp;lt;math&amp;gt;\{2,3\}^4&amp;lt;/math&amp;gt;, a contradiction.  Thus 3333 lies outside the set; similarly 2222 lies outside the set.&lt;br /&gt;
&lt;br /&gt;
Let a be the number of points in the 50-point set which are some permutation of 2233, thus &amp;lt;math&amp;gt;0 \leq a \leq 6&amp;lt;/math&amp;gt;.  If a=0 then the set lies in &amp;lt;math&amp;gt;D_{4,1}&amp;lt;/math&amp;gt; and we are done.  If a=6 then the set is exactly X and we are done.  Now suppose a=1,2,3.  By symmetry we may assume that 2233 lies in the set.  Then (since 2133, 1233 2231, 2213 are known to lie in the set) 2333, 3233, 2223, 2232 lie outside the set, which leaves at most 5 points inside &amp;lt;math&amp;gt;\{2,3\}^4&amp;lt;/math&amp;gt;, a contradiction.&lt;br /&gt;
&lt;br /&gt;
The remaining case is when a=4,5.  Then one of the three pairs {2233, 3322}, {2323, 3232}, {2332, 3223} lie in the set.  By symmetry we may assume that {2233, 3322} lie in the set.  Then by arguing as before we see that all eight points formed by permuting 2333 or 3222 lie outside the set, leading to at most 5 points inside &amp;lt;math&amp;gt;\{2,3\}^4&amp;lt;/math&amp;gt;, a contradiction.&lt;br /&gt;
&amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== n=5 ==&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;c_5=150&amp;lt;/math&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Lemma 3&#039;&#039;&#039;.  Any line-free subset of &amp;lt;math&amp;gt;D_{5,j}&amp;lt;/math&amp;gt; can have at most 150 points.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039;.  By rotation we may work with &amp;lt;math&amp;gt;D_5&amp;lt;/math&amp;gt;.  This set has 162 points.  By looking at the triplets {10000, 11110, 12220} and cyclic permutations we must lose 5 points; similarly from the triplets {20000,22220, 21110} and cyclic permutations.  Finally from {11000,11111,11222} and {22000,22222,22111} we lose two more points. &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Equality can be attained by removing  &amp;lt;math&amp;gt;\Gamma_{0,4,1}, \Gamma_{0,5,0}, \Gamma_{4,0,1}, \Gamma_{5,0,0}&amp;lt;/math&amp;gt; from &amp;lt;math&amp;gt;D_5&amp;lt;/math&amp;gt;.  Thus &amp;lt;math&amp;gt;c_5 \geq 150&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Another pattern of 150 points is this: Take the 450 points&lt;br /&gt;
in &amp;lt;math&amp;gt;{}[3]^6&amp;lt;/math&amp;gt; which are (1,2,3), (0,2,4) and permutations,&lt;br /&gt;
then select the 150 whose final coordinate is 1. That gives&lt;br /&gt;
this many points in each cube:&lt;br /&gt;
&lt;br /&gt;
17 18 17&lt;br /&gt;
&lt;br /&gt;
17 17 18&lt;br /&gt;
&lt;br /&gt;
12 17 17&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Lemma 4&#039;&#039;&#039;.  A line-free subset of &amp;lt;math&amp;gt;[3]^5&amp;lt;/math&amp;gt; with over 150 points cannot have two parallel &amp;lt;math&amp;gt;[3]^4&amp;lt;/math&amp;gt; slices, each of which contain at least 51 points.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039;.  Suppose not.  By symmetry, we may assume that the 1**** and 2**** slices have at least 51 points, and that the whole set has at least 151 points, which force the third slice to have at least &amp;lt;math&amp;gt;151-2c_4 = 47&amp;lt;/math&amp;gt; points.&lt;br /&gt;
&lt;br /&gt;
By Lemma 2, the 1**** slice takes the form &amp;lt;math&amp;gt;\{1\} \times D_{4,j}&amp;lt;/math&amp;gt; for some &amp;lt;math&amp;gt;j=0,1,2&amp;lt;/math&amp;gt; with the diagonal {11111,12222,13333} and possibly one more point removed, and similarly the 2**** slice takes the form &amp;lt;math&amp;gt;\{2\} \times D_{4,k}&amp;lt;/math&amp;gt; for some &amp;lt;math&amp;gt;k=0,1,2&amp;lt;/math&amp;gt; with the diagonal {21111,22222,23333} and possibly one more point removed.&lt;br /&gt;
&lt;br /&gt;
Suppose first that j=k.  Then the 1-slice and 2-slice have at least 50 points in common, leaving at most 31 points for the 3-slice, a contradiction.  Next, suppose that jk=01.  Then observe that the *i*** slice cannot look like any of the configurations in Lemma 2 and so must have at most 50 points for i=1,2,3, leading to 150 points in all, a contradiction.  Similarly if jk=12 or 20.  Thus we must have jk equal to 10, 21, or 02.&lt;br /&gt;
&lt;br /&gt;
Let&#039;s suppose first that jk=10.  The first slice then is equal to &amp;lt;math&amp;gt;\{1\} \times D_{4,1}&amp;lt;/math&amp;gt; with the diagonal and possibly one more point removed, while the second slice is equal to &amp;lt;math&amp;gt;\{2\} \times D_{4,0}&amp;lt;/math&amp;gt; with the diagonal and possibly one more point removed.  Superimposing these slices, we thus see that the third slice is contained in &amp;lt;math&amp;gt;\{3\} \times D_{4,2}&amp;lt;/math&amp;gt; except possibly for two additional points, together with the one point 32222 of the diagonal that lies outside of &amp;lt;math&amp;gt;\{3\} \times D_{4,2}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
The lines x12xx, x13xx (plus permutations of the last four digits) must each contain one point outside the set.  The first two slices can only absorb two of these, and so at least 14 of the 16 points formed by permuting the last four digits of 31233, 31333 must lie outside the set.  These points all lie in &amp;lt;math&amp;gt;\{3\} \times D_{4,2}&amp;lt;/math&amp;gt;, and so the 3**** slice can have at most &amp;lt;math&amp;gt;|D_{4,2}|-14+3=43&amp;lt;/math&amp;gt; points, a contradiction.&lt;br /&gt;
&lt;br /&gt;
The case jk=02 is similar to the case jk=10 (indeed one can obtain one from the other by swapping 1 and 2).  Now we turn to the case jk=21.  Arguing as before we see that the third slice is contained in &amp;lt;math&amp;gt;\{3\} \times D_4&amp;lt;/math&amp;gt; except possibly for two points, together with 33333.  &lt;br /&gt;
&lt;br /&gt;
If 33333 was in the set, then each of the lines xx333, xxx33 (and permutations of the last four digits) must have a point missing from the first two slices, which cannot be absorbed by the two points we are permitted to remove; thus 33333 is not in the set.  For similar reasons, 33331 is not in the set, as can be seen by looking at xxx31 and permutations of the last four digits.  Indeed, any string containing four threes does not lie in the set; this means that at least 8 points are missing from &amp;lt;math&amp;gt;\{3\} \times D_4&amp;lt;/math&amp;gt;, leaving only at most 46 points inside that set.  Furthermore, any point in the 3**** slice outside of &amp;lt;math&amp;gt;\{3\} \times D_4&amp;lt;/math&amp;gt; can only be created by removing a point from the first two slices, so the total cardinality is at most &amp;lt;math&amp;gt;46+52+52 = 150&amp;lt;/math&amp;gt;, a contradiction.&amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Corollary&#039;&#039;&#039;. &amp;lt;math&amp;gt;c_5 \leq 152&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039;.  By Lemma 4 and the bound &amp;lt;math&amp;gt;c_4=52&amp;lt;/math&amp;gt;, any line-free set with over 150 points can have one slice of cardinality 52, but then the other two slices can have at most 50 points. &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Lemma 5&#039;&#039;&#039; Any solution with 151 or more points has a slice with at most 49 points.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; Suppose we have 151 points without a line, and each of three slices has at least 50 points.&lt;br /&gt;
&lt;br /&gt;
Using earlier notation, we split subsets of &amp;lt;math&amp;gt;[3]^4&amp;lt;/math&amp;gt; into nine subsets of &amp;lt;math&amp;gt;[3]^2&amp;lt;/math&amp;gt;.  &lt;br /&gt;
So we think of x,y,z,a,b and c as subsets of a square.  Each slice is one of the following.&lt;br /&gt;
*&amp;lt;math&amp;gt;D_4 = y&#039;zx,zx&#039;y,xyz&amp;lt;/math&amp;gt; (with one or two points removed)&lt;br /&gt;
*&amp;lt;math&amp;gt;D_{4,2} = z&#039;xy,xyz,yzx&#039;&amp;lt;/math&amp;gt; (with one or two points removed)&lt;br /&gt;
*&amp;lt;math&amp;gt;D_{4,1} = xyz,yz&#039;x,zxy&#039;&amp;lt;/math&amp;gt; (with one or two points removed)&lt;br /&gt;
*&amp;lt;math&amp;gt;X = xyz, ybw, zwc&amp;lt;/math&amp;gt;&lt;br /&gt;
*&amp;lt;math&amp;gt;Y = axw, xyz, wzc&amp;lt;/math&amp;gt;&lt;br /&gt;
*&amp;lt;math&amp;gt;Z = awx, wby, xyz&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where a, b and c have four points each.&lt;br /&gt;
&lt;br /&gt;
        .. 32 33          31 .. 33         .. .. ..&lt;br /&gt;
    a = .. 22 23      b = .. .. ..     c = 21 22 ..&lt;br /&gt;
        .. .. ..          11 .. 13         11 12 ..&lt;br /&gt;
&lt;br /&gt;
x&#039;, y&#039; and z&#039; are subsets of x, y and z respectively, and have five points each.&lt;br /&gt;
&lt;br /&gt;
Suppose all three slices are subsets of &amp;lt;math&amp;gt;D_{4,j}&amp;lt;/math&amp;gt;.  &lt;br /&gt;
We can remove at most five points from the full set of three D_{4,j}.  &lt;br /&gt;
Consider columns 2,3,4,6,7,8.  At most two of these columns contain xyz, so one point must be removed from the other four.&lt;br /&gt;
This uses up all but one of the removals.&lt;br /&gt;
So the slices must be &amp;lt;math&amp;gt;D_{4,2},D_{4,1},D_{4,0}&amp;lt;/math&amp;gt; or a cyclic permutation of that.&lt;br /&gt;
Then the cube, which contains the first square of slice 1; the fifth square of slice 2; &lt;br /&gt;
and the ninth square of slice 3, contains three copies of the same square.  &lt;br /&gt;
It takes more than one point removed to remove all lines from that cube.&lt;br /&gt;
So we can&#039;t have all three slices subsets of &amp;lt;math&amp;gt;D_{4,j}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Suppose one slice is X,Y or Z, and two others are subsets of &amp;lt;math&amp;gt;D_{4,j}&amp;lt;/math&amp;gt;.  &lt;br /&gt;
We can remove at most three points from the full &amp;lt;math&amp;gt;D_{4,j}&amp;lt;/math&amp;gt;&lt;br /&gt;
By symmetry, suppose one slice is X.  Consider columns 2,3,4 and 7.  They must be cyclic permutations of x,y,z,&lt;br /&gt;
and two of them are not xyz, so must lose a point.  &lt;br /&gt;
Columns 6 and 8 must both lose a point, and we only have 150 points left.&lt;br /&gt;
So if one slice is X,Y or Z, the full set contains a line.&lt;br /&gt;
&lt;br /&gt;
Suppose two slices are from X,Y and Z, and the other is a subset of &amp;lt;math&amp;gt;D_{4,j}&amp;lt;/math&amp;gt;.  &lt;br /&gt;
By symmetry, suppose two slices are X and Y.  Columns 3,6,7 and 8 all contain w, and therefore at most 16 points each.&lt;br /&gt;
Columns 1,5 and 9 contain a,b, or c, and therefore at most 16 points. &lt;br /&gt;
So the total number of points is at most 7*16+2*18 = 148.  This contradicts the assumption of 151 points.&lt;br /&gt;
&amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Corollary&#039;&#039;&#039; &amp;lt;math&amp;gt;c_5 \leq 151 &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; By Lemmas 2 and 4, the maximum number of points is 52+50+49=151. &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Lemma 5.1&#039;&#039;&#039; No solution with 151 points contains as a slice the X defined in Lemma 2&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; Suppose one row is X.  Another row is &amp;lt;math&amp;gt;D_{4,j}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Suppose X is in the first row.  Label the other rows with letters from the alphabet.&lt;br /&gt;
&lt;br /&gt;
xyz ybw zwc&lt;br /&gt;
&lt;br /&gt;
mno pqr stu&lt;br /&gt;
&lt;br /&gt;
def ghi jkl&lt;br /&gt;
&lt;br /&gt;
Reslice the array into a left nine, middle nine and right nine.  One of these squares&lt;br /&gt;
contains 52 points, and it can only be the left nine.  One of its three columns contains&lt;br /&gt;
18 points, and it can only be its left-hand column, xmd.  So m=y and d=z.  But none of the {math&amp;gt;D_{4,j}&amp;lt;/math&amp;gt; begins with y or z, which is a contradiction.  So X is not in the first row.&lt;br /&gt;
&lt;br /&gt;
So X is in the second or third row.  By symmetry, suppose it is in the second row&lt;br /&gt;
&lt;br /&gt;
def ghi jkl&lt;br /&gt;
&lt;br /&gt;
xyz ybw zwc&lt;br /&gt;
&lt;br /&gt;
mno pqr stu&lt;br /&gt;
&lt;br /&gt;
Again, the left-hand nine must contain 52 points, so it is &amp;lt;math&amp;gt;D_{4,2}&amp;lt;/math&amp;gt;.&lt;br /&gt;
So either the first row is &amp;lt;math&amp;gt;D_{4,2}&amp;lt;/math&amp;gt; or the third row is &amp;lt;math&amp;gt;D_{4,0}&amp;lt;/math&amp;gt;.&lt;br /&gt;
If the first row is &amp;lt;math&amp;gt;D_{4,2}&amp;lt;/math&amp;gt; then the only way to have 50 points in the middle or right-hand nine is if the middle nine is X&lt;br /&gt;
&lt;br /&gt;
z&#039;xy xyz yzx&#039;&lt;br /&gt;
&lt;br /&gt;
xyz  ybw zwc&lt;br /&gt;
&lt;br /&gt;
yzx&#039; zwc stu&lt;br /&gt;
&lt;br /&gt;
In the seventh column, s contains 5 points and in the eighth column, t contains 4 points.&lt;br /&gt;
The final row can now contain at most 48 points, and the whole array contains only 52+50+48 = 150 points.&lt;br /&gt;
&lt;br /&gt;
If the third row is &amp;lt;math&amp;gt;D_{4,0}&amp;lt;/math&amp;gt;, then neither the middle nine nor the right-hand nine contains 50 points, by the classification of Lemma 4 and the formulas at the start of Lemma 5.&lt;br /&gt;
Again, only 52+49+49 = 150 points are possible.&lt;br /&gt;
&lt;br /&gt;
A similar argument is possible if X is in the third row; or if X is replaced by Y or Z.&lt;br /&gt;
&lt;br /&gt;
So when a 151-point set is sliced into three, one slice is &amp;lt;math&amp;gt;D_{4,j}&amp;lt;/math&amp;gt; and another slice is 50 points contained in &amp;lt;math&amp;gt;D_{4,k}&amp;lt;/math&amp;gt;. &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Lemma 5.2&#039;&#039;&#039; There is no 151-point solution&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; Assume by symmetry that the first row contains 52 points and the second row contains 50.&lt;br /&gt;
&lt;br /&gt;
If &amp;lt;math&amp;gt;D_{4,1}&amp;lt;/math&amp;gt; is in the first row, then the second row must be contained in &amp;lt;math&amp;gt;D_{4,0}&amp;lt;/math&amp;gt;.  &lt;br /&gt;
&lt;br /&gt;
xyz  yz&#039;x zxy&#039;&lt;br /&gt;
&lt;br /&gt;
y&#039;zx zx&#039;y xyz&lt;br /&gt;
&lt;br /&gt;
def  ghi  jkl&lt;br /&gt;
&lt;br /&gt;
But then none of the left nine, middle nine or right nine can contain 52 points, which contradicts the corollary to Lemma 5.&lt;br /&gt;
&lt;br /&gt;
Suppose the first row contains D_{4,0}.  Then the second row is contained in &amp;lt;math&amp;gt;D_{4,2}&amp;lt;/math&amp;gt;, otherwise the cubes formed from the nine columns of the diagram would need to remove too many points.&lt;br /&gt;
&lt;br /&gt;
y&#039;zx zx&#039;y xyz&lt;br /&gt;
&lt;br /&gt;
z&#039;xy xyz  yzx&#039;&lt;br /&gt;
&lt;br /&gt;
def  ghi  jkl&lt;br /&gt;
&lt;br /&gt;
But then neither the left nine, middle nine or right nine contains 52 points.&lt;br /&gt;
&lt;br /&gt;
So the first row contains &amp;lt;math&amp;gt;D_{4,2}&amp;lt;/math&amp;gt;, and the second row is contained in &amp;lt;math&amp;gt;D_{4,1}&amp;lt;/math&amp;gt;.  Two points may be removed from the second row of this diagram.&lt;br /&gt;
&lt;br /&gt;
z&#039;xy xyz  yzx&#039;&lt;br /&gt;
&lt;br /&gt;
xyz  yz&#039;x zxy&#039;&lt;br /&gt;
&lt;br /&gt;
def  ghi  jkl&lt;br /&gt;
&lt;br /&gt;
Slice it into the left nine, middle nine and right nine.  Two of them are contained in &amp;lt;math&amp;gt;D_{4,j}&amp;lt;/math&amp;gt;&lt;br /&gt;
so at least two of def, ghi, and jkl are contained in the corresponding slice of &amp;lt;math&amp;gt;D_{4,0}&amp;lt;/math&amp;gt;.&lt;br /&gt;
Slice along a different axis, and at least two of dgj,ehk,fil are contained in the corresponding slice of &lt;br /&gt;
&amp;lt;math&amp;gt;D_{4,0}&amp;lt;/math&amp;gt;.  &lt;br /&gt;
So eight of the nine squares in the bottom row are contained in the corresponding square of &amp;lt;math&amp;gt;D_{4,0}&amp;lt;/math&amp;gt;.&lt;br /&gt;
Indeed, slice along other axes, and all points except one are contained within &amp;lt;math&amp;gt;D_{4,0}&amp;lt;/math&amp;gt;.  &lt;br /&gt;
This point is the intersection of all the 49-point slices.  &lt;br /&gt;
&lt;br /&gt;
So, if there is a 151-point solution, then after removal of the specified point, &lt;br /&gt;
there is a 150-point solution, within &amp;lt;math&amp;gt;D_{5,j}&amp;lt;/math&amp;gt;, whose slices in each direction are 52+50+48.&lt;br /&gt;
&lt;br /&gt;
z&#039;xy xyz  yzx&#039;&lt;br /&gt;
&lt;br /&gt;
xyz  yz&#039;x zxy&#039;&lt;br /&gt;
&lt;br /&gt;
y&#039;zx zx&#039;y xyz&lt;br /&gt;
&lt;br /&gt;
One point must be lost from columns 3, 6, 7 and 8, and four more from the major diagonal z&#039;z&#039;z.  That leaves 148 points instead of 150.&lt;br /&gt;
&lt;br /&gt;
So the 150-point solution does not exist with 52+50+48 slices; so the 151 point solution does not exist.&amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
An integer programming method has established the upper bound &amp;lt;math&amp;gt;c_5\leq 150&amp;lt;/math&amp;gt;, with 12 extremal solutions.&lt;br /&gt;
&lt;br /&gt;
[http://abel.math.umu.se/~klasm/extremal-c5 This file] contains the extermisers. One point per line and different extermisers separated by a line with “—”&lt;br /&gt;
&lt;br /&gt;
[http://abel.math.umu.se/~klasm/linprog-d=5-t=3.lpt This is the linear program], readable by Gnu’s glpsol linear programing solver, which also quickly proves that 150 is the optimum.&lt;br /&gt;
&lt;br /&gt;
Each variable corresponds to a point in the cube, numbered according to their lexicografic ordering. If a variable is 1 then the point is in the set, if it is 0 then it is not in the set.&lt;br /&gt;
There is one linear inequality for each combinatorial line, stating that at least one point must be missing from the line.&lt;br /&gt;
&lt;br /&gt;
== n=6 ==&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;c_6=450&amp;lt;/math&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
The upper bound follows since &amp;lt;math&amp;gt;c_6 \leq 3 c_5&amp;lt;/math&amp;gt;.   The lower bound can be formed by gluing together all the [[slice]]s &amp;lt;math&amp;gt;\Gamma_{a,b,c}&amp;lt;/math&amp;gt; where (a,b,c) is a permutation of (0,2,4) or (1,2,3).&lt;br /&gt;
&lt;br /&gt;
Computer verification, using the &amp;lt;math&amp;gt;c_5=150&amp;lt;/math&amp;gt; extremals, has shown that there is exactly one extremiser for &amp;lt;math&amp;gt;c_6=450&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== n=7 ==&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;1302 \leq c_7 \leq 1348&amp;lt;/math&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
To see the upper bound &amp;lt;math&amp;gt;c_7 \leq 3c_6-2&amp;lt;/math&amp;gt;, observe that if two parallel six-dimensional slices had &amp;lt;math&amp;gt;c_6&amp;lt;/math&amp;gt; points, then by uniqueness they are identical, and the third slice can have at most &amp;lt;math&amp;gt;3^6-c_6=279&amp;lt;/math&amp;gt; points, far too few to get anywhere close to &amp;lt;math&amp;gt;1348&amp;lt;/math&amp;gt;.  Thus there can be at most one slice with &amp;lt;math&amp;gt;c_6&amp;lt;/math&amp;gt; points, and the other two have at most &amp;lt;math&amp;gt;c_6-1&amp;lt;/math&amp;gt;, giving the claim.&lt;br /&gt;
&lt;br /&gt;
The lower bound can be formed by removing 016,106,052,502,151,511,160,610 from &amp;lt;math&amp;gt;D_7&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Lemma 6&#039;&#039;&#039; Any line-free subset of &amp;lt;math&amp;gt;D_7&amp;lt;/math&amp;gt; has at most 1302 points.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; Start with the 1458 points of &amp;lt;math&amp;gt;D_7&amp;lt;/math&amp;gt;.  You must lose:&lt;br /&gt;
&lt;br /&gt;
* 42 points from (1,2,4),(1,5,1),(4,2,1)&lt;br /&gt;
* 42 points from (2,1,4),(2,4,1),(5,1,1)&lt;br /&gt;
* 21 points from (0,2,5),(0,5,2),(3,2,2)&lt;br /&gt;
* 21 points from (2,0,5),(2,3,2),(5,0,2)&lt;br /&gt;
* 15 points from (0,1,6),(0,4,3),(3,1,3),(0,7,0),(3,4,0),(6,1,0)&lt;br /&gt;
* 15 points from (1,0,6),(1,3,3),(4,0,3),(7,0,0),(4,3,0),(1,6,0)&lt;br /&gt;
&lt;br /&gt;
where (a,b,c) is shorthand for the [[slice]] &amp;lt;math&amp;gt;\Gamma_{a,b,c}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Larger n ==&lt;br /&gt;
&lt;br /&gt;
The following construction gives lower bounds for the number of triangle-free points, &lt;br /&gt;
There are of the order &amp;lt;math&amp;gt;2.7 \sqrt{log(N)/N}3^N&amp;lt;/math&amp;gt; points for large N (N ~ 5000)&lt;br /&gt;
&lt;br /&gt;
It applies when N is a multiple of 3. &lt;br /&gt;
* For N=3M-1, restrict the first digit of a 3M sequence to be 1.  So this construction has exactly one-third as many points for N=3M-1 as it has for N=3M. &lt;br /&gt;
* For N=3M-2, restrict the first two digits of a 3M sequence to be 12.  This leaves roughly one ninth of the points for N=3M-2 as for N=3M.&lt;br /&gt;
&lt;br /&gt;
The current lower bounds for &amp;lt;math&amp;gt;c_{3m}&amp;lt;/math&amp;gt; are built like this, with abc being shorthand for &amp;lt;math&amp;gt;\Gamma_{a,b,c}&amp;lt;/math&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;math&amp;gt;c_3&amp;lt;/math&amp;gt; from (012) and permutations&lt;br /&gt;
* &amp;lt;math&amp;gt;c_6&amp;lt;/math&amp;gt; from (123,024) and perms&lt;br /&gt;
* &amp;lt;math&amp;gt;c_9&amp;lt;/math&amp;gt; from (234,135,045) and perms&lt;br /&gt;
* &amp;lt;math&amp;gt;c_{12}&amp;lt;/math&amp;gt; from (345,246,156,02A,057) and perms (A=10)&lt;br /&gt;
* &amp;lt;math&amp;gt;c_{15}&amp;lt;/math&amp;gt; from (456,357,267,13B,168,04B,078) and perms (B=11)&lt;br /&gt;
&lt;br /&gt;
To get the triples in each row, add 1 to the triples in the previous row; then include new triples that have a zero.&lt;br /&gt;
&lt;br /&gt;
A general formula for these points is given below.  I think that they are triangle-free.  (For N&amp;lt;21, ignore any triple with a negative entry.)&lt;br /&gt;
&lt;br /&gt;
* There are thirteen groups of points in the centre, formed from adding one of the following points, or its permutation, to (M,M,M), when N=3M:&lt;br /&gt;
** (-7,-3,+10), (-7, 0,+7),(-7,+3,+4),(-6,-4,+10),(-6,-1,+7),(-6,+2,+4),(-5,-1,+6),(-5,+2,+3),(-4,-2,+6),(-4,+1,+3),(-3,+1,+2),(-2,0,+2),(-1,0,+1) &lt;br /&gt;
* There are also eight string of points, stretching to the edges of the (abc) triangle:&lt;br /&gt;
** For N=6K = 3M&lt;br /&gt;
*** M+(-8-2x,-6-2x,14+4x),M+(-8-2x,-3-2x,11+4x),M+(-8-2x,x,8+x),M+(-8-2x,3+x,5+x) and permutations (x&amp;gt;=0, M-8-2x&amp;gt;=0)&lt;br /&gt;
*** M+(-9-2x,-5-2x,14+4x),M+(-9-2x,-2-2x,11+4x),M+(-9-2x,1+x,8+x),M+(-9-2x,4+x,5+x) and permutations (x&amp;gt;=0, M-9-2x&amp;gt;=0)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
An alternate construction:&lt;br /&gt;
&lt;br /&gt;
First define a sequence, of all positive numbers which, in base 3, do not contain a 1. Add 1 to all multiples of 3 in this sequence. This sequence does not contain a length-3 arithmetic progression.&lt;br /&gt;
&lt;br /&gt;
It starts 1,2,7,8,19,20,25,26,55, …&lt;br /&gt;
&lt;br /&gt;
Second, list all the (abc) triples for which the larger two differ by a number&lt;br /&gt;
from the sequence, excluding the case when the smaller two differ by 1, but then including the case when (a,b,c) is a permutation of N/3+(-1,0,1)&lt;br /&gt;
&lt;br /&gt;
== Asymptotics ==&lt;br /&gt;
&lt;br /&gt;
DHJ(3) is equivalent to the upper bound&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;c_n \leq o(3^n)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In the opposite direction, observe that if we take a set &amp;lt;math&amp;gt;S \subset [3n]&amp;lt;/math&amp;gt; that contains no 3-term arithmetic progressions, then the set &amp;lt;math&amp;gt;\bigcup_{(a,b,c) \in \Delta_n: a+2b \in S} \Gamma_{a,b,c}&amp;lt;/math&amp;gt; is line-free.  From this and the Behrend construction it appears that we have the lower bound&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;c_n \geq 3^{n-O(\sqrt{\log n})}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
More precisely, we have&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;c_n &amp;gt; C 3^{n - 4\sqrt{\log 2}\sqrt{\log n}+\frac 12 \log \log n}&amp;lt;/math&amp;gt;&lt;br /&gt;
for some absolute constant C, and where all logarithms are base-3.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; For convenience, let n be a multiple of 3. Elkin’s bound gives &amp;lt;math&amp;gt;r_3(\sqrt{n}) &amp;gt; C \sqrt{n} (\log n)^{1/4} \exp_2(-2 \sqrt{\log_2 n})&amp;lt;/math&amp;gt;, and let &amp;lt;math&amp;gt;R&amp;lt;/math&amp;gt; be a subset of &amp;lt;math&amp;gt;(-3\sqrt{n}/2,3\sqrt{n}/2)&amp;lt;/math&amp;gt; without 3-term APs and with size &amp;lt;math&amp;gt;r_3(\sqrt{n})&amp;lt;/math&amp;gt;, and with all elements being integer multiples of 3 (again as a matter of convenience). For each &amp;lt;math&amp;gt;r,s\in R&amp;lt;/math&amp;gt;, let &amp;lt;math&amp;gt;a = (n-r-s)/3&amp;lt;/math&amp;gt;. The set &amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt; is the union of all &amp;lt;math&amp;gt;\Gamma_{a,a+r,a+s}&amp;lt;/math&amp;gt;. Since all of &amp;lt;math&amp;gt;a, a+r,a+s&amp;lt;/math&amp;gt; are between &amp;lt;math&amp;gt;n/3-2\sqrt{n}&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;n/3+2\sqrt{n}&amp;lt;/math&amp;gt;, the size of &amp;lt;math&amp;gt;\Gamma_{a,a+r,a+s}&amp;lt;/math&amp;gt; is at least &amp;lt;math&amp;gt;C 3^n / n&amp;lt;/math&amp;gt;. Since there are &amp;lt;math&amp;gt;r_3(\sqrt{n})^2&amp;lt;/math&amp;gt; choices for r and s, we have a set with size at least&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;C (\sqrt{n} (\log n)^{1/4} \exp_2(-2 \sqrt{\log_2 n}))^2 3^n / n&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
This simplifies to &amp;lt;math&amp;gt;C \sqrt{\log n} \exp_3(n-\alpha \sqrt{\log_3(n)})&amp;lt;/math&amp;gt;, where &amp;lt;math&amp;gt;\alpha=4 \sqrt{\log_3(2)}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Now suppose that &amp;lt;math&amp;gt;x_i\in \Gamma_{a_i,a_i+r_i,a_i+s_i}&amp;lt;/math&amp;gt; is a combinatorial line in the set A. Then &amp;lt;math&amp;gt;(a_i+s_i)-(a_i)=s_i&amp;lt;/math&amp;gt; is a 3-term AP contained in R, so the &amp;lt;math&amp;gt;s_i&amp;lt;/math&amp;gt; are all the same. Similarly, all of the &amp;lt;math&amp;gt;r_i&amp;lt;/math&amp;gt; are the same, and therefore all of the &amp;lt;math&amp;gt;a_i&amp;lt;/math&amp;gt; are the same, too. But this implies that the &amp;lt;math&amp;gt;x_i&amp;lt;/math&amp;gt; sequence is constant, which means the line is degenerate. &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[http://terrytao.wordpress.com/2009/02/05/upper-and-lower-bounds-for-the-density-hales-jewett-problem/#comment-35652 Numerics suggest] that the first large n construction given above above give a lower bound of roughly &amp;lt;math&amp;gt;2.7 \sqrt{\log(n)/n} \times 3^n&amp;lt;/math&amp;gt;, which would asymptotically be inferior to the Behrend bound.&lt;br /&gt;
&lt;br /&gt;
The second large n construction had numerical asymptotics for &amp;lt;math&amp;gt;\log(c_n/3^n)&amp;lt;/math&amp;gt; close to &amp;lt;math&amp;gt;1.2-\sqrt{\log(n)}&amp;lt;/math&amp;gt; between n=1000 and n=10000, consistent with the Behrend bound.&lt;br /&gt;
&lt;br /&gt;
== Other k values ==&lt;br /&gt;
&lt;br /&gt;
A [http://abel.math.umu.se/~klasm/Data/HJ/ computer search] has found the following &amp;lt;math&amp;gt;c_n&amp;lt;/math&amp;gt; values for different values of dimension n and edgelength k.  Several of these values reach the upper bound of &amp;lt;math&amp;gt;(k-1)k^{n-1}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
{|&lt;br /&gt;
|n\k || 2 || 3 || 4 || 5 || 6 || 7&lt;br /&gt;
|-&lt;br /&gt;
| 2 || 2 || 6 || 12 || 20 || 30 || 42&lt;br /&gt;
|-&lt;br /&gt;
| 3 || 3 || 18 || 48 || 100 || 180 || 294&lt;br /&gt;
|-&lt;br /&gt;
| 4 || 6 || 52 || 183 || 500 || 1029-1079 || 2058&lt;br /&gt;
|-&lt;br /&gt;
| 5 || 10 || 150 || 683-732 || 2500&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
If k is prime and &amp;lt;math&amp;gt;k \ge d&amp;lt;/math&amp;gt;, then one can remove all combinatorial lines by deleting all points whose coordinates sum to a multiple of k.&lt;br /&gt;
&lt;br /&gt;
== Numerical methods ==&lt;br /&gt;
&lt;br /&gt;
A greedy algorithm [http://thetangentspace.com/wiki/Hales-Jewett_Theorem was implemented here].  The results were sharp for &amp;lt;math&amp;gt;n \leq 3&amp;lt;/math&amp;gt; but were slightly inferior to the constructions above for larger n.&lt;/div&gt;</summary>
		<author><name>121.220.134.232</name></author>
	</entry>
	<entry>
		<id>https://michaelnielsen.org/polymath/index.php?title=Upper_and_lower_bounds&amp;diff=1051</id>
		<title>Upper and lower bounds</title>
		<link rel="alternate" type="text/html" href="https://michaelnielsen.org/polymath/index.php?title=Upper_and_lower_bounds&amp;diff=1051"/>
		<updated>2009-03-23T20:20:11Z</updated>

		<summary type="html">&lt;p&gt;121.220.134.232: /* Other k values */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;center&amp;gt;&#039;&#039;&#039;Upper and lower bounds for &amp;lt;math&amp;gt;c_n&amp;lt;/math&amp;gt; for small values of n.&#039;&#039;&#039;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;c_n&amp;lt;/math&amp;gt; is the size of the largest subset of &amp;lt;math&amp;gt;[3]^n&amp;lt;/math&amp;gt; that does not contain a combinatorial line (OEIS [http://www.research.att.com/~njas/sequences/A156762 A156762].  A spreadsheet for all the latest bounds on &amp;lt;math&amp;gt;c_n&amp;lt;/math&amp;gt; [http://spreadsheets.google.com/ccc?key=p5T0SktZY9DsU-uZ1tK7VEg can be found here].  In this page we record the proofs justifying these bounds.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{|&lt;br /&gt;
| n || 0 || 1 || 2 || 3 || 4 || 5 || 6 || 7&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;math&amp;gt;c_n&amp;lt;/math&amp;gt; || 1 || 2 || 6 || 18 || 52 || 150 || 450 || [1302,1348]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Basic constructions ==&lt;br /&gt;
&lt;br /&gt;
For all &amp;lt;math&amp;gt;n \geq 1&amp;lt;/math&amp;gt;, a basic example of a mostly line-free set is&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;D_n := \{ (x_1,\ldots,x_n) \in [3]^n: \sum_{i=1}^n x_i \neq 0 \ \operatorname{mod}\ 3 \}&amp;lt;/math&amp;gt;.  (1)&lt;br /&gt;
&lt;br /&gt;
This has cardinality &amp;lt;math&amp;gt;|D_n| = 2 \times 3^{n-1}&amp;lt;/math&amp;gt;.  The only lines in &amp;lt;math&amp;gt;D_n&amp;lt;/math&amp;gt; are those with&lt;br /&gt;
&lt;br /&gt;
# A number of wildcards equal to a multiple of three;&lt;br /&gt;
# The number of 1s unequal to the number of 2s modulo 3.&lt;br /&gt;
&lt;br /&gt;
One way to construct line-free sets is to start with &amp;lt;math&amp;gt;D_n&amp;lt;/math&amp;gt; and remove some additional points.  We also have the variants &amp;lt;math&amp;gt;D_{n,0}=D_n, D_{n,1}, D_{n,2}&amp;lt;/math&amp;gt; defined as&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;D_{n,j} := \{ (x_1,\ldots,x_n) \in [3]^n: \sum_{i=1}^n x_i \neq j \ \operatorname{mod}\ 3 \}&amp;lt;/math&amp;gt;.  (1&#039;)&lt;br /&gt;
&lt;br /&gt;
When n is not a multiple of 3, then &amp;lt;math&amp;gt;D_{n,0}, D_{n,1}, D_{n,2}&amp;lt;/math&amp;gt; are all cyclic permutations of each other; but when n is a multiple of 3, then &amp;lt;math&amp;gt;D_{n,0}&amp;lt;/math&amp;gt; plays a special role (though &amp;lt;math&amp;gt;D_{n,1}, D_{n,2}&amp;lt;/math&amp;gt; are still interchangeable).&lt;br /&gt;
&lt;br /&gt;
Another useful construction proceeds by using the slices &amp;lt;math&amp;gt;\Gamma_{a,b,c} \subset [3]^n&amp;lt;/math&amp;gt; for &amp;lt;math&amp;gt;(a,b,c)&amp;lt;/math&amp;gt; in the triangular grid&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\Delta_n := \{ (a,b,c) \in {\Bbb Z}_+^3: a+b+c = n \},&amp;lt;/math&amp;gt;.  (2)&lt;br /&gt;
&lt;br /&gt;
where &amp;lt;math&amp;gt;\Gamma_{a,b,c}&amp;lt;/math&amp;gt; is defined as the strings in &amp;lt;math&amp;gt;[3]^n&amp;lt;/math&amp;gt; with &amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt; 1s, &amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt; 2s, and &amp;lt;math&amp;gt;c&amp;lt;/math&amp;gt; 3s.  Note that&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;|\Gamma_{a,b,c}| = \frac{n!}{a! b! c!}.&amp;lt;/math&amp;gt; (3)&lt;br /&gt;
&lt;br /&gt;
Given any set &amp;lt;math&amp;gt;B \subset \Delta_n&amp;lt;/math&amp;gt; that avoids equilateral triangles &amp;lt;math&amp;gt; (a+r,b,c), (a,b+r,c), (a,b,c+r)&amp;lt;/math&amp;gt;, the set&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\Gamma_B := \bigcup_{(a,b,c) \in B} \Gamma_{a,b,c}&amp;lt;/math&amp;gt; (4)&lt;br /&gt;
&lt;br /&gt;
is line-free and has cardinality&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;|\Gamma_B| = \sum_{(a,b,c) \in B} \frac{n!}{a! b! c!},&amp;lt;/math&amp;gt; (5)&lt;br /&gt;
&lt;br /&gt;
and thus provides a lower bound for &amp;lt;math&amp;gt;c_n&amp;lt;/math&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;c_n \geq \sum_{(a,b,c) \in B} \frac{n!}{a! b! c!}.&amp;lt;/math&amp;gt; (6)&lt;br /&gt;
&lt;br /&gt;
All lower bounds on &amp;lt;math&amp;gt;c_n&amp;lt;/math&amp;gt; have proceeded so far by choosing a good set of B and applying (6).  Note that &amp;lt;math&amp;gt;D_n&amp;lt;/math&amp;gt; is the same as &amp;lt;math&amp;gt;\Gamma_{B_n}&amp;lt;/math&amp;gt;, where &amp;lt;math&amp;gt;B_n&amp;lt;/math&amp;gt; consists of those triples &amp;lt;math&amp;gt;(a,b,c) \in \Delta_n&amp;lt;/math&amp;gt; in which &amp;lt;math&amp;gt;a \neq b\ \operatorname{mod}\ 3&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Note that if one takes a line-free set and permutes the alphabet &amp;lt;math&amp;gt;\{1,2,3\}&amp;lt;/math&amp;gt; in any fashion (e.g. replacing all 1s by 2s and vice versa), one also gets a line-free set.  This potentially gives six examples from any given starting example of a line-free set, though in practice there is enough symmetry that the total number of examples produced this way is less than six.  (These six examples also correspond to the six symmetries of the triangular grid &amp;lt;math&amp;gt;\Delta_n&amp;lt;/math&amp;gt; formed by rotation and reflection.)&lt;br /&gt;
&lt;br /&gt;
Another symmetry comes from permuting the &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt; indices in the strings of &amp;lt;math&amp;gt;[3]^n&amp;lt;/math&amp;gt; (e.g. replacing every string by its reversal).  But the sets &amp;lt;math&amp;gt;\Gamma_B&amp;lt;/math&amp;gt; are automatically invariant under such permutations and thus do not produce new line-free sets via this symmetry.&lt;br /&gt;
&lt;br /&gt;
== The basic upper bound ==&lt;br /&gt;
&lt;br /&gt;
Because &amp;lt;math&amp;gt;[3]^{n+1}&amp;lt;/math&amp;gt; can be expressed as the union of three copies of &amp;lt;math&amp;gt;[3]^n&amp;lt;/math&amp;gt;, we have the basic upper bound&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;c_{n+1} \leq 3 c_n.&amp;lt;/math&amp;gt; (7)&lt;br /&gt;
&lt;br /&gt;
Note that equality only occurs if one can find an &amp;lt;math&amp;gt;n+1&amp;lt;/math&amp;gt;-dimensional line-free set such that every n-dimensional slice has the maximum possible cardinality of &amp;lt;math&amp;gt;c_n&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== n=0 ==&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;c_0=1&amp;lt;/math&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
This is clear.&lt;br /&gt;
&lt;br /&gt;
== n=1 ==&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;c_1=2&amp;lt;/math&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
The three sets &amp;lt;math&amp;gt;D_1 = \{1,2\}&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;D_{1,1} = \{2,3\}&amp;lt;/math&amp;gt;, and &amp;lt;math&amp;gt;D_{1,2} = \{1,3\}&amp;lt;/math&amp;gt; are the only two-element sets which are line-free in &amp;lt;math&amp;gt;[3]^1&amp;lt;/math&amp;gt;, and there are no three-element sets.&lt;br /&gt;
&lt;br /&gt;
== n=2 ==&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;c_2=6&amp;lt;/math&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
There are four six-element sets in &amp;lt;math&amp;gt;[3]^2&amp;lt;/math&amp;gt; which are line-free, which we denote &amp;lt;math&amp;gt;x = D_{2,2}&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;y=D_{2,1}&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;z=D_2&amp;lt;/math&amp;gt;, and &amp;lt;math&amp;gt;w&amp;lt;/math&amp;gt; and are displayed graphically as follows.&lt;br /&gt;
&lt;br /&gt;
     13 .. 33       .. 23 33       13 23 ..       13 23 ..&lt;br /&gt;
 x = 12 22 ..   y = 12 .. 32   z = .. 22 32   w = 12 .. 32&lt;br /&gt;
     .. 21 31       11 21 ..       11 .. 31       .. 21 31&lt;br /&gt;
&lt;br /&gt;
Combining this with the basic upper bound (7) we see that &amp;lt;math&amp;gt;c_2=6&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== n=3 ==&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;c_3=18&amp;lt;/math&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
We describe a subset &amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt; of &amp;lt;math&amp;gt;[3]^3&amp;lt;/math&amp;gt; as a string &amp;lt;math&amp;gt;abc&amp;lt;/math&amp;gt;, where &amp;lt;math&amp;gt;a, b, c \subset [3]^2&amp;lt;/math&amp;gt; correspond to strings of the form &amp;lt;math&amp;gt;1**&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;2**&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;3**&amp;lt;/math&amp;gt; in &amp;lt;math&amp;gt;[3]^3&amp;lt;/math&amp;gt; respectively.  Thus for instance &amp;lt;math&amp;gt;D_3 = xyz&amp;lt;/math&amp;gt;, and so from (7) we have &amp;lt;math&amp;gt;c_3=18&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Lemma 1.&#039;&#039;&#039;&lt;br /&gt;
* The only 18-element line-free subset of &amp;lt;math&amp;gt;[3]^3&amp;lt;/math&amp;gt; is &amp;lt;math&amp;gt;D_3 = xyz&amp;lt;/math&amp;gt;.&lt;br /&gt;
* The only 17-element line-free subsets of &amp;lt;math&amp;gt;[3]^3&amp;lt;/math&amp;gt; are formed by removing a point from &amp;lt;math&amp;gt;D_3=xyz&amp;lt;/math&amp;gt;, or by removing either 111, 222, or 333 from &amp;lt;math&amp;gt;D_{3,2} = yzx&amp;lt;/math&amp;gt; or &amp;lt;math&amp;gt;D_{3,3}=zxy&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039;.  We prove the second claim. As &amp;lt;math&amp;gt;17=6+6+5&amp;lt;/math&amp;gt;, and &amp;lt;math&amp;gt;c_2=6&amp;lt;/math&amp;gt;, at least two of the slices of a 17-element line-free set must be from x, y, z, w, with the third slice having 5 points.  If two of the slices are identical, the last slice can have only 3 points, a contradiction.  If one of the slices is a w, then the 5-point slice will contain a diagonal, contradiction.  By symmetry we may now assume that two of the slices are x and y, which force the last slice to be z with one point removed.  Now one sees that the slices must be in the order xyz, yzx, or zxy, because any other combination has too many lines that need to be removed.  The sets yzx, zxy contain the diagonal {111,222,333} and so one additional point needs to be removed. &lt;br /&gt;
&lt;br /&gt;
The first claim follows by a similar argument to the second.&lt;br /&gt;
&amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== n=4 ==&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;c_4=52&amp;lt;/math&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
Indeed, divide a line-free set in &amp;lt;math&amp;gt;[3]^4&amp;lt;/math&amp;gt; into three blocks &amp;lt;math&amp;gt;1***, 2***, 3***&amp;lt;/math&amp;gt; of &amp;lt;math&amp;gt;[3]^3&amp;lt;/math&amp;gt;.  If two of them are of size 18, then they must both be xyz, and the third block can have at most 6 elements, leading to an inferior bound of 42.  So the best one can do is &amp;lt;math&amp;gt;18+17+17=52&amp;lt;/math&amp;gt; which can be attained by deleting the diagonal {1111,2222,3333} from &amp;lt;math&amp;gt;D_{4,1} = xyz\ yzx\ xzy&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;D_4 = yzx\ zxy\ xyz&amp;lt;/math&amp;gt;, or &amp;lt;math&amp;gt;D_{4,2} = zxy\ xyz\ yzx&amp;lt;/math&amp;gt;.  In fact,&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Lemma 2.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* The only 52-element line-free sets in &amp;lt;math&amp;gt;[3]^4&amp;lt;/math&amp;gt; are formed by removing the diagonal {1111,2222,3333} from &amp;lt;math&amp;gt;D_{4,j}&amp;lt;/math&amp;gt; for some j=0,1,2.&lt;br /&gt;
* The only 51-element line-free sets in &amp;lt;math&amp;gt;[3]^4&amp;lt;/math&amp;gt; are formed by removing the diagonal and one further point from &amp;lt;math&amp;gt;D_{4,j}&amp;lt;/math&amp;gt; for some j=0,1,2.&lt;br /&gt;
* The only 50-element line-free sets in &amp;lt;math&amp;gt;[3]^4&amp;lt;/math&amp;gt; are formed by removing the diagonal and two further points from &amp;lt;math&amp;gt;D_{4,j}&amp;lt;/math&amp;gt; for some j=0,1,2  OR is equal to one of the three permutations of the set &amp;lt;math&amp;gt;X := \Gamma_{3,1,0} \cup \Gamma_{3,0,1} \cup \Gamma_{2,2,0} \cup \Gamma_{2,0,2} \cup \Gamma_{1,1,2} \cup \Gamma_{1,2,1} \cup \Gamma_{0,2,2}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; It suffices to prove the third claim.  In fact it suffices to show that every 50-point line-free set is either contained in the 54-point set &amp;lt;math&amp;gt;D_{4,j}&amp;lt;/math&amp;gt; for some j=0,1,2, or is some permutation of the set X. Indeed, if a 50-point line-free set is contained in, say, &amp;lt;math&amp;gt;D_4&amp;lt;/math&amp;gt;, then it cannot contain 2222, since otherwise it must omit one point from each of the four pairs formed from {2333, 2111} by permuting the indices, and must also omit one of {1111, 1222, 1333}, leading to at most 49 points in all; similarly, it cannot contain 1111, and so omits the entire diagonal {1111,2222,3333}, with two more points to be omitted.  Similarly when &amp;lt;math&amp;gt;D_4&amp;lt;/math&amp;gt; is replaced by one of the other &amp;lt;math&amp;gt;D_{4,j}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Next, observe that every three-dimensional slice of a line-free set can have at most &amp;lt;math&amp;gt;c_3=18&amp;lt;/math&amp;gt; points; thus when one partitions a 50-point line-free set into three such slices, it must divide either as 18+16+16, 17+17+16, or some permutation of these.&lt;br /&gt;
&lt;br /&gt;
Suppose that we can slice the set into two slices of 17 points and one slice of 16 points.  By the various symmetries, we may assume that the 1*** slice and 2*** slices have 17 points, and the 3*** slice has 16 points.  By Lemma 1, the 1-slice is &amp;lt;math&amp;gt;\{1\} \times D_{3,j}&amp;lt;/math&amp;gt; with one point removed, and the 2-slice is &amp;lt;math&amp;gt;\{2\} \times D_{3,k}&amp;lt;/math&amp;gt; with one point removed, for some &amp;lt;math&amp;gt;j,k \in \{0,1,2\}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
If j=k, then the 1-slice and 2-slice have at least 15 points in common, so the 3-slice can have at most &amp;lt;math&amp;gt;27-15=12&amp;lt;/math&amp;gt; points, a contradiction.  If jk = 01, 12, or 20, then observe that from Lemma 1 the *1**, *2**, *3** slices cannot equal a 17-point or 18-point line-free set, so each have at most 16 points, leading to only 48 points in all, a contradiction.  Thus we must have jk = 10, 21, or 02.&lt;br /&gt;
&lt;br /&gt;
Let&#039;s first suppose that jk=02.  Then by Lemma 1, the 2*** slice contains the nine points formed from {2211, 2322, 2331} and permuting the last three indices, while the 1*** slice contains at least eight of the nine points formed from {1211, 1322, 1311} and permuting the last three indices.  Thus the 3*** slice can contain at most one of the nine points formed from {3211, 3322, 3311} and permuting the last three indices.  If it does contain one of these points, say 3211, then it must omit one point from each of the four pairs {3222, 3233}, {3212, 3213}, {3221, 3231}, {3111, 3311}, leading to at most 15 points on this slice, a contradiction.  So the 3*** slice must omit all nine points, and is therefore contained in &amp;lt;math&amp;gt;\{3\} \times D_{4,1}&amp;lt;/math&amp;gt;, and so the 50-point set is contained in &amp;lt;math&amp;gt;D_{4,1}&amp;lt;/math&amp;gt;, and we are done by the discussion at the beginning of the proof.&lt;br /&gt;
&lt;br /&gt;
The case jk=10 is similar to the jk=02 case (indeed one can get from one case to the other by swapping the 1 and 2 indices).  Now suppose instead that jk=12.  Then by Lemma 1, the 1*** slice contains the six points from permuting the last three indices of 1123, and similarly the 2*** slice contains the six points from permuting the last three indices of 2123.  Thus the 3*** slice must avoid all six points formed by permuting the last three indices of 3123.  Similarly, as 1133 lies in the 1*** slice and 2233 lies in the 2*** slice, 3333 must be avoided in the 3*** slice.&lt;br /&gt;
&lt;br /&gt;
Now we claim that 3111 must be avoided also; for if 3111 was in the set, then one point from each of the six pairs formed from {3311, 3211}, {3331, 3221} and permuting the last three indices must lie outside the 3*** slice, which reduces the size of that slice to at most &amp;lt;math&amp;gt;27-6-1-6=14&amp;lt;/math&amp;gt;, which is too small.  Similarly, 3222 must be avoided, which puts the 3*** slice inside &amp;lt;math&amp;gt;\{3\} \times D_3&amp;lt;/math&amp;gt; and then places the 50-point set inside &amp;lt;math&amp;gt;D_4&amp;lt;/math&amp;gt;, and we are done by the discussion at the beginning of the proof.&lt;br /&gt;
&lt;br /&gt;
We have handled the case in which at least one of the slicings of the 50-point set is of the form 50=17+17+16.  The only remaining case is when all slicings of the 50-point set are of the form 18+17+16 (or a permutation thereof).  By the symmetries of the situation, we may assume that the 1*** slice has 18 points, and thus by Lemma 1 takes the form &amp;lt;math&amp;gt;\{1\} \times D_3&amp;lt;/math&amp;gt;.  Inspecting the *1**, *2**, *3** slices, we then see (from Lemma 1) that only the *1** slice can have 18 points; since we are assuming that this slicing is some permutation of 50=18+17+16, we conclude that the *1** slice must have exactly 18 points, and is thus described precisely by Lemma 1.  Similarly for the **1* and ***1 slices.  Indeed, by Lemma 1, we see that the 50-point set must agree exactly with &amp;lt;math&amp;gt;D_{4,1}&amp;lt;/math&amp;gt; on any of these slices.  In particular, on the remaining portion &amp;lt;math&amp;gt;\{2,3\}^4&amp;lt;/math&amp;gt; of the cube, there are exactly 6 points of the 50-point set in &amp;lt;math&amp;gt;\{2,3\}^4&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Suppose that 3333 was in the set; then since all permutations of 3311, 3331 are known to lie in the set, then 3322, 3332 must lie outside the set.  Also, as 1222 lies in the set, at least one of 2222, 3222 lie outside the set.  This leaves only 5 points in &amp;lt;math&amp;gt;\{2,3\}^4&amp;lt;/math&amp;gt;, a contradiction.  Thus 3333 lies outside the set; similarly 2222 lies outside the set.&lt;br /&gt;
&lt;br /&gt;
Let a be the number of points in the 50-point set which are some permutation of 2233, thus &amp;lt;math&amp;gt;0 \leq a \leq 6&amp;lt;/math&amp;gt;.  If a=0 then the set lies in &amp;lt;math&amp;gt;D_{4,1}&amp;lt;/math&amp;gt; and we are done.  If a=6 then the set is exactly X and we are done.  Now suppose a=1,2,3.  By symmetry we may assume that 2233 lies in the set.  Then (since 2133, 1233 2231, 2213 are known to lie in the set) 2333, 3233, 2223, 2232 lie outside the set, which leaves at most 5 points inside &amp;lt;math&amp;gt;\{2,3\}^4&amp;lt;/math&amp;gt;, a contradiction.&lt;br /&gt;
&lt;br /&gt;
The remaining case is when a=4,5.  Then one of the three pairs {2233, 3322}, {2323, 3232}, {2332, 3223} lie in the set.  By symmetry we may assume that {2233, 3322} lie in the set.  Then by arguing as before we see that all eight points formed by permuting 2333 or 3222 lie outside the set, leading to at most 5 points inside &amp;lt;math&amp;gt;\{2,3\}^4&amp;lt;/math&amp;gt;, a contradiction.&lt;br /&gt;
&amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== n=5 ==&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;c_5=150&amp;lt;/math&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Lemma 3&#039;&#039;&#039;.  Any line-free subset of &amp;lt;math&amp;gt;D_{5,j}&amp;lt;/math&amp;gt; can have at most 150 points.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039;.  By rotation we may work with &amp;lt;math&amp;gt;D_5&amp;lt;/math&amp;gt;.  This set has 162 points.  By looking at the triplets {10000, 11110, 12220} and cyclic permutations we must lose 5 points; similarly from the triplets {20000,22220, 21110} and cyclic permutations.  Finally from {11000,11111,11222} and {22000,22222,22111} we lose two more points. &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Equality can be attained by removing  &amp;lt;math&amp;gt;\Gamma_{0,4,1}, \Gamma_{0,5,0}, \Gamma_{4,0,1}, \Gamma_{5,0,0}&amp;lt;/math&amp;gt; from &amp;lt;math&amp;gt;D_5&amp;lt;/math&amp;gt;.  Thus &amp;lt;math&amp;gt;c_5 \geq 150&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Another pattern of 150 points is this: Take the 450 points&lt;br /&gt;
in &amp;lt;math&amp;gt;{}[3]^6&amp;lt;/math&amp;gt; which are (1,2,3), (0,2,4) and permutations,&lt;br /&gt;
then select the 150 whose final coordinate is 1. That gives&lt;br /&gt;
this many points in each cube:&lt;br /&gt;
&lt;br /&gt;
17 18 17&lt;br /&gt;
&lt;br /&gt;
17 17 18&lt;br /&gt;
&lt;br /&gt;
12 17 17&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Lemma 4&#039;&#039;&#039;.  A line-free subset of &amp;lt;math&amp;gt;[3]^5&amp;lt;/math&amp;gt; with over 150 points cannot have two parallel &amp;lt;math&amp;gt;[3]^4&amp;lt;/math&amp;gt; slices, each of which contain at least 51 points.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039;.  Suppose not.  By symmetry, we may assume that the 1**** and 2**** slices have at least 51 points, and that the whole set has at least 151 points, which force the third slice to have at least &amp;lt;math&amp;gt;151-2c_4 = 47&amp;lt;/math&amp;gt; points.&lt;br /&gt;
&lt;br /&gt;
By Lemma 2, the 1**** slice takes the form &amp;lt;math&amp;gt;\{1\} \times D_{4,j}&amp;lt;/math&amp;gt; for some &amp;lt;math&amp;gt;j=0,1,2&amp;lt;/math&amp;gt; with the diagonal {11111,12222,13333} and possibly one more point removed, and similarly the 2**** slice takes the form &amp;lt;math&amp;gt;\{2\} \times D_{4,k}&amp;lt;/math&amp;gt; for some &amp;lt;math&amp;gt;k=0,1,2&amp;lt;/math&amp;gt; with the diagonal {21111,22222,23333} and possibly one more point removed.&lt;br /&gt;
&lt;br /&gt;
Suppose first that j=k.  Then the 1-slice and 2-slice have at least 50 points in common, leaving at most 31 points for the 3-slice, a contradiction.  Next, suppose that jk=01.  Then observe that the *i*** slice cannot look like any of the configurations in Lemma 2 and so must have at most 50 points for i=1,2,3, leading to 150 points in all, a contradiction.  Similarly if jk=12 or 20.  Thus we must have jk equal to 10, 21, or 02.&lt;br /&gt;
&lt;br /&gt;
Let&#039;s suppose first that jk=10.  The first slice then is equal to &amp;lt;math&amp;gt;\{1\} \times D_{4,1}&amp;lt;/math&amp;gt; with the diagonal and possibly one more point removed, while the second slice is equal to &amp;lt;math&amp;gt;\{2\} \times D_{4,0}&amp;lt;/math&amp;gt; with the diagonal and possibly one more point removed.  Superimposing these slices, we thus see that the third slice is contained in &amp;lt;math&amp;gt;\{3\} \times D_{4,2}&amp;lt;/math&amp;gt; except possibly for two additional points, together with the one point 32222 of the diagonal that lies outside of &amp;lt;math&amp;gt;\{3\} \times D_{4,2}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
The lines x12xx, x13xx (plus permutations of the last four digits) must each contain one point outside the set.  The first two slices can only absorb two of these, and so at least 14 of the 16 points formed by permuting the last four digits of 31233, 31333 must lie outside the set.  These points all lie in &amp;lt;math&amp;gt;\{3\} \times D_{4,2}&amp;lt;/math&amp;gt;, and so the 3**** slice can have at most &amp;lt;math&amp;gt;|D_{4,2}|-14+3=43&amp;lt;/math&amp;gt; points, a contradiction.&lt;br /&gt;
&lt;br /&gt;
The case jk=02 is similar to the case jk=10 (indeed one can obtain one from the other by swapping 1 and 2).  Now we turn to the case jk=21.  Arguing as before we see that the third slice is contained in &amp;lt;math&amp;gt;\{3\} \times D_4&amp;lt;/math&amp;gt; except possibly for two points, together with 33333.  &lt;br /&gt;
&lt;br /&gt;
If 33333 was in the set, then each of the lines xx333, xxx33 (and permutations of the last four digits) must have a point missing from the first two slices, which cannot be absorbed by the two points we are permitted to remove; thus 33333 is not in the set.  For similar reasons, 33331 is not in the set, as can be seen by looking at xxx31 and permutations of the last four digits.  Indeed, any string containing four threes does not lie in the set; this means that at least 8 points are missing from &amp;lt;math&amp;gt;\{3\} \times D_4&amp;lt;/math&amp;gt;, leaving only at most 46 points inside that set.  Furthermore, any point in the 3**** slice outside of &amp;lt;math&amp;gt;\{3\} \times D_4&amp;lt;/math&amp;gt; can only be created by removing a point from the first two slices, so the total cardinality is at most &amp;lt;math&amp;gt;46+52+52 = 150&amp;lt;/math&amp;gt;, a contradiction.&amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Corollary&#039;&#039;&#039;. &amp;lt;math&amp;gt;c_5 \leq 152&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039;.  By Lemma 4 and the bound &amp;lt;math&amp;gt;c_4=52&amp;lt;/math&amp;gt;, any line-free set with over 150 points can have one slice of cardinality 52, but then the other two slices can have at most 50 points. &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Lemma 5&#039;&#039;&#039; Any solution with 151 or more points has a slice with at most 49 points.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; Suppose we have 151 points without a line, and each of three slices has at least 50 points.&lt;br /&gt;
&lt;br /&gt;
Using earlier notation, we split subsets of &amp;lt;math&amp;gt;[3]^4&amp;lt;/math&amp;gt; into nine subsets of &amp;lt;math&amp;gt;[3]^2&amp;lt;/math&amp;gt;.  &lt;br /&gt;
So we think of x,y,z,a,b and c as subsets of a square.  Each slice is one of the following.&lt;br /&gt;
*&amp;lt;math&amp;gt;D_4 = y&#039;zx,zx&#039;y,xyz&amp;lt;/math&amp;gt; (with one or two points removed)&lt;br /&gt;
*&amp;lt;math&amp;gt;D_{4,2} = z&#039;xy,xyz,yzx&#039;&amp;lt;/math&amp;gt; (with one or two points removed)&lt;br /&gt;
*&amp;lt;math&amp;gt;D_{4,1} = xyz,yz&#039;x,zxy&#039;&amp;lt;/math&amp;gt; (with one or two points removed)&lt;br /&gt;
*&amp;lt;math&amp;gt;X = xyz, ybw, zwc&amp;lt;/math&amp;gt;&lt;br /&gt;
*&amp;lt;math&amp;gt;Y = axw, xyz, wzc&amp;lt;/math&amp;gt;&lt;br /&gt;
*&amp;lt;math&amp;gt;Z = awx, wby, xyz&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where a, b and c have four points each.&lt;br /&gt;
&lt;br /&gt;
        .. 32 33          31 .. 33         .. .. ..&lt;br /&gt;
    a = .. 22 23      b = .. .. ..     c = 21 22 ..&lt;br /&gt;
        .. .. ..          11 .. 13         11 12 ..&lt;br /&gt;
&lt;br /&gt;
x&#039;, y&#039; and z&#039; are subsets of x, y and z respectively, and have five points each.&lt;br /&gt;
&lt;br /&gt;
Suppose all three slices are subsets of &amp;lt;math&amp;gt;D_{4,j}&amp;lt;/math&amp;gt;.  &lt;br /&gt;
We can remove at most five points from the full set of three D_{4,j}.  &lt;br /&gt;
Consider columns 2,3,4,6,7,8.  At most two of these columns contain xyz, so one point must be removed from the other four.&lt;br /&gt;
This uses up all but one of the removals.&lt;br /&gt;
So the slices must be &amp;lt;math&amp;gt;D_{4,2},D_{4,1},D_{4,0}&amp;lt;/math&amp;gt; or a cyclic permutation of that.&lt;br /&gt;
Then the cube, which contains the first square of slice 1; the fifth square of slice 2; &lt;br /&gt;
and the ninth square of slice 3, contains three copies of the same square.  &lt;br /&gt;
It takes more than one point removed to remove all lines from that cube.&lt;br /&gt;
So we can&#039;t have all three slices subsets of &amp;lt;math&amp;gt;D_{4,j}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Suppose one slice is X,Y or Z, and two others are subsets of &amp;lt;math&amp;gt;D_{4,j}&amp;lt;/math&amp;gt;.  &lt;br /&gt;
We can remove at most three points from the full &amp;lt;math&amp;gt;D_{4,j}&amp;lt;/math&amp;gt;&lt;br /&gt;
By symmetry, suppose one slice is X.  Consider columns 2,3,4 and 7.  They must be cyclic permutations of x,y,z,&lt;br /&gt;
and two of them are not xyz, so must lose a point.  &lt;br /&gt;
Columns 6 and 8 must both lose a point, and we only have 150 points left.&lt;br /&gt;
So if one slice is X,Y or Z, the full set contains a line.&lt;br /&gt;
&lt;br /&gt;
Suppose two slices are from X,Y and Z, and the other is a subset of &amp;lt;math&amp;gt;D_{4,j}&amp;lt;/math&amp;gt;.  &lt;br /&gt;
By symmetry, suppose two slices are X and Y.  Columns 3,6,7 and 8 all contain w, and therefore at most 16 points each.&lt;br /&gt;
Columns 1,5 and 9 contain a,b, or c, and therefore at most 16 points. &lt;br /&gt;
So the total number of points is at most 7*16+2*18 = 148.  This contradicts the assumption of 151 points.&lt;br /&gt;
&amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Corollary&#039;&#039;&#039; &amp;lt;math&amp;gt;c_5 \leq 151 &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; By Lemmas 2 and 4, the maximum number of points is 52+50+49=151. &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Lemma 5.1&#039;&#039;&#039; No solution with 151 points contains as a slice the X defined in Lemma 2&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; Suppose one row is X.  Another row is &amp;lt;math&amp;gt;D_{4,j}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Suppose X is in the first row.  Label the other rows with letters from the alphabet.&lt;br /&gt;
&lt;br /&gt;
xyz ybw zwc&lt;br /&gt;
&lt;br /&gt;
mno pqr stu&lt;br /&gt;
&lt;br /&gt;
def ghi jkl&lt;br /&gt;
&lt;br /&gt;
Reslice the array into a left nine, middle nine and right nine.  One of these squares&lt;br /&gt;
contains 52 points, and it can only be the left nine.  One of its three columns contains&lt;br /&gt;
18 points, and it can only be its left-hand column, xmd.  So m=y and d=z.  But none of the {math&amp;gt;D_{4,j}&amp;lt;/math&amp;gt; begins with y or z, which is a contradiction.  So X is not in the first row.&lt;br /&gt;
&lt;br /&gt;
So X is in the second or third row.  By symmetry, suppose it is in the second row&lt;br /&gt;
&lt;br /&gt;
def ghi jkl&lt;br /&gt;
&lt;br /&gt;
xyz ybw zwc&lt;br /&gt;
&lt;br /&gt;
mno pqr stu&lt;br /&gt;
&lt;br /&gt;
Again, the left-hand nine must contain 52 points, so it is &amp;lt;math&amp;gt;D_{4,2}&amp;lt;/math&amp;gt;.&lt;br /&gt;
So either the first row is &amp;lt;math&amp;gt;D_{4,2}&amp;lt;/math&amp;gt; or the third row is &amp;lt;math&amp;gt;D_{4,0}&amp;lt;/math&amp;gt;.&lt;br /&gt;
If the first row is &amp;lt;math&amp;gt;D_{4,2}&amp;lt;/math&amp;gt; then the only way to have 50 points in the middle or right-hand nine is if the middle nine is X&lt;br /&gt;
&lt;br /&gt;
z&#039;xy xyz yzx&#039;&lt;br /&gt;
&lt;br /&gt;
xyz  ybw zwc&lt;br /&gt;
&lt;br /&gt;
yzx&#039; zwc stu&lt;br /&gt;
&lt;br /&gt;
In the seventh column, s contains 5 points and in the eighth column, t contains 4 points.&lt;br /&gt;
The final row can now contain at most 48 points, and the whole array contains only 52+50+48 = 150 points.&lt;br /&gt;
&lt;br /&gt;
If the third row is &amp;lt;math&amp;gt;D_{4,0}&amp;lt;/math&amp;gt;, then neither the middle nine nor the right-hand nine contains 50 points, by the classification of Lemma 4 and the formulas at the start of Lemma 5.&lt;br /&gt;
Again, only 52+49+49 = 150 points are possible.&lt;br /&gt;
&lt;br /&gt;
A similar argument is possible if X is in the third row; or if X is replaced by Y or Z.&lt;br /&gt;
&lt;br /&gt;
So when a 151-point set is sliced into three, one slice is &amp;lt;math&amp;gt;D_{4,j}&amp;lt;/math&amp;gt; and another slice is 50 points contained in &amp;lt;math&amp;gt;D_{4,k}&amp;lt;/math&amp;gt;. &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Lemma 5.2&#039;&#039;&#039; There is no 151-point solution&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; Assume by symmetry that the first row contains 52 points and the second row contains 50.&lt;br /&gt;
&lt;br /&gt;
If &amp;lt;math&amp;gt;D_{4,1}&amp;lt;/math&amp;gt; is in the first row, then the second row must be contained in &amp;lt;math&amp;gt;D_{4,0}&amp;lt;/math&amp;gt;.  &lt;br /&gt;
&lt;br /&gt;
xyz  yz&#039;x zxy&#039;&lt;br /&gt;
&lt;br /&gt;
y&#039;zx zx&#039;y xyz&lt;br /&gt;
&lt;br /&gt;
def  ghi  jkl&lt;br /&gt;
&lt;br /&gt;
But then none of the left nine, middle nine or right nine can contain 52 points, which contradicts the corollary to Lemma 5.&lt;br /&gt;
&lt;br /&gt;
Suppose the first row contains D_{4,0}.  Then the second row is contained in &amp;lt;math&amp;gt;D_{4,2}&amp;lt;/math&amp;gt;, otherwise the cubes formed from the nine columns of the diagram would need to remove too many points.&lt;br /&gt;
&lt;br /&gt;
y&#039;zx zx&#039;y xyz&lt;br /&gt;
&lt;br /&gt;
z&#039;xy xyz  yzx&#039;&lt;br /&gt;
&lt;br /&gt;
def  ghi  jkl&lt;br /&gt;
&lt;br /&gt;
But then neither the left nine, middle nine or right nine contains 52 points.&lt;br /&gt;
&lt;br /&gt;
So the first row contains &amp;lt;math&amp;gt;D_{4,2}&amp;lt;/math&amp;gt;, and the second row is contained in &amp;lt;math&amp;gt;D_{4,1}&amp;lt;/math&amp;gt;.  Two points may be removed from the second row of this diagram.&lt;br /&gt;
&lt;br /&gt;
z&#039;xy xyz  yzx&#039;&lt;br /&gt;
&lt;br /&gt;
xyz  yz&#039;x zxy&#039;&lt;br /&gt;
&lt;br /&gt;
def  ghi  jkl&lt;br /&gt;
&lt;br /&gt;
Slice it into the left nine, middle nine and right nine.  Two of them are contained in &amp;lt;math&amp;gt;D_{4,j}&amp;lt;/math&amp;gt;&lt;br /&gt;
so at least two of def, ghi, and jkl are contained in the corresponding slice of &amp;lt;math&amp;gt;D_{4,0}&amp;lt;/math&amp;gt;.&lt;br /&gt;
Slice along a different axis, and at least two of dgj,ehk,fil are contained in the corresponding slice of &lt;br /&gt;
&amp;lt;math&amp;gt;D_{4,0}&amp;lt;/math&amp;gt;.  &lt;br /&gt;
So eight of the nine squares in the bottom row are contained in the corresponding square of &amp;lt;math&amp;gt;D_{4,0}&amp;lt;/math&amp;gt;.&lt;br /&gt;
Indeed, slice along other axes, and all points except one are contained within &amp;lt;math&amp;gt;D_{4,0}&amp;lt;/math&amp;gt;.  &lt;br /&gt;
This point is the intersection of all the 49-point slices.  &lt;br /&gt;
&lt;br /&gt;
So, if there is a 151-point solution, then after removal of the specified point, &lt;br /&gt;
there is a 150-point solution, within &amp;lt;math&amp;gt;D_{5,j}&amp;lt;/math&amp;gt;, whose slices in each direction are 52+50+48.&lt;br /&gt;
&lt;br /&gt;
z&#039;xy xyz  yzx&#039;&lt;br /&gt;
&lt;br /&gt;
xyz  yz&#039;x zxy&#039;&lt;br /&gt;
&lt;br /&gt;
y&#039;zx zx&#039;y xyz&lt;br /&gt;
&lt;br /&gt;
One point must be lost from columns 3, 6, 7 and 8, and four more from the major diagonal z&#039;z&#039;z.  That leaves 148 points instead of 150.&lt;br /&gt;
&lt;br /&gt;
So the 150-point solution does not exist with 52+50+48 slices; so the 151 point solution does not exist.&amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
An integer programming method has established the upper bound &amp;lt;math&amp;gt;c_5\leq 150&amp;lt;/math&amp;gt;, with 12 extremal solutions.&lt;br /&gt;
&lt;br /&gt;
[http://abel.math.umu.se/~klasm/extremal-c5 This file] contains the extermisers. One point per line and different extermisers separated by a line with “—”&lt;br /&gt;
&lt;br /&gt;
[http://abel.math.umu.se/~klasm/linprog-d=5-t=3.lpt This is the linear program], readable by Gnu’s glpsol linear programing solver, which also quickly proves that 150 is the optimum.&lt;br /&gt;
&lt;br /&gt;
Each variable corresponds to a point in the cube, numbered according to their lexicografic ordering. If a variable is 1 then the point is in the set, if it is 0 then it is not in the set.&lt;br /&gt;
There is one linear inequality for each combinatorial line, stating that at least one point must be missing from the line.&lt;br /&gt;
&lt;br /&gt;
== n=6 ==&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;c_6=450&amp;lt;/math&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
The upper bound follows since &amp;lt;math&amp;gt;c_6 \leq 3 c_5&amp;lt;/math&amp;gt;.   The lower bound can be formed by gluing together all the [[slice]]s &amp;lt;math&amp;gt;\Gamma_{a,b,c}&amp;lt;/math&amp;gt; where (a,b,c) is a permutation of (0,2,4) or (1,2,3).&lt;br /&gt;
&lt;br /&gt;
Computer verification, using the &amp;lt;math&amp;gt;c_5=150&amp;lt;/math&amp;gt; extremals, has shown that there is exactly one extremiser for &amp;lt;math&amp;gt;c_6=450&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== n=7 ==&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;1302 \leq c_7 \leq 1348&amp;lt;/math&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
To see the upper bound &amp;lt;math&amp;gt;c_7 \leq 3c_6-2&amp;lt;/math&amp;gt;, observe that if two parallel six-dimensional slices had &amp;lt;math&amp;gt;c_6&amp;lt;/math&amp;gt; points, then by uniqueness they are identical, and the third slice can have at most &amp;lt;math&amp;gt;3^6-c_6=279&amp;lt;/math&amp;gt; points, far too few to get anywhere close to &amp;lt;math&amp;gt;1348&amp;lt;/math&amp;gt;.  Thus there can be at most one slice with &amp;lt;math&amp;gt;c_6&amp;lt;/math&amp;gt; points, and the other two have at most &amp;lt;math&amp;gt;c_6-1&amp;lt;/math&amp;gt;, giving the claim.&lt;br /&gt;
&lt;br /&gt;
The lower bound can be formed by removing 016,106,052,502,151,511,160,610 from &amp;lt;math&amp;gt;D_7&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Lemma 6&#039;&#039;&#039; Any line-free subset of &amp;lt;math&amp;gt;D_7&amp;lt;/math&amp;gt; has at most 1302 points.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; Start with the 1458 points of &amp;lt;math&amp;gt;D_7&amp;lt;/math&amp;gt;.  You must lose:&lt;br /&gt;
&lt;br /&gt;
* 42 points from (1,2,4),(1,5,1),(4,2,1)&lt;br /&gt;
* 42 points from (2,1,4),(2,4,1),(5,1,1)&lt;br /&gt;
* 21 points from (0,2,5),(0,5,2),(3,2,2)&lt;br /&gt;
* 21 points from (2,0,5),(2,3,2),(5,0,2)&lt;br /&gt;
* 15 points from (0,1,6),(0,4,3),(3,1,3),(0,7,0),(3,4,0),(6,1,0)&lt;br /&gt;
* 15 points from (1,0,6),(1,3,3),(4,0,3),(7,0,0),(4,3,0),(1,6,0)&lt;br /&gt;
&lt;br /&gt;
where (a,b,c) is shorthand for the [[slice]] &amp;lt;math&amp;gt;\Gamma_{a,b,c}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Larger n ==&lt;br /&gt;
&lt;br /&gt;
The following construction gives lower bounds for the number of triangle-free points, &lt;br /&gt;
There are of the order &amp;lt;math&amp;gt;2.7 \sqrt{log(N)/N}3^N&amp;lt;/math&amp;gt; points for large N (N ~ 5000)&lt;br /&gt;
&lt;br /&gt;
It applies when N is a multiple of 3. &lt;br /&gt;
* For N=3M-1, restrict the first digit of a 3M sequence to be 1.  So this construction has exactly one-third as many points for N=3M-1 as it has for N=3M. &lt;br /&gt;
* For N=3M-2, restrict the first two digits of a 3M sequence to be 12.  This leaves roughly one ninth of the points for N=3M-2 as for N=3M.&lt;br /&gt;
&lt;br /&gt;
The current lower bounds for &amp;lt;math&amp;gt;c_{3m}&amp;lt;/math&amp;gt; are built like this, with abc being shorthand for &amp;lt;math&amp;gt;\Gamma_{a,b,c}&amp;lt;/math&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;math&amp;gt;c_3&amp;lt;/math&amp;gt; from (012) and permutations&lt;br /&gt;
* &amp;lt;math&amp;gt;c_6&amp;lt;/math&amp;gt; from (123,024) and perms&lt;br /&gt;
* &amp;lt;math&amp;gt;c_9&amp;lt;/math&amp;gt; from (234,135,045) and perms&lt;br /&gt;
* &amp;lt;math&amp;gt;c_{12}&amp;lt;/math&amp;gt; from (345,246,156,02A,057) and perms (A=10)&lt;br /&gt;
* &amp;lt;math&amp;gt;c_{15}&amp;lt;/math&amp;gt; from (456,357,267,13B,168,04B,078) and perms (B=11)&lt;br /&gt;
&lt;br /&gt;
To get the triples in each row, add 1 to the triples in the previous row; then include new triples that have a zero.&lt;br /&gt;
&lt;br /&gt;
A general formula for these points is given below.  I think that they are triangle-free.  (For N&amp;lt;21, ignore any triple with a negative entry.)&lt;br /&gt;
&lt;br /&gt;
* There are thirteen groups of points in the centre, formed from adding one of the following points, or its permutation, to (M,M,M), when N=3M:&lt;br /&gt;
** (-7,-3,+10), (-7, 0,+7),(-7,+3,+4),(-6,-4,+10),(-6,-1,+7),(-6,+2,+4),(-5,-1,+6),(-5,+2,+3),(-4,-2,+6),(-4,+1,+3),(-3,+1,+2),(-2,0,+2),(-1,0,+1) &lt;br /&gt;
* There are also eight string of points, stretching to the edges of the (abc) triangle:&lt;br /&gt;
** For N=6K = 3M&lt;br /&gt;
*** M+(-8-2x,-6-2x,14+4x),M+(-8-2x,-3-2x,11+4x),M+(-8-2x,x,8+x),M+(-8-2x,3+x,5+x) and permutations (x&amp;gt;=0, M-8-2x&amp;gt;=0)&lt;br /&gt;
*** M+(-9-2x,-5-2x,14+4x),M+(-9-2x,-2-2x,11+4x),M+(-9-2x,1+x,8+x),M+(-9-2x,4+x,5+x) and permutations (x&amp;gt;=0, M-9-2x&amp;gt;=0)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
An alternate construction:&lt;br /&gt;
&lt;br /&gt;
First define a sequence, of all positive numbers which, in base 3, do not contain a 1. Add 1 to all multiples of 3 in this sequence. This sequence does not contain a length-3 arithmetic progression.&lt;br /&gt;
&lt;br /&gt;
It starts 1,2,7,8,19,20,25,26,55, …&lt;br /&gt;
&lt;br /&gt;
Second, list all the (abc) triples for which the larger two differ by a number&lt;br /&gt;
from the sequence, excluding the case when the smaller two differ by 1, but then including the case when (a,b,c) is a permutation of N/3+(-1,0,1)&lt;br /&gt;
&lt;br /&gt;
== Asymptotics ==&lt;br /&gt;
&lt;br /&gt;
DHJ(3) is equivalent to the upper bound&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;c_n \leq o(3^n)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In the opposite direction, observe that if we take a set &amp;lt;math&amp;gt;S \subset [3n]&amp;lt;/math&amp;gt; that contains no 3-term arithmetic progressions, then the set &amp;lt;math&amp;gt;\bigcup_{(a,b,c) \in \Delta_n: a+2b \in S} \Gamma_{a,b,c}&amp;lt;/math&amp;gt; is line-free.  From this and the Behrend construction it appears that we have the lower bound&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;c_n \geq 3^{n-O(\sqrt{\log n})}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
More precisely, we have&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;c_n &amp;gt; C 3^{n - 4\sqrt{\log 2}\sqrt{\log n}+\frac 12 \log \log n}&amp;lt;/math&amp;gt;&lt;br /&gt;
for some absolute constant C, and where all logarithms are base-3.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; For convenience, let n be a multiple of 3. Elkin’s bound gives &amp;lt;math&amp;gt;r_3(\sqrt{n}) &amp;gt; C \sqrt{n} (\log n)^{1/4} \exp_2(-2 \sqrt{\log_2 n})&amp;lt;/math&amp;gt;, and let &amp;lt;math&amp;gt;R&amp;lt;/math&amp;gt; be a subset of &amp;lt;math&amp;gt;(-3\sqrt{n}/2,3\sqrt{n}/2)&amp;lt;/math&amp;gt; without 3-term APs and with size &amp;lt;math&amp;gt;r_3(\sqrt{n})&amp;lt;/math&amp;gt;, and with all elements being integer multiples of 3 (again as a matter of convenience). For each &amp;lt;math&amp;gt;r,s\in R&amp;lt;/math&amp;gt;, let &amp;lt;math&amp;gt;a = (n-r-s)/3&amp;lt;/math&amp;gt;. The set &amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt; is the union of all &amp;lt;math&amp;gt;\Gamma_{a,a+r,a+s}&amp;lt;/math&amp;gt;. Since all of &amp;lt;math&amp;gt;a, a+r,a+s&amp;lt;/math&amp;gt; are between &amp;lt;math&amp;gt;n/3-2\sqrt{n}&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;n/3+2\sqrt{n}&amp;lt;/math&amp;gt;, the size of &amp;lt;math&amp;gt;\Gamma_{a,a+r,a+s}&amp;lt;/math&amp;gt; is at least &amp;lt;math&amp;gt;C 3^n / n&amp;lt;/math&amp;gt;. Since there are &amp;lt;math&amp;gt;r_3(\sqrt{n})^2&amp;lt;/math&amp;gt; choices for r and s, we have a set with size at least&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;C (\sqrt{n} (\log n)^{1/4} \exp_2(-2 \sqrt{\log_2 n}))^2 3^n / n&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
This simplifies to &amp;lt;math&amp;gt;C \sqrt{\log n} \exp_3(n-\alpha \sqrt{\log_3(n)})&amp;lt;/math&amp;gt;, where &amp;lt;math&amp;gt;\alpha=4 \sqrt{\log_3(2)}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Now suppose that &amp;lt;math&amp;gt;x_i\in \Gamma_{a_i,a_i+r_i,a_i+s_i}&amp;lt;/math&amp;gt; is a combinatorial line in the set A. Then &amp;lt;math&amp;gt;(a_i+s_i)-(a_i)=s_i&amp;lt;/math&amp;gt; is a 3-term AP contained in R, so the &amp;lt;math&amp;gt;s_i&amp;lt;/math&amp;gt; are all the same. Similarly, all of the &amp;lt;math&amp;gt;r_i&amp;lt;/math&amp;gt; are the same, and therefore all of the &amp;lt;math&amp;gt;a_i&amp;lt;/math&amp;gt; are the same, too. But this implies that the &amp;lt;math&amp;gt;x_i&amp;lt;/math&amp;gt; sequence is constant, which means the line is degenerate. &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[http://terrytao.wordpress.com/2009/02/05/upper-and-lower-bounds-for-the-density-hales-jewett-problem/#comment-35652 Numerics suggest] that the first large n construction given above above give a lower bound of roughly &amp;lt;math&amp;gt;2.7 \sqrt{\log(n)/n} \times 3^n&amp;lt;/math&amp;gt;, which would asymptotically be inferior to the Behrend bound.&lt;br /&gt;
&lt;br /&gt;
The second large n construction had numerical asymptotics for &amp;lt;math&amp;gt;\log(c_n/3^n)&amp;lt;/math&amp;gt; close to &amp;lt;math&amp;gt;1.2-\sqrt{\log(n)}&amp;lt;/math&amp;gt; between n=1000 and n=10000, consistent with the Behrend bound.&lt;br /&gt;
&lt;br /&gt;
== Other k values ==&lt;br /&gt;
&lt;br /&gt;
A [http://abel.math.umu.se/~klasm/Data/HJ/ computer search] has found the following &amp;lt;math&amp;gt;c_n&amp;lt;/math&amp;gt; values for different values of dimension n and edgelength k.  Several of these values reach the upper bound of &amp;lt;math&amp;gt;(k-1)k^{n-1}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
{|&lt;br /&gt;
|n\k || 2 || 3 || 4 || 5 || 6 || 7&lt;br /&gt;
|-&lt;br /&gt;
| 2 || 2 || 6 || 12 || 20 || 30 || 42&lt;br /&gt;
|-&lt;br /&gt;
| 3 || 3 || 18 || 48 || 100 || 180 || 294&lt;br /&gt;
|-&lt;br /&gt;
| 4 || 6 || 52 || 183 || 500 || 1029-1079 || 2058&lt;br /&gt;
|-&lt;br /&gt;
| 5 || 10 || 150 || 683-732 || 2500&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Numerical methods ==&lt;br /&gt;
&lt;br /&gt;
A greedy algorithm [http://thetangentspace.com/wiki/Hales-Jewett_Theorem was implemented here].  The results were sharp for &amp;lt;math&amp;gt;n \leq 3&amp;lt;/math&amp;gt; but were slightly inferior to the constructions above for larger n.&lt;/div&gt;</summary>
		<author><name>121.220.134.232</name></author>
	</entry>
	<entry>
		<id>https://michaelnielsen.org/polymath/index.php?title=Upper_and_lower_bounds&amp;diff=1050</id>
		<title>Upper and lower bounds</title>
		<link rel="alternate" type="text/html" href="https://michaelnielsen.org/polymath/index.php?title=Upper_and_lower_bounds&amp;diff=1050"/>
		<updated>2009-03-23T20:17:40Z</updated>

		<summary type="html">&lt;p&gt;121.220.134.232: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;center&amp;gt;&#039;&#039;&#039;Upper and lower bounds for &amp;lt;math&amp;gt;c_n&amp;lt;/math&amp;gt; for small values of n.&#039;&#039;&#039;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;c_n&amp;lt;/math&amp;gt; is the size of the largest subset of &amp;lt;math&amp;gt;[3]^n&amp;lt;/math&amp;gt; that does not contain a combinatorial line (OEIS [http://www.research.att.com/~njas/sequences/A156762 A156762].  A spreadsheet for all the latest bounds on &amp;lt;math&amp;gt;c_n&amp;lt;/math&amp;gt; [http://spreadsheets.google.com/ccc?key=p5T0SktZY9DsU-uZ1tK7VEg can be found here].  In this page we record the proofs justifying these bounds.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{|&lt;br /&gt;
| n || 0 || 1 || 2 || 3 || 4 || 5 || 6 || 7&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;math&amp;gt;c_n&amp;lt;/math&amp;gt; || 1 || 2 || 6 || 18 || 52 || 150 || 450 || [1302,1348]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Basic constructions ==&lt;br /&gt;
&lt;br /&gt;
For all &amp;lt;math&amp;gt;n \geq 1&amp;lt;/math&amp;gt;, a basic example of a mostly line-free set is&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;D_n := \{ (x_1,\ldots,x_n) \in [3]^n: \sum_{i=1}^n x_i \neq 0 \ \operatorname{mod}\ 3 \}&amp;lt;/math&amp;gt;.  (1)&lt;br /&gt;
&lt;br /&gt;
This has cardinality &amp;lt;math&amp;gt;|D_n| = 2 \times 3^{n-1}&amp;lt;/math&amp;gt;.  The only lines in &amp;lt;math&amp;gt;D_n&amp;lt;/math&amp;gt; are those with&lt;br /&gt;
&lt;br /&gt;
# A number of wildcards equal to a multiple of three;&lt;br /&gt;
# The number of 1s unequal to the number of 2s modulo 3.&lt;br /&gt;
&lt;br /&gt;
One way to construct line-free sets is to start with &amp;lt;math&amp;gt;D_n&amp;lt;/math&amp;gt; and remove some additional points.  We also have the variants &amp;lt;math&amp;gt;D_{n,0}=D_n, D_{n,1}, D_{n,2}&amp;lt;/math&amp;gt; defined as&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;D_{n,j} := \{ (x_1,\ldots,x_n) \in [3]^n: \sum_{i=1}^n x_i \neq j \ \operatorname{mod}\ 3 \}&amp;lt;/math&amp;gt;.  (1&#039;)&lt;br /&gt;
&lt;br /&gt;
When n is not a multiple of 3, then &amp;lt;math&amp;gt;D_{n,0}, D_{n,1}, D_{n,2}&amp;lt;/math&amp;gt; are all cyclic permutations of each other; but when n is a multiple of 3, then &amp;lt;math&amp;gt;D_{n,0}&amp;lt;/math&amp;gt; plays a special role (though &amp;lt;math&amp;gt;D_{n,1}, D_{n,2}&amp;lt;/math&amp;gt; are still interchangeable).&lt;br /&gt;
&lt;br /&gt;
Another useful construction proceeds by using the slices &amp;lt;math&amp;gt;\Gamma_{a,b,c} \subset [3]^n&amp;lt;/math&amp;gt; for &amp;lt;math&amp;gt;(a,b,c)&amp;lt;/math&amp;gt; in the triangular grid&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\Delta_n := \{ (a,b,c) \in {\Bbb Z}_+^3: a+b+c = n \},&amp;lt;/math&amp;gt;.  (2)&lt;br /&gt;
&lt;br /&gt;
where &amp;lt;math&amp;gt;\Gamma_{a,b,c}&amp;lt;/math&amp;gt; is defined as the strings in &amp;lt;math&amp;gt;[3]^n&amp;lt;/math&amp;gt; with &amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt; 1s, &amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt; 2s, and &amp;lt;math&amp;gt;c&amp;lt;/math&amp;gt; 3s.  Note that&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;|\Gamma_{a,b,c}| = \frac{n!}{a! b! c!}.&amp;lt;/math&amp;gt; (3)&lt;br /&gt;
&lt;br /&gt;
Given any set &amp;lt;math&amp;gt;B \subset \Delta_n&amp;lt;/math&amp;gt; that avoids equilateral triangles &amp;lt;math&amp;gt; (a+r,b,c), (a,b+r,c), (a,b,c+r)&amp;lt;/math&amp;gt;, the set&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\Gamma_B := \bigcup_{(a,b,c) \in B} \Gamma_{a,b,c}&amp;lt;/math&amp;gt; (4)&lt;br /&gt;
&lt;br /&gt;
is line-free and has cardinality&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;|\Gamma_B| = \sum_{(a,b,c) \in B} \frac{n!}{a! b! c!},&amp;lt;/math&amp;gt; (5)&lt;br /&gt;
&lt;br /&gt;
and thus provides a lower bound for &amp;lt;math&amp;gt;c_n&amp;lt;/math&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;c_n \geq \sum_{(a,b,c) \in B} \frac{n!}{a! b! c!}.&amp;lt;/math&amp;gt; (6)&lt;br /&gt;
&lt;br /&gt;
All lower bounds on &amp;lt;math&amp;gt;c_n&amp;lt;/math&amp;gt; have proceeded so far by choosing a good set of B and applying (6).  Note that &amp;lt;math&amp;gt;D_n&amp;lt;/math&amp;gt; is the same as &amp;lt;math&amp;gt;\Gamma_{B_n}&amp;lt;/math&amp;gt;, where &amp;lt;math&amp;gt;B_n&amp;lt;/math&amp;gt; consists of those triples &amp;lt;math&amp;gt;(a,b,c) \in \Delta_n&amp;lt;/math&amp;gt; in which &amp;lt;math&amp;gt;a \neq b\ \operatorname{mod}\ 3&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Note that if one takes a line-free set and permutes the alphabet &amp;lt;math&amp;gt;\{1,2,3\}&amp;lt;/math&amp;gt; in any fashion (e.g. replacing all 1s by 2s and vice versa), one also gets a line-free set.  This potentially gives six examples from any given starting example of a line-free set, though in practice there is enough symmetry that the total number of examples produced this way is less than six.  (These six examples also correspond to the six symmetries of the triangular grid &amp;lt;math&amp;gt;\Delta_n&amp;lt;/math&amp;gt; formed by rotation and reflection.)&lt;br /&gt;
&lt;br /&gt;
Another symmetry comes from permuting the &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt; indices in the strings of &amp;lt;math&amp;gt;[3]^n&amp;lt;/math&amp;gt; (e.g. replacing every string by its reversal).  But the sets &amp;lt;math&amp;gt;\Gamma_B&amp;lt;/math&amp;gt; are automatically invariant under such permutations and thus do not produce new line-free sets via this symmetry.&lt;br /&gt;
&lt;br /&gt;
== The basic upper bound ==&lt;br /&gt;
&lt;br /&gt;
Because &amp;lt;math&amp;gt;[3]^{n+1}&amp;lt;/math&amp;gt; can be expressed as the union of three copies of &amp;lt;math&amp;gt;[3]^n&amp;lt;/math&amp;gt;, we have the basic upper bound&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;c_{n+1} \leq 3 c_n.&amp;lt;/math&amp;gt; (7)&lt;br /&gt;
&lt;br /&gt;
Note that equality only occurs if one can find an &amp;lt;math&amp;gt;n+1&amp;lt;/math&amp;gt;-dimensional line-free set such that every n-dimensional slice has the maximum possible cardinality of &amp;lt;math&amp;gt;c_n&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== n=0 ==&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;c_0=1&amp;lt;/math&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
This is clear.&lt;br /&gt;
&lt;br /&gt;
== n=1 ==&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;c_1=2&amp;lt;/math&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
The three sets &amp;lt;math&amp;gt;D_1 = \{1,2\}&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;D_{1,1} = \{2,3\}&amp;lt;/math&amp;gt;, and &amp;lt;math&amp;gt;D_{1,2} = \{1,3\}&amp;lt;/math&amp;gt; are the only two-element sets which are line-free in &amp;lt;math&amp;gt;[3]^1&amp;lt;/math&amp;gt;, and there are no three-element sets.&lt;br /&gt;
&lt;br /&gt;
== n=2 ==&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;c_2=6&amp;lt;/math&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
There are four six-element sets in &amp;lt;math&amp;gt;[3]^2&amp;lt;/math&amp;gt; which are line-free, which we denote &amp;lt;math&amp;gt;x = D_{2,2}&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;y=D_{2,1}&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;z=D_2&amp;lt;/math&amp;gt;, and &amp;lt;math&amp;gt;w&amp;lt;/math&amp;gt; and are displayed graphically as follows.&lt;br /&gt;
&lt;br /&gt;
     13 .. 33       .. 23 33       13 23 ..       13 23 ..&lt;br /&gt;
 x = 12 22 ..   y = 12 .. 32   z = .. 22 32   w = 12 .. 32&lt;br /&gt;
     .. 21 31       11 21 ..       11 .. 31       .. 21 31&lt;br /&gt;
&lt;br /&gt;
Combining this with the basic upper bound (7) we see that &amp;lt;math&amp;gt;c_2=6&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== n=3 ==&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;c_3=18&amp;lt;/math&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
We describe a subset &amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt; of &amp;lt;math&amp;gt;[3]^3&amp;lt;/math&amp;gt; as a string &amp;lt;math&amp;gt;abc&amp;lt;/math&amp;gt;, where &amp;lt;math&amp;gt;a, b, c \subset [3]^2&amp;lt;/math&amp;gt; correspond to strings of the form &amp;lt;math&amp;gt;1**&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;2**&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;3**&amp;lt;/math&amp;gt; in &amp;lt;math&amp;gt;[3]^3&amp;lt;/math&amp;gt; respectively.  Thus for instance &amp;lt;math&amp;gt;D_3 = xyz&amp;lt;/math&amp;gt;, and so from (7) we have &amp;lt;math&amp;gt;c_3=18&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Lemma 1.&#039;&#039;&#039;&lt;br /&gt;
* The only 18-element line-free subset of &amp;lt;math&amp;gt;[3]^3&amp;lt;/math&amp;gt; is &amp;lt;math&amp;gt;D_3 = xyz&amp;lt;/math&amp;gt;.&lt;br /&gt;
* The only 17-element line-free subsets of &amp;lt;math&amp;gt;[3]^3&amp;lt;/math&amp;gt; are formed by removing a point from &amp;lt;math&amp;gt;D_3=xyz&amp;lt;/math&amp;gt;, or by removing either 111, 222, or 333 from &amp;lt;math&amp;gt;D_{3,2} = yzx&amp;lt;/math&amp;gt; or &amp;lt;math&amp;gt;D_{3,3}=zxy&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039;.  We prove the second claim. As &amp;lt;math&amp;gt;17=6+6+5&amp;lt;/math&amp;gt;, and &amp;lt;math&amp;gt;c_2=6&amp;lt;/math&amp;gt;, at least two of the slices of a 17-element line-free set must be from x, y, z, w, with the third slice having 5 points.  If two of the slices are identical, the last slice can have only 3 points, a contradiction.  If one of the slices is a w, then the 5-point slice will contain a diagonal, contradiction.  By symmetry we may now assume that two of the slices are x and y, which force the last slice to be z with one point removed.  Now one sees that the slices must be in the order xyz, yzx, or zxy, because any other combination has too many lines that need to be removed.  The sets yzx, zxy contain the diagonal {111,222,333} and so one additional point needs to be removed. &lt;br /&gt;
&lt;br /&gt;
The first claim follows by a similar argument to the second.&lt;br /&gt;
&amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== n=4 ==&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;c_4=52&amp;lt;/math&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
Indeed, divide a line-free set in &amp;lt;math&amp;gt;[3]^4&amp;lt;/math&amp;gt; into three blocks &amp;lt;math&amp;gt;1***, 2***, 3***&amp;lt;/math&amp;gt; of &amp;lt;math&amp;gt;[3]^3&amp;lt;/math&amp;gt;.  If two of them are of size 18, then they must both be xyz, and the third block can have at most 6 elements, leading to an inferior bound of 42.  So the best one can do is &amp;lt;math&amp;gt;18+17+17=52&amp;lt;/math&amp;gt; which can be attained by deleting the diagonal {1111,2222,3333} from &amp;lt;math&amp;gt;D_{4,1} = xyz\ yzx\ xzy&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;D_4 = yzx\ zxy\ xyz&amp;lt;/math&amp;gt;, or &amp;lt;math&amp;gt;D_{4,2} = zxy\ xyz\ yzx&amp;lt;/math&amp;gt;.  In fact,&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Lemma 2.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* The only 52-element line-free sets in &amp;lt;math&amp;gt;[3]^4&amp;lt;/math&amp;gt; are formed by removing the diagonal {1111,2222,3333} from &amp;lt;math&amp;gt;D_{4,j}&amp;lt;/math&amp;gt; for some j=0,1,2.&lt;br /&gt;
* The only 51-element line-free sets in &amp;lt;math&amp;gt;[3]^4&amp;lt;/math&amp;gt; are formed by removing the diagonal and one further point from &amp;lt;math&amp;gt;D_{4,j}&amp;lt;/math&amp;gt; for some j=0,1,2.&lt;br /&gt;
* The only 50-element line-free sets in &amp;lt;math&amp;gt;[3]^4&amp;lt;/math&amp;gt; are formed by removing the diagonal and two further points from &amp;lt;math&amp;gt;D_{4,j}&amp;lt;/math&amp;gt; for some j=0,1,2  OR is equal to one of the three permutations of the set &amp;lt;math&amp;gt;X := \Gamma_{3,1,0} \cup \Gamma_{3,0,1} \cup \Gamma_{2,2,0} \cup \Gamma_{2,0,2} \cup \Gamma_{1,1,2} \cup \Gamma_{1,2,1} \cup \Gamma_{0,2,2}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; It suffices to prove the third claim.  In fact it suffices to show that every 50-point line-free set is either contained in the 54-point set &amp;lt;math&amp;gt;D_{4,j}&amp;lt;/math&amp;gt; for some j=0,1,2, or is some permutation of the set X. Indeed, if a 50-point line-free set is contained in, say, &amp;lt;math&amp;gt;D_4&amp;lt;/math&amp;gt;, then it cannot contain 2222, since otherwise it must omit one point from each of the four pairs formed from {2333, 2111} by permuting the indices, and must also omit one of {1111, 1222, 1333}, leading to at most 49 points in all; similarly, it cannot contain 1111, and so omits the entire diagonal {1111,2222,3333}, with two more points to be omitted.  Similarly when &amp;lt;math&amp;gt;D_4&amp;lt;/math&amp;gt; is replaced by one of the other &amp;lt;math&amp;gt;D_{4,j}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Next, observe that every three-dimensional slice of a line-free set can have at most &amp;lt;math&amp;gt;c_3=18&amp;lt;/math&amp;gt; points; thus when one partitions a 50-point line-free set into three such slices, it must divide either as 18+16+16, 17+17+16, or some permutation of these.&lt;br /&gt;
&lt;br /&gt;
Suppose that we can slice the set into two slices of 17 points and one slice of 16 points.  By the various symmetries, we may assume that the 1*** slice and 2*** slices have 17 points, and the 3*** slice has 16 points.  By Lemma 1, the 1-slice is &amp;lt;math&amp;gt;\{1\} \times D_{3,j}&amp;lt;/math&amp;gt; with one point removed, and the 2-slice is &amp;lt;math&amp;gt;\{2\} \times D_{3,k}&amp;lt;/math&amp;gt; with one point removed, for some &amp;lt;math&amp;gt;j,k \in \{0,1,2\}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
If j=k, then the 1-slice and 2-slice have at least 15 points in common, so the 3-slice can have at most &amp;lt;math&amp;gt;27-15=12&amp;lt;/math&amp;gt; points, a contradiction.  If jk = 01, 12, or 20, then observe that from Lemma 1 the *1**, *2**, *3** slices cannot equal a 17-point or 18-point line-free set, so each have at most 16 points, leading to only 48 points in all, a contradiction.  Thus we must have jk = 10, 21, or 02.&lt;br /&gt;
&lt;br /&gt;
Let&#039;s first suppose that jk=02.  Then by Lemma 1, the 2*** slice contains the nine points formed from {2211, 2322, 2331} and permuting the last three indices, while the 1*** slice contains at least eight of the nine points formed from {1211, 1322, 1311} and permuting the last three indices.  Thus the 3*** slice can contain at most one of the nine points formed from {3211, 3322, 3311} and permuting the last three indices.  If it does contain one of these points, say 3211, then it must omit one point from each of the four pairs {3222, 3233}, {3212, 3213}, {3221, 3231}, {3111, 3311}, leading to at most 15 points on this slice, a contradiction.  So the 3*** slice must omit all nine points, and is therefore contained in &amp;lt;math&amp;gt;\{3\} \times D_{4,1}&amp;lt;/math&amp;gt;, and so the 50-point set is contained in &amp;lt;math&amp;gt;D_{4,1}&amp;lt;/math&amp;gt;, and we are done by the discussion at the beginning of the proof.&lt;br /&gt;
&lt;br /&gt;
The case jk=10 is similar to the jk=02 case (indeed one can get from one case to the other by swapping the 1 and 2 indices).  Now suppose instead that jk=12.  Then by Lemma 1, the 1*** slice contains the six points from permuting the last three indices of 1123, and similarly the 2*** slice contains the six points from permuting the last three indices of 2123.  Thus the 3*** slice must avoid all six points formed by permuting the last three indices of 3123.  Similarly, as 1133 lies in the 1*** slice and 2233 lies in the 2*** slice, 3333 must be avoided in the 3*** slice.&lt;br /&gt;
&lt;br /&gt;
Now we claim that 3111 must be avoided also; for if 3111 was in the set, then one point from each of the six pairs formed from {3311, 3211}, {3331, 3221} and permuting the last three indices must lie outside the 3*** slice, which reduces the size of that slice to at most &amp;lt;math&amp;gt;27-6-1-6=14&amp;lt;/math&amp;gt;, which is too small.  Similarly, 3222 must be avoided, which puts the 3*** slice inside &amp;lt;math&amp;gt;\{3\} \times D_3&amp;lt;/math&amp;gt; and then places the 50-point set inside &amp;lt;math&amp;gt;D_4&amp;lt;/math&amp;gt;, and we are done by the discussion at the beginning of the proof.&lt;br /&gt;
&lt;br /&gt;
We have handled the case in which at least one of the slicings of the 50-point set is of the form 50=17+17+16.  The only remaining case is when all slicings of the 50-point set are of the form 18+17+16 (or a permutation thereof).  By the symmetries of the situation, we may assume that the 1*** slice has 18 points, and thus by Lemma 1 takes the form &amp;lt;math&amp;gt;\{1\} \times D_3&amp;lt;/math&amp;gt;.  Inspecting the *1**, *2**, *3** slices, we then see (from Lemma 1) that only the *1** slice can have 18 points; since we are assuming that this slicing is some permutation of 50=18+17+16, we conclude that the *1** slice must have exactly 18 points, and is thus described precisely by Lemma 1.  Similarly for the **1* and ***1 slices.  Indeed, by Lemma 1, we see that the 50-point set must agree exactly with &amp;lt;math&amp;gt;D_{4,1}&amp;lt;/math&amp;gt; on any of these slices.  In particular, on the remaining portion &amp;lt;math&amp;gt;\{2,3\}^4&amp;lt;/math&amp;gt; of the cube, there are exactly 6 points of the 50-point set in &amp;lt;math&amp;gt;\{2,3\}^4&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Suppose that 3333 was in the set; then since all permutations of 3311, 3331 are known to lie in the set, then 3322, 3332 must lie outside the set.  Also, as 1222 lies in the set, at least one of 2222, 3222 lie outside the set.  This leaves only 5 points in &amp;lt;math&amp;gt;\{2,3\}^4&amp;lt;/math&amp;gt;, a contradiction.  Thus 3333 lies outside the set; similarly 2222 lies outside the set.&lt;br /&gt;
&lt;br /&gt;
Let a be the number of points in the 50-point set which are some permutation of 2233, thus &amp;lt;math&amp;gt;0 \leq a \leq 6&amp;lt;/math&amp;gt;.  If a=0 then the set lies in &amp;lt;math&amp;gt;D_{4,1}&amp;lt;/math&amp;gt; and we are done.  If a=6 then the set is exactly X and we are done.  Now suppose a=1,2,3.  By symmetry we may assume that 2233 lies in the set.  Then (since 2133, 1233 2231, 2213 are known to lie in the set) 2333, 3233, 2223, 2232 lie outside the set, which leaves at most 5 points inside &amp;lt;math&amp;gt;\{2,3\}^4&amp;lt;/math&amp;gt;, a contradiction.&lt;br /&gt;
&lt;br /&gt;
The remaining case is when a=4,5.  Then one of the three pairs {2233, 3322}, {2323, 3232}, {2332, 3223} lie in the set.  By symmetry we may assume that {2233, 3322} lie in the set.  Then by arguing as before we see that all eight points formed by permuting 2333 or 3222 lie outside the set, leading to at most 5 points inside &amp;lt;math&amp;gt;\{2,3\}^4&amp;lt;/math&amp;gt;, a contradiction.&lt;br /&gt;
&amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== n=5 ==&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;c_5=150&amp;lt;/math&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Lemma 3&#039;&#039;&#039;.  Any line-free subset of &amp;lt;math&amp;gt;D_{5,j}&amp;lt;/math&amp;gt; can have at most 150 points.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039;.  By rotation we may work with &amp;lt;math&amp;gt;D_5&amp;lt;/math&amp;gt;.  This set has 162 points.  By looking at the triplets {10000, 11110, 12220} and cyclic permutations we must lose 5 points; similarly from the triplets {20000,22220, 21110} and cyclic permutations.  Finally from {11000,11111,11222} and {22000,22222,22111} we lose two more points. &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Equality can be attained by removing  &amp;lt;math&amp;gt;\Gamma_{0,4,1}, \Gamma_{0,5,0}, \Gamma_{4,0,1}, \Gamma_{5,0,0}&amp;lt;/math&amp;gt; from &amp;lt;math&amp;gt;D_5&amp;lt;/math&amp;gt;.  Thus &amp;lt;math&amp;gt;c_5 \geq 150&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Another pattern of 150 points is this: Take the 450 points&lt;br /&gt;
in &amp;lt;math&amp;gt;{}[3]^6&amp;lt;/math&amp;gt; which are (1,2,3), (0,2,4) and permutations,&lt;br /&gt;
then select the 150 whose final coordinate is 1. That gives&lt;br /&gt;
this many points in each cube:&lt;br /&gt;
&lt;br /&gt;
17 18 17&lt;br /&gt;
&lt;br /&gt;
17 17 18&lt;br /&gt;
&lt;br /&gt;
12 17 17&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Lemma 4&#039;&#039;&#039;.  A line-free subset of &amp;lt;math&amp;gt;[3]^5&amp;lt;/math&amp;gt; with over 150 points cannot have two parallel &amp;lt;math&amp;gt;[3]^4&amp;lt;/math&amp;gt; slices, each of which contain at least 51 points.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039;.  Suppose not.  By symmetry, we may assume that the 1**** and 2**** slices have at least 51 points, and that the whole set has at least 151 points, which force the third slice to have at least &amp;lt;math&amp;gt;151-2c_4 = 47&amp;lt;/math&amp;gt; points.&lt;br /&gt;
&lt;br /&gt;
By Lemma 2, the 1**** slice takes the form &amp;lt;math&amp;gt;\{1\} \times D_{4,j}&amp;lt;/math&amp;gt; for some &amp;lt;math&amp;gt;j=0,1,2&amp;lt;/math&amp;gt; with the diagonal {11111,12222,13333} and possibly one more point removed, and similarly the 2**** slice takes the form &amp;lt;math&amp;gt;\{2\} \times D_{4,k}&amp;lt;/math&amp;gt; for some &amp;lt;math&amp;gt;k=0,1,2&amp;lt;/math&amp;gt; with the diagonal {21111,22222,23333} and possibly one more point removed.&lt;br /&gt;
&lt;br /&gt;
Suppose first that j=k.  Then the 1-slice and 2-slice have at least 50 points in common, leaving at most 31 points for the 3-slice, a contradiction.  Next, suppose that jk=01.  Then observe that the *i*** slice cannot look like any of the configurations in Lemma 2 and so must have at most 50 points for i=1,2,3, leading to 150 points in all, a contradiction.  Similarly if jk=12 or 20.  Thus we must have jk equal to 10, 21, or 02.&lt;br /&gt;
&lt;br /&gt;
Let&#039;s suppose first that jk=10.  The first slice then is equal to &amp;lt;math&amp;gt;\{1\} \times D_{4,1}&amp;lt;/math&amp;gt; with the diagonal and possibly one more point removed, while the second slice is equal to &amp;lt;math&amp;gt;\{2\} \times D_{4,0}&amp;lt;/math&amp;gt; with the diagonal and possibly one more point removed.  Superimposing these slices, we thus see that the third slice is contained in &amp;lt;math&amp;gt;\{3\} \times D_{4,2}&amp;lt;/math&amp;gt; except possibly for two additional points, together with the one point 32222 of the diagonal that lies outside of &amp;lt;math&amp;gt;\{3\} \times D_{4,2}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
The lines x12xx, x13xx (plus permutations of the last four digits) must each contain one point outside the set.  The first two slices can only absorb two of these, and so at least 14 of the 16 points formed by permuting the last four digits of 31233, 31333 must lie outside the set.  These points all lie in &amp;lt;math&amp;gt;\{3\} \times D_{4,2}&amp;lt;/math&amp;gt;, and so the 3**** slice can have at most &amp;lt;math&amp;gt;|D_{4,2}|-14+3=43&amp;lt;/math&amp;gt; points, a contradiction.&lt;br /&gt;
&lt;br /&gt;
The case jk=02 is similar to the case jk=10 (indeed one can obtain one from the other by swapping 1 and 2).  Now we turn to the case jk=21.  Arguing as before we see that the third slice is contained in &amp;lt;math&amp;gt;\{3\} \times D_4&amp;lt;/math&amp;gt; except possibly for two points, together with 33333.  &lt;br /&gt;
&lt;br /&gt;
If 33333 was in the set, then each of the lines xx333, xxx33 (and permutations of the last four digits) must have a point missing from the first two slices, which cannot be absorbed by the two points we are permitted to remove; thus 33333 is not in the set.  For similar reasons, 33331 is not in the set, as can be seen by looking at xxx31 and permutations of the last four digits.  Indeed, any string containing four threes does not lie in the set; this means that at least 8 points are missing from &amp;lt;math&amp;gt;\{3\} \times D_4&amp;lt;/math&amp;gt;, leaving only at most 46 points inside that set.  Furthermore, any point in the 3**** slice outside of &amp;lt;math&amp;gt;\{3\} \times D_4&amp;lt;/math&amp;gt; can only be created by removing a point from the first two slices, so the total cardinality is at most &amp;lt;math&amp;gt;46+52+52 = 150&amp;lt;/math&amp;gt;, a contradiction.&amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Corollary&#039;&#039;&#039;. &amp;lt;math&amp;gt;c_5 \leq 152&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039;.  By Lemma 4 and the bound &amp;lt;math&amp;gt;c_4=52&amp;lt;/math&amp;gt;, any line-free set with over 150 points can have one slice of cardinality 52, but then the other two slices can have at most 50 points. &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Lemma 5&#039;&#039;&#039; Any solution with 151 or more points has a slice with at most 49 points.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; Suppose we have 151 points without a line, and each of three slices has at least 50 points.&lt;br /&gt;
&lt;br /&gt;
Using earlier notation, we split subsets of &amp;lt;math&amp;gt;[3]^4&amp;lt;/math&amp;gt; into nine subsets of &amp;lt;math&amp;gt;[3]^2&amp;lt;/math&amp;gt;.  &lt;br /&gt;
So we think of x,y,z,a,b and c as subsets of a square.  Each slice is one of the following.&lt;br /&gt;
*&amp;lt;math&amp;gt;D_4 = y&#039;zx,zx&#039;y,xyz&amp;lt;/math&amp;gt; (with one or two points removed)&lt;br /&gt;
*&amp;lt;math&amp;gt;D_{4,2} = z&#039;xy,xyz,yzx&#039;&amp;lt;/math&amp;gt; (with one or two points removed)&lt;br /&gt;
*&amp;lt;math&amp;gt;D_{4,1} = xyz,yz&#039;x,zxy&#039;&amp;lt;/math&amp;gt; (with one or two points removed)&lt;br /&gt;
*&amp;lt;math&amp;gt;X = xyz, ybw, zwc&amp;lt;/math&amp;gt;&lt;br /&gt;
*&amp;lt;math&amp;gt;Y = axw, xyz, wzc&amp;lt;/math&amp;gt;&lt;br /&gt;
*&amp;lt;math&amp;gt;Z = awx, wby, xyz&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where a, b and c have four points each.&lt;br /&gt;
&lt;br /&gt;
        .. 32 33          31 .. 33         .. .. ..&lt;br /&gt;
    a = .. 22 23      b = .. .. ..     c = 21 22 ..&lt;br /&gt;
        .. .. ..          11 .. 13         11 12 ..&lt;br /&gt;
&lt;br /&gt;
x&#039;, y&#039; and z&#039; are subsets of x, y and z respectively, and have five points each.&lt;br /&gt;
&lt;br /&gt;
Suppose all three slices are subsets of &amp;lt;math&amp;gt;D_{4,j}&amp;lt;/math&amp;gt;.  &lt;br /&gt;
We can remove at most five points from the full set of three D_{4,j}.  &lt;br /&gt;
Consider columns 2,3,4,6,7,8.  At most two of these columns contain xyz, so one point must be removed from the other four.&lt;br /&gt;
This uses up all but one of the removals.&lt;br /&gt;
So the slices must be &amp;lt;math&amp;gt;D_{4,2},D_{4,1},D_{4,0}&amp;lt;/math&amp;gt; or a cyclic permutation of that.&lt;br /&gt;
Then the cube, which contains the first square of slice 1; the fifth square of slice 2; &lt;br /&gt;
and the ninth square of slice 3, contains three copies of the same square.  &lt;br /&gt;
It takes more than one point removed to remove all lines from that cube.&lt;br /&gt;
So we can&#039;t have all three slices subsets of &amp;lt;math&amp;gt;D_{4,j}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Suppose one slice is X,Y or Z, and two others are subsets of &amp;lt;math&amp;gt;D_{4,j}&amp;lt;/math&amp;gt;.  &lt;br /&gt;
We can remove at most three points from the full &amp;lt;math&amp;gt;D_{4,j}&amp;lt;/math&amp;gt;&lt;br /&gt;
By symmetry, suppose one slice is X.  Consider columns 2,3,4 and 7.  They must be cyclic permutations of x,y,z,&lt;br /&gt;
and two of them are not xyz, so must lose a point.  &lt;br /&gt;
Columns 6 and 8 must both lose a point, and we only have 150 points left.&lt;br /&gt;
So if one slice is X,Y or Z, the full set contains a line.&lt;br /&gt;
&lt;br /&gt;
Suppose two slices are from X,Y and Z, and the other is a subset of &amp;lt;math&amp;gt;D_{4,j}&amp;lt;/math&amp;gt;.  &lt;br /&gt;
By symmetry, suppose two slices are X and Y.  Columns 3,6,7 and 8 all contain w, and therefore at most 16 points each.&lt;br /&gt;
Columns 1,5 and 9 contain a,b, or c, and therefore at most 16 points. &lt;br /&gt;
So the total number of points is at most 7*16+2*18 = 148.  This contradicts the assumption of 151 points.&lt;br /&gt;
&amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Corollary&#039;&#039;&#039; &amp;lt;math&amp;gt;c_5 \leq 151 &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; By Lemmas 2 and 4, the maximum number of points is 52+50+49=151. &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Lemma 5.1&#039;&#039;&#039; No solution with 151 points contains as a slice the X defined in Lemma 2&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; Suppose one row is X.  Another row is &amp;lt;math&amp;gt;D_{4,j}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Suppose X is in the first row.  Label the other rows with letters from the alphabet.&lt;br /&gt;
&lt;br /&gt;
xyz ybw zwc&lt;br /&gt;
&lt;br /&gt;
mno pqr stu&lt;br /&gt;
&lt;br /&gt;
def ghi jkl&lt;br /&gt;
&lt;br /&gt;
Reslice the array into a left nine, middle nine and right nine.  One of these squares&lt;br /&gt;
contains 52 points, and it can only be the left nine.  One of its three columns contains&lt;br /&gt;
18 points, and it can only be its left-hand column, xmd.  So m=y and d=z.  But none of the {math&amp;gt;D_{4,j}&amp;lt;/math&amp;gt; begins with y or z, which is a contradiction.  So X is not in the first row.&lt;br /&gt;
&lt;br /&gt;
So X is in the second or third row.  By symmetry, suppose it is in the second row&lt;br /&gt;
&lt;br /&gt;
def ghi jkl&lt;br /&gt;
&lt;br /&gt;
xyz ybw zwc&lt;br /&gt;
&lt;br /&gt;
mno pqr stu&lt;br /&gt;
&lt;br /&gt;
Again, the left-hand nine must contain 52 points, so it is &amp;lt;math&amp;gt;D_{4,2}&amp;lt;/math&amp;gt;.&lt;br /&gt;
So either the first row is &amp;lt;math&amp;gt;D_{4,2}&amp;lt;/math&amp;gt; or the third row is &amp;lt;math&amp;gt;D_{4,0}&amp;lt;/math&amp;gt;.&lt;br /&gt;
If the first row is &amp;lt;math&amp;gt;D_{4,2}&amp;lt;/math&amp;gt; then the only way to have 50 points in the middle or right-hand nine is if the middle nine is X&lt;br /&gt;
&lt;br /&gt;
z&#039;xy xyz yzx&#039;&lt;br /&gt;
&lt;br /&gt;
xyz  ybw zwc&lt;br /&gt;
&lt;br /&gt;
yzx&#039; zwc stu&lt;br /&gt;
&lt;br /&gt;
In the seventh column, s contains 5 points and in the eighth column, t contains 4 points.&lt;br /&gt;
The final row can now contain at most 48 points, and the whole array contains only 52+50+48 = 150 points.&lt;br /&gt;
&lt;br /&gt;
If the third row is &amp;lt;math&amp;gt;D_{4,0}&amp;lt;/math&amp;gt;, then neither the middle nine nor the right-hand nine contains 50 points, by the classification of Lemma 4 and the formulas at the start of Lemma 5.&lt;br /&gt;
Again, only 52+49+49 = 150 points are possible.&lt;br /&gt;
&lt;br /&gt;
A similar argument is possible if X is in the third row; or if X is replaced by Y or Z.&lt;br /&gt;
&lt;br /&gt;
So when a 151-point set is sliced into three, one slice is &amp;lt;math&amp;gt;D_{4,j}&amp;lt;/math&amp;gt; and another slice is 50 points contained in &amp;lt;math&amp;gt;D_{4,k}&amp;lt;/math&amp;gt;. &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Lemma 5.2&#039;&#039;&#039; There is no 151-point solution&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; Assume by symmetry that the first row contains 52 points and the second row contains 50.&lt;br /&gt;
&lt;br /&gt;
If &amp;lt;math&amp;gt;D_{4,1}&amp;lt;/math&amp;gt; is in the first row, then the second row must be contained in &amp;lt;math&amp;gt;D_{4,0}&amp;lt;/math&amp;gt;.  &lt;br /&gt;
&lt;br /&gt;
xyz  yz&#039;x zxy&#039;&lt;br /&gt;
&lt;br /&gt;
y&#039;zx zx&#039;y xyz&lt;br /&gt;
&lt;br /&gt;
def  ghi  jkl&lt;br /&gt;
&lt;br /&gt;
But then none of the left nine, middle nine or right nine can contain 52 points, which contradicts the corollary to Lemma 5.&lt;br /&gt;
&lt;br /&gt;
Suppose the first row contains D_{4,0}.  Then the second row is contained in &amp;lt;math&amp;gt;D_{4,2}&amp;lt;/math&amp;gt;, otherwise the cubes formed from the nine columns of the diagram would need to remove too many points.&lt;br /&gt;
&lt;br /&gt;
y&#039;zx zx&#039;y xyz&lt;br /&gt;
&lt;br /&gt;
z&#039;xy xyz  yzx&#039;&lt;br /&gt;
&lt;br /&gt;
def  ghi  jkl&lt;br /&gt;
&lt;br /&gt;
But then neither the left nine, middle nine or right nine contains 52 points.&lt;br /&gt;
&lt;br /&gt;
So the first row contains &amp;lt;math&amp;gt;D_{4,2}&amp;lt;/math&amp;gt;, and the second row is contained in &amp;lt;math&amp;gt;D_{4,1}&amp;lt;/math&amp;gt;.  Two points may be removed from the second row of this diagram.&lt;br /&gt;
&lt;br /&gt;
z&#039;xy xyz  yzx&#039;&lt;br /&gt;
&lt;br /&gt;
xyz  yz&#039;x zxy&#039;&lt;br /&gt;
&lt;br /&gt;
def  ghi  jkl&lt;br /&gt;
&lt;br /&gt;
Slice it into the left nine, middle nine and right nine.  Two of them are contained in &amp;lt;math&amp;gt;D_{4,j}&amp;lt;/math&amp;gt;&lt;br /&gt;
so at least two of def, ghi, and jkl are contained in the corresponding slice of &amp;lt;math&amp;gt;D_{4,0}&amp;lt;/math&amp;gt;.&lt;br /&gt;
Slice along a different axis, and at least two of dgj,ehk,fil are contained in the corresponding slice of &lt;br /&gt;
&amp;lt;math&amp;gt;D_{4,0}&amp;lt;/math&amp;gt;.  &lt;br /&gt;
So eight of the nine squares in the bottom row are contained in the corresponding square of &amp;lt;math&amp;gt;D_{4,0}&amp;lt;/math&amp;gt;.&lt;br /&gt;
Indeed, slice along other axes, and all points except one are contained within &amp;lt;math&amp;gt;D_{4,0}&amp;lt;/math&amp;gt;.  &lt;br /&gt;
This point is the intersection of all the 49-point slices.  &lt;br /&gt;
&lt;br /&gt;
So, if there is a 151-point solution, then after removal of the specified point, &lt;br /&gt;
there is a 150-point solution, within &amp;lt;math&amp;gt;D_{5,j}&amp;lt;/math&amp;gt;, whose slices in each direction are 52+50+48.&lt;br /&gt;
&lt;br /&gt;
z&#039;xy xyz  yzx&#039;&lt;br /&gt;
&lt;br /&gt;
xyz  yz&#039;x zxy&#039;&lt;br /&gt;
&lt;br /&gt;
y&#039;zx zx&#039;y xyz&lt;br /&gt;
&lt;br /&gt;
One point must be lost from columns 3, 6, 7 and 8, and four more from the major diagonal z&#039;z&#039;z.  That leaves 148 points instead of 150.&lt;br /&gt;
&lt;br /&gt;
So the 150-point solution does not exist with 52+50+48 slices; so the 151 point solution does not exist.&amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
An integer programming method has established the upper bound &amp;lt;math&amp;gt;c_5\leq 150&amp;lt;/math&amp;gt;, with 12 extremal solutions.&lt;br /&gt;
&lt;br /&gt;
[http://abel.math.umu.se/~klasm/extremal-c5 This file] contains the extermisers. One point per line and different extermisers separated by a line with “—”&lt;br /&gt;
&lt;br /&gt;
[http://abel.math.umu.se/~klasm/linprog-d=5-t=3.lpt This is the linear program], readable by Gnu’s glpsol linear programing solver, which also quickly proves that 150 is the optimum.&lt;br /&gt;
&lt;br /&gt;
Each variable corresponds to a point in the cube, numbered according to their lexicografic ordering. If a variable is 1 then the point is in the set, if it is 0 then it is not in the set.&lt;br /&gt;
There is one linear inequality for each combinatorial line, stating that at least one point must be missing from the line.&lt;br /&gt;
&lt;br /&gt;
== n=6 ==&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;c_6=450&amp;lt;/math&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
The upper bound follows since &amp;lt;math&amp;gt;c_6 \leq 3 c_5&amp;lt;/math&amp;gt;.   The lower bound can be formed by gluing together all the [[slice]]s &amp;lt;math&amp;gt;\Gamma_{a,b,c}&amp;lt;/math&amp;gt; where (a,b,c) is a permutation of (0,2,4) or (1,2,3).&lt;br /&gt;
&lt;br /&gt;
Computer verification, using the &amp;lt;math&amp;gt;c_5=150&amp;lt;/math&amp;gt; extremals, has shown that there is exactly one extremiser for &amp;lt;math&amp;gt;c_6=450&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== n=7 ==&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;1302 \leq c_7 \leq 1348&amp;lt;/math&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
To see the upper bound &amp;lt;math&amp;gt;c_7 \leq 3c_6-2&amp;lt;/math&amp;gt;, observe that if two parallel six-dimensional slices had &amp;lt;math&amp;gt;c_6&amp;lt;/math&amp;gt; points, then by uniqueness they are identical, and the third slice can have at most &amp;lt;math&amp;gt;3^6-c_6=279&amp;lt;/math&amp;gt; points, far too few to get anywhere close to &amp;lt;math&amp;gt;1348&amp;lt;/math&amp;gt;.  Thus there can be at most one slice with &amp;lt;math&amp;gt;c_6&amp;lt;/math&amp;gt; points, and the other two have at most &amp;lt;math&amp;gt;c_6-1&amp;lt;/math&amp;gt;, giving the claim.&lt;br /&gt;
&lt;br /&gt;
The lower bound can be formed by removing 016,106,052,502,151,511,160,610 from &amp;lt;math&amp;gt;D_7&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Lemma 6&#039;&#039;&#039; Any line-free subset of &amp;lt;math&amp;gt;D_7&amp;lt;/math&amp;gt; has at most 1302 points.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; Start with the 1458 points of &amp;lt;math&amp;gt;D_7&amp;lt;/math&amp;gt;.  You must lose:&lt;br /&gt;
&lt;br /&gt;
* 42 points from (1,2,4),(1,5,1),(4,2,1)&lt;br /&gt;
* 42 points from (2,1,4),(2,4,1),(5,1,1)&lt;br /&gt;
* 21 points from (0,2,5),(0,5,2),(3,2,2)&lt;br /&gt;
* 21 points from (2,0,5),(2,3,2),(5,0,2)&lt;br /&gt;
* 15 points from (0,1,6),(0,4,3),(3,1,3),(0,7,0),(3,4,0),(6,1,0)&lt;br /&gt;
* 15 points from (1,0,6),(1,3,3),(4,0,3),(7,0,0),(4,3,0),(1,6,0)&lt;br /&gt;
&lt;br /&gt;
where (a,b,c) is shorthand for the [[slice]] &amp;lt;math&amp;gt;\Gamma_{a,b,c}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Larger n ==&lt;br /&gt;
&lt;br /&gt;
The following construction gives lower bounds for the number of triangle-free points, &lt;br /&gt;
There are of the order &amp;lt;math&amp;gt;2.7 \sqrt{log(N)/N}3^N&amp;lt;/math&amp;gt; points for large N (N ~ 5000)&lt;br /&gt;
&lt;br /&gt;
It applies when N is a multiple of 3. &lt;br /&gt;
* For N=3M-1, restrict the first digit of a 3M sequence to be 1.  So this construction has exactly one-third as many points for N=3M-1 as it has for N=3M. &lt;br /&gt;
* For N=3M-2, restrict the first two digits of a 3M sequence to be 12.  This leaves roughly one ninth of the points for N=3M-2 as for N=3M.&lt;br /&gt;
&lt;br /&gt;
The current lower bounds for &amp;lt;math&amp;gt;c_{3m}&amp;lt;/math&amp;gt; are built like this, with abc being shorthand for &amp;lt;math&amp;gt;\Gamma_{a,b,c}&amp;lt;/math&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;math&amp;gt;c_3&amp;lt;/math&amp;gt; from (012) and permutations&lt;br /&gt;
* &amp;lt;math&amp;gt;c_6&amp;lt;/math&amp;gt; from (123,024) and perms&lt;br /&gt;
* &amp;lt;math&amp;gt;c_9&amp;lt;/math&amp;gt; from (234,135,045) and perms&lt;br /&gt;
* &amp;lt;math&amp;gt;c_{12}&amp;lt;/math&amp;gt; from (345,246,156,02A,057) and perms (A=10)&lt;br /&gt;
* &amp;lt;math&amp;gt;c_{15}&amp;lt;/math&amp;gt; from (456,357,267,13B,168,04B,078) and perms (B=11)&lt;br /&gt;
&lt;br /&gt;
To get the triples in each row, add 1 to the triples in the previous row; then include new triples that have a zero.&lt;br /&gt;
&lt;br /&gt;
A general formula for these points is given below.  I think that they are triangle-free.  (For N&amp;lt;21, ignore any triple with a negative entry.)&lt;br /&gt;
&lt;br /&gt;
* There are thirteen groups of points in the centre, formed from adding one of the following points, or its permutation, to (M,M,M), when N=3M:&lt;br /&gt;
** (-7,-3,+10), (-7, 0,+7),(-7,+3,+4),(-6,-4,+10),(-6,-1,+7),(-6,+2,+4),(-5,-1,+6),(-5,+2,+3),(-4,-2,+6),(-4,+1,+3),(-3,+1,+2),(-2,0,+2),(-1,0,+1) &lt;br /&gt;
* There are also eight string of points, stretching to the edges of the (abc) triangle:&lt;br /&gt;
** For N=6K = 3M&lt;br /&gt;
*** M+(-8-2x,-6-2x,14+4x),M+(-8-2x,-3-2x,11+4x),M+(-8-2x,x,8+x),M+(-8-2x,3+x,5+x) and permutations (x&amp;gt;=0, M-8-2x&amp;gt;=0)&lt;br /&gt;
*** M+(-9-2x,-5-2x,14+4x),M+(-9-2x,-2-2x,11+4x),M+(-9-2x,1+x,8+x),M+(-9-2x,4+x,5+x) and permutations (x&amp;gt;=0, M-9-2x&amp;gt;=0)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
An alternate construction:&lt;br /&gt;
&lt;br /&gt;
First define a sequence, of all positive numbers which, in base 3, do not contain a 1. Add 1 to all multiples of 3 in this sequence. This sequence does not contain a length-3 arithmetic progression.&lt;br /&gt;
&lt;br /&gt;
It starts 1,2,7,8,19,20,25,26,55, …&lt;br /&gt;
&lt;br /&gt;
Second, list all the (abc) triples for which the larger two differ by a number&lt;br /&gt;
from the sequence, excluding the case when the smaller two differ by 1, but then including the case when (a,b,c) is a permutation of N/3+(-1,0,1)&lt;br /&gt;
&lt;br /&gt;
== Asymptotics ==&lt;br /&gt;
&lt;br /&gt;
DHJ(3) is equivalent to the upper bound&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;c_n \leq o(3^n)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In the opposite direction, observe that if we take a set &amp;lt;math&amp;gt;S \subset [3n]&amp;lt;/math&amp;gt; that contains no 3-term arithmetic progressions, then the set &amp;lt;math&amp;gt;\bigcup_{(a,b,c) \in \Delta_n: a+2b \in S} \Gamma_{a,b,c}&amp;lt;/math&amp;gt; is line-free.  From this and the Behrend construction it appears that we have the lower bound&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;c_n \geq 3^{n-O(\sqrt{\log n})}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
More precisely, we have&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;c_n &amp;gt; C 3^{n - 4\sqrt{\log 2}\sqrt{\log n}+\frac 12 \log \log n}&amp;lt;/math&amp;gt;&lt;br /&gt;
for some absolute constant C, and where all logarithms are base-3.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; For convenience, let n be a multiple of 3. Elkin’s bound gives &amp;lt;math&amp;gt;r_3(\sqrt{n}) &amp;gt; C \sqrt{n} (\log n)^{1/4} \exp_2(-2 \sqrt{\log_2 n})&amp;lt;/math&amp;gt;, and let &amp;lt;math&amp;gt;R&amp;lt;/math&amp;gt; be a subset of &amp;lt;math&amp;gt;(-3\sqrt{n}/2,3\sqrt{n}/2)&amp;lt;/math&amp;gt; without 3-term APs and with size &amp;lt;math&amp;gt;r_3(\sqrt{n})&amp;lt;/math&amp;gt;, and with all elements being integer multiples of 3 (again as a matter of convenience). For each &amp;lt;math&amp;gt;r,s\in R&amp;lt;/math&amp;gt;, let &amp;lt;math&amp;gt;a = (n-r-s)/3&amp;lt;/math&amp;gt;. The set &amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt; is the union of all &amp;lt;math&amp;gt;\Gamma_{a,a+r,a+s}&amp;lt;/math&amp;gt;. Since all of &amp;lt;math&amp;gt;a, a+r,a+s&amp;lt;/math&amp;gt; are between &amp;lt;math&amp;gt;n/3-2\sqrt{n}&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;n/3+2\sqrt{n}&amp;lt;/math&amp;gt;, the size of &amp;lt;math&amp;gt;\Gamma_{a,a+r,a+s}&amp;lt;/math&amp;gt; is at least &amp;lt;math&amp;gt;C 3^n / n&amp;lt;/math&amp;gt;. Since there are &amp;lt;math&amp;gt;r_3(\sqrt{n})^2&amp;lt;/math&amp;gt; choices for r and s, we have a set with size at least&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;C (\sqrt{n} (\log n)^{1/4} \exp_2(-2 \sqrt{\log_2 n}))^2 3^n / n&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
This simplifies to &amp;lt;math&amp;gt;C \sqrt{\log n} \exp_3(n-\alpha \sqrt{\log_3(n)})&amp;lt;/math&amp;gt;, where &amp;lt;math&amp;gt;\alpha=4 \sqrt{\log_3(2)}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Now suppose that &amp;lt;math&amp;gt;x_i\in \Gamma_{a_i,a_i+r_i,a_i+s_i}&amp;lt;/math&amp;gt; is a combinatorial line in the set A. Then &amp;lt;math&amp;gt;(a_i+s_i)-(a_i)=s_i&amp;lt;/math&amp;gt; is a 3-term AP contained in R, so the &amp;lt;math&amp;gt;s_i&amp;lt;/math&amp;gt; are all the same. Similarly, all of the &amp;lt;math&amp;gt;r_i&amp;lt;/math&amp;gt; are the same, and therefore all of the &amp;lt;math&amp;gt;a_i&amp;lt;/math&amp;gt; are the same, too. But this implies that the &amp;lt;math&amp;gt;x_i&amp;lt;/math&amp;gt; sequence is constant, which means the line is degenerate. &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[http://terrytao.wordpress.com/2009/02/05/upper-and-lower-bounds-for-the-density-hales-jewett-problem/#comment-35652 Numerics suggest] that the first large n construction given above above give a lower bound of roughly &amp;lt;math&amp;gt;2.7 \sqrt{\log(n)/n} \times 3^n&amp;lt;/math&amp;gt;, which would asymptotically be inferior to the Behrend bound.&lt;br /&gt;
&lt;br /&gt;
The second large n construction had numerical asymptotics for &amp;lt;math&amp;gt;\log(c_n/3^n)&amp;lt;/math&amp;gt; close to &amp;lt;math&amp;gt;1.2-\sqrt{\log(n)}&amp;lt;/math&amp;gt; between n=1000 and n=10000, consistent with the Behrend bound.&lt;br /&gt;
&lt;br /&gt;
== Other k values ==&lt;br /&gt;
&lt;br /&gt;
A [http://abel.math.umu.se/~klasm/Data/HJ/ computer search] has found the following &amp;lt;math&amp;gt;c_n&amp;lt;/math&amp;gt; values for different values of dimension n and edgelength k.&lt;br /&gt;
&lt;br /&gt;
{|&lt;br /&gt;
|n\k || 2 || 3 || 4 || 5 || 6 || 7&lt;br /&gt;
|-&lt;br /&gt;
| 2 || 2 || 6 || 12 || 20 || 30 || 42&lt;br /&gt;
|-&lt;br /&gt;
| 3 || 3 || 18 || 48 || 100 || 180 || 294&lt;br /&gt;
|-&lt;br /&gt;
| 4 || 6 || 52 || 183 || 500 || 1029-1079 || 2058&lt;br /&gt;
|-&lt;br /&gt;
| 5 || 10 || 150 || 683-732 || 2500&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Numerical methods ==&lt;br /&gt;
&lt;br /&gt;
A greedy algorithm [http://thetangentspace.com/wiki/Hales-Jewett_Theorem was implemented here].  The results were sharp for &amp;lt;math&amp;gt;n \leq 3&amp;lt;/math&amp;gt; but were slightly inferior to the constructions above for larger n.&lt;/div&gt;</summary>
		<author><name>121.220.134.232</name></author>
	</entry>
	<entry>
		<id>https://michaelnielsen.org/polymath/index.php?title=Moser%27s_cube_problem&amp;diff=1045</id>
		<title>Moser&#039;s cube problem</title>
		<link rel="alternate" type="text/html" href="https://michaelnielsen.org/polymath/index.php?title=Moser%27s_cube_problem&amp;diff=1045"/>
		<updated>2009-03-22T12:22:32Z</updated>

		<summary type="html">&lt;p&gt;121.220.134.232: /* n=4 */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Define a &#039;&#039;Moser set&#039;&#039; to be a subset of &amp;lt;math&amp;gt;[3]^n&amp;lt;/math&amp;gt; which does not contain any [[geometric line]], and let &amp;lt;math&amp;gt;c&#039;_n&amp;lt;/math&amp;gt; denote the size of the largest Moser set in &amp;lt;math&amp;gt;[3]^n&amp;lt;/math&amp;gt;.  The first few values are (see [http://www.research.att.com/~njas/sequences/A003142 OEIS A003142]):&lt;br /&gt;
&lt;br /&gt;
: &amp;lt;math&amp;gt;c&#039;_0 = 1; c&#039;_1 = 2; c&#039;_2 = 6; c&#039;_3 = 16; c&#039;_4 = 43; c&#039;_5 = 124.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Beyond this point, we only have some upper and lower bounds, in particular &amp;lt;math&amp;gt;353 \leq c&#039;_6 \leq 361&amp;lt;/math&amp;gt;; see [http://spreadsheets.google.com/ccc?key=p5T0SktZY9DsU-uZ1tK7VEg this spreadsheet] for the latest bounds.&lt;br /&gt;
&lt;br /&gt;
The best known asymptotic lower bound for &amp;lt;math&amp;gt;c&#039;_n&amp;lt;/math&amp;gt; is&lt;br /&gt;
&lt;br /&gt;
: &amp;lt;math&amp;gt;c&#039;_n \gg 3^n/\sqrt{n}&amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
formed by fixing the number of 2s to a single value near n/3.  Compare this to the DHJ(2) or Sperner limit of &amp;lt;math&amp;gt;2^n/\sqrt{n}&amp;lt;/math&amp;gt;.  Is it possible to do any better?  Note that we have a [[Upper_and_lower_bounds#Asymptotics|significantly better bound]] for the DHJ(3) &amp;lt;math&amp;gt;c_n&amp;lt;/math&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
: &amp;lt;math&amp;gt;c_n \geq 3^{n-O(\sqrt{\log n})}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
A more precise lower bound is&lt;br /&gt;
&lt;br /&gt;
: &amp;lt;math&amp;gt;c&#039;_n \geq \binom{n+1}{q} 2^{n-q}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where q is the nearest integer to &amp;lt;math&amp;gt;n/3&amp;lt;/math&amp;gt;, formed by taking all strings with q 2s, together with all strings with q-1 2s and an odd number of 1s.  This for instance gives the lower bound &amp;lt;math&amp;gt;c&#039;_5 \geq 120&amp;lt;/math&amp;gt;, which compares with the upper bound &amp;lt;math&amp;gt;c&#039;_5 \leq 3 c&#039;_4 = 129&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Using [[DHJ(3)]], we have the upper bound&lt;br /&gt;
&lt;br /&gt;
: &amp;lt;math&amp;gt;c&#039;_n = o(3^n)&amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
but no effective decay rate is known. It would be good to have a combinatorial proof of this fact (which is weaker than [[DHJ(3)]], but implies [[Roth&#039;s theorem]]).&lt;br /&gt;
&lt;br /&gt;
== Notation ==&lt;br /&gt;
&lt;br /&gt;
Given a Moser set A in &amp;lt;math&amp;gt;[3]^n&amp;lt;/math&amp;gt;, we let a be the number of points in A with no 2s, b be the number of points in A with one 2, c the number of points with two 2s, etc.  We call (a,b,c,...) the &#039;&#039;statistics&#039;&#039; of A.  Given a slice S of &amp;lt;math&amp;gt;[3]^n&amp;lt;/math&amp;gt;, we let a(S), b(S), etc. denote the statistics of that slice (dropping the fixed coordinates).  Thus for instance if A = {11, 12, 22, 32}, then (a,b,c) = (1,2,1), and (a(1*),b(1*)) = (1,1).&lt;br /&gt;
&lt;br /&gt;
We call a statistic (a,b,c,...) &#039;&#039;attainable&#039;&#039; if it is attained by a Moser set.  We say that an attainable statistic is &#039;&#039;Pareto-optimal&#039;&#039; if it cannot be pointwise dominated by any other attainable statistic (a&#039;,b&#039;,c&#039;,...) (thus &amp;lt;math&amp;gt;a&#039; \geq a&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;b&#039; \geq b&amp;lt;/math&amp;gt;, etc.)  We say that it is &#039;&#039;extremal&#039;&#039; if it is not a convex combination of any other attainable statistic (this is a stronger property than Pareto-optimal).  For the purposes of maximising linear scores of attainable statistics, it suffices to check extremal statistics.&lt;br /&gt;
&lt;br /&gt;
We let &amp;lt;math&amp;gt;(\alpha_0,\alpha_1,\ldots)&amp;lt;/math&amp;gt; be the normalized version of &amp;lt;math&amp;gt;(a,b,\ldots)&amp;lt;/math&amp;gt;, in which one divides the number of points of a certain type in the set by the total number of points in the set.  Thus for instance &amp;lt;math&amp;gt;\alpha_0 = a/2^n, \alpha_1 = b/(n 2^{n-1}), \alpha_3 = c/(\binom{n}{2} 2^{n-2})&amp;lt;/math&amp;gt;, etc., and the &amp;lt;math&amp;gt;\alpha_i&amp;lt;/math&amp;gt; range between 0 and 1.  Averaging arguments show that any linear inequality obeyed by the &amp;lt;math&amp;gt;\alpha_i&amp;lt;/math&amp;gt; at one dimension is automatically inherited by higher dimensions, as are shifted versions of this inequality (in which &amp;lt;math&amp;gt;\alpha_i&amp;lt;/math&amp;gt; is replaced by &amp;lt;math&amp;gt;\alpha_{i+1}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
The idea in &#039;c-statistics&#039; is to identify 1s and 3s but leave the 2s intact. Let’s use x to denote letters that are either 1 or 3, then the 81 points in &amp;lt;math&amp;gt;[3]^4&amp;lt;/math&amp;gt; get split up into 16 groups: 2222 (1 point), 222x, 22×2, 2×22, x222 (two points each), 22xx, 2×2x, x22x, 2xx2, x2×2, xx22 (four points each), 2xxx, x2xx, xx2x, xxx2 (eight points each), xxxx (sixteen points). Let c(w) denote the number of points inside a group w, e.g. c(xx22) is the number of points of the form xx22 inside the set, and is thus an integer from 0 to 4.&lt;br /&gt;
&lt;br /&gt;
== n=0 ==&lt;br /&gt;
&lt;br /&gt;
We trivially have &amp;lt;math&amp;gt;c&#039;_0=1.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== n=1 ==&lt;br /&gt;
&lt;br /&gt;
We trivially have &amp;lt;math&amp;gt;c&#039;_1=2.&amp;lt;/math&amp;gt;  The Pareto-optimal values of the statistics (a,b) are (1,1) and (2,0); these are also the extremals.  We thus have the inequality &amp;lt;math&amp;gt;a+b \leq 2&amp;lt;/math&amp;gt;, or in normalized notation&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;2\alpha_0 + \alpha_1 \leq 2&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== n=2 ==&lt;br /&gt;
&lt;br /&gt;
We have &amp;lt;math&amp;gt;c&#039;_2 = 6&amp;lt;/math&amp;gt;; the upper bound follows since &amp;lt;math&amp;gt;c&#039;_2 \leq 3 c&#039;_1&amp;lt;/math&amp;gt;, and the lower bound follows by deleting one of the two diagonals from &amp;lt;math&amp;gt;[3]^2&amp;lt;/math&amp;gt; (these are the only extremisers).&lt;br /&gt;
&lt;br /&gt;
The extremiser has statistics (a,b,c) = (2,4,0), which are of course Pareto-optimal.  If c=1 then we must have a, b at most 2 (look at the lines through 22).  This is attainable (e.g. {11, 12, 22, 23, 31}, and so (2,2,1) is another Pareto-optimal statistic.  If a=4, then b and c must be 0, so we get another Pareto-optimal statistic (4,0,0) (attainable by {11, 13, 31, 33} of course).  If a=3, then c=0 and b is at most 2, giving another Pareto-optimal statistic (3,2,0); but this is a convex combination of (4,0,0) and (2,4,0) and is thus not extremal.  Thus the complete set of extremal statistics are&lt;br /&gt;
&lt;br /&gt;
(4,0,0), (2,4,0), (2,2,1).&lt;br /&gt;
&lt;br /&gt;
The sharp linear inequalities obeyed by a,b,c (other than the trivial ones &amp;lt;math&amp;gt;a,b,c \geq 0&amp;lt;/math&amp;gt;) are then&lt;br /&gt;
&lt;br /&gt;
*&amp;lt;math&amp;gt;2a+b+2c \leq 8&amp;lt;/math&amp;gt;&lt;br /&gt;
*&amp;lt;math&amp;gt;b+2c \leq 4&amp;lt;/math&amp;gt;&lt;br /&gt;
*&amp;lt;math&amp;gt;a+2c \leq 4&amp;lt;/math&amp;gt;&lt;br /&gt;
*&amp;lt;math&amp;gt;c \leq 1&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
In normalized notation, we have&lt;br /&gt;
*&amp;lt;math&amp;gt;4\alpha_0 + 2\alpha_1 + \alpha_2 \leq 4&amp;lt;/math&amp;gt;&lt;br /&gt;
*&amp;lt;math&amp;gt;2\alpha_1 + \alpha_2 \leq 2&amp;lt;/math&amp;gt;&lt;br /&gt;
*&amp;lt;math&amp;gt;2\alpha_0 + \alpha_2 \leq 2&amp;lt;/math&amp;gt;&lt;br /&gt;
*&amp;lt;math&amp;gt;\alpha_2 \leq 1&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
The Pareto optimizers for c-statistics are (c(22),c(2x),c(x2),c(xx)) = (1112),(0222),(0004), which are covered by these linear inequalities: &lt;br /&gt;
*&amp;lt;math&amp;gt;c(22)+c(2x)+c(xx) \le 4&amp;lt;/math&amp;gt;, &lt;br /&gt;
*&amp;lt;math&amp;gt;c(22)+c(x2)+c(xx) \le 4&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== n=3 ==&lt;br /&gt;
&lt;br /&gt;
We have &amp;lt;math&amp;gt;c&#039;_3 = 16&amp;lt;/math&amp;gt;.  The lower bound can be seen for instance by taking all the strings with one 2, and half the strings with no 2 (e.g. the strings with an odd number of 1s).  The upper bound can be deduced from the corresponding [[upper and lower bounds]] for &amp;lt;math&amp;gt;c_3 = 18&amp;lt;/math&amp;gt;; the 17-point and 18-point line-free sets each contain a geometric line.&lt;br /&gt;
&lt;br /&gt;
If a Moser set in &amp;lt;math&amp;gt;[3]^3&amp;lt;/math&amp;gt; contains 222, then it can have at most 14 points, since the remaining 26 points in the cube split into 13 antipodal pairs, and at most one of each pair can lie in the set.  By exhausting over the &amp;lt;math&amp;gt;2^{13} = 8192&amp;lt;/math&amp;gt; possibilities, it can be shown that it is impossible for a 14-point set to exist; any Moser set containing 222 must in fact omit at least one antipodal pair completely and thus have only 13 points.  (A human proof of this fact can be [http://www.ma.rhul.ac.uk/~elsholtz/WWW/blog/mosertablogv01.pdf found here].)&lt;br /&gt;
&lt;br /&gt;
The Pareto-optimal statistics are&lt;br /&gt;
&lt;br /&gt;
(3,6,3,1),(4,4,3,1),(4,6,2,1),(2,6,6,0),(3,6,5,0),(4,4,5,0),(3,7,4,0),(4,6,4,0), (3,9,3,0),(4,7,3,0),(5,4,3,0),(4,9,2,0),(5,6,2,0),(6,3,2,0),(3,10,1,0),(5,7,1,0), (6,4,1,0),(4,12,0,0),(5,9,0,0),(6,6,0,0),(7,3,0,0),(8,0,0,0).&lt;br /&gt;
&lt;br /&gt;
These were found from a search of the &amp;lt;math&amp;gt;2^{27}&amp;lt;/math&amp;gt; subsets of the cube.&lt;br /&gt;
A spreadsheet containing these statistics can be [http://spreadsheets.google.com/ccc?key=p5T0SktZY9DuKZ2DyzO9EOg&amp;amp;hl=en# found here].&lt;br /&gt;
&lt;br /&gt;
The extremal statistics are&lt;br /&gt;
&lt;br /&gt;
(3,6,3,1),(4,4,3,1),(4,6,2,1),(2,6,6,0),(4,4,5,0),(4,6,4,0),(4,12,0,0),(8,0,0,0)&lt;br /&gt;
&lt;br /&gt;
The sharp linear bounds are :&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;math&amp;gt;2a+b+2c+4d \leq 22&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;3a+2b+3c+6d \leq 36&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;7a+2b+4c+8d \leq 56&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;6a+2b+3c+6d \leq 48&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;b+c+3d \leq 12&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;a+2c+4d \leq 14&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;5a+4c+8d \leq 40&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;a+4d \leq 8&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;b+6d \leq 12&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;c+3d \leq 6&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;d \leq 1&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In normalized notation,&lt;br /&gt;
* &amp;lt;math&amp;gt;8\alpha_0+ 6\alpha_1 + 6\alpha_2 + 2\alpha_3 \leq 11&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;4\alpha_0+4\alpha_1+3\alpha_2+\alpha_3 \leq 6&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;7\alpha_0+3\alpha_1+3\alpha_2+\alpha_3 \leq 7&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;8\alpha_0+3\alpha_1+3\alpha_2+\alpha_3 \leq 8&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;4\alpha_1+2\alpha_2+\alpha_3 \leq 4&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;4\alpha_0+6\alpha_2+2\alpha_3 \leq 7&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;5\alpha_0+3\alpha_2+\alpha_3 \leq 5&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;2\alpha_0+\alpha_3 \leq 2&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;2\alpha_1+\alpha_3 \leq 2&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;2\alpha_2+\alpha_3 \leq 2&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;\alpha_3 \leq 1&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The c-statistics can also be found from an exhaustive search of Moser sets.  The resulting Pareto sets and linear inequalities can be found on Sheet 8 of [http://spreadsheets.google.com/ccc?key=p5T0SktZY9DuKZ2DyzO9EOg&amp;amp;hl=en# this spreadsheet]&lt;br /&gt;
&lt;br /&gt;
== n=4 ==&lt;br /&gt;
&lt;br /&gt;
A [http://abel.math.umu.se/~klasm/extremal-moser-n=5-t=3 computer search] has obtained all extremisers to &amp;lt;math&amp;gt;c&#039;_4=43&amp;lt;/math&amp;gt;.  The 42-point solutions can be found [http://abel.math.umu.se/~klasm/moser-n=4-t=3-p=42.gz here].&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof that &amp;lt;math&amp;gt;c&#039;_4 \leq 43&amp;lt;/math&amp;gt;&#039;&#039;&#039;: &lt;br /&gt;
When e=1 (i.e. the 4D set contains 2222) then we have at most 41 points (in fact at most 39) by counting antipodal points, so assume e=0.&lt;br /&gt;
&lt;br /&gt;
Define the score of a 3D slice to be a/4+b/3+c/2+d.  Observe from double counting that the size of a 4D set is the sum of the scores of its eight side slices.&lt;br /&gt;
&lt;br /&gt;
But by [http://spreadsheets.google.com/ccc?key=p5T0SktZY9DuKZ2DyzO9EOg&amp;amp;hl=en looking at the extremals] we see that the largest score is 44/8, attained at only one point, namely when (a,b,c,d) = (2,6,6,0).  So the only way one can have a 44-point set is if all side slices are (2,6,6,0), or equivalently if the whole set has statistics (a,b,c,d,e) = (4,16,24,0,0).  But then we have all the points with two 2s, which means that the four &amp;quot;a&amp;quot; points cannot be separated by Hamming distance 2.  We conclude that we must have an antipodal pair among the &amp;quot;a&amp;quot; points with an odd number of 1s, and an antipodal pair among the &amp;quot;a&amp;quot; points with an even number of 1s.    By the symmetries of the cube, we may take the a-set to then be 1111, 3333, 1113, 3331.  But then the &amp;quot;b&amp;quot; set must exclude both 1112 and 3332, and so can have at most three points in the eight-point set xyz2 (with x,y,z=1,3) rather than four (to get four points one must alternate in a checkerboard pattern).  Adding this to the at most four points of the form xy2z, x2yz, 2xyz we see that b is at most 15, a contradiction. &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Given a subset of &amp;lt;math&amp;gt;[3]^4&amp;lt;/math&amp;gt;, let a be the number of points with no 2s, b be the number of points with 1 2, and so forth.  The quintuple (a,b,c,d,e) thus lies between (0,0,0,0,0) and (16,32,24,8,1).&lt;br /&gt;
&lt;br /&gt;
The 43-point solutions have distributions (a,b,c,d,e) as follows:&lt;br /&gt;
&lt;br /&gt;
* (5,20,18,0,0) [16 solutions]&lt;br /&gt;
* (4,16,23,0,0) [768 solutions]&lt;br /&gt;
* (3,16,24,0,0) [512 solutions]&lt;br /&gt;
* (4,15,24,0,0) [256 solutions]&lt;br /&gt;
&lt;br /&gt;
The 42-point solutions are [http://abel.math.umu.se/~klasm/Moser-42-stat.pdf distributed as follows]:&lt;br /&gt;
&lt;br /&gt;
* (6,24,12,0,0) [[http://abel.math.umu.se/~klasm/moser-n=4-42-12 8 solutions]] &lt;br /&gt;
* (5,20,17,0,0) [576 solutions]&lt;br /&gt;
* (5,19,18,0,0) [384 solutions]&lt;br /&gt;
* (6,16,18,2,0) [[http://abel.math.umu.se/~klasm/moser-n=4-42-e=2 192 solutions]]&lt;br /&gt;
* (4,20,18,0,0) [272 solutions]&lt;br /&gt;
* (5,17,20,0,0) [192 solutions]&lt;br /&gt;
* (5,16,21,0,0) [3584 solutions]&lt;br /&gt;
* (4,17,21,0,0) [768 solutions]&lt;br /&gt;
* (4,16,22,0,0) [26880 solutions]&lt;br /&gt;
* (5,15,22,0,0) [1536 solutions]&lt;br /&gt;
* (4,15,23,0,0) [22272 solutions]&lt;br /&gt;
* (3,16,23,0,0) [15744 solutions]&lt;br /&gt;
* (4,14,24,0,0) [4224 solutions]&lt;br /&gt;
* (3,15,24,0,0) [8704 solutions]&lt;br /&gt;
* (2,16,24,0,0) [896 solutions]&lt;br /&gt;
&lt;br /&gt;
Note how c is usually quite large, and d quite low.&lt;br /&gt;
&lt;br /&gt;
One of the (6,24,12,0,0) solutions is &amp;lt;math&amp;gt;\Gamma_{220}+\Gamma_{202}+\Gamma_{022}+\Gamma_{112}+\Gamma_{211}&amp;lt;/math&amp;gt; (i.e. the set of points containing exactly two 1s, and/or exactly two 3s).  The other seven are reflections of this set.&lt;br /&gt;
&lt;br /&gt;
There are 2,765,200 41-point solutions, [http://abel.math.umu.se/~klasm/solutions-4-t=3-41-moser.gz listed here].  The statistics for such points can be [http://abel.math.umu.se/~klasm/Moser-41-stat.pdf found here].  Noteworthy features of the statistics:&lt;br /&gt;
&lt;br /&gt;
* d is at most 3 (and, except for [http://abel.math.umu.se/~klasm/moser-n=3-t=3-41-d=3.gz 256 exceptional solutions] of the shape (5,15,18,3,0), have d at most 2; here are the [http://abel.math.umu.se/~klasm/moser-n=3-t=3-41-d=2.gz d=2 solutions] and [http://abel.math.umu.se/~klasm/moser-n=3-t=3-41-d=1.gz d=1 solutions])&lt;br /&gt;
* c is at least 6 (and, except for [http://abel.math.umu.se/~klasm/moser-n=3-t=3-41-c=6.gz 16 exceptional solutions] of the shape (7,28,6,0,0), have c at least 11).&lt;br /&gt;
&lt;br /&gt;
Statistics for the 41-point, 42-point, and 43-point solutions can be found [http://spreadsheets.google.com/ccc?key=p5T0SktZY9DuqNcxJ171Bbw&amp;amp;hl=en here].&lt;br /&gt;
&lt;br /&gt;
If a Moser set in &amp;lt;math&amp;gt;[3]^4&amp;lt;/math&amp;gt; contains 2222, then by the n=3 theory, any middle slice (i.e. 2***, *2**, **2*, or ***2) is missing at least one antipodal pair.  But each antipodal pair belongs to at most three middle slices, thus two of the 40 antipodal pairs must be completely missing.  As a consequence, any Moser set containing 2222 can have at most 39 points.&lt;br /&gt;
(A more refined analysis can be found at [http://www.ma.rhul.ac.uk/~elsholtz/WWW/blog/mosertablogv01.pdf found here].)&lt;br /&gt;
&lt;br /&gt;
We have the following inequalities connecting a,b,c,d,e:&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;math&amp;gt;4a+b \leq 64&amp;lt;/math&amp;gt;:  There are 32 lines connecting two &amp;quot;a&amp;quot; points with a &amp;quot;b&amp;quot; point; each &amp;quot;a&amp;quot; point belongs to four of these lines, and each &amp;quot;b&amp;quot; point belongs to one.  But each such line can have at most two points in the set, and the claim follows.&lt;br /&gt;
* This can be refined to &amp;lt;math&amp;gt;4a+b+\frac{2}{3} c \leq 64&amp;lt;/math&amp;gt;: There are 24 planes connecting four &amp;quot;a&amp;quot; points, four &amp;quot;b&amp;quot; points, and one &amp;quot;c&amp;quot; point; each &amp;quot;a&amp;quot; point belongs to six of these, each &amp;quot;b&amp;quot; point belongs to three, and each &amp;quot;c&amp;quot; point belongs to one.  For each of these planes, we have &amp;lt;math&amp;gt;2a + b + 2c \leq 8&amp;lt;/math&amp;gt; from the n=2 theory, and the claim follows.&lt;br /&gt;
* &amp;lt;math&amp;gt;6a+2c \leq 96&amp;lt;/math&amp;gt;:  There are 96 lines connecting two &amp;quot;a&amp;quot; points with a &amp;quot;c&amp;quot; point; each &amp;quot;a&amp;quot; point belongs to six of these lines, and each &amp;quot;c&amp;quot; point belongs to two.  But each such line can have at most two points in the set, and the claim follows.&lt;br /&gt;
* &amp;lt;math&amp;gt;3b+2c \leq 96&amp;lt;/math&amp;gt;:  There are 48 lines connecting two &amp;quot;b&amp;quot; points to a &amp;quot;c&amp;quot; point; each &amp;quot;b&amp;quot; point belongs to three of these points, and each &amp;quot;c&amp;quot; point belongs to two.  But each such line can have at most two points in the set, and the claim follows.&lt;br /&gt;
&lt;br /&gt;
The inequalities for n=3 imply inequalities for n=4.  Indeed, there are eight side slices of &amp;lt;math&amp;gt;[3]^4&amp;lt;/math&amp;gt;; each &amp;quot;a&amp;quot; point belongs to four of these, each &amp;quot;b&amp;quot; point belongs to three, each &amp;quot;c&amp;quot; point belongs to two, and each &amp;quot;d&amp;quot; point belongs to one.  Thus, any inequality of the form&lt;br /&gt;
:&amp;lt;math&amp;gt; \alpha a + \beta b + \gamma c + \delta d \leq M&amp;lt;/math&amp;gt;&lt;br /&gt;
in three dimensions implies the inequality&lt;br /&gt;
:&amp;lt;math&amp;gt; 4 \alpha a + 3 \beta b + 2 \gamma c + \delta d \leq 8M&amp;lt;/math&amp;gt;&lt;br /&gt;
in four dimensions.  Thus we have&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;math&amp;gt;8a+3b+4c+4d \leq 176&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;2a+b+c+d \leq 48&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;14a+3b+4c+4d \leq 244&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;4a+b+c+d \leq 64&amp;lt;/math&amp;gt; &lt;br /&gt;
* &amp;lt;math&amp;gt;3b+2c+3d \leq 96&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;a+c+d \leq 28&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;5a+2c+2d \leq 80&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;a+d \leq 16&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;b+2d \leq 32&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;2c+3d \leq 48&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Cubes also sit diagonally in the 4-dimensional cube.  They may have coordinates xxyz, where xx runs over (11,22,33) or (13,22,31), while y and z run over (1,2,3).  These cubes have a different distribution of 2s than the ordinary slices: (a,b,c,d,e) = (8,8,6,4,1) instead of (8,12,6,1,0) for the side slices and (0,8,12,6,1) for the middle slices.  So a different set of inequalities arise.  It is possible to run through the same procedure as described above for n=3, and the inequalities that arise are &lt;br /&gt;
* &amp;lt;math&amp;gt;2a+b+2c+2d+4e \le 24&amp;lt;/math&amp;gt; and &lt;br /&gt;
* &amp;lt;math&amp;gt;4a+b+2c+2d+4e \le 32&amp;lt;/math&amp;gt; &lt;br /&gt;
within the 3D cube, which when averaged becomes &lt;br /&gt;
* &amp;lt;math&amp;gt;4a+b+2c+4d+16e \le 96&amp;lt;/math&amp;gt; and &lt;br /&gt;
* &amp;lt;math&amp;gt;8a+b+2c+4d+16e \le 128&amp;lt;/math&amp;gt; &lt;br /&gt;
for the 4D cube.  A spreadsheet containing these statistics can be [http://spreadsheets.google.com/ccc?key=p5T0SktZY9DuKZ2DyzO9EOg&amp;amp;hl=en# found here] on sheet 2.  Other sheets of this spreadsheet contain results for a 3D cube sitting diagonally in a 5D, 6D or 7D cube.  Notice the similarity of the equations that arise for the xxxyz, xxyyz and xxxxyz diagonals.  Also notice the (a,b,c,...) statistics for the xxxxyyz diagonals have the same Pareto sets and linear inequalities as the cube&#039;s c-statistics.&lt;br /&gt;
&lt;br /&gt;
The c-statistics for the 3D cube are bounded by a set of 20 inequalities.  By considering the fourteen ways a 3D cube sits in the 4D cube, the result is a set of 239 inequalities for the 4D cube&#039;s c-statistics.  However, all 239 inequalities are satisfied by a 44-point solution given by c(xxxx) = c(2xxx) = c(22xx) = 4, and permutations.&lt;br /&gt;
&lt;br /&gt;
== n=5 ==&lt;br /&gt;
&lt;br /&gt;
Let (A,B,C,D,E,F) be the statistics of a five-dimensional Moser set, thus (A,B,C,D,E,F) varies between (0,0,0,0,0,0) and (32,80,80,40,10,1).&lt;br /&gt;
&lt;br /&gt;
There are several Moser sets with the statistics (4,40,80,0,0,0), which thus have 124 points.  Indeed, one can take&lt;br /&gt;
&lt;br /&gt;
* all points with two 2s;&lt;br /&gt;
* all points with one 2 and an even number of 1s; and&lt;br /&gt;
* (13111),(13113),(31311),(13333). Any two of these four points differ in three places, except for one pair of points that differ in one place.&lt;br /&gt;
&lt;br /&gt;
For the rest of this section, we assume that the Moser set &amp;lt;math&amp;gt;{\mathcal A}&amp;lt;/math&amp;gt; is a 125-point Moser set.  We will prove that &amp;lt;math&amp;gt;{\mathcal A}&amp;lt;/math&amp;gt; cannot exist.&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 1&#039;&#039;&#039;: F=0.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; If F is non-zero, then the Moser set contains 22222, then each of the 121 antipodal pairs can have at most one point in the set, leading to only 122 points. &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 2&#039;&#039;&#039;: Every middle slice of &amp;lt;math&amp;gt;{\mathcal A}&amp;lt;/math&amp;gt; has at most 41 points.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039;  Without loss of generality we may consider the 2**** slice.  There are two cases, depending on the value of c(2****).&lt;br /&gt;
&lt;br /&gt;
Suppose first that c is at least 17; thus there are at least 17 points of the form 222xy, 22x2y, 22xy2, 2x2y2, 2xy22, or 2x22y, where the x, y denote 1 or 3.  This gives 34 &amp;quot;xy&amp;quot; wildcards in all in four coordinate slots; by the pigeonhole principle one of the slots sees at least 9 of the wildcards.  By symmetry, we may assume that the second coordinate slot sees at least 9 of these wildcards, thus there are at least 9 points of the form 2x22y, 2x2y2, 2xy22.  The x=1, x=3 cases can absorb at most six of these, thus each of these cases must absorb at least three points, with at least one absorbing at least five.  Let&#039;s say that it&#039;s the x=3 case that absorbs 5; thus &amp;lt;math&amp;gt;d(*1***) \geq 3&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;d(*3***) \geq 5&amp;lt;/math&amp;gt;.  From the n=4 theory this means that the *1*** slice has at most 41 points, and the *3*** slice has at most 40.  Meanwhile, the middle slice has at most 43, leading to 41+41+42=124 points in all.&lt;br /&gt;
&lt;br /&gt;
Now suppose c is less than 17; then by the n=4 theory the middle slice is one of the eight (6,24,12,0,0) sets.  Without loss of generality we may take it to be &amp;lt;math&amp;gt;\Gamma_{220}+\Gamma_{202}+\Gamma_{022}+\Gamma_{112}+\Gamma_{211}&amp;lt;/math&amp;gt;; in particular, the middle slice contains the points 21122 21212 21221 23322 23232 23223.  In particular, the *1*** and *3*** slices have a &amp;quot;d&amp;quot; value of at least three, and so have at most 41 points.  If the *2*** slice has at most 42 points, then we are at 41+42+41=124 points as needed, but if we have 43 or more, then we are back in the first case (as &amp;lt;math&amp;gt;c(*2***) \geq 17&amp;lt;/math&amp;gt;) after permuting the indices.&lt;br /&gt;
&amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Since 125=41+41+43, we thus have&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Corollary 1&#039;&#039;&#039;: Every side slice of &amp;lt;math&amp;gt;{\mathcal A}&amp;lt;/math&amp;gt; has at least 41 points.  If one side slice does have 41 points, then the other has 43.&lt;br /&gt;
&lt;br /&gt;
Combining this with the n=4 statistics, we conclude&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Corollary 2&#039;&#039;&#039;: Every side slice of &amp;lt;math&amp;gt;{\mathcal A}&amp;lt;/math&amp;gt; has e=0, and &amp;lt;math&amp;gt;d \leq 3&amp;lt;/math&amp;gt;.  Given two opposite side slices, e.g. 1**** and 3****, we have &amp;lt;math&amp;gt;d(1****)+d(3****) \leq 4&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Corollary 3&#039;&#039;&#039;: E=0.&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Corollary 4&#039;&#039;&#039;: Any middle slice has a &amp;quot;c&amp;quot; value of at most 8.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; Let&#039;s work with the 2**** slice.  By Corollary 2, there are at most four contributions to c(2****) of the form 21*** or 23***, and similarly for the other three positions.  Double counting then gives the claim. &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 3&#039;&#039;&#039;: &amp;lt;math&amp;gt;2B+C \leq 160&amp;lt;/math&amp;gt;.   &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039;: There are 160 lines connecting one &amp;quot;C&amp;quot; point to two &amp;quot;B&amp;quot; points (e.g. 11112, 11122, 11132); each &amp;quot;C&amp;quot; point lies in two of these, and each &amp;quot;B&amp;quot; point lies on four.  A Moser set can have at most two points out of each of these lines.  Double counting then gives the claim.  &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 4&#039;&#039;&#039; Given m A-points with &amp;lt;math&amp;gt;m \geq 5&amp;lt;/math&amp;gt;, there exists at least m-4 pairs (a,b) of such A-points with Hamming distance exactly two (i.e. b differs from a in exactly two places).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; It suffices to check this for m=5, since the case of larger m then follows by locating a pair, removing a point that contributes to that pair, and using the induction hypothesis.  Given 5 A-points, we may assume by the pigeonhole principle and symmetry that at least three of them have an odd number of 1s.  Suppose 11111 is one of the points, and that no pair has Hamming distance 2. All points with two 3s are excluded, so the only points allowed with an odd number of 1s are those with four 3s. But all those points differ from each other in two positions, so at most one of them is allowed.  &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Corollary 5&#039;&#039;&#039; &amp;lt;math&amp;gt;C \leq 79&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039;: Suppose for contradiction that C=80, then D=0 and &amp;lt;math&amp;gt;B \leq 40&amp;lt;/math&amp;gt;.  From Lemma 4 we also see that A cannot be 5 or more, leading to the contradiction.&lt;br /&gt;
&amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Define the &#039;&#039;&#039;score&#039;&#039;&#039; of a Moser set in &amp;lt;math&amp;gt;[3]^4&amp;lt;/math&amp;gt; to be the quantity &amp;lt;math&amp;gt;a + 5b/4 + 5c/3 + 5d/2 + 5e&amp;lt;/math&amp;gt;.  Double-counting (and Lemma 2) gives&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 5&#039;&#039;&#039;  The total score of all the ten side-slices of &amp;lt;math&amp;gt;{\mathcal A}&amp;lt;/math&amp;gt; is equal to &amp;lt;math&amp;gt;5|{\mathcal A}| = 5 \times 125&amp;lt;/math&amp;gt;.  In particular, there exists a pair of opposite side-slices whose scores add up to at least 125.&lt;br /&gt;
&lt;br /&gt;
By Lemma 5 and symmetry, we may assume that the 1**** and 3**** slices have score adding up to at least 125.  By Lemma 2, the 2**** slice has at most 41 points, which imply that the 1**** and 3**** have 41, 42, or 43 points.  From the [http://spreadsheets.google.com/ccc?key=p5T0SktZY9DuqNcxJ171Bbw&amp;amp;hl=en n=4 statistics] we know that all 41-point, 42-point, 43-point slices have score less than 62, with the following exceptions:&lt;br /&gt;
&lt;br /&gt;
# (2,16,24,0,0) [42 points, score: 62]&lt;br /&gt;
# (4,16,23,0,0) [43 points, score: 62 1/3]&lt;br /&gt;
# (4,15,24,0,0) [43 points, score: 62 3/4]&lt;br /&gt;
# (3,16,24,0,0) [43 points, score: 63]&lt;br /&gt;
&lt;br /&gt;
Thus the 1**** and 3**** slices must come from the above list.  Furthermore, if one of the slices is of type 1, then the other must be of type 4, and if one slice is of type 2, then the other must be of type 3 or 4.&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 6&#039;&#039;&#039; There exists one cut in which the side slices have total score strictly greater than 125 (i.e. they thus involve only Type 2, Type 3, and Type 4 slices, with at least one side slice not equal to Type 2, and the cut here is of the form 43+39+43).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; If not, then all cuts have side slices exactly equal to 125, which by the above table implies that one is Type 1 and one is Type 4, in particular all side slices have c=24.  But this forces C=80, contradicting Corollary 5. &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Adding up the corners we conclude&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Corollary 6&#039;&#039;&#039; &amp;lt;math&amp;gt;6 \leq A \leq 8&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 7&#039;&#039;&#039; &amp;lt;math&amp;gt;D=0&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; Firstly, from Lemma 6 we have a cut in which the two side slices are omitting at most one C-point between them (and have no D-point), which forces the middle slice to have at most one D-point; thus D is at most 1.&lt;br /&gt;
&lt;br /&gt;
Now suppose instead that D=1 (e.g. if 11222 was in the set); then there would be two choices of coordinates in which one of the side slices would have d=1 (e.g. 1**** and *1****). But the [http://spreadsheets.google.com/ccc?key=p5T0SktZY9DuqNcxJ171Bbw&amp;amp;hl=en n=4 statistics] show that such slices have a score of at most 59 7/12, so that the total score from those two coordinates is at most 63 + 59 7/12 = 122 7/12. On the other hand, the other three slices have a net score of at most 63+63 = 126. This averages out to at most 124.633... &amp;lt; 125, a contradiction.  &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Corollary 7&#039;&#039;&#039; Every middle slice has at most 40 points.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; From Lemma 7 we see that the middle slice must have c=0, but from the n=4 statistics this is not possible for any slice of size 41 or higher (alternatively, one can use the inequalities &amp;lt;math&amp;gt;4a+b \leq 64&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;b \leq 32&amp;lt;/math&amp;gt;). &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Each middle slice now has 39 or 40 points, with c=d=e=0, and so from the inequalities &amp;lt;math&amp;gt;4a+b \leq 64&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;b \leq 32&amp;lt;/math&amp;gt; must have statistics (8,32,0,0,0),(7,32,0,0,0), or (8,31,0,0,0).  In particular the &amp;quot;a&amp;quot; index of the middle slices is at most 8.  Summing over all middle slices we conclude&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 9&#039;&#039;&#039; B is at most 40.&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 10&#039;&#039;&#039; C is equal to 78 or 79.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; By Corollary 5, it suffices to show that &amp;lt;math&amp;gt;C \geq 78&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
As 125=43+39+43, we see that every center slice must have at least 39 points. By Lemma 2 and Lemma 7 the center slice has c=d=e=0, thus the center slice has a+b &amp;gt;= 39.  On the other hand, from the n=4 theory we have 4a+b &amp;lt;= 64, which forces b &amp;gt;= 31.&lt;br /&gt;
&lt;br /&gt;
By double counting, we see that 2C is equal to the sum of the b&#039;s of all the five center slices.  Thus C &amp;gt;= 5*31/2 = 77.5 and the claim follows.  &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
From Lemmas 9 and 10 we see that &amp;lt;math&amp;gt;B+C \leq 119&amp;lt;/math&amp;gt;, and thus &amp;lt;math&amp;gt;A \geq 6&amp;lt;/math&amp;gt;.  Also, if &amp;lt;math&amp;gt;A \geq 7&amp;lt;/math&amp;gt;, then by Lemma 4 we have at least three pairs of A points with Hamming distance 2.  At most two of these pairs eliminate the same C point, so we would have C=78 in that case.  &lt;br /&gt;
&lt;br /&gt;
Putting all the above facts together, we see that (A,B,C,D,E,F) must be one of the following triples:&lt;br /&gt;
&lt;br /&gt;
* (6,40,79,0,0,0)&lt;br /&gt;
* (7,40,78,0,0,0)&lt;br /&gt;
* (8,39,78,0,0,0)&lt;br /&gt;
&lt;br /&gt;
All three cases can be eliminated, giving &amp;lt;math&amp;gt;c&#039;_5=124&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== Elimination of (6,40,79,0,0,0) ===&lt;br /&gt;
&lt;br /&gt;
Look at the 6 A points.  From Lemma 4 we have at least two pairs (a,b), (c,d) of A-points that have Hamming separation 2.&lt;br /&gt;
&lt;br /&gt;
Now look at the midpoints of these two pairs; these midpoints are C-points cannot lie in the set.  But we have exactly one C-point missing from the set, thus the midpoints must be the same.  By symmetry, we may thus assume that the two pairs are (11111,11133) and (11113,11131).  Thus 11111,11133, 11113, 11131 are in the set, and so every C-point other than 11122 is in the set.  On the other hand, the B-points 11121, 11123, 11112, 11132 lie outside the set.&lt;br /&gt;
&lt;br /&gt;
At most one of 11312, 11332 lie in the set (since 11322 lies in the set).   Suppose that 11312 lies outside the set, then we have a pair (xy1z2, xy3z2) with x,y,z = 1,3 that is totally omitted from the set, namely (11112,11312).  On the other hand, every other pair of this form can have at most one point in the set, thus there are at most seven points in the set of the form (xyzw2) with x,y,z,w = 1,3.  Similarly there are at most 8 points of the form xyz2w, or of xy2zw, x2yzw, 2xyzw, leading to at most 39 B-points in all, contradiction.&lt;br /&gt;
&lt;br /&gt;
=== Elimination of (7,40,78,0,0,0) ===&lt;br /&gt;
&lt;br /&gt;
By Lemma 4, we have at least three pairs of A-points of distance two apart that lie in the set.&lt;br /&gt;
The midpoints of these pairs are C-points that do not lie in the set; but there are only two such C-points, thus two pairs must have the same midpoint, so we may assume as before that 111xy lies in the set for x,y=1,3, which implies that 1112* and 111*2 lie outside the set.&lt;br /&gt;
&lt;br /&gt;
Now consider the 160 lines between 2 B points and one C point (cf. Lemma 3).  The sum of all the points in each such line (counting multiplicity) is 4B+2C = 316.  On the other hand, every one of the 160 lines can have at most two points, and two of these lines (namely 1112*, 111*2) have no points.  Thus all the other lines must have exactly two points.  &lt;br /&gt;
&lt;br /&gt;
We know that the C-point 11122 is missing from the set; there is one other missing C-point.  Since 1112x, 111x2 lie outside the set, we conclude from the previous paragraph that 1132x, 113x2 and 1312x, 131x2 lie in the set.  Taking midpoints we conclude that 11322 and 13122 lie outside the set.  But this is now three C-points missing (together with 11122), a contradiction.&lt;br /&gt;
&lt;br /&gt;
=== Elimination of (8,39,78,0,0,0) ===&lt;br /&gt;
&lt;br /&gt;
By Lemma 4 we have at least four pairs of A-points of distance two apart that lie in the set. The midpoints of these pairs are C-points that do not lie in the set; but there are only two such C-points, thus two pairs (a,b), (c,d) must have the same midpoint p, and the other two pairs (a&#039;,b&#039;), (c&#039;,d&#039;) must also have the same midpoint p&#039;.  (Note that every C-point is the midpoint of at most two such pairs.)&lt;br /&gt;
&lt;br /&gt;
Now consider the 160 lines between 2 B points and one C point (cf. Lemma 3).  The sum of all the points in each such line (counting multiplicity) is 4B+2C = 312.  Every one of the 160 lines can have at most two points, and four of these (those in the plane of (a,b,c,d) or of (a&#039;,b&#039;,c&#039;,d&#039;) have no points.  Thus all other lines must have exactly two points.&lt;br /&gt;
&lt;br /&gt;
Without loss of generality we have (a,b)=(11111,11133), (c,d) = (11113,11131), thus p = 11122.  By permuting the first three indices, we may assume that p&#039; is not of the form x2y2z, x2yz2, xy22z, xy2z2.  Then 1112x lies outside the set and 1122x lies in the set, so by the above paragraph 1132x lies in the set; similarly for 113x2, 1312x, 131x2.  This implies that 13122, 11322 lie outside the set, but this (together with 11122) shows that at least three C-points are missing, a contradiction.&lt;br /&gt;
&lt;br /&gt;
== General n ==&lt;br /&gt;
&lt;br /&gt;
General solution for &amp;lt;math&amp;gt;c&#039;_N&amp;lt;/math&amp;gt;. For any q, the union of the following sets is a Moser set.  The size of this Moser set is maximized when q is near N/3, in which case it is &amp;lt;math&amp;gt;O(3^n/\sqrt{n})&amp;lt;/math&amp;gt;.  Most of the points are in the layers with q 2s and q-1 2s.&lt;br /&gt;
&lt;br /&gt;
* q 2s, all points from A(N-q,1)&lt;br /&gt;
* q-1 2s, points from A(N-q+1,2)&lt;br /&gt;
* q-2 2s, points from A(N-q+2,3)&lt;br /&gt;
* etc.&lt;br /&gt;
&lt;br /&gt;
where A(m,d) is a subset of &amp;lt;math&amp;gt;[1,3]^m&amp;lt;/math&amp;gt; for which any two points differ from each other in at least d places.&lt;br /&gt;
&lt;br /&gt;
Mathworld’s entry on error-correcting codes suggests it might be NP-complete to find the maximum size of A(m,d) in general.  However, the size of A(m,d) can be bounded by sphere-packing arguments.  For example, points in A(m,3) are surrounded by non-intersecting spheres of Hamming radius 1, and points in A(m,5) are surrounded by non-intersecting spheres of Hamming radius 2.&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;math&amp;gt;|A(m,1)| = 2^m&amp;lt;/math&amp;gt; because it includes all points in &amp;lt;math&amp;gt;[1,3]^m&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;|A(m,2)| = 2^{m-1}&amp;lt;/math&amp;gt; because it can include all points in &amp;lt;math&amp;gt;[1,3]^m&amp;lt;/math&amp;gt; with an odd number of ones.&lt;br /&gt;
* &amp;lt;math&amp;gt;|A(m,3)| \le 2^m/(m+1)&amp;lt;/math&amp;gt; because the size of a Hamming sphere is m+1.&lt;br /&gt;
&lt;br /&gt;
The integer programming routine from Maple 12 was used to obtain upper bounds for &amp;lt;math&amp;gt;c&#039;_6&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;c&#039;_7&amp;lt;/math&amp;gt;.  A large number of linear inequalities, such as those described above in sections (n=3) and (n=4), were combined.  The details are in [[Maple calculations]].  The results were that &amp;lt;math&amp;gt;c&#039;_6 \le 361&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;c&#039;_7 \le 1071&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
A [[genetic algorithm]] has provided the following examples:&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;math&amp;gt;c&#039;_6 \geq 353&amp;lt;/math&amp;gt; (26 examples; [http://twofoldgaze.wordpress.com/2009/03/10/353-element-solution/ here is one])&lt;br /&gt;
* &amp;lt;math&amp;gt;c&#039;_7 \geq 988&amp;lt;/math&amp;gt; [http://twofoldgaze.wordpress.com/2009/03/10/978-element-solution/ Here is the example]&lt;br /&gt;
&lt;br /&gt;
== Larger sides (k&amp;gt;3) ==&lt;br /&gt;
&lt;br /&gt;
The following set gives a lower bound for Moser’s cube &amp;lt;math&amp;gt;[4]^n&amp;lt;/math&amp;gt; (values 1,2,3,4):  Pick all points where q entries are 2 or 3; and also pick those where q-1 entries are 2 or 3 and an odd number of entries are 1.  This is maximized when q is near n/2, giving a lower bound of&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\binom{n}{n/2} 2^n + \binom{n}{n/2-1} 2^{n-1}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
which is comparable to &amp;lt;math&amp;gt;4^n/\sqrt{n}&amp;lt;/math&amp;gt; by [[Stirling&#039;s formula]].&lt;br /&gt;
&lt;br /&gt;
For k=5 (values 1,2,3,4,5) If A, B, C, D, and E denote the numbers of 1-s, 2-s, 3-s, 4-s and 5-s then the first three points of a geometric line form a 3-term arithmetic progression in A+E+2(B+D)+3C. So, for k=5 we have a similar lower bound for the Moser’s problem as for DHJ k=3, i.e. &amp;lt;math&amp;gt;5^{n - O(\sqrt{\log n})}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
The k=6 version of Moser implies DHJ(3).  Indeed, any k=3 combinatorial line-free set can be &amp;quot;doubled up&amp;quot; into a k=6 geometric line-free set of the same density by pulling back the set from the map &amp;lt;math&amp;gt;\phi: [6]^n \to [3]^n&amp;lt;/math&amp;gt; that maps 1, 2, 3, 4, 5, 6 to 1, 2, 3, 3, 2, 1 respectively; note that this map sends k=6 geometric lines to k=3 combinatorial lines.&lt;/div&gt;</summary>
		<author><name>121.220.134.232</name></author>
	</entry>
	<entry>
		<id>https://michaelnielsen.org/polymath/index.php?title=Moser%27s_cube_problem&amp;diff=1044</id>
		<title>Moser&#039;s cube problem</title>
		<link rel="alternate" type="text/html" href="https://michaelnielsen.org/polymath/index.php?title=Moser%27s_cube_problem&amp;diff=1044"/>
		<updated>2009-03-22T05:19:40Z</updated>

		<summary type="html">&lt;p&gt;121.220.134.232: /* General n */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Define a &#039;&#039;Moser set&#039;&#039; to be a subset of &amp;lt;math&amp;gt;[3]^n&amp;lt;/math&amp;gt; which does not contain any [[geometric line]], and let &amp;lt;math&amp;gt;c&#039;_n&amp;lt;/math&amp;gt; denote the size of the largest Moser set in &amp;lt;math&amp;gt;[3]^n&amp;lt;/math&amp;gt;.  The first few values are (see [http://www.research.att.com/~njas/sequences/A003142 OEIS A003142]):&lt;br /&gt;
&lt;br /&gt;
: &amp;lt;math&amp;gt;c&#039;_0 = 1; c&#039;_1 = 2; c&#039;_2 = 6; c&#039;_3 = 16; c&#039;_4 = 43; c&#039;_5 = 124.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Beyond this point, we only have some upper and lower bounds, in particular &amp;lt;math&amp;gt;353 \leq c&#039;_6 \leq 361&amp;lt;/math&amp;gt;; see [http://spreadsheets.google.com/ccc?key=p5T0SktZY9DsU-uZ1tK7VEg this spreadsheet] for the latest bounds.&lt;br /&gt;
&lt;br /&gt;
The best known asymptotic lower bound for &amp;lt;math&amp;gt;c&#039;_n&amp;lt;/math&amp;gt; is&lt;br /&gt;
&lt;br /&gt;
: &amp;lt;math&amp;gt;c&#039;_n \gg 3^n/\sqrt{n}&amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
formed by fixing the number of 2s to a single value near n/3.  Compare this to the DHJ(2) or Sperner limit of &amp;lt;math&amp;gt;2^n/\sqrt{n}&amp;lt;/math&amp;gt;.  Is it possible to do any better?  Note that we have a [[Upper_and_lower_bounds#Asymptotics|significantly better bound]] for the DHJ(3) &amp;lt;math&amp;gt;c_n&amp;lt;/math&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
: &amp;lt;math&amp;gt;c_n \geq 3^{n-O(\sqrt{\log n})}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
A more precise lower bound is&lt;br /&gt;
&lt;br /&gt;
: &amp;lt;math&amp;gt;c&#039;_n \geq \binom{n+1}{q} 2^{n-q}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where q is the nearest integer to &amp;lt;math&amp;gt;n/3&amp;lt;/math&amp;gt;, formed by taking all strings with q 2s, together with all strings with q-1 2s and an odd number of 1s.  This for instance gives the lower bound &amp;lt;math&amp;gt;c&#039;_5 \geq 120&amp;lt;/math&amp;gt;, which compares with the upper bound &amp;lt;math&amp;gt;c&#039;_5 \leq 3 c&#039;_4 = 129&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Using [[DHJ(3)]], we have the upper bound&lt;br /&gt;
&lt;br /&gt;
: &amp;lt;math&amp;gt;c&#039;_n = o(3^n)&amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
but no effective decay rate is known. It would be good to have a combinatorial proof of this fact (which is weaker than [[DHJ(3)]], but implies [[Roth&#039;s theorem]]).&lt;br /&gt;
&lt;br /&gt;
== Notation ==&lt;br /&gt;
&lt;br /&gt;
Given a Moser set A in &amp;lt;math&amp;gt;[3]^n&amp;lt;/math&amp;gt;, we let a be the number of points in A with no 2s, b be the number of points in A with one 2, c the number of points with two 2s, etc.  We call (a,b,c,...) the &#039;&#039;statistics&#039;&#039; of A.  Given a slice S of &amp;lt;math&amp;gt;[3]^n&amp;lt;/math&amp;gt;, we let a(S), b(S), etc. denote the statistics of that slice (dropping the fixed coordinates).  Thus for instance if A = {11, 12, 22, 32}, then (a,b,c) = (1,2,1), and (a(1*),b(1*)) = (1,1).&lt;br /&gt;
&lt;br /&gt;
We call a statistic (a,b,c,...) &#039;&#039;attainable&#039;&#039; if it is attained by a Moser set.  We say that an attainable statistic is &#039;&#039;Pareto-optimal&#039;&#039; if it cannot be pointwise dominated by any other attainable statistic (a&#039;,b&#039;,c&#039;,...) (thus &amp;lt;math&amp;gt;a&#039; \geq a&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;b&#039; \geq b&amp;lt;/math&amp;gt;, etc.)  We say that it is &#039;&#039;extremal&#039;&#039; if it is not a convex combination of any other attainable statistic (this is a stronger property than Pareto-optimal).  For the purposes of maximising linear scores of attainable statistics, it suffices to check extremal statistics.&lt;br /&gt;
&lt;br /&gt;
We let &amp;lt;math&amp;gt;(\alpha_0,\alpha_1,\ldots)&amp;lt;/math&amp;gt; be the normalized version of &amp;lt;math&amp;gt;(a,b,\ldots)&amp;lt;/math&amp;gt;, in which one divides the number of points of a certain type in the set by the total number of points in the set.  Thus for instance &amp;lt;math&amp;gt;\alpha_0 = a/2^n, \alpha_1 = b/(n 2^{n-1}), \alpha_3 = c/(\binom{n}{2} 2^{n-2})&amp;lt;/math&amp;gt;, etc., and the &amp;lt;math&amp;gt;\alpha_i&amp;lt;/math&amp;gt; range between 0 and 1.  Averaging arguments show that any linear inequality obeyed by the &amp;lt;math&amp;gt;\alpha_i&amp;lt;/math&amp;gt; at one dimension is automatically inherited by higher dimensions, as are shifted versions of this inequality (in which &amp;lt;math&amp;gt;\alpha_i&amp;lt;/math&amp;gt; is replaced by &amp;lt;math&amp;gt;\alpha_{i+1}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
The idea in &#039;c-statistics&#039; is to identify 1s and 3s but leave the 2s intact. Let’s use x to denote letters that are either 1 or 3, then the 81 points in &amp;lt;math&amp;gt;[3]^4&amp;lt;/math&amp;gt; get split up into 16 groups: 2222 (1 point), 222x, 22×2, 2×22, x222 (two points each), 22xx, 2×2x, x22x, 2xx2, x2×2, xx22 (four points each), 2xxx, x2xx, xx2x, xxx2 (eight points each), xxxx (sixteen points). Let c(w) denote the number of points inside a group w, e.g. c(xx22) is the number of points of the form xx22 inside the set, and is thus an integer from 0 to 4.&lt;br /&gt;
&lt;br /&gt;
== n=0 ==&lt;br /&gt;
&lt;br /&gt;
We trivially have &amp;lt;math&amp;gt;c&#039;_0=1.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== n=1 ==&lt;br /&gt;
&lt;br /&gt;
We trivially have &amp;lt;math&amp;gt;c&#039;_1=2.&amp;lt;/math&amp;gt;  The Pareto-optimal values of the statistics (a,b) are (1,1) and (2,0); these are also the extremals.  We thus have the inequality &amp;lt;math&amp;gt;a+b \leq 2&amp;lt;/math&amp;gt;, or in normalized notation&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;2\alpha_0 + \alpha_1 \leq 2&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== n=2 ==&lt;br /&gt;
&lt;br /&gt;
We have &amp;lt;math&amp;gt;c&#039;_2 = 6&amp;lt;/math&amp;gt;; the upper bound follows since &amp;lt;math&amp;gt;c&#039;_2 \leq 3 c&#039;_1&amp;lt;/math&amp;gt;, and the lower bound follows by deleting one of the two diagonals from &amp;lt;math&amp;gt;[3]^2&amp;lt;/math&amp;gt; (these are the only extremisers).&lt;br /&gt;
&lt;br /&gt;
The extremiser has statistics (a,b,c) = (2,4,0), which are of course Pareto-optimal.  If c=1 then we must have a, b at most 2 (look at the lines through 22).  This is attainable (e.g. {11, 12, 22, 23, 31}, and so (2,2,1) is another Pareto-optimal statistic.  If a=4, then b and c must be 0, so we get another Pareto-optimal statistic (4,0,0) (attainable by {11, 13, 31, 33} of course).  If a=3, then c=0 and b is at most 2, giving another Pareto-optimal statistic (3,2,0); but this is a convex combination of (4,0,0) and (2,4,0) and is thus not extremal.  Thus the complete set of extremal statistics are&lt;br /&gt;
&lt;br /&gt;
(4,0,0), (2,4,0), (2,2,1).&lt;br /&gt;
&lt;br /&gt;
The sharp linear inequalities obeyed by a,b,c (other than the trivial ones &amp;lt;math&amp;gt;a,b,c \geq 0&amp;lt;/math&amp;gt;) are then&lt;br /&gt;
&lt;br /&gt;
*&amp;lt;math&amp;gt;2a+b+2c \leq 8&amp;lt;/math&amp;gt;&lt;br /&gt;
*&amp;lt;math&amp;gt;b+2c \leq 4&amp;lt;/math&amp;gt;&lt;br /&gt;
*&amp;lt;math&amp;gt;a+2c \leq 4&amp;lt;/math&amp;gt;&lt;br /&gt;
*&amp;lt;math&amp;gt;c \leq 1&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
In normalized notation, we have&lt;br /&gt;
*&amp;lt;math&amp;gt;4\alpha_0 + 2\alpha_1 + \alpha_2 \leq 4&amp;lt;/math&amp;gt;&lt;br /&gt;
*&amp;lt;math&amp;gt;2\alpha_1 + \alpha_2 \leq 2&amp;lt;/math&amp;gt;&lt;br /&gt;
*&amp;lt;math&amp;gt;2\alpha_0 + \alpha_2 \leq 2&amp;lt;/math&amp;gt;&lt;br /&gt;
*&amp;lt;math&amp;gt;\alpha_2 \leq 1&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
The Pareto optimizers for c-statistics are (c(22),c(2x),c(x2),c(xx)) = (1112),(0222),(0004), which are covered by these linear inequalities: &lt;br /&gt;
*&amp;lt;math&amp;gt;c(22)+c(2x)+c(xx) \le 4&amp;lt;/math&amp;gt;, &lt;br /&gt;
*&amp;lt;math&amp;gt;c(22)+c(x2)+c(xx) \le 4&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== n=3 ==&lt;br /&gt;
&lt;br /&gt;
We have &amp;lt;math&amp;gt;c&#039;_3 = 16&amp;lt;/math&amp;gt;.  The lower bound can be seen for instance by taking all the strings with one 2, and half the strings with no 2 (e.g. the strings with an odd number of 1s).  The upper bound can be deduced from the corresponding [[upper and lower bounds]] for &amp;lt;math&amp;gt;c_3 = 18&amp;lt;/math&amp;gt;; the 17-point and 18-point line-free sets each contain a geometric line.&lt;br /&gt;
&lt;br /&gt;
If a Moser set in &amp;lt;math&amp;gt;[3]^3&amp;lt;/math&amp;gt; contains 222, then it can have at most 14 points, since the remaining 26 points in the cube split into 13 antipodal pairs, and at most one of each pair can lie in the set.  By exhausting over the &amp;lt;math&amp;gt;2^{13} = 8192&amp;lt;/math&amp;gt; possibilities, it can be shown that it is impossible for a 14-point set to exist; any Moser set containing 222 must in fact omit at least one antipodal pair completely and thus have only 13 points.  (A human proof of this fact can be [http://www.ma.rhul.ac.uk/~elsholtz/WWW/blog/mosertablogv01.pdf found here].)&lt;br /&gt;
&lt;br /&gt;
The Pareto-optimal statistics are&lt;br /&gt;
&lt;br /&gt;
(3,6,3,1),(4,4,3,1),(4,6,2,1),(2,6,6,0),(3,6,5,0),(4,4,5,0),(3,7,4,0),(4,6,4,0), (3,9,3,0),(4,7,3,0),(5,4,3,0),(4,9,2,0),(5,6,2,0),(6,3,2,0),(3,10,1,0),(5,7,1,0), (6,4,1,0),(4,12,0,0),(5,9,0,0),(6,6,0,0),(7,3,0,0),(8,0,0,0).&lt;br /&gt;
&lt;br /&gt;
These were found from a search of the &amp;lt;math&amp;gt;2^{27}&amp;lt;/math&amp;gt; subsets of the cube.&lt;br /&gt;
A spreadsheet containing these statistics can be [http://spreadsheets.google.com/ccc?key=p5T0SktZY9DuKZ2DyzO9EOg&amp;amp;hl=en# found here].&lt;br /&gt;
&lt;br /&gt;
The extremal statistics are&lt;br /&gt;
&lt;br /&gt;
(3,6,3,1),(4,4,3,1),(4,6,2,1),(2,6,6,0),(4,4,5,0),(4,6,4,0),(4,12,0,0),(8,0,0,0)&lt;br /&gt;
&lt;br /&gt;
The sharp linear bounds are :&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;math&amp;gt;2a+b+2c+4d \leq 22&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;3a+2b+3c+6d \leq 36&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;7a+2b+4c+8d \leq 56&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;6a+2b+3c+6d \leq 48&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;b+c+3d \leq 12&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;a+2c+4d \leq 14&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;5a+4c+8d \leq 40&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;a+4d \leq 8&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;b+6d \leq 12&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;c+3d \leq 6&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;d \leq 1&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In normalized notation,&lt;br /&gt;
* &amp;lt;math&amp;gt;8\alpha_0+ 6\alpha_1 + 6\alpha_2 + 2\alpha_3 \leq 11&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;4\alpha_0+4\alpha_1+3\alpha_2+\alpha_3 \leq 6&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;7\alpha_0+3\alpha_1+3\alpha_2+\alpha_3 \leq 7&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;8\alpha_0+3\alpha_1+3\alpha_2+\alpha_3 \leq 8&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;4\alpha_1+2\alpha_2+\alpha_3 \leq 4&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;4\alpha_0+6\alpha_2+2\alpha_3 \leq 7&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;5\alpha_0+3\alpha_2+\alpha_3 \leq 5&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;2\alpha_0+\alpha_3 \leq 2&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;2\alpha_1+\alpha_3 \leq 2&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;2\alpha_2+\alpha_3 \leq 2&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;\alpha_3 \leq 1&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The c-statistics can also be found from an exhaustive search of Moser sets.  The resulting Pareto sets and linear inequalities can be found on Sheet 8 of [http://spreadsheets.google.com/ccc?key=p5T0SktZY9DuKZ2DyzO9EOg&amp;amp;hl=en# this spreadsheet]&lt;br /&gt;
&lt;br /&gt;
== n=4 ==&lt;br /&gt;
&lt;br /&gt;
A [http://abel.math.umu.se/~klasm/extremal-moser-n=5-t=3 computer search] has obtained all extremisers to &amp;lt;math&amp;gt;c&#039;_4=43&amp;lt;/math&amp;gt;.  The 42-point solutions can be found [http://abel.math.umu.se/~klasm/moser-n=4-t=3-p=42.gz here].&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof that &amp;lt;math&amp;gt;c&#039;_4 \leq 43&amp;lt;/math&amp;gt;&#039;&#039;&#039;: &lt;br /&gt;
When e=1 (i.e. the 4D set contains 2222) then we have at most 41 points (in fact at most 39) by counting antipodal points, so assume e=0.&lt;br /&gt;
&lt;br /&gt;
Define the score of a 3D slice to be a/4+b/3+c/2+d.  Observe from double counting that the size of a 4D set is the sum of the scores of its eight side slices.&lt;br /&gt;
&lt;br /&gt;
But by [http://spreadsheets.google.com/ccc?key=p5T0SktZY9DuKZ2DyzO9EOg&amp;amp;hl=en looking at the extremals] we see that the largest score is 44/8, attained at only one point, namely when (a,b,c,d) = (2,6,6,0).  So the only way one can have a 44-point set is if all side slices are (2,6,6,0), or equivalently if the whole set has statistics (a,b,c,d,e) = (4,16,24,0,0).  But then we have all the points with two 2s, which means that the four &amp;quot;a&amp;quot; points cannot be separated by Hamming distance 2.  We conclude that we must have an antipodal pair among the &amp;quot;a&amp;quot; points with an odd number of 1s, and an antipodal pair among the &amp;quot;a&amp;quot; points with an even number of 1s.    By the symmetries of the cube, we may take the a-set to then be 1111, 3333, 1113, 3331.  But then the &amp;quot;b&amp;quot; set must exclude both 1112 and 3332, and so can have at most three points in the eight-point set xyz2 (with x,y,z=1,3) rather than four (to get four points one must alternate in a checkerboard pattern).  Adding this to the at most four points of the form xy2z, x2yz, 2xyz we see that b is at most 15, a contradiction. &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Given a subset of &amp;lt;math&amp;gt;[3]^4&amp;lt;/math&amp;gt;, let a be the number of points with no 2s, b be the number of points with 1 2, and so forth.  The quintuple (a,b,c,d,e) thus lies between (0,0,0,0,0) and (16,32,24,8,1).&lt;br /&gt;
&lt;br /&gt;
The 43-point solutions have distributions (a,b,c,d,e) as follows:&lt;br /&gt;
&lt;br /&gt;
* (5,20,18,0,0) [16 solutions]&lt;br /&gt;
* (4,16,23,0,0) [768 solutions]&lt;br /&gt;
* (3,16,24,0,0) [512 solutions]&lt;br /&gt;
* (4,15,24,0,0) [256 solutions]&lt;br /&gt;
&lt;br /&gt;
The 42-point solutions are [http://abel.math.umu.se/~klasm/Moser-42-stat.pdf distributed as follows]:&lt;br /&gt;
&lt;br /&gt;
* (6,24,12,0,0) [[http://abel.math.umu.se/~klasm/moser-n=4-42-12 8 solutions]] &lt;br /&gt;
* (5,20,17,0,0) [576 solutions]&lt;br /&gt;
* (5,19,18,0,0) [384 solutions]&lt;br /&gt;
* (6,16,18,2,0) [[http://abel.math.umu.se/~klasm/moser-n=4-42-e=2 192 solutions]]&lt;br /&gt;
* (4,20,18,0,0) [272 solutions]&lt;br /&gt;
* (5,17,20,0,0) [192 solutions]&lt;br /&gt;
* (5,16,21,0,0) [3584 solutions]&lt;br /&gt;
* (4,17,21,0,0) [768 solutions]&lt;br /&gt;
* (4,16,22,0,0) [26880 solutions]&lt;br /&gt;
* (5,15,22,0,0) [1536 solutions]&lt;br /&gt;
* (4,15,23,0,0) [22272 solutions]&lt;br /&gt;
* (3,16,23,0,0) [15744 solutions]&lt;br /&gt;
* (4,14,24,0,0) [4224 solutions]&lt;br /&gt;
* (3,15,24,0,0) [8704 solutions]&lt;br /&gt;
* (2,16,24,0,0) [896 solutions]&lt;br /&gt;
&lt;br /&gt;
Note how c is usually quite large, and d quite low.&lt;br /&gt;
&lt;br /&gt;
One of the (6,24,12,0,0) solutions is &amp;lt;math&amp;gt;\Gamma_{220}+\Gamma_{202}+\Gamma_{022}+\Gamma_{112}+\Gamma_{211}&amp;lt;/math&amp;gt; (i.e. the set of points containing exactly two 1s, and/or exactly two 3s).  The other seven are reflections of this set.&lt;br /&gt;
&lt;br /&gt;
There are 2,765,200 41-point solutions, [http://abel.math.umu.se/~klasm/solutions-4-t=3-41-moser.gz listed here].  The statistics for such points can be [http://abel.math.umu.se/~klasm/Moser-41-stat.pdf found here].  Noteworthy features of the statistics:&lt;br /&gt;
&lt;br /&gt;
* d is at most 3 (and, except for [http://abel.math.umu.se/~klasm/moser-n=3-t=3-41-d=3.gz 256 exceptional solutions] of the shape (5,15,18,3,0), have d at most 2; here are the [http://abel.math.umu.se/~klasm/moser-n=3-t=3-41-d=2.gz d=2 solutions] and [http://abel.math.umu.se/~klasm/moser-n=3-t=3-41-d=1.gz d=1 solutions])&lt;br /&gt;
* c is at least 6 (and, except for [http://abel.math.umu.se/~klasm/moser-n=3-t=3-41-c=6.gz 16 exceptional solutions] of the shape (7,28,6,0,0), have c at least 11).&lt;br /&gt;
&lt;br /&gt;
Statistics for the 41-point, 42-point, and 43-point solutions can be found [http://spreadsheets.google.com/ccc?key=p5T0SktZY9DuqNcxJ171Bbw&amp;amp;hl=en here].&lt;br /&gt;
&lt;br /&gt;
If a Moser set in &amp;lt;math&amp;gt;[3]^4&amp;lt;/math&amp;gt; contains 2222, then by the n=3 theory, any middle slice (i.e. 2***, *2**, **2*, or ***2) is missing at least one antipodal pair.  But each antipodal pair belongs to at most three middle slices, thus two of the 40 antipodal pairs must be completely missing.  As a consequence, any Moser set containing 2222 can have at most 39 points.&lt;br /&gt;
(A more refined analysis can be found at [http://www.ma.rhul.ac.uk/~elsholtz/WWW/blog/mosertablogv01.pdf found here].)&lt;br /&gt;
&lt;br /&gt;
We have the following inequalities connecting a,b,c,d,e:&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;math&amp;gt;4a+b \leq 64&amp;lt;/math&amp;gt;:  There are 32 lines connecting two &amp;quot;a&amp;quot; points with a &amp;quot;b&amp;quot; point; each &amp;quot;a&amp;quot; point belongs to four of these lines, and each &amp;quot;b&amp;quot; point belongs to one.  But each such line can have at most two points in the set, and the claim follows.&lt;br /&gt;
* This can be refined to &amp;lt;math&amp;gt;4a+b+\frac{2}{3} c \leq 64&amp;lt;/math&amp;gt;: There are 24 planes connecting four &amp;quot;a&amp;quot; points, four &amp;quot;b&amp;quot; points, and one &amp;quot;c&amp;quot; point; each &amp;quot;a&amp;quot; point belongs to six of these, each &amp;quot;b&amp;quot; point belongs to three, and each &amp;quot;c&amp;quot; point belongs to one.  For each of these planes, we have &amp;lt;math&amp;gt;2a + b + 2c \leq 8&amp;lt;/math&amp;gt; from the n=2 theory, and the claim follows.&lt;br /&gt;
* &amp;lt;math&amp;gt;6a+2c \leq 96&amp;lt;/math&amp;gt;:  There are 96 lines connecting two &amp;quot;a&amp;quot; points with a &amp;quot;c&amp;quot; point; each &amp;quot;a&amp;quot; point belongs to six of these lines, and each &amp;quot;c&amp;quot; point belongs to two.  But each such line can have at most two points in the set, and the claim follows.&lt;br /&gt;
* &amp;lt;math&amp;gt;3b+2c \leq 96&amp;lt;/math&amp;gt;:  There are 48 lines connecting two &amp;quot;b&amp;quot; points to a &amp;quot;c&amp;quot; point; each &amp;quot;b&amp;quot; point belongs to three of these points, and each &amp;quot;c&amp;quot; point belongs to two.  But each such line can have at most two points in the set, and the claim follows.&lt;br /&gt;
&lt;br /&gt;
The inequalities for n=3 imply inequalities for n=4.  Indeed, there are eight side slices of &amp;lt;math&amp;gt;[3]^4&amp;lt;/math&amp;gt;; each &amp;quot;a&amp;quot; point belongs to four of these, each &amp;quot;b&amp;quot; point belongs to three, each &amp;quot;c&amp;quot; point belongs to two, and each &amp;quot;d&amp;quot; point belongs to one.  Thus, any inequality of the form&lt;br /&gt;
:&amp;lt;math&amp;gt; \alpha a + \beta b + \gamma c + \delta d \leq M&amp;lt;/math&amp;gt;&lt;br /&gt;
in three dimensions implies the inequality&lt;br /&gt;
:&amp;lt;math&amp;gt; 4 \alpha a + 3 \beta b + 2 \gamma c + \delta d \leq 8M&amp;lt;/math&amp;gt;&lt;br /&gt;
in four dimensions.  Thus we have&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;math&amp;gt;8a+3b+4c+4d \leq 176&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;2a+b+c+d \leq 48&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;14a+3b+4c+4d \leq 244&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;4a+b+c+d \leq 64&amp;lt;/math&amp;gt; &lt;br /&gt;
* &amp;lt;math&amp;gt;3b+2c+3d \leq 96&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;a+c+d \leq 28&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;5a+2c+2d \leq 80&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;a+d \leq 16&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;b+2d \leq 32&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;2c+3d \leq 48&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Cubes also sit diagonally in the 4-dimensional cube.  They may have coordinates xxyz, where xx runs over (11,22,33) or (13,22,31), while y and z run over (1,2,3).  These cubes have a different distribution of 2s than the ordinary slices: (a,b,c,d,e) = (8,8,6,4,1) instead of (8,12,6,1,0) for the side slices and (0,8,12,6,1) for the middle slices.  So a different set of inequalities arise.  It is possible to run through the same procedure as described above for n=3, and the inequalities that arise are &amp;lt;math&amp;gt;2a+b+2c+2d+4e \le 24&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;4a+b+2c+2d+4e \le 32&amp;lt;/math&amp;gt; within the 3D cube, which when averaged becomes &amp;lt;math&amp;gt;4a+b+2c+4d+16e \le 96&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;8a+b+2c+4d+16e \le 128&amp;lt;/math&amp;gt; for the 4D cube.  A spreadsheet containing these statistics can be [http://spreadsheets.google.com/ccc?key=p5T0SktZY9DuKZ2DyzO9EOg&amp;amp;hl=en# found here] on sheet 2.  Other sheets of this spreadsheet contain results for a 3D cube sitting diagonally in a 5D, 6D or 7D cube.  Notice the similarity of the equations that arise for the xxxyz, xxyyz and xxxxyz diagonals.  Also notice the (a,b,c,...) statistics for the xxxxyyz diagonals have the same Pareto sets and linear inequalities as the cube&#039;s c-statistics.&lt;br /&gt;
&lt;br /&gt;
The c-statistics for the 3D cube are bounded by a set of 20 inequalities.  By considering the fourteen ways a 3D cube sits in the 4D cube, the result is a set of 239 inequalities for the 4D cube&#039;s c-statistics.  However, all 239 inequalities are satisfied by a 44-point solution given by c(xxxx) = c(2xxx) = c(22xx) = 4, and permutations.&lt;br /&gt;
&lt;br /&gt;
== n=5 ==&lt;br /&gt;
&lt;br /&gt;
Let (A,B,C,D,E,F) be the statistics of a five-dimensional Moser set, thus (A,B,C,D,E,F) varies between (0,0,0,0,0,0) and (32,80,80,40,10,1).&lt;br /&gt;
&lt;br /&gt;
There are several Moser sets with the statistics (4,40,80,0,0,0), which thus have 124 points.  Indeed, one can take&lt;br /&gt;
&lt;br /&gt;
* all points with two 2s;&lt;br /&gt;
* all points with one 2 and an even number of 1s; and&lt;br /&gt;
* (13111),(13113),(31311),(13333). Any two of these four points differ in three places, except for one pair of points that differ in one place.&lt;br /&gt;
&lt;br /&gt;
For the rest of this section, we assume that the Moser set &amp;lt;math&amp;gt;{\mathcal A}&amp;lt;/math&amp;gt; is a 125-point Moser set.  We will prove that &amp;lt;math&amp;gt;{\mathcal A}&amp;lt;/math&amp;gt; cannot exist.&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 1&#039;&#039;&#039;: F=0.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; If F is non-zero, then the Moser set contains 22222, then each of the 121 antipodal pairs can have at most one point in the set, leading to only 122 points. &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 2&#039;&#039;&#039;: Every middle slice of &amp;lt;math&amp;gt;{\mathcal A}&amp;lt;/math&amp;gt; has at most 41 points.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039;  Without loss of generality we may consider the 2**** slice.  There are two cases, depending on the value of c(2****).&lt;br /&gt;
&lt;br /&gt;
Suppose first that c is at least 17; thus there are at least 17 points of the form 222xy, 22x2y, 22xy2, 2x2y2, 2xy22, or 2x22y, where the x, y denote 1 or 3.  This gives 34 &amp;quot;xy&amp;quot; wildcards in all in four coordinate slots; by the pigeonhole principle one of the slots sees at least 9 of the wildcards.  By symmetry, we may assume that the second coordinate slot sees at least 9 of these wildcards, thus there are at least 9 points of the form 2x22y, 2x2y2, 2xy22.  The x=1, x=3 cases can absorb at most six of these, thus each of these cases must absorb at least three points, with at least one absorbing at least five.  Let&#039;s say that it&#039;s the x=3 case that absorbs 5; thus &amp;lt;math&amp;gt;d(*1***) \geq 3&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;d(*3***) \geq 5&amp;lt;/math&amp;gt;.  From the n=4 theory this means that the *1*** slice has at most 41 points, and the *3*** slice has at most 40.  Meanwhile, the middle slice has at most 43, leading to 41+41+42=124 points in all.&lt;br /&gt;
&lt;br /&gt;
Now suppose c is less than 17; then by the n=4 theory the middle slice is one of the eight (6,24,12,0,0) sets.  Without loss of generality we may take it to be &amp;lt;math&amp;gt;\Gamma_{220}+\Gamma_{202}+\Gamma_{022}+\Gamma_{112}+\Gamma_{211}&amp;lt;/math&amp;gt;; in particular, the middle slice contains the points 21122 21212 21221 23322 23232 23223.  In particular, the *1*** and *3*** slices have a &amp;quot;d&amp;quot; value of at least three, and so have at most 41 points.  If the *2*** slice has at most 42 points, then we are at 41+42+41=124 points as needed, but if we have 43 or more, then we are back in the first case (as &amp;lt;math&amp;gt;c(*2***) \geq 17&amp;lt;/math&amp;gt;) after permuting the indices.&lt;br /&gt;
&amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Since 125=41+41+43, we thus have&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Corollary 1&#039;&#039;&#039;: Every side slice of &amp;lt;math&amp;gt;{\mathcal A}&amp;lt;/math&amp;gt; has at least 41 points.  If one side slice does have 41 points, then the other has 43.&lt;br /&gt;
&lt;br /&gt;
Combining this with the n=4 statistics, we conclude&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Corollary 2&#039;&#039;&#039;: Every side slice of &amp;lt;math&amp;gt;{\mathcal A}&amp;lt;/math&amp;gt; has e=0, and &amp;lt;math&amp;gt;d \leq 3&amp;lt;/math&amp;gt;.  Given two opposite side slices, e.g. 1**** and 3****, we have &amp;lt;math&amp;gt;d(1****)+d(3****) \leq 4&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Corollary 3&#039;&#039;&#039;: E=0.&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Corollary 4&#039;&#039;&#039;: Any middle slice has a &amp;quot;c&amp;quot; value of at most 8.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; Let&#039;s work with the 2**** slice.  By Corollary 2, there are at most four contributions to c(2****) of the form 21*** or 23***, and similarly for the other three positions.  Double counting then gives the claim. &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 3&#039;&#039;&#039;: &amp;lt;math&amp;gt;2B+C \leq 160&amp;lt;/math&amp;gt;.   &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039;: There are 160 lines connecting one &amp;quot;C&amp;quot; point to two &amp;quot;B&amp;quot; points (e.g. 11112, 11122, 11132); each &amp;quot;C&amp;quot; point lies in two of these, and each &amp;quot;B&amp;quot; point lies on four.  A Moser set can have at most two points out of each of these lines.  Double counting then gives the claim.  &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 4&#039;&#039;&#039; Given m A-points with &amp;lt;math&amp;gt;m \geq 5&amp;lt;/math&amp;gt;, there exists at least m-4 pairs (a,b) of such A-points with Hamming distance exactly two (i.e. b differs from a in exactly two places).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; It suffices to check this for m=5, since the case of larger m then follows by locating a pair, removing a point that contributes to that pair, and using the induction hypothesis.  Given 5 A-points, we may assume by the pigeonhole principle and symmetry that at least three of them have an odd number of 1s.  Suppose 11111 is one of the points, and that no pair has Hamming distance 2. All points with two 3s are excluded, so the only points allowed with an odd number of 1s are those with four 3s. But all those points differ from each other in two positions, so at most one of them is allowed.  &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Corollary 5&#039;&#039;&#039; &amp;lt;math&amp;gt;C \leq 79&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039;: Suppose for contradiction that C=80, then D=0 and &amp;lt;math&amp;gt;B \leq 40&amp;lt;/math&amp;gt;.  From Lemma 4 we also see that A cannot be 5 or more, leading to the contradiction.&lt;br /&gt;
&amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Define the &#039;&#039;&#039;score&#039;&#039;&#039; of a Moser set in &amp;lt;math&amp;gt;[3]^4&amp;lt;/math&amp;gt; to be the quantity &amp;lt;math&amp;gt;a + 5b/4 + 5c/3 + 5d/2 + 5e&amp;lt;/math&amp;gt;.  Double-counting (and Lemma 2) gives&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 5&#039;&#039;&#039;  The total score of all the ten side-slices of &amp;lt;math&amp;gt;{\mathcal A}&amp;lt;/math&amp;gt; is equal to &amp;lt;math&amp;gt;5|{\mathcal A}| = 5 \times 125&amp;lt;/math&amp;gt;.  In particular, there exists a pair of opposite side-slices whose scores add up to at least 125.&lt;br /&gt;
&lt;br /&gt;
By Lemma 5 and symmetry, we may assume that the 1**** and 3**** slices have score adding up to at least 125.  By Lemma 2, the 2**** slice has at most 41 points, which imply that the 1**** and 3**** have 41, 42, or 43 points.  From the [http://spreadsheets.google.com/ccc?key=p5T0SktZY9DuqNcxJ171Bbw&amp;amp;hl=en n=4 statistics] we know that all 41-point, 42-point, 43-point slices have score less than 62, with the following exceptions:&lt;br /&gt;
&lt;br /&gt;
# (2,16,24,0,0) [42 points, score: 62]&lt;br /&gt;
# (4,16,23,0,0) [43 points, score: 62 1/3]&lt;br /&gt;
# (4,15,24,0,0) [43 points, score: 62 3/4]&lt;br /&gt;
# (3,16,24,0,0) [43 points, score: 63]&lt;br /&gt;
&lt;br /&gt;
Thus the 1**** and 3**** slices must come from the above list.  Furthermore, if one of the slices is of type 1, then the other must be of type 4, and if one slice is of type 2, then the other must be of type 3 or 4.&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 6&#039;&#039;&#039; There exists one cut in which the side slices have total score strictly greater than 125 (i.e. they thus involve only Type 2, Type 3, and Type 4 slices, with at least one side slice not equal to Type 2, and the cut here is of the form 43+39+43).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; If not, then all cuts have side slices exactly equal to 125, which by the above table implies that one is Type 1 and one is Type 4, in particular all side slices have c=24.  But this forces C=80, contradicting Corollary 5. &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Adding up the corners we conclude&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Corollary 6&#039;&#039;&#039; &amp;lt;math&amp;gt;6 \leq A \leq 8&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 7&#039;&#039;&#039; &amp;lt;math&amp;gt;D=0&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; Firstly, from Lemma 6 we have a cut in which the two side slices are omitting at most one C-point between them (and have no D-point), which forces the middle slice to have at most one D-point; thus D is at most 1.&lt;br /&gt;
&lt;br /&gt;
Now suppose instead that D=1 (e.g. if 11222 was in the set); then there would be two choices of coordinates in which one of the side slices would have d=1 (e.g. 1**** and *1****). But the [http://spreadsheets.google.com/ccc?key=p5T0SktZY9DuqNcxJ171Bbw&amp;amp;hl=en n=4 statistics] show that such slices have a score of at most 59 7/12, so that the total score from those two coordinates is at most 63 + 59 7/12 = 122 7/12. On the other hand, the other three slices have a net score of at most 63+63 = 126. This averages out to at most 124.633... &amp;lt; 125, a contradiction.  &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Corollary 7&#039;&#039;&#039; Every middle slice has at most 40 points.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; From Lemma 7 we see that the middle slice must have c=0, but from the n=4 statistics this is not possible for any slice of size 41 or higher (alternatively, one can use the inequalities &amp;lt;math&amp;gt;4a+b \leq 64&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;b \leq 32&amp;lt;/math&amp;gt;). &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Each middle slice now has 39 or 40 points, with c=d=e=0, and so from the inequalities &amp;lt;math&amp;gt;4a+b \leq 64&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;b \leq 32&amp;lt;/math&amp;gt; must have statistics (8,32,0,0,0),(7,32,0,0,0), or (8,31,0,0,0).  In particular the &amp;quot;a&amp;quot; index of the middle slices is at most 8.  Summing over all middle slices we conclude&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 9&#039;&#039;&#039; B is at most 40.&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 10&#039;&#039;&#039; C is equal to 78 or 79.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; By Corollary 5, it suffices to show that &amp;lt;math&amp;gt;C \geq 78&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
As 125=43+39+43, we see that every center slice must have at least 39 points. By Lemma 2 and Lemma 7 the center slice has c=d=e=0, thus the center slice has a+b &amp;gt;= 39.  On the other hand, from the n=4 theory we have 4a+b &amp;lt;= 64, which forces b &amp;gt;= 31.&lt;br /&gt;
&lt;br /&gt;
By double counting, we see that 2C is equal to the sum of the b&#039;s of all the five center slices.  Thus C &amp;gt;= 5*31/2 = 77.5 and the claim follows.  &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
From Lemmas 9 and 10 we see that &amp;lt;math&amp;gt;B+C \leq 119&amp;lt;/math&amp;gt;, and thus &amp;lt;math&amp;gt;A \geq 6&amp;lt;/math&amp;gt;.  Also, if &amp;lt;math&amp;gt;A \geq 7&amp;lt;/math&amp;gt;, then by Lemma 4 we have at least three pairs of A points with Hamming distance 2.  At most two of these pairs eliminate the same C point, so we would have C=78 in that case.  &lt;br /&gt;
&lt;br /&gt;
Putting all the above facts together, we see that (A,B,C,D,E,F) must be one of the following triples:&lt;br /&gt;
&lt;br /&gt;
* (6,40,79,0,0,0)&lt;br /&gt;
* (7,40,78,0,0,0)&lt;br /&gt;
* (8,39,78,0,0,0)&lt;br /&gt;
&lt;br /&gt;
All three cases can be eliminated, giving &amp;lt;math&amp;gt;c&#039;_5=124&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== Elimination of (6,40,79,0,0,0) ===&lt;br /&gt;
&lt;br /&gt;
Look at the 6 A points.  From Lemma 4 we have at least two pairs (a,b), (c,d) of A-points that have Hamming separation 2.&lt;br /&gt;
&lt;br /&gt;
Now look at the midpoints of these two pairs; these midpoints are C-points cannot lie in the set.  But we have exactly one C-point missing from the set, thus the midpoints must be the same.  By symmetry, we may thus assume that the two pairs are (11111,11133) and (11113,11131).  Thus 11111,11133, 11113, 11131 are in the set, and so every C-point other than 11122 is in the set.  On the other hand, the B-points 11121, 11123, 11112, 11132 lie outside the set.&lt;br /&gt;
&lt;br /&gt;
At most one of 11312, 11332 lie in the set (since 11322 lies in the set).   Suppose that 11312 lies outside the set, then we have a pair (xy1z2, xy3z2) with x,y,z = 1,3 that is totally omitted from the set, namely (11112,11312).  On the other hand, every other pair of this form can have at most one point in the set, thus there are at most seven points in the set of the form (xyzw2) with x,y,z,w = 1,3.  Similarly there are at most 8 points of the form xyz2w, or of xy2zw, x2yzw, 2xyzw, leading to at most 39 B-points in all, contradiction.&lt;br /&gt;
&lt;br /&gt;
=== Elimination of (7,40,78,0,0,0) ===&lt;br /&gt;
&lt;br /&gt;
By Lemma 4, we have at least three pairs of A-points of distance two apart that lie in the set.&lt;br /&gt;
The midpoints of these pairs are C-points that do not lie in the set; but there are only two such C-points, thus two pairs must have the same midpoint, so we may assume as before that 111xy lies in the set for x,y=1,3, which implies that 1112* and 111*2 lie outside the set.&lt;br /&gt;
&lt;br /&gt;
Now consider the 160 lines between 2 B points and one C point (cf. Lemma 3).  The sum of all the points in each such line (counting multiplicity) is 4B+2C = 316.  On the other hand, every one of the 160 lines can have at most two points, and two of these lines (namely 1112*, 111*2) have no points.  Thus all the other lines must have exactly two points.  &lt;br /&gt;
&lt;br /&gt;
We know that the C-point 11122 is missing from the set; there is one other missing C-point.  Since 1112x, 111x2 lie outside the set, we conclude from the previous paragraph that 1132x, 113x2 and 1312x, 131x2 lie in the set.  Taking midpoints we conclude that 11322 and 13122 lie outside the set.  But this is now three C-points missing (together with 11122), a contradiction.&lt;br /&gt;
&lt;br /&gt;
=== Elimination of (8,39,78,0,0,0) ===&lt;br /&gt;
&lt;br /&gt;
By Lemma 4 we have at least four pairs of A-points of distance two apart that lie in the set. The midpoints of these pairs are C-points that do not lie in the set; but there are only two such C-points, thus two pairs (a,b), (c,d) must have the same midpoint p, and the other two pairs (a&#039;,b&#039;), (c&#039;,d&#039;) must also have the same midpoint p&#039;.  (Note that every C-point is the midpoint of at most two such pairs.)&lt;br /&gt;
&lt;br /&gt;
Now consider the 160 lines between 2 B points and one C point (cf. Lemma 3).  The sum of all the points in each such line (counting multiplicity) is 4B+2C = 312.  Every one of the 160 lines can have at most two points, and four of these (those in the plane of (a,b,c,d) or of (a&#039;,b&#039;,c&#039;,d&#039;) have no points.  Thus all other lines must have exactly two points.&lt;br /&gt;
&lt;br /&gt;
Without loss of generality we have (a,b)=(11111,11133), (c,d) = (11113,11131), thus p = 11122.  By permuting the first three indices, we may assume that p&#039; is not of the form x2y2z, x2yz2, xy22z, xy2z2.  Then 1112x lies outside the set and 1122x lies in the set, so by the above paragraph 1132x lies in the set; similarly for 113x2, 1312x, 131x2.  This implies that 13122, 11322 lie outside the set, but this (together with 11122) shows that at least three C-points are missing, a contradiction.&lt;br /&gt;
&lt;br /&gt;
== General n ==&lt;br /&gt;
&lt;br /&gt;
General solution for &amp;lt;math&amp;gt;c&#039;_N&amp;lt;/math&amp;gt;. For any q, the union of the following sets is a Moser set.  The size of this Moser set is maximized when q is near N/3, in which case it is &amp;lt;math&amp;gt;O(3^n/\sqrt{n})&amp;lt;/math&amp;gt;.  Most of the points are in the layers with q 2s and q-1 2s.&lt;br /&gt;
&lt;br /&gt;
* q 2s, all points from A(N-q,1)&lt;br /&gt;
* q-1 2s, points from A(N-q+1,2)&lt;br /&gt;
* q-2 2s, points from A(N-q+2,3)&lt;br /&gt;
* etc.&lt;br /&gt;
&lt;br /&gt;
where A(m,d) is a subset of &amp;lt;math&amp;gt;[1,3]^m&amp;lt;/math&amp;gt; for which any two points differ from each other in at least d places.&lt;br /&gt;
&lt;br /&gt;
Mathworld’s entry on error-correcting codes suggests it might be NP-complete to find the maximum size of A(m,d) in general.  However, the size of A(m,d) can be bounded by sphere-packing arguments.  For example, points in A(m,3) are surrounded by non-intersecting spheres of Hamming radius 1, and points in A(m,5) are surrounded by non-intersecting spheres of Hamming radius 2.&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;math&amp;gt;|A(m,1)| = 2^m&amp;lt;/math&amp;gt; because it includes all points in &amp;lt;math&amp;gt;[1,3]^m&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;|A(m,2)| = 2^{m-1}&amp;lt;/math&amp;gt; because it can include all points in &amp;lt;math&amp;gt;[1,3]^m&amp;lt;/math&amp;gt; with an odd number of ones.&lt;br /&gt;
* &amp;lt;math&amp;gt;|A(m,3)| \le 2^m/(m+1)&amp;lt;/math&amp;gt; because the size of a Hamming sphere is m+1.&lt;br /&gt;
&lt;br /&gt;
The integer programming routine from Maple 12 was used to obtain upper bounds for &amp;lt;math&amp;gt;c&#039;_6&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;c&#039;_7&amp;lt;/math&amp;gt;.  A large number of linear inequalities, such as those described above in sections (n=3) and (n=4), were combined.  The details are in [[Maple calculations]].  The results were that &amp;lt;math&amp;gt;c&#039;_6 \le 361&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;c&#039;_7 \le 1071&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
A [[genetic algorithm]] has provided the following examples:&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;math&amp;gt;c&#039;_6 \geq 353&amp;lt;/math&amp;gt; (26 examples; [http://twofoldgaze.wordpress.com/2009/03/10/353-element-solution/ here is one])&lt;br /&gt;
* &amp;lt;math&amp;gt;c&#039;_7 \geq 988&amp;lt;/math&amp;gt; [http://twofoldgaze.wordpress.com/2009/03/10/978-element-solution/ Here is the example]&lt;br /&gt;
&lt;br /&gt;
== Larger sides (k&amp;gt;3) ==&lt;br /&gt;
&lt;br /&gt;
The following set gives a lower bound for Moser’s cube &amp;lt;math&amp;gt;[4]^n&amp;lt;/math&amp;gt; (values 1,2,3,4):  Pick all points where q entries are 2 or 3; and also pick those where q-1 entries are 2 or 3 and an odd number of entries are 1.  This is maximized when q is near n/2, giving a lower bound of&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\binom{n}{n/2} 2^n + \binom{n}{n/2-1} 2^{n-1}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
which is comparable to &amp;lt;math&amp;gt;4^n/\sqrt{n}&amp;lt;/math&amp;gt; by [[Stirling&#039;s formula]].&lt;br /&gt;
&lt;br /&gt;
For k=5 (values 1,2,3,4,5) If A, B, C, D, and E denote the numbers of 1-s, 2-s, 3-s, 4-s and 5-s then the first three points of a geometric line form a 3-term arithmetic progression in A+E+2(B+D)+3C. So, for k=5 we have a similar lower bound for the Moser’s problem as for DHJ k=3, i.e. &amp;lt;math&amp;gt;5^{n - O(\sqrt{\log n})}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
The k=6 version of Moser implies DHJ(3).  Indeed, any k=3 combinatorial line-free set can be &amp;quot;doubled up&amp;quot; into a k=6 geometric line-free set of the same density by pulling back the set from the map &amp;lt;math&amp;gt;\phi: [6]^n \to [3]^n&amp;lt;/math&amp;gt; that maps 1, 2, 3, 4, 5, 6 to 1, 2, 3, 3, 2, 1 respectively; note that this map sends k=6 geometric lines to k=3 combinatorial lines.&lt;/div&gt;</summary>
		<author><name>121.220.134.232</name></author>
	</entry>
	<entry>
		<id>https://michaelnielsen.org/polymath/index.php?title=Moser%27s_cube_problem&amp;diff=1043</id>
		<title>Moser&#039;s cube problem</title>
		<link rel="alternate" type="text/html" href="https://michaelnielsen.org/polymath/index.php?title=Moser%27s_cube_problem&amp;diff=1043"/>
		<updated>2009-03-22T05:02:42Z</updated>

		<summary type="html">&lt;p&gt;121.220.134.232: /* n=5 */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Define a &#039;&#039;Moser set&#039;&#039; to be a subset of &amp;lt;math&amp;gt;[3]^n&amp;lt;/math&amp;gt; which does not contain any [[geometric line]], and let &amp;lt;math&amp;gt;c&#039;_n&amp;lt;/math&amp;gt; denote the size of the largest Moser set in &amp;lt;math&amp;gt;[3]^n&amp;lt;/math&amp;gt;.  The first few values are (see [http://www.research.att.com/~njas/sequences/A003142 OEIS A003142]):&lt;br /&gt;
&lt;br /&gt;
: &amp;lt;math&amp;gt;c&#039;_0 = 1; c&#039;_1 = 2; c&#039;_2 = 6; c&#039;_3 = 16; c&#039;_4 = 43; c&#039;_5 = 124.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Beyond this point, we only have some upper and lower bounds, in particular &amp;lt;math&amp;gt;353 \leq c&#039;_6 \leq 361&amp;lt;/math&amp;gt;; see [http://spreadsheets.google.com/ccc?key=p5T0SktZY9DsU-uZ1tK7VEg this spreadsheet] for the latest bounds.&lt;br /&gt;
&lt;br /&gt;
The best known asymptotic lower bound for &amp;lt;math&amp;gt;c&#039;_n&amp;lt;/math&amp;gt; is&lt;br /&gt;
&lt;br /&gt;
: &amp;lt;math&amp;gt;c&#039;_n \gg 3^n/\sqrt{n}&amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
formed by fixing the number of 2s to a single value near n/3.  Compare this to the DHJ(2) or Sperner limit of &amp;lt;math&amp;gt;2^n/\sqrt{n}&amp;lt;/math&amp;gt;.  Is it possible to do any better?  Note that we have a [[Upper_and_lower_bounds#Asymptotics|significantly better bound]] for the DHJ(3) &amp;lt;math&amp;gt;c_n&amp;lt;/math&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
: &amp;lt;math&amp;gt;c_n \geq 3^{n-O(\sqrt{\log n})}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
A more precise lower bound is&lt;br /&gt;
&lt;br /&gt;
: &amp;lt;math&amp;gt;c&#039;_n \geq \binom{n+1}{q} 2^{n-q}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where q is the nearest integer to &amp;lt;math&amp;gt;n/3&amp;lt;/math&amp;gt;, formed by taking all strings with q 2s, together with all strings with q-1 2s and an odd number of 1s.  This for instance gives the lower bound &amp;lt;math&amp;gt;c&#039;_5 \geq 120&amp;lt;/math&amp;gt;, which compares with the upper bound &amp;lt;math&amp;gt;c&#039;_5 \leq 3 c&#039;_4 = 129&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Using [[DHJ(3)]], we have the upper bound&lt;br /&gt;
&lt;br /&gt;
: &amp;lt;math&amp;gt;c&#039;_n = o(3^n)&amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
but no effective decay rate is known. It would be good to have a combinatorial proof of this fact (which is weaker than [[DHJ(3)]], but implies [[Roth&#039;s theorem]]).&lt;br /&gt;
&lt;br /&gt;
== Notation ==&lt;br /&gt;
&lt;br /&gt;
Given a Moser set A in &amp;lt;math&amp;gt;[3]^n&amp;lt;/math&amp;gt;, we let a be the number of points in A with no 2s, b be the number of points in A with one 2, c the number of points with two 2s, etc.  We call (a,b,c,...) the &#039;&#039;statistics&#039;&#039; of A.  Given a slice S of &amp;lt;math&amp;gt;[3]^n&amp;lt;/math&amp;gt;, we let a(S), b(S), etc. denote the statistics of that slice (dropping the fixed coordinates).  Thus for instance if A = {11, 12, 22, 32}, then (a,b,c) = (1,2,1), and (a(1*),b(1*)) = (1,1).&lt;br /&gt;
&lt;br /&gt;
We call a statistic (a,b,c,...) &#039;&#039;attainable&#039;&#039; if it is attained by a Moser set.  We say that an attainable statistic is &#039;&#039;Pareto-optimal&#039;&#039; if it cannot be pointwise dominated by any other attainable statistic (a&#039;,b&#039;,c&#039;,...) (thus &amp;lt;math&amp;gt;a&#039; \geq a&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;b&#039; \geq b&amp;lt;/math&amp;gt;, etc.)  We say that it is &#039;&#039;extremal&#039;&#039; if it is not a convex combination of any other attainable statistic (this is a stronger property than Pareto-optimal).  For the purposes of maximising linear scores of attainable statistics, it suffices to check extremal statistics.&lt;br /&gt;
&lt;br /&gt;
We let &amp;lt;math&amp;gt;(\alpha_0,\alpha_1,\ldots)&amp;lt;/math&amp;gt; be the normalized version of &amp;lt;math&amp;gt;(a,b,\ldots)&amp;lt;/math&amp;gt;, in which one divides the number of points of a certain type in the set by the total number of points in the set.  Thus for instance &amp;lt;math&amp;gt;\alpha_0 = a/2^n, \alpha_1 = b/(n 2^{n-1}), \alpha_3 = c/(\binom{n}{2} 2^{n-2})&amp;lt;/math&amp;gt;, etc., and the &amp;lt;math&amp;gt;\alpha_i&amp;lt;/math&amp;gt; range between 0 and 1.  Averaging arguments show that any linear inequality obeyed by the &amp;lt;math&amp;gt;\alpha_i&amp;lt;/math&amp;gt; at one dimension is automatically inherited by higher dimensions, as are shifted versions of this inequality (in which &amp;lt;math&amp;gt;\alpha_i&amp;lt;/math&amp;gt; is replaced by &amp;lt;math&amp;gt;\alpha_{i+1}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
The idea in &#039;c-statistics&#039; is to identify 1s and 3s but leave the 2s intact. Let’s use x to denote letters that are either 1 or 3, then the 81 points in &amp;lt;math&amp;gt;[3]^4&amp;lt;/math&amp;gt; get split up into 16 groups: 2222 (1 point), 222x, 22×2, 2×22, x222 (two points each), 22xx, 2×2x, x22x, 2xx2, x2×2, xx22 (four points each), 2xxx, x2xx, xx2x, xxx2 (eight points each), xxxx (sixteen points). Let c(w) denote the number of points inside a group w, e.g. c(xx22) is the number of points of the form xx22 inside the set, and is thus an integer from 0 to 4.&lt;br /&gt;
&lt;br /&gt;
== n=0 ==&lt;br /&gt;
&lt;br /&gt;
We trivially have &amp;lt;math&amp;gt;c&#039;_0=1.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== n=1 ==&lt;br /&gt;
&lt;br /&gt;
We trivially have &amp;lt;math&amp;gt;c&#039;_1=2.&amp;lt;/math&amp;gt;  The Pareto-optimal values of the statistics (a,b) are (1,1) and (2,0); these are also the extremals.  We thus have the inequality &amp;lt;math&amp;gt;a+b \leq 2&amp;lt;/math&amp;gt;, or in normalized notation&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;2\alpha_0 + \alpha_1 \leq 2&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== n=2 ==&lt;br /&gt;
&lt;br /&gt;
We have &amp;lt;math&amp;gt;c&#039;_2 = 6&amp;lt;/math&amp;gt;; the upper bound follows since &amp;lt;math&amp;gt;c&#039;_2 \leq 3 c&#039;_1&amp;lt;/math&amp;gt;, and the lower bound follows by deleting one of the two diagonals from &amp;lt;math&amp;gt;[3]^2&amp;lt;/math&amp;gt; (these are the only extremisers).&lt;br /&gt;
&lt;br /&gt;
The extremiser has statistics (a,b,c) = (2,4,0), which are of course Pareto-optimal.  If c=1 then we must have a, b at most 2 (look at the lines through 22).  This is attainable (e.g. {11, 12, 22, 23, 31}, and so (2,2,1) is another Pareto-optimal statistic.  If a=4, then b and c must be 0, so we get another Pareto-optimal statistic (4,0,0) (attainable by {11, 13, 31, 33} of course).  If a=3, then c=0 and b is at most 2, giving another Pareto-optimal statistic (3,2,0); but this is a convex combination of (4,0,0) and (2,4,0) and is thus not extremal.  Thus the complete set of extremal statistics are&lt;br /&gt;
&lt;br /&gt;
(4,0,0), (2,4,0), (2,2,1).&lt;br /&gt;
&lt;br /&gt;
The sharp linear inequalities obeyed by a,b,c (other than the trivial ones &amp;lt;math&amp;gt;a,b,c \geq 0&amp;lt;/math&amp;gt;) are then&lt;br /&gt;
&lt;br /&gt;
*&amp;lt;math&amp;gt;2a+b+2c \leq 8&amp;lt;/math&amp;gt;&lt;br /&gt;
*&amp;lt;math&amp;gt;b+2c \leq 4&amp;lt;/math&amp;gt;&lt;br /&gt;
*&amp;lt;math&amp;gt;a+2c \leq 4&amp;lt;/math&amp;gt;&lt;br /&gt;
*&amp;lt;math&amp;gt;c \leq 1&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
In normalized notation, we have&lt;br /&gt;
*&amp;lt;math&amp;gt;4\alpha_0 + 2\alpha_1 + \alpha_2 \leq 4&amp;lt;/math&amp;gt;&lt;br /&gt;
*&amp;lt;math&amp;gt;2\alpha_1 + \alpha_2 \leq 2&amp;lt;/math&amp;gt;&lt;br /&gt;
*&amp;lt;math&amp;gt;2\alpha_0 + \alpha_2 \leq 2&amp;lt;/math&amp;gt;&lt;br /&gt;
*&amp;lt;math&amp;gt;\alpha_2 \leq 1&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
The Pareto optimizers for c-statistics are (c(22),c(2x),c(x2),c(xx)) = (1112),(0222),(0004), which are covered by these linear inequalities: &lt;br /&gt;
*&amp;lt;math&amp;gt;c(22)+c(2x)+c(xx) \le 4&amp;lt;/math&amp;gt;, &lt;br /&gt;
*&amp;lt;math&amp;gt;c(22)+c(x2)+c(xx) \le 4&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== n=3 ==&lt;br /&gt;
&lt;br /&gt;
We have &amp;lt;math&amp;gt;c&#039;_3 = 16&amp;lt;/math&amp;gt;.  The lower bound can be seen for instance by taking all the strings with one 2, and half the strings with no 2 (e.g. the strings with an odd number of 1s).  The upper bound can be deduced from the corresponding [[upper and lower bounds]] for &amp;lt;math&amp;gt;c_3 = 18&amp;lt;/math&amp;gt;; the 17-point and 18-point line-free sets each contain a geometric line.&lt;br /&gt;
&lt;br /&gt;
If a Moser set in &amp;lt;math&amp;gt;[3]^3&amp;lt;/math&amp;gt; contains 222, then it can have at most 14 points, since the remaining 26 points in the cube split into 13 antipodal pairs, and at most one of each pair can lie in the set.  By exhausting over the &amp;lt;math&amp;gt;2^{13} = 8192&amp;lt;/math&amp;gt; possibilities, it can be shown that it is impossible for a 14-point set to exist; any Moser set containing 222 must in fact omit at least one antipodal pair completely and thus have only 13 points.  (A human proof of this fact can be [http://www.ma.rhul.ac.uk/~elsholtz/WWW/blog/mosertablogv01.pdf found here].)&lt;br /&gt;
&lt;br /&gt;
The Pareto-optimal statistics are&lt;br /&gt;
&lt;br /&gt;
(3,6,3,1),(4,4,3,1),(4,6,2,1),(2,6,6,0),(3,6,5,0),(4,4,5,0),(3,7,4,0),(4,6,4,0), (3,9,3,0),(4,7,3,0),(5,4,3,0),(4,9,2,0),(5,6,2,0),(6,3,2,0),(3,10,1,0),(5,7,1,0), (6,4,1,0),(4,12,0,0),(5,9,0,0),(6,6,0,0),(7,3,0,0),(8,0,0,0).&lt;br /&gt;
&lt;br /&gt;
These were found from a search of the &amp;lt;math&amp;gt;2^{27}&amp;lt;/math&amp;gt; subsets of the cube.&lt;br /&gt;
A spreadsheet containing these statistics can be [http://spreadsheets.google.com/ccc?key=p5T0SktZY9DuKZ2DyzO9EOg&amp;amp;hl=en# found here].&lt;br /&gt;
&lt;br /&gt;
The extremal statistics are&lt;br /&gt;
&lt;br /&gt;
(3,6,3,1),(4,4,3,1),(4,6,2,1),(2,6,6,0),(4,4,5,0),(4,6,4,0),(4,12,0,0),(8,0,0,0)&lt;br /&gt;
&lt;br /&gt;
The sharp linear bounds are :&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;math&amp;gt;2a+b+2c+4d \leq 22&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;3a+2b+3c+6d \leq 36&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;7a+2b+4c+8d \leq 56&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;6a+2b+3c+6d \leq 48&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;b+c+3d \leq 12&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;a+2c+4d \leq 14&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;5a+4c+8d \leq 40&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;a+4d \leq 8&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;b+6d \leq 12&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;c+3d \leq 6&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;d \leq 1&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In normalized notation,&lt;br /&gt;
* &amp;lt;math&amp;gt;8\alpha_0+ 6\alpha_1 + 6\alpha_2 + 2\alpha_3 \leq 11&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;4\alpha_0+4\alpha_1+3\alpha_2+\alpha_3 \leq 6&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;7\alpha_0+3\alpha_1+3\alpha_2+\alpha_3 \leq 7&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;8\alpha_0+3\alpha_1+3\alpha_2+\alpha_3 \leq 8&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;4\alpha_1+2\alpha_2+\alpha_3 \leq 4&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;4\alpha_0+6\alpha_2+2\alpha_3 \leq 7&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;5\alpha_0+3\alpha_2+\alpha_3 \leq 5&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;2\alpha_0+\alpha_3 \leq 2&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;2\alpha_1+\alpha_3 \leq 2&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;2\alpha_2+\alpha_3 \leq 2&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;\alpha_3 \leq 1&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The c-statistics can also be found from an exhaustive search of Moser sets.  The resulting Pareto sets and linear inequalities can be found on Sheet 8 of [http://spreadsheets.google.com/ccc?key=p5T0SktZY9DuKZ2DyzO9EOg&amp;amp;hl=en# this spreadsheet]&lt;br /&gt;
&lt;br /&gt;
== n=4 ==&lt;br /&gt;
&lt;br /&gt;
A [http://abel.math.umu.se/~klasm/extremal-moser-n=5-t=3 computer search] has obtained all extremisers to &amp;lt;math&amp;gt;c&#039;_4=43&amp;lt;/math&amp;gt;.  The 42-point solutions can be found [http://abel.math.umu.se/~klasm/moser-n=4-t=3-p=42.gz here].&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof that &amp;lt;math&amp;gt;c&#039;_4 \leq 43&amp;lt;/math&amp;gt;&#039;&#039;&#039;: &lt;br /&gt;
When e=1 (i.e. the 4D set contains 2222) then we have at most 41 points (in fact at most 39) by counting antipodal points, so assume e=0.&lt;br /&gt;
&lt;br /&gt;
Define the score of a 3D slice to be a/4+b/3+c/2+d.  Observe from double counting that the size of a 4D set is the sum of the scores of its eight side slices.&lt;br /&gt;
&lt;br /&gt;
But by [http://spreadsheets.google.com/ccc?key=p5T0SktZY9DuKZ2DyzO9EOg&amp;amp;hl=en looking at the extremals] we see that the largest score is 44/8, attained at only one point, namely when (a,b,c,d) = (2,6,6,0).  So the only way one can have a 44-point set is if all side slices are (2,6,6,0), or equivalently if the whole set has statistics (a,b,c,d,e) = (4,16,24,0,0).  But then we have all the points with two 2s, which means that the four &amp;quot;a&amp;quot; points cannot be separated by Hamming distance 2.  We conclude that we must have an antipodal pair among the &amp;quot;a&amp;quot; points with an odd number of 1s, and an antipodal pair among the &amp;quot;a&amp;quot; points with an even number of 1s.    By the symmetries of the cube, we may take the a-set to then be 1111, 3333, 1113, 3331.  But then the &amp;quot;b&amp;quot; set must exclude both 1112 and 3332, and so can have at most three points in the eight-point set xyz2 (with x,y,z=1,3) rather than four (to get four points one must alternate in a checkerboard pattern).  Adding this to the at most four points of the form xy2z, x2yz, 2xyz we see that b is at most 15, a contradiction. &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Given a subset of &amp;lt;math&amp;gt;[3]^4&amp;lt;/math&amp;gt;, let a be the number of points with no 2s, b be the number of points with 1 2, and so forth.  The quintuple (a,b,c,d,e) thus lies between (0,0,0,0,0) and (16,32,24,8,1).&lt;br /&gt;
&lt;br /&gt;
The 43-point solutions have distributions (a,b,c,d,e) as follows:&lt;br /&gt;
&lt;br /&gt;
* (5,20,18,0,0) [16 solutions]&lt;br /&gt;
* (4,16,23,0,0) [768 solutions]&lt;br /&gt;
* (3,16,24,0,0) [512 solutions]&lt;br /&gt;
* (4,15,24,0,0) [256 solutions]&lt;br /&gt;
&lt;br /&gt;
The 42-point solutions are [http://abel.math.umu.se/~klasm/Moser-42-stat.pdf distributed as follows]:&lt;br /&gt;
&lt;br /&gt;
* (6,24,12,0,0) [[http://abel.math.umu.se/~klasm/moser-n=4-42-12 8 solutions]] &lt;br /&gt;
* (5,20,17,0,0) [576 solutions]&lt;br /&gt;
* (5,19,18,0,0) [384 solutions]&lt;br /&gt;
* (6,16,18,2,0) [[http://abel.math.umu.se/~klasm/moser-n=4-42-e=2 192 solutions]]&lt;br /&gt;
* (4,20,18,0,0) [272 solutions]&lt;br /&gt;
* (5,17,20,0,0) [192 solutions]&lt;br /&gt;
* (5,16,21,0,0) [3584 solutions]&lt;br /&gt;
* (4,17,21,0,0) [768 solutions]&lt;br /&gt;
* (4,16,22,0,0) [26880 solutions]&lt;br /&gt;
* (5,15,22,0,0) [1536 solutions]&lt;br /&gt;
* (4,15,23,0,0) [22272 solutions]&lt;br /&gt;
* (3,16,23,0,0) [15744 solutions]&lt;br /&gt;
* (4,14,24,0,0) [4224 solutions]&lt;br /&gt;
* (3,15,24,0,0) [8704 solutions]&lt;br /&gt;
* (2,16,24,0,0) [896 solutions]&lt;br /&gt;
&lt;br /&gt;
Note how c is usually quite large, and d quite low.&lt;br /&gt;
&lt;br /&gt;
One of the (6,24,12,0,0) solutions is &amp;lt;math&amp;gt;\Gamma_{220}+\Gamma_{202}+\Gamma_{022}+\Gamma_{112}+\Gamma_{211}&amp;lt;/math&amp;gt; (i.e. the set of points containing exactly two 1s, and/or exactly two 3s).  The other seven are reflections of this set.&lt;br /&gt;
&lt;br /&gt;
There are 2,765,200 41-point solutions, [http://abel.math.umu.se/~klasm/solutions-4-t=3-41-moser.gz listed here].  The statistics for such points can be [http://abel.math.umu.se/~klasm/Moser-41-stat.pdf found here].  Noteworthy features of the statistics:&lt;br /&gt;
&lt;br /&gt;
* d is at most 3 (and, except for [http://abel.math.umu.se/~klasm/moser-n=3-t=3-41-d=3.gz 256 exceptional solutions] of the shape (5,15,18,3,0), have d at most 2; here are the [http://abel.math.umu.se/~klasm/moser-n=3-t=3-41-d=2.gz d=2 solutions] and [http://abel.math.umu.se/~klasm/moser-n=3-t=3-41-d=1.gz d=1 solutions])&lt;br /&gt;
* c is at least 6 (and, except for [http://abel.math.umu.se/~klasm/moser-n=3-t=3-41-c=6.gz 16 exceptional solutions] of the shape (7,28,6,0,0), have c at least 11).&lt;br /&gt;
&lt;br /&gt;
Statistics for the 41-point, 42-point, and 43-point solutions can be found [http://spreadsheets.google.com/ccc?key=p5T0SktZY9DuqNcxJ171Bbw&amp;amp;hl=en here].&lt;br /&gt;
&lt;br /&gt;
If a Moser set in &amp;lt;math&amp;gt;[3]^4&amp;lt;/math&amp;gt; contains 2222, then by the n=3 theory, any middle slice (i.e. 2***, *2**, **2*, or ***2) is missing at least one antipodal pair.  But each antipodal pair belongs to at most three middle slices, thus two of the 40 antipodal pairs must be completely missing.  As a consequence, any Moser set containing 2222 can have at most 39 points.&lt;br /&gt;
(A more refined analysis can be found at [http://www.ma.rhul.ac.uk/~elsholtz/WWW/blog/mosertablogv01.pdf found here].)&lt;br /&gt;
&lt;br /&gt;
We have the following inequalities connecting a,b,c,d,e:&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;math&amp;gt;4a+b \leq 64&amp;lt;/math&amp;gt;:  There are 32 lines connecting two &amp;quot;a&amp;quot; points with a &amp;quot;b&amp;quot; point; each &amp;quot;a&amp;quot; point belongs to four of these lines, and each &amp;quot;b&amp;quot; point belongs to one.  But each such line can have at most two points in the set, and the claim follows.&lt;br /&gt;
* This can be refined to &amp;lt;math&amp;gt;4a+b+\frac{2}{3} c \leq 64&amp;lt;/math&amp;gt;: There are 24 planes connecting four &amp;quot;a&amp;quot; points, four &amp;quot;b&amp;quot; points, and one &amp;quot;c&amp;quot; point; each &amp;quot;a&amp;quot; point belongs to six of these, each &amp;quot;b&amp;quot; point belongs to three, and each &amp;quot;c&amp;quot; point belongs to one.  For each of these planes, we have &amp;lt;math&amp;gt;2a + b + 2c \leq 8&amp;lt;/math&amp;gt; from the n=2 theory, and the claim follows.&lt;br /&gt;
* &amp;lt;math&amp;gt;6a+2c \leq 96&amp;lt;/math&amp;gt;:  There are 96 lines connecting two &amp;quot;a&amp;quot; points with a &amp;quot;c&amp;quot; point; each &amp;quot;a&amp;quot; point belongs to six of these lines, and each &amp;quot;c&amp;quot; point belongs to two.  But each such line can have at most two points in the set, and the claim follows.&lt;br /&gt;
* &amp;lt;math&amp;gt;3b+2c \leq 96&amp;lt;/math&amp;gt;:  There are 48 lines connecting two &amp;quot;b&amp;quot; points to a &amp;quot;c&amp;quot; point; each &amp;quot;b&amp;quot; point belongs to three of these points, and each &amp;quot;c&amp;quot; point belongs to two.  But each such line can have at most two points in the set, and the claim follows.&lt;br /&gt;
&lt;br /&gt;
The inequalities for n=3 imply inequalities for n=4.  Indeed, there are eight side slices of &amp;lt;math&amp;gt;[3]^4&amp;lt;/math&amp;gt;; each &amp;quot;a&amp;quot; point belongs to four of these, each &amp;quot;b&amp;quot; point belongs to three, each &amp;quot;c&amp;quot; point belongs to two, and each &amp;quot;d&amp;quot; point belongs to one.  Thus, any inequality of the form&lt;br /&gt;
:&amp;lt;math&amp;gt; \alpha a + \beta b + \gamma c + \delta d \leq M&amp;lt;/math&amp;gt;&lt;br /&gt;
in three dimensions implies the inequality&lt;br /&gt;
:&amp;lt;math&amp;gt; 4 \alpha a + 3 \beta b + 2 \gamma c + \delta d \leq 8M&amp;lt;/math&amp;gt;&lt;br /&gt;
in four dimensions.  Thus we have&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;math&amp;gt;8a+3b+4c+4d \leq 176&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;2a+b+c+d \leq 48&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;14a+3b+4c+4d \leq 244&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;4a+b+c+d \leq 64&amp;lt;/math&amp;gt; &lt;br /&gt;
* &amp;lt;math&amp;gt;3b+2c+3d \leq 96&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;a+c+d \leq 28&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;5a+2c+2d \leq 80&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;a+d \leq 16&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;b+2d \leq 32&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;2c+3d \leq 48&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Cubes also sit diagonally in the 4-dimensional cube.  They may have coordinates xxyz, where xx runs over (11,22,33) or (13,22,31), while y and z run over (1,2,3).  These cubes have a different distribution of 2s than the ordinary slices: (a,b,c,d,e) = (8,8,6,4,1) instead of (8,12,6,1,0) for the side slices and (0,8,12,6,1) for the middle slices.  So a different set of inequalities arise.  It is possible to run through the same procedure as described above for n=3, and the inequalities that arise are &amp;lt;math&amp;gt;2a+b+2c+2d+4e \le 24&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;4a+b+2c+2d+4e \le 32&amp;lt;/math&amp;gt; within the 3D cube, which when averaged becomes &amp;lt;math&amp;gt;4a+b+2c+4d+16e \le 96&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;8a+b+2c+4d+16e \le 128&amp;lt;/math&amp;gt; for the 4D cube.  A spreadsheet containing these statistics can be [http://spreadsheets.google.com/ccc?key=p5T0SktZY9DuKZ2DyzO9EOg&amp;amp;hl=en# found here] on sheet 2.  Other sheets of this spreadsheet contain results for a 3D cube sitting diagonally in a 5D, 6D or 7D cube.  Notice the similarity of the equations that arise for the xxxyz, xxyyz and xxxxyz diagonals.  Also notice the (a,b,c,...) statistics for the xxxxyyz diagonals have the same Pareto sets and linear inequalities as the cube&#039;s c-statistics.&lt;br /&gt;
&lt;br /&gt;
The c-statistics for the 3D cube are bounded by a set of 20 inequalities.  By considering the fourteen ways a 3D cube sits in the 4D cube, the result is a set of 239 inequalities for the 4D cube&#039;s c-statistics.  However, all 239 inequalities are satisfied by a 44-point solution given by c(xxxx) = c(2xxx) = c(22xx) = 4, and permutations.&lt;br /&gt;
&lt;br /&gt;
== n=5 ==&lt;br /&gt;
&lt;br /&gt;
Let (A,B,C,D,E,F) be the statistics of a five-dimensional Moser set, thus (A,B,C,D,E,F) varies between (0,0,0,0,0,0) and (32,80,80,40,10,1).&lt;br /&gt;
&lt;br /&gt;
There are several Moser sets with the statistics (4,40,80,0,0,0), which thus have 124 points.  Indeed, one can take&lt;br /&gt;
&lt;br /&gt;
* all points with two 2s;&lt;br /&gt;
* all points with one 2 and an even number of 1s; and&lt;br /&gt;
* (13111),(13113),(31311),(13333). Any two of these four points differ in three places, except for one pair of points that differ in one place.&lt;br /&gt;
&lt;br /&gt;
For the rest of this section, we assume that the Moser set &amp;lt;math&amp;gt;{\mathcal A}&amp;lt;/math&amp;gt; is a 125-point Moser set.  We will prove that &amp;lt;math&amp;gt;{\mathcal A}&amp;lt;/math&amp;gt; cannot exist.&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 1&#039;&#039;&#039;: F=0.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; If F is non-zero, then the Moser set contains 22222, then each of the 121 antipodal pairs can have at most one point in the set, leading to only 122 points. &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 2&#039;&#039;&#039;: Every middle slice of &amp;lt;math&amp;gt;{\mathcal A}&amp;lt;/math&amp;gt; has at most 41 points.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039;  Without loss of generality we may consider the 2**** slice.  There are two cases, depending on the value of c(2****).&lt;br /&gt;
&lt;br /&gt;
Suppose first that c is at least 17; thus there are at least 17 points of the form 222xy, 22x2y, 22xy2, 2x2y2, 2xy22, or 2x22y, where the x, y denote 1 or 3.  This gives 34 &amp;quot;xy&amp;quot; wildcards in all in four coordinate slots; by the pigeonhole principle one of the slots sees at least 9 of the wildcards.  By symmetry, we may assume that the second coordinate slot sees at least 9 of these wildcards, thus there are at least 9 points of the form 2x22y, 2x2y2, 2xy22.  The x=1, x=3 cases can absorb at most six of these, thus each of these cases must absorb at least three points, with at least one absorbing at least five.  Let&#039;s say that it&#039;s the x=3 case that absorbs 5; thus &amp;lt;math&amp;gt;d(*1***) \geq 3&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;d(*3***) \geq 5&amp;lt;/math&amp;gt;.  From the n=4 theory this means that the *1*** slice has at most 41 points, and the *3*** slice has at most 40.  Meanwhile, the middle slice has at most 43, leading to 41+41+42=124 points in all.&lt;br /&gt;
&lt;br /&gt;
Now suppose c is less than 17; then by the n=4 theory the middle slice is one of the eight (6,24,12,0,0) sets.  Without loss of generality we may take it to be &amp;lt;math&amp;gt;\Gamma_{220}+\Gamma_{202}+\Gamma_{022}+\Gamma_{112}+\Gamma_{211}&amp;lt;/math&amp;gt;; in particular, the middle slice contains the points 21122 21212 21221 23322 23232 23223.  In particular, the *1*** and *3*** slices have a &amp;quot;d&amp;quot; value of at least three, and so have at most 41 points.  If the *2*** slice has at most 42 points, then we are at 41+42+41=124 points as needed, but if we have 43 or more, then we are back in the first case (as &amp;lt;math&amp;gt;c(*2***) \geq 17&amp;lt;/math&amp;gt;) after permuting the indices.&lt;br /&gt;
&amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Since 125=41+41+43, we thus have&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Corollary 1&#039;&#039;&#039;: Every side slice of &amp;lt;math&amp;gt;{\mathcal A}&amp;lt;/math&amp;gt; has at least 41 points.  If one side slice does have 41 points, then the other has 43.&lt;br /&gt;
&lt;br /&gt;
Combining this with the n=4 statistics, we conclude&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Corollary 2&#039;&#039;&#039;: Every side slice of &amp;lt;math&amp;gt;{\mathcal A}&amp;lt;/math&amp;gt; has e=0, and &amp;lt;math&amp;gt;d \leq 3&amp;lt;/math&amp;gt;.  Given two opposite side slices, e.g. 1**** and 3****, we have &amp;lt;math&amp;gt;d(1****)+d(3****) \leq 4&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Corollary 3&#039;&#039;&#039;: E=0.&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Corollary 4&#039;&#039;&#039;: Any middle slice has a &amp;quot;c&amp;quot; value of at most 8.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; Let&#039;s work with the 2**** slice.  By Corollary 2, there are at most four contributions to c(2****) of the form 21*** or 23***, and similarly for the other three positions.  Double counting then gives the claim. &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 3&#039;&#039;&#039;: &amp;lt;math&amp;gt;2B+C \leq 160&amp;lt;/math&amp;gt;.   &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039;: There are 160 lines connecting one &amp;quot;C&amp;quot; point to two &amp;quot;B&amp;quot; points (e.g. 11112, 11122, 11132); each &amp;quot;C&amp;quot; point lies in two of these, and each &amp;quot;B&amp;quot; point lies on four.  A Moser set can have at most two points out of each of these lines.  Double counting then gives the claim.  &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 4&#039;&#039;&#039; Given m A-points with &amp;lt;math&amp;gt;m \geq 5&amp;lt;/math&amp;gt;, there exists at least m-4 pairs (a,b) of such A-points with Hamming distance exactly two (i.e. b differs from a in exactly two places).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; It suffices to check this for m=5, since the case of larger m then follows by locating a pair, removing a point that contributes to that pair, and using the induction hypothesis.  Given 5 A-points, we may assume by the pigeonhole principle and symmetry that at least three of them have an odd number of 1s.  Suppose 11111 is one of the points, and that no pair has Hamming distance 2. All points with two 3s are excluded, so the only points allowed with an odd number of 1s are those with four 3s. But all those points differ from each other in two positions, so at most one of them is allowed.  &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Corollary 5&#039;&#039;&#039; &amp;lt;math&amp;gt;C \leq 79&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039;: Suppose for contradiction that C=80, then D=0 and &amp;lt;math&amp;gt;B \leq 40&amp;lt;/math&amp;gt;.  From Lemma 4 we also see that A cannot be 5 or more, leading to the contradiction.&lt;br /&gt;
&amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Define the &#039;&#039;&#039;score&#039;&#039;&#039; of a Moser set in &amp;lt;math&amp;gt;[3]^4&amp;lt;/math&amp;gt; to be the quantity &amp;lt;math&amp;gt;a + 5b/4 + 5c/3 + 5d/2 + 5e&amp;lt;/math&amp;gt;.  Double-counting (and Lemma 2) gives&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 5&#039;&#039;&#039;  The total score of all the ten side-slices of &amp;lt;math&amp;gt;{\mathcal A}&amp;lt;/math&amp;gt; is equal to &amp;lt;math&amp;gt;5|{\mathcal A}| = 5 \times 125&amp;lt;/math&amp;gt;.  In particular, there exists a pair of opposite side-slices whose scores add up to at least 125.&lt;br /&gt;
&lt;br /&gt;
By Lemma 5 and symmetry, we may assume that the 1**** and 3**** slices have score adding up to at least 125.  By Lemma 2, the 2**** slice has at most 41 points, which imply that the 1**** and 3**** have 41, 42, or 43 points.  From the [http://spreadsheets.google.com/ccc?key=p5T0SktZY9DuqNcxJ171Bbw&amp;amp;hl=en n=4 statistics] we know that all 41-point, 42-point, 43-point slices have score less than 62, with the following exceptions:&lt;br /&gt;
&lt;br /&gt;
# (2,16,24,0,0) [42 points, score: 62]&lt;br /&gt;
# (4,16,23,0,0) [43 points, score: 62 1/3]&lt;br /&gt;
# (4,15,24,0,0) [43 points, score: 62 3/4]&lt;br /&gt;
# (3,16,24,0,0) [43 points, score: 63]&lt;br /&gt;
&lt;br /&gt;
Thus the 1**** and 3**** slices must come from the above list.  Furthermore, if one of the slices is of type 1, then the other must be of type 4, and if one slice is of type 2, then the other must be of type 3 or 4.&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 6&#039;&#039;&#039; There exists one cut in which the side slices have total score strictly greater than 125 (i.e. they thus involve only Type 2, Type 3, and Type 4 slices, with at least one side slice not equal to Type 2, and the cut here is of the form 43+39+43).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; If not, then all cuts have side slices exactly equal to 125, which by the above table implies that one is Type 1 and one is Type 4, in particular all side slices have c=24.  But this forces C=80, contradicting Corollary 5. &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Adding up the corners we conclude&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Corollary 6&#039;&#039;&#039; &amp;lt;math&amp;gt;6 \leq A \leq 8&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 7&#039;&#039;&#039; &amp;lt;math&amp;gt;D=0&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; Firstly, from Lemma 6 we have a cut in which the two side slices are omitting at most one C-point between them (and have no D-point), which forces the middle slice to have at most one D-point; thus D is at most 1.&lt;br /&gt;
&lt;br /&gt;
Now suppose instead that D=1 (e.g. if 11222 was in the set); then there would be two choices of coordinates in which one of the side slices would have d=1 (e.g. 1**** and *1****). But the [http://spreadsheets.google.com/ccc?key=p5T0SktZY9DuqNcxJ171Bbw&amp;amp;hl=en n=4 statistics] show that such slices have a score of at most 59 7/12, so that the total score from those two coordinates is at most 63 + 59 7/12 = 122 7/12. On the other hand, the other three slices have a net score of at most 63+63 = 126. This averages out to at most 124.633... &amp;lt; 125, a contradiction.  &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Corollary 7&#039;&#039;&#039; Every middle slice has at most 40 points.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; From Lemma 7 we see that the middle slice must have c=0, but from the n=4 statistics this is not possible for any slice of size 41 or higher (alternatively, one can use the inequalities &amp;lt;math&amp;gt;4a+b \leq 64&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;b \leq 32&amp;lt;/math&amp;gt;). &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Each middle slice now has 39 or 40 points, with c=d=e=0, and so from the inequalities &amp;lt;math&amp;gt;4a+b \leq 64&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;b \leq 32&amp;lt;/math&amp;gt; must have statistics (8,32,0,0,0),(7,32,0,0,0), or (8,31,0,0,0).  In particular the &amp;quot;a&amp;quot; index of the middle slices is at most 8.  Summing over all middle slices we conclude&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 9&#039;&#039;&#039; B is at most 40.&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 10&#039;&#039;&#039; C is equal to 78 or 79.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; By Corollary 5, it suffices to show that &amp;lt;math&amp;gt;C \geq 78&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
As 125=43+39+43, we see that every center slice must have at least 39 points. By Lemma 2 and Lemma 7 the center slice has c=d=e=0, thus the center slice has a+b &amp;gt;= 39.  On the other hand, from the n=4 theory we have 4a+b &amp;lt;= 64, which forces b &amp;gt;= 31.&lt;br /&gt;
&lt;br /&gt;
By double counting, we see that 2C is equal to the sum of the b&#039;s of all the five center slices.  Thus C &amp;gt;= 5*31/2 = 77.5 and the claim follows.  &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
From Lemmas 9 and 10 we see that &amp;lt;math&amp;gt;B+C \leq 119&amp;lt;/math&amp;gt;, and thus &amp;lt;math&amp;gt;A \geq 6&amp;lt;/math&amp;gt;.  Also, if &amp;lt;math&amp;gt;A \geq 7&amp;lt;/math&amp;gt;, then by Lemma 4 we have at least three pairs of A points with Hamming distance 2.  At most two of these pairs eliminate the same C point, so we would have C=78 in that case.  &lt;br /&gt;
&lt;br /&gt;
Putting all the above facts together, we see that (A,B,C,D,E,F) must be one of the following triples:&lt;br /&gt;
&lt;br /&gt;
* (6,40,79,0,0,0)&lt;br /&gt;
* (7,40,78,0,0,0)&lt;br /&gt;
* (8,39,78,0,0,0)&lt;br /&gt;
&lt;br /&gt;
All three cases can be eliminated, giving &amp;lt;math&amp;gt;c&#039;_5=124&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== Elimination of (6,40,79,0,0,0) ===&lt;br /&gt;
&lt;br /&gt;
Look at the 6 A points.  From Lemma 4 we have at least two pairs (a,b), (c,d) of A-points that have Hamming separation 2.&lt;br /&gt;
&lt;br /&gt;
Now look at the midpoints of these two pairs; these midpoints are C-points cannot lie in the set.  But we have exactly one C-point missing from the set, thus the midpoints must be the same.  By symmetry, we may thus assume that the two pairs are (11111,11133) and (11113,11131).  Thus 11111,11133, 11113, 11131 are in the set, and so every C-point other than 11122 is in the set.  On the other hand, the B-points 11121, 11123, 11112, 11132 lie outside the set.&lt;br /&gt;
&lt;br /&gt;
At most one of 11312, 11332 lie in the set (since 11322 lies in the set).   Suppose that 11312 lies outside the set, then we have a pair (xy1z2, xy3z2) with x,y,z = 1,3 that is totally omitted from the set, namely (11112,11312).  On the other hand, every other pair of this form can have at most one point in the set, thus there are at most seven points in the set of the form (xyzw2) with x,y,z,w = 1,3.  Similarly there are at most 8 points of the form xyz2w, or of xy2zw, x2yzw, 2xyzw, leading to at most 39 B-points in all, contradiction.&lt;br /&gt;
&lt;br /&gt;
=== Elimination of (7,40,78,0,0,0) ===&lt;br /&gt;
&lt;br /&gt;
By Lemma 4, we have at least three pairs of A-points of distance two apart that lie in the set.&lt;br /&gt;
The midpoints of these pairs are C-points that do not lie in the set; but there are only two such C-points, thus two pairs must have the same midpoint, so we may assume as before that 111xy lies in the set for x,y=1,3, which implies that 1112* and 111*2 lie outside the set.&lt;br /&gt;
&lt;br /&gt;
Now consider the 160 lines between 2 B points and one C point (cf. Lemma 3).  The sum of all the points in each such line (counting multiplicity) is 4B+2C = 316.  On the other hand, every one of the 160 lines can have at most two points, and two of these lines (namely 1112*, 111*2) have no points.  Thus all the other lines must have exactly two points.  &lt;br /&gt;
&lt;br /&gt;
We know that the C-point 11122 is missing from the set; there is one other missing C-point.  Since 1112x, 111x2 lie outside the set, we conclude from the previous paragraph that 1132x, 113x2 and 1312x, 131x2 lie in the set.  Taking midpoints we conclude that 11322 and 13122 lie outside the set.  But this is now three C-points missing (together with 11122), a contradiction.&lt;br /&gt;
&lt;br /&gt;
=== Elimination of (8,39,78,0,0,0) ===&lt;br /&gt;
&lt;br /&gt;
By Lemma 4 we have at least four pairs of A-points of distance two apart that lie in the set. The midpoints of these pairs are C-points that do not lie in the set; but there are only two such C-points, thus two pairs (a,b), (c,d) must have the same midpoint p, and the other two pairs (a&#039;,b&#039;), (c&#039;,d&#039;) must also have the same midpoint p&#039;.  (Note that every C-point is the midpoint of at most two such pairs.)&lt;br /&gt;
&lt;br /&gt;
Now consider the 160 lines between 2 B points and one C point (cf. Lemma 3).  The sum of all the points in each such line (counting multiplicity) is 4B+2C = 312.  Every one of the 160 lines can have at most two points, and four of these (those in the plane of (a,b,c,d) or of (a&#039;,b&#039;,c&#039;,d&#039;) have no points.  Thus all other lines must have exactly two points.&lt;br /&gt;
&lt;br /&gt;
Without loss of generality we have (a,b)=(11111,11133), (c,d) = (11113,11131), thus p = 11122.  By permuting the first three indices, we may assume that p&#039; is not of the form x2y2z, x2yz2, xy22z, xy2z2.  Then 1112x lies outside the set and 1122x lies in the set, so by the above paragraph 1132x lies in the set; similarly for 113x2, 1312x, 131x2.  This implies that 13122, 11322 lie outside the set, but this (together with 11122) shows that at least three C-points are missing, a contradiction.&lt;br /&gt;
&lt;br /&gt;
== General n ==&lt;br /&gt;
&lt;br /&gt;
General solution for &amp;lt;math&amp;gt;c&#039;_N&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* q 2s, all points from A(N-q,1)&lt;br /&gt;
* q-1 2s, points from A(N-q+1,2)&lt;br /&gt;
* q-2 2s, points from A(N-q+2,3)&lt;br /&gt;
* etc.&lt;br /&gt;
&lt;br /&gt;
where A(m,d) is a subset of &amp;lt;math&amp;gt;[1,3]^m&amp;lt;/math&amp;gt; for which any two points differ from each other in at least d places.&lt;br /&gt;
&lt;br /&gt;
Mathworld’s entry on error-correcting codes suggests it might be NP-complete to find the size of A(m,d) in general.&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;math&amp;gt;|A(m,1)| = 2^m&amp;lt;/math&amp;gt; because it includes all points in &amp;lt;math&amp;gt;[1,3]^m&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;|A(m,2)| = 2^{m-1}&amp;lt;/math&amp;gt; because it can include all points in &amp;lt;math&amp;gt;[1,3]^m&amp;lt;/math&amp;gt; with an odd number of 1s&lt;br /&gt;
&lt;br /&gt;
The integer programming routine from Maple 12 was used to obtain upper bounds for &amp;lt;math&amp;gt;c&#039;_6&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;c&#039;_7&amp;lt;/math&amp;gt;.  A large number of linear inequalities, described above in sections (n=3) and (n=4), were combined.  The details are in [[Maple calculations]].  The results were that &amp;lt;math&amp;gt;c&#039;_6 \le 361&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;c&#039;_7 \le 1071&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
A [[genetic algorithm]] has provided the following examples:&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;math&amp;gt;c&#039;_6 \geq 353&amp;lt;/math&amp;gt; (26 examples; [http://twofoldgaze.wordpress.com/2009/03/10/353-element-solution/ here is one])&lt;br /&gt;
* &amp;lt;math&amp;gt;c&#039;_7 \geq 988&amp;lt;/math&amp;gt; [http://twofoldgaze.wordpress.com/2009/03/10/978-element-solution/ Here is the example]&lt;br /&gt;
&lt;br /&gt;
== Larger sides (k&amp;gt;3) ==&lt;br /&gt;
&lt;br /&gt;
The following set gives a lower bound for Moser’s cube &amp;lt;math&amp;gt;[4]^n&amp;lt;/math&amp;gt; (values 1,2,3,4):  Pick all points where q entries are 2 or 3; and also pick those where q-1 entries are 2 or 3 and an odd number of entries are 1.  This is maximized when q is near n/2, giving a lower bound of&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\binom{n}{n/2} 2^n + \binom{n}{n/2-1} 2^{n-1}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
which is comparable to &amp;lt;math&amp;gt;4^n/\sqrt{n}&amp;lt;/math&amp;gt; by [[Stirling&#039;s formula]].&lt;br /&gt;
&lt;br /&gt;
For k=5 (values 1,2,3,4,5) If A, B, C, D, and E denote the numbers of 1-s, 2-s, 3-s, 4-s and 5-s then the first three points of a geometric line form a 3-term arithmetic progression in A+E+2(B+D)+3C. So, for k=5 we have a similar lower bound for the Moser’s problem as for DHJ k=3, i.e. &amp;lt;math&amp;gt;5^{n - O(\sqrt{\log n})}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
The k=6 version of Moser implies DHJ(3).  Indeed, any k=3 combinatorial line-free set can be &amp;quot;doubled up&amp;quot; into a k=6 geometric line-free set of the same density by pulling back the set from the map &amp;lt;math&amp;gt;\phi: [6]^n \to [3]^n&amp;lt;/math&amp;gt; that maps 1, 2, 3, 4, 5, 6 to 1, 2, 3, 3, 2, 1 respectively; note that this map sends k=6 geometric lines to k=3 combinatorial lines.&lt;/div&gt;</summary>
		<author><name>121.220.134.232</name></author>
	</entry>
	<entry>
		<id>https://michaelnielsen.org/polymath/index.php?title=Moser%27s_cube_problem&amp;diff=1042</id>
		<title>Moser&#039;s cube problem</title>
		<link rel="alternate" type="text/html" href="https://michaelnielsen.org/polymath/index.php?title=Moser%27s_cube_problem&amp;diff=1042"/>
		<updated>2009-03-22T04:59:43Z</updated>

		<summary type="html">&lt;p&gt;121.220.134.232: /* n=4 */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Define a &#039;&#039;Moser set&#039;&#039; to be a subset of &amp;lt;math&amp;gt;[3]^n&amp;lt;/math&amp;gt; which does not contain any [[geometric line]], and let &amp;lt;math&amp;gt;c&#039;_n&amp;lt;/math&amp;gt; denote the size of the largest Moser set in &amp;lt;math&amp;gt;[3]^n&amp;lt;/math&amp;gt;.  The first few values are (see [http://www.research.att.com/~njas/sequences/A003142 OEIS A003142]):&lt;br /&gt;
&lt;br /&gt;
: &amp;lt;math&amp;gt;c&#039;_0 = 1; c&#039;_1 = 2; c&#039;_2 = 6; c&#039;_3 = 16; c&#039;_4 = 43; c&#039;_5 = 124.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Beyond this point, we only have some upper and lower bounds, in particular &amp;lt;math&amp;gt;353 \leq c&#039;_6 \leq 361&amp;lt;/math&amp;gt;; see [http://spreadsheets.google.com/ccc?key=p5T0SktZY9DsU-uZ1tK7VEg this spreadsheet] for the latest bounds.&lt;br /&gt;
&lt;br /&gt;
The best known asymptotic lower bound for &amp;lt;math&amp;gt;c&#039;_n&amp;lt;/math&amp;gt; is&lt;br /&gt;
&lt;br /&gt;
: &amp;lt;math&amp;gt;c&#039;_n \gg 3^n/\sqrt{n}&amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
formed by fixing the number of 2s to a single value near n/3.  Compare this to the DHJ(2) or Sperner limit of &amp;lt;math&amp;gt;2^n/\sqrt{n}&amp;lt;/math&amp;gt;.  Is it possible to do any better?  Note that we have a [[Upper_and_lower_bounds#Asymptotics|significantly better bound]] for the DHJ(3) &amp;lt;math&amp;gt;c_n&amp;lt;/math&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
: &amp;lt;math&amp;gt;c_n \geq 3^{n-O(\sqrt{\log n})}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
A more precise lower bound is&lt;br /&gt;
&lt;br /&gt;
: &amp;lt;math&amp;gt;c&#039;_n \geq \binom{n+1}{q} 2^{n-q}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where q is the nearest integer to &amp;lt;math&amp;gt;n/3&amp;lt;/math&amp;gt;, formed by taking all strings with q 2s, together with all strings with q-1 2s and an odd number of 1s.  This for instance gives the lower bound &amp;lt;math&amp;gt;c&#039;_5 \geq 120&amp;lt;/math&amp;gt;, which compares with the upper bound &amp;lt;math&amp;gt;c&#039;_5 \leq 3 c&#039;_4 = 129&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Using [[DHJ(3)]], we have the upper bound&lt;br /&gt;
&lt;br /&gt;
: &amp;lt;math&amp;gt;c&#039;_n = o(3^n)&amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
but no effective decay rate is known. It would be good to have a combinatorial proof of this fact (which is weaker than [[DHJ(3)]], but implies [[Roth&#039;s theorem]]).&lt;br /&gt;
&lt;br /&gt;
== Notation ==&lt;br /&gt;
&lt;br /&gt;
Given a Moser set A in &amp;lt;math&amp;gt;[3]^n&amp;lt;/math&amp;gt;, we let a be the number of points in A with no 2s, b be the number of points in A with one 2, c the number of points with two 2s, etc.  We call (a,b,c,...) the &#039;&#039;statistics&#039;&#039; of A.  Given a slice S of &amp;lt;math&amp;gt;[3]^n&amp;lt;/math&amp;gt;, we let a(S), b(S), etc. denote the statistics of that slice (dropping the fixed coordinates).  Thus for instance if A = {11, 12, 22, 32}, then (a,b,c) = (1,2,1), and (a(1*),b(1*)) = (1,1).&lt;br /&gt;
&lt;br /&gt;
We call a statistic (a,b,c,...) &#039;&#039;attainable&#039;&#039; if it is attained by a Moser set.  We say that an attainable statistic is &#039;&#039;Pareto-optimal&#039;&#039; if it cannot be pointwise dominated by any other attainable statistic (a&#039;,b&#039;,c&#039;,...) (thus &amp;lt;math&amp;gt;a&#039; \geq a&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;b&#039; \geq b&amp;lt;/math&amp;gt;, etc.)  We say that it is &#039;&#039;extremal&#039;&#039; if it is not a convex combination of any other attainable statistic (this is a stronger property than Pareto-optimal).  For the purposes of maximising linear scores of attainable statistics, it suffices to check extremal statistics.&lt;br /&gt;
&lt;br /&gt;
We let &amp;lt;math&amp;gt;(\alpha_0,\alpha_1,\ldots)&amp;lt;/math&amp;gt; be the normalized version of &amp;lt;math&amp;gt;(a,b,\ldots)&amp;lt;/math&amp;gt;, in which one divides the number of points of a certain type in the set by the total number of points in the set.  Thus for instance &amp;lt;math&amp;gt;\alpha_0 = a/2^n, \alpha_1 = b/(n 2^{n-1}), \alpha_3 = c/(\binom{n}{2} 2^{n-2})&amp;lt;/math&amp;gt;, etc., and the &amp;lt;math&amp;gt;\alpha_i&amp;lt;/math&amp;gt; range between 0 and 1.  Averaging arguments show that any linear inequality obeyed by the &amp;lt;math&amp;gt;\alpha_i&amp;lt;/math&amp;gt; at one dimension is automatically inherited by higher dimensions, as are shifted versions of this inequality (in which &amp;lt;math&amp;gt;\alpha_i&amp;lt;/math&amp;gt; is replaced by &amp;lt;math&amp;gt;\alpha_{i+1}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
The idea in &#039;c-statistics&#039; is to identify 1s and 3s but leave the 2s intact. Let’s use x to denote letters that are either 1 or 3, then the 81 points in &amp;lt;math&amp;gt;[3]^4&amp;lt;/math&amp;gt; get split up into 16 groups: 2222 (1 point), 222x, 22×2, 2×22, x222 (two points each), 22xx, 2×2x, x22x, 2xx2, x2×2, xx22 (four points each), 2xxx, x2xx, xx2x, xxx2 (eight points each), xxxx (sixteen points). Let c(w) denote the number of points inside a group w, e.g. c(xx22) is the number of points of the form xx22 inside the set, and is thus an integer from 0 to 4.&lt;br /&gt;
&lt;br /&gt;
== n=0 ==&lt;br /&gt;
&lt;br /&gt;
We trivially have &amp;lt;math&amp;gt;c&#039;_0=1.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== n=1 ==&lt;br /&gt;
&lt;br /&gt;
We trivially have &amp;lt;math&amp;gt;c&#039;_1=2.&amp;lt;/math&amp;gt;  The Pareto-optimal values of the statistics (a,b) are (1,1) and (2,0); these are also the extremals.  We thus have the inequality &amp;lt;math&amp;gt;a+b \leq 2&amp;lt;/math&amp;gt;, or in normalized notation&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;2\alpha_0 + \alpha_1 \leq 2&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== n=2 ==&lt;br /&gt;
&lt;br /&gt;
We have &amp;lt;math&amp;gt;c&#039;_2 = 6&amp;lt;/math&amp;gt;; the upper bound follows since &amp;lt;math&amp;gt;c&#039;_2 \leq 3 c&#039;_1&amp;lt;/math&amp;gt;, and the lower bound follows by deleting one of the two diagonals from &amp;lt;math&amp;gt;[3]^2&amp;lt;/math&amp;gt; (these are the only extremisers).&lt;br /&gt;
&lt;br /&gt;
The extremiser has statistics (a,b,c) = (2,4,0), which are of course Pareto-optimal.  If c=1 then we must have a, b at most 2 (look at the lines through 22).  This is attainable (e.g. {11, 12, 22, 23, 31}, and so (2,2,1) is another Pareto-optimal statistic.  If a=4, then b and c must be 0, so we get another Pareto-optimal statistic (4,0,0) (attainable by {11, 13, 31, 33} of course).  If a=3, then c=0 and b is at most 2, giving another Pareto-optimal statistic (3,2,0); but this is a convex combination of (4,0,0) and (2,4,0) and is thus not extremal.  Thus the complete set of extremal statistics are&lt;br /&gt;
&lt;br /&gt;
(4,0,0), (2,4,0), (2,2,1).&lt;br /&gt;
&lt;br /&gt;
The sharp linear inequalities obeyed by a,b,c (other than the trivial ones &amp;lt;math&amp;gt;a,b,c \geq 0&amp;lt;/math&amp;gt;) are then&lt;br /&gt;
&lt;br /&gt;
*&amp;lt;math&amp;gt;2a+b+2c \leq 8&amp;lt;/math&amp;gt;&lt;br /&gt;
*&amp;lt;math&amp;gt;b+2c \leq 4&amp;lt;/math&amp;gt;&lt;br /&gt;
*&amp;lt;math&amp;gt;a+2c \leq 4&amp;lt;/math&amp;gt;&lt;br /&gt;
*&amp;lt;math&amp;gt;c \leq 1&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
In normalized notation, we have&lt;br /&gt;
*&amp;lt;math&amp;gt;4\alpha_0 + 2\alpha_1 + \alpha_2 \leq 4&amp;lt;/math&amp;gt;&lt;br /&gt;
*&amp;lt;math&amp;gt;2\alpha_1 + \alpha_2 \leq 2&amp;lt;/math&amp;gt;&lt;br /&gt;
*&amp;lt;math&amp;gt;2\alpha_0 + \alpha_2 \leq 2&amp;lt;/math&amp;gt;&lt;br /&gt;
*&amp;lt;math&amp;gt;\alpha_2 \leq 1&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
The Pareto optimizers for c-statistics are (c(22),c(2x),c(x2),c(xx)) = (1112),(0222),(0004), which are covered by these linear inequalities: &lt;br /&gt;
*&amp;lt;math&amp;gt;c(22)+c(2x)+c(xx) \le 4&amp;lt;/math&amp;gt;, &lt;br /&gt;
*&amp;lt;math&amp;gt;c(22)+c(x2)+c(xx) \le 4&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== n=3 ==&lt;br /&gt;
&lt;br /&gt;
We have &amp;lt;math&amp;gt;c&#039;_3 = 16&amp;lt;/math&amp;gt;.  The lower bound can be seen for instance by taking all the strings with one 2, and half the strings with no 2 (e.g. the strings with an odd number of 1s).  The upper bound can be deduced from the corresponding [[upper and lower bounds]] for &amp;lt;math&amp;gt;c_3 = 18&amp;lt;/math&amp;gt;; the 17-point and 18-point line-free sets each contain a geometric line.&lt;br /&gt;
&lt;br /&gt;
If a Moser set in &amp;lt;math&amp;gt;[3]^3&amp;lt;/math&amp;gt; contains 222, then it can have at most 14 points, since the remaining 26 points in the cube split into 13 antipodal pairs, and at most one of each pair can lie in the set.  By exhausting over the &amp;lt;math&amp;gt;2^{13} = 8192&amp;lt;/math&amp;gt; possibilities, it can be shown that it is impossible for a 14-point set to exist; any Moser set containing 222 must in fact omit at least one antipodal pair completely and thus have only 13 points.  (A human proof of this fact can be [http://www.ma.rhul.ac.uk/~elsholtz/WWW/blog/mosertablogv01.pdf found here].)&lt;br /&gt;
&lt;br /&gt;
The Pareto-optimal statistics are&lt;br /&gt;
&lt;br /&gt;
(3,6,3,1),(4,4,3,1),(4,6,2,1),(2,6,6,0),(3,6,5,0),(4,4,5,0),(3,7,4,0),(4,6,4,0), (3,9,3,0),(4,7,3,0),(5,4,3,0),(4,9,2,0),(5,6,2,0),(6,3,2,0),(3,10,1,0),(5,7,1,0), (6,4,1,0),(4,12,0,0),(5,9,0,0),(6,6,0,0),(7,3,0,0),(8,0,0,0).&lt;br /&gt;
&lt;br /&gt;
These were found from a search of the &amp;lt;math&amp;gt;2^{27}&amp;lt;/math&amp;gt; subsets of the cube.&lt;br /&gt;
A spreadsheet containing these statistics can be [http://spreadsheets.google.com/ccc?key=p5T0SktZY9DuKZ2DyzO9EOg&amp;amp;hl=en# found here].&lt;br /&gt;
&lt;br /&gt;
The extremal statistics are&lt;br /&gt;
&lt;br /&gt;
(3,6,3,1),(4,4,3,1),(4,6,2,1),(2,6,6,0),(4,4,5,0),(4,6,4,0),(4,12,0,0),(8,0,0,0)&lt;br /&gt;
&lt;br /&gt;
The sharp linear bounds are :&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;math&amp;gt;2a+b+2c+4d \leq 22&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;3a+2b+3c+6d \leq 36&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;7a+2b+4c+8d \leq 56&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;6a+2b+3c+6d \leq 48&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;b+c+3d \leq 12&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;a+2c+4d \leq 14&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;5a+4c+8d \leq 40&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;a+4d \leq 8&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;b+6d \leq 12&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;c+3d \leq 6&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;d \leq 1&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In normalized notation,&lt;br /&gt;
* &amp;lt;math&amp;gt;8\alpha_0+ 6\alpha_1 + 6\alpha_2 + 2\alpha_3 \leq 11&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;4\alpha_0+4\alpha_1+3\alpha_2+\alpha_3 \leq 6&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;7\alpha_0+3\alpha_1+3\alpha_2+\alpha_3 \leq 7&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;8\alpha_0+3\alpha_1+3\alpha_2+\alpha_3 \leq 8&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;4\alpha_1+2\alpha_2+\alpha_3 \leq 4&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;4\alpha_0+6\alpha_2+2\alpha_3 \leq 7&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;5\alpha_0+3\alpha_2+\alpha_3 \leq 5&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;2\alpha_0+\alpha_3 \leq 2&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;2\alpha_1+\alpha_3 \leq 2&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;2\alpha_2+\alpha_3 \leq 2&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;\alpha_3 \leq 1&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The c-statistics can also be found from an exhaustive search of Moser sets.  The resulting Pareto sets and linear inequalities can be found on Sheet 8 of [http://spreadsheets.google.com/ccc?key=p5T0SktZY9DuKZ2DyzO9EOg&amp;amp;hl=en# this spreadsheet]&lt;br /&gt;
&lt;br /&gt;
== n=4 ==&lt;br /&gt;
&lt;br /&gt;
A [http://abel.math.umu.se/~klasm/extremal-moser-n=5-t=3 computer search] has obtained all extremisers to &amp;lt;math&amp;gt;c&#039;_4=43&amp;lt;/math&amp;gt;.  The 42-point solutions can be found [http://abel.math.umu.se/~klasm/moser-n=4-t=3-p=42.gz here].&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof that &amp;lt;math&amp;gt;c&#039;_4 \leq 43&amp;lt;/math&amp;gt;&#039;&#039;&#039;: &lt;br /&gt;
When e=1 (i.e. the 4D set contains 2222) then we have at most 41 points (in fact at most 39) by counting antipodal points, so assume e=0.&lt;br /&gt;
&lt;br /&gt;
Define the score of a 3D slice to be a/4+b/3+c/2+d.  Observe from double counting that the size of a 4D set is the sum of the scores of its eight side slices.&lt;br /&gt;
&lt;br /&gt;
But by [http://spreadsheets.google.com/ccc?key=p5T0SktZY9DuKZ2DyzO9EOg&amp;amp;hl=en looking at the extremals] we see that the largest score is 44/8, attained at only one point, namely when (a,b,c,d) = (2,6,6,0).  So the only way one can have a 44-point set is if all side slices are (2,6,6,0), or equivalently if the whole set has statistics (a,b,c,d,e) = (4,16,24,0,0).  But then we have all the points with two 2s, which means that the four &amp;quot;a&amp;quot; points cannot be separated by Hamming distance 2.  We conclude that we must have an antipodal pair among the &amp;quot;a&amp;quot; points with an odd number of 1s, and an antipodal pair among the &amp;quot;a&amp;quot; points with an even number of 1s.    By the symmetries of the cube, we may take the a-set to then be 1111, 3333, 1113, 3331.  But then the &amp;quot;b&amp;quot; set must exclude both 1112 and 3332, and so can have at most three points in the eight-point set xyz2 (with x,y,z=1,3) rather than four (to get four points one must alternate in a checkerboard pattern).  Adding this to the at most four points of the form xy2z, x2yz, 2xyz we see that b is at most 15, a contradiction. &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Given a subset of &amp;lt;math&amp;gt;[3]^4&amp;lt;/math&amp;gt;, let a be the number of points with no 2s, b be the number of points with 1 2, and so forth.  The quintuple (a,b,c,d,e) thus lies between (0,0,0,0,0) and (16,32,24,8,1).&lt;br /&gt;
&lt;br /&gt;
The 43-point solutions have distributions (a,b,c,d,e) as follows:&lt;br /&gt;
&lt;br /&gt;
* (5,20,18,0,0) [16 solutions]&lt;br /&gt;
* (4,16,23,0,0) [768 solutions]&lt;br /&gt;
* (3,16,24,0,0) [512 solutions]&lt;br /&gt;
* (4,15,24,0,0) [256 solutions]&lt;br /&gt;
&lt;br /&gt;
The 42-point solutions are [http://abel.math.umu.se/~klasm/Moser-42-stat.pdf distributed as follows]:&lt;br /&gt;
&lt;br /&gt;
* (6,24,12,0,0) [[http://abel.math.umu.se/~klasm/moser-n=4-42-12 8 solutions]] &lt;br /&gt;
* (5,20,17,0,0) [576 solutions]&lt;br /&gt;
* (5,19,18,0,0) [384 solutions]&lt;br /&gt;
* (6,16,18,2,0) [[http://abel.math.umu.se/~klasm/moser-n=4-42-e=2 192 solutions]]&lt;br /&gt;
* (4,20,18,0,0) [272 solutions]&lt;br /&gt;
* (5,17,20,0,0) [192 solutions]&lt;br /&gt;
* (5,16,21,0,0) [3584 solutions]&lt;br /&gt;
* (4,17,21,0,0) [768 solutions]&lt;br /&gt;
* (4,16,22,0,0) [26880 solutions]&lt;br /&gt;
* (5,15,22,0,0) [1536 solutions]&lt;br /&gt;
* (4,15,23,0,0) [22272 solutions]&lt;br /&gt;
* (3,16,23,0,0) [15744 solutions]&lt;br /&gt;
* (4,14,24,0,0) [4224 solutions]&lt;br /&gt;
* (3,15,24,0,0) [8704 solutions]&lt;br /&gt;
* (2,16,24,0,0) [896 solutions]&lt;br /&gt;
&lt;br /&gt;
Note how c is usually quite large, and d quite low.&lt;br /&gt;
&lt;br /&gt;
One of the (6,24,12,0,0) solutions is &amp;lt;math&amp;gt;\Gamma_{220}+\Gamma_{202}+\Gamma_{022}+\Gamma_{112}+\Gamma_{211}&amp;lt;/math&amp;gt; (i.e. the set of points containing exactly two 1s, and/or exactly two 3s).  The other seven are reflections of this set.&lt;br /&gt;
&lt;br /&gt;
There are 2,765,200 41-point solutions, [http://abel.math.umu.se/~klasm/solutions-4-t=3-41-moser.gz listed here].  The statistics for such points can be [http://abel.math.umu.se/~klasm/Moser-41-stat.pdf found here].  Noteworthy features of the statistics:&lt;br /&gt;
&lt;br /&gt;
* d is at most 3 (and, except for [http://abel.math.umu.se/~klasm/moser-n=3-t=3-41-d=3.gz 256 exceptional solutions] of the shape (5,15,18,3,0), have d at most 2; here are the [http://abel.math.umu.se/~klasm/moser-n=3-t=3-41-d=2.gz d=2 solutions] and [http://abel.math.umu.se/~klasm/moser-n=3-t=3-41-d=1.gz d=1 solutions])&lt;br /&gt;
* c is at least 6 (and, except for [http://abel.math.umu.se/~klasm/moser-n=3-t=3-41-c=6.gz 16 exceptional solutions] of the shape (7,28,6,0,0), have c at least 11).&lt;br /&gt;
&lt;br /&gt;
Statistics for the 41-point, 42-point, and 43-point solutions can be found [http://spreadsheets.google.com/ccc?key=p5T0SktZY9DuqNcxJ171Bbw&amp;amp;hl=en here].&lt;br /&gt;
&lt;br /&gt;
If a Moser set in &amp;lt;math&amp;gt;[3]^4&amp;lt;/math&amp;gt; contains 2222, then by the n=3 theory, any middle slice (i.e. 2***, *2**, **2*, or ***2) is missing at least one antipodal pair.  But each antipodal pair belongs to at most three middle slices, thus two of the 40 antipodal pairs must be completely missing.  As a consequence, any Moser set containing 2222 can have at most 39 points.&lt;br /&gt;
(A more refined analysis can be found at [http://www.ma.rhul.ac.uk/~elsholtz/WWW/blog/mosertablogv01.pdf found here].)&lt;br /&gt;
&lt;br /&gt;
We have the following inequalities connecting a,b,c,d,e:&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;math&amp;gt;4a+b \leq 64&amp;lt;/math&amp;gt;:  There are 32 lines connecting two &amp;quot;a&amp;quot; points with a &amp;quot;b&amp;quot; point; each &amp;quot;a&amp;quot; point belongs to four of these lines, and each &amp;quot;b&amp;quot; point belongs to one.  But each such line can have at most two points in the set, and the claim follows.&lt;br /&gt;
* This can be refined to &amp;lt;math&amp;gt;4a+b+\frac{2}{3} c \leq 64&amp;lt;/math&amp;gt;: There are 24 planes connecting four &amp;quot;a&amp;quot; points, four &amp;quot;b&amp;quot; points, and one &amp;quot;c&amp;quot; point; each &amp;quot;a&amp;quot; point belongs to six of these, each &amp;quot;b&amp;quot; point belongs to three, and each &amp;quot;c&amp;quot; point belongs to one.  For each of these planes, we have &amp;lt;math&amp;gt;2a + b + 2c \leq 8&amp;lt;/math&amp;gt; from the n=2 theory, and the claim follows.&lt;br /&gt;
* &amp;lt;math&amp;gt;6a+2c \leq 96&amp;lt;/math&amp;gt;:  There are 96 lines connecting two &amp;quot;a&amp;quot; points with a &amp;quot;c&amp;quot; point; each &amp;quot;a&amp;quot; point belongs to six of these lines, and each &amp;quot;c&amp;quot; point belongs to two.  But each such line can have at most two points in the set, and the claim follows.&lt;br /&gt;
* &amp;lt;math&amp;gt;3b+2c \leq 96&amp;lt;/math&amp;gt;:  There are 48 lines connecting two &amp;quot;b&amp;quot; points to a &amp;quot;c&amp;quot; point; each &amp;quot;b&amp;quot; point belongs to three of these points, and each &amp;quot;c&amp;quot; point belongs to two.  But each such line can have at most two points in the set, and the claim follows.&lt;br /&gt;
&lt;br /&gt;
The inequalities for n=3 imply inequalities for n=4.  Indeed, there are eight side slices of &amp;lt;math&amp;gt;[3]^4&amp;lt;/math&amp;gt;; each &amp;quot;a&amp;quot; point belongs to four of these, each &amp;quot;b&amp;quot; point belongs to three, each &amp;quot;c&amp;quot; point belongs to two, and each &amp;quot;d&amp;quot; point belongs to one.  Thus, any inequality of the form&lt;br /&gt;
:&amp;lt;math&amp;gt; \alpha a + \beta b + \gamma c + \delta d \leq M&amp;lt;/math&amp;gt;&lt;br /&gt;
in three dimensions implies the inequality&lt;br /&gt;
:&amp;lt;math&amp;gt; 4 \alpha a + 3 \beta b + 2 \gamma c + \delta d \leq 8M&amp;lt;/math&amp;gt;&lt;br /&gt;
in four dimensions.  Thus we have&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;math&amp;gt;8a+3b+4c+4d \leq 176&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;2a+b+c+d \leq 48&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;14a+3b+4c+4d \leq 244&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;4a+b+c+d \leq 64&amp;lt;/math&amp;gt; &lt;br /&gt;
* &amp;lt;math&amp;gt;3b+2c+3d \leq 96&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;a+c+d \leq 28&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;5a+2c+2d \leq 80&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;a+d \leq 16&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;b+2d \leq 32&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;2c+3d \leq 48&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Cubes also sit diagonally in the 4-dimensional cube.  They may have coordinates xxyz, where xx runs over (11,22,33) or (13,22,31), while y and z run over (1,2,3).  These cubes have a different distribution of 2s than the ordinary slices: (a,b,c,d,e) = (8,8,6,4,1) instead of (8,12,6,1,0) for the side slices and (0,8,12,6,1) for the middle slices.  So a different set of inequalities arise.  It is possible to run through the same procedure as described above for n=3, and the inequalities that arise are &amp;lt;math&amp;gt;2a+b+2c+2d+4e \le 24&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;4a+b+2c+2d+4e \le 32&amp;lt;/math&amp;gt; within the 3D cube, which when averaged becomes &amp;lt;math&amp;gt;4a+b+2c+4d+16e \le 96&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;8a+b+2c+4d+16e \le 128&amp;lt;/math&amp;gt; for the 4D cube.  A spreadsheet containing these statistics can be [http://spreadsheets.google.com/ccc?key=p5T0SktZY9DuKZ2DyzO9EOg&amp;amp;hl=en# found here] on sheet 2.  Other sheets of this spreadsheet contain results for a 3D cube sitting diagonally in a 5D, 6D or 7D cube.  Notice the similarity of the equations that arise for the xxxyz, xxyyz and xxxxyz diagonals.  Also notice the (a,b,c,...) statistics for the xxxxyyz diagonals have the same Pareto sets and linear inequalities as the cube&#039;s c-statistics.&lt;br /&gt;
&lt;br /&gt;
The c-statistics for the 3D cube are bounded by a set of 20 inequalities.  By considering the fourteen ways a 3D cube sits in the 4D cube, the result is a set of 239 inequalities for the 4D cube&#039;s c-statistics.  However, all 239 inequalities are satisfied by a 44-point solution given by c(xxxx) = c(2xxx) = c(22xx) = 4, and permutations.&lt;br /&gt;
&lt;br /&gt;
== n=5 ==&lt;br /&gt;
&lt;br /&gt;
Let (A,B,C,D,E,F) be the statistics of a five-dimensional Moser set, thus (A,B,C,D,E,F) varies between (0,0,0,0,0,0) and (32,80,80,40,10,1).&lt;br /&gt;
&lt;br /&gt;
There are several Moser sets with the statistics (4,40,80,0,0,0), which thus have 124 points.  Indeed, one can take&lt;br /&gt;
&lt;br /&gt;
* all points with two 2s;&lt;br /&gt;
* all points with one 2 and an even number of 1s; and&lt;br /&gt;
* (13111),(13113),(31311),(13333). Any two of these four points differ in three places, except for one pair of points that differ in one place.&lt;br /&gt;
&lt;br /&gt;
For the rest of this section, we assume that the Moser set &amp;lt;math&amp;gt;{\mathcal A}&amp;lt;/math&amp;gt; is a 125-point set.&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 1&#039;&#039;&#039;: F=0.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; If F is non-zero, then the Moser set contains 22222, then each of the 121 antipodal pairs can have at most one point in the set, leading to only 122 points. &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 2&#039;&#039;&#039;: Every middle slice of &amp;lt;math&amp;gt;{\mathcal A}&amp;lt;/math&amp;gt; has at most 41 points.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039;  Without loss of generality we may consider the 2**** slice.  There are two cases, depending on the value of c(2****).&lt;br /&gt;
&lt;br /&gt;
Suppose first that c is at least 17; thus there are at least 17 points of the form 222xy, 22x2y, 22xy2, 2x2y2, 2xy22, or 2x22y, where the x, y denote 1 or 3.  This gives 34 &amp;quot;xy&amp;quot; wildcards in all in four coordinate slots; by the pigeonhole principle one of the slots sees at least 9 of the wildcards.  By symmetry, we may assume that the second coordinate slot sees at least 9 of these wildcards, thus there are at least 9 points of the form 2x22y, 2x2y2, 2xy22.  The x=1, x=3 cases can absorb at most six of these, thus each of these cases must absorb at least three points, with at least one absorbing at least five.  Let&#039;s say that it&#039;s the x=3 case that absorbs 5; thus &amp;lt;math&amp;gt;d(*1***) \geq 3&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;d(*3***) \geq 5&amp;lt;/math&amp;gt;.  From the n=4 theory this means that the *1*** slice has at most 41 points, and the *3*** slice has at most 40.  Meanwhile, the middle slice has at most 43, leading to 41+41+42=124 points in all.&lt;br /&gt;
&lt;br /&gt;
Now suppose c is less than 17; then by the n=4 theory the middle slice is one of the eight (6,24,12,0,0) sets.  Without loss of generality we may take it to be &amp;lt;math&amp;gt;\Gamma_{220}+\Gamma_{202}+\Gamma_{022}+\Gamma_{112}+\Gamma_{211}&amp;lt;/math&amp;gt;; in particular, the middle slice contains the points 21122 21212 21221 23322 23232 23223.  In particular, the *1*** and *3*** slices have a &amp;quot;d&amp;quot; value of at least three, and so have at most 41 points.  If the *2*** slice has at most 42 points, then we are at 41+42+41=124 points as needed, but if we have 43 or more, then we are back in the first case (as &amp;lt;math&amp;gt;c(*2***) \geq 17&amp;lt;/math&amp;gt;) after permuting the indices.&lt;br /&gt;
&amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Since 125=41+41+43, we thus have&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Corollary 1&#039;&#039;&#039;: Every side slice of &amp;lt;math&amp;gt;{\mathcal A}&amp;lt;/math&amp;gt; has at least 41 points.  If one side slice does have 41 points, then the other has 43.&lt;br /&gt;
&lt;br /&gt;
Combining this with the n=4 statistics, we conclude&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Corollary 2&#039;&#039;&#039;: Every side slice of &amp;lt;math&amp;gt;{\mathcal A}&amp;lt;/math&amp;gt; has e=0, and &amp;lt;math&amp;gt;d \leq 3&amp;lt;/math&amp;gt;.  Given two opposite side slices, e.g. 1**** and 3****, we have &amp;lt;math&amp;gt;d(1****)+d(3****) \leq 4&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Corollary 3&#039;&#039;&#039;: E=0.&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Corollary 4&#039;&#039;&#039;: Any middle slice has a &amp;quot;c&amp;quot; value of at most 8.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; Let&#039;s work with the 2**** slice.  By Corollary 2, there are at most four contributions to c(2****) of the form 21*** or 23***, and similarly for the other three positions.  Double counting then gives the claim. &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 3&#039;&#039;&#039;: &amp;lt;math&amp;gt;2B+C \leq 160&amp;lt;/math&amp;gt;.   &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039;: There are 160 lines connecting one &amp;quot;C&amp;quot; point to two &amp;quot;B&amp;quot; points (e.g. 11112, 11122, 11132); each &amp;quot;C&amp;quot; point lies in two of these, and each &amp;quot;B&amp;quot; point lies on four.  A Moser set can have at most two points out of each of these lines.  Double counting then gives the claim.  &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 4&#039;&#039;&#039; Given m A-points with &amp;lt;math&amp;gt;m \geq 5&amp;lt;/math&amp;gt;, there exists at least m-4 pairs (a,b) of such A-points with Hamming distance exactly two (i.e. b differs from a in exactly two places).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; It suffices to check this for m=5, since the case of larger m then follows by locating a pair, removing a point that contributes to that pair, and using the induction hypothesis.  Given 5 A-points, we may assume by the pigeonhole principle and symmetry that at least three of them have an odd number of 1s.  Suppose 11111 is one of the points, and that no pair has Hamming distance 2. All points with two 3s are excluded, so the only points allowed with an odd number of 1s are those with four 3s. But all those points differ from each other in two positions, so at most one of them is allowed.  &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Corollary 5&#039;&#039;&#039; &amp;lt;math&amp;gt;C \leq 79&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039;: Suppose for contradiction that C=80, then D=0 and &amp;lt;math&amp;gt;B \leq 40&amp;lt;/math&amp;gt;.  From Lemma 4 we also see that A cannot be 5 or more, leading to the contradiction.&lt;br /&gt;
&amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Define the &#039;&#039;&#039;score&#039;&#039;&#039; of a Moser set in &amp;lt;math&amp;gt;[3]^4&amp;lt;/math&amp;gt; to be the quantity &amp;lt;math&amp;gt;a + 5b/4 + 5c/3 + 5d/2 + 5e&amp;lt;/math&amp;gt;.  Double-counting (and Lemma 2) gives&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 5&#039;&#039;&#039;  The total score of all the ten side-slices of &amp;lt;math&amp;gt;{\mathcal A}&amp;lt;/math&amp;gt; is equal to &amp;lt;math&amp;gt;5|{\mathcal A}| = 5 \times 125&amp;lt;/math&amp;gt;.  In particular, there exists a pair of opposite side-slices whose scores add up to at least 125.&lt;br /&gt;
&lt;br /&gt;
By Lemma 5 and symmetry, we may assume that the 1**** and 3**** slices have score adding up to at least 125.  By Lemma 2, the 2**** slice has at most 41 points, which imply that the 1**** and 3**** have 41, 42, or 43 points.  From the [http://spreadsheets.google.com/ccc?key=p5T0SktZY9DuqNcxJ171Bbw&amp;amp;hl=en n=4 statistics] we know that all 41-point, 42-point, 43-point slices have score less than 62, with the following exceptions:&lt;br /&gt;
&lt;br /&gt;
# (2,16,24,0,0) [42 points, score: 62]&lt;br /&gt;
# (4,16,23,0,0) [43 points, score: 62 1/3]&lt;br /&gt;
# (4,15,24,0,0) [43 points, score: 62 3/4]&lt;br /&gt;
# (3,16,24,0,0) [43 points, score: 63]&lt;br /&gt;
&lt;br /&gt;
Thus the 1**** and 3**** slices must come from the above list.  Furthermore, if one of the slices is of type 1, then the other must be of type 4, and if one slice is of type 2, then the other must be of type 3 or 4.&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 6&#039;&#039;&#039; There exists one cut in which the side slices have total score strictly greater than 125 (i.e. they thus involve only Type 2, Type 3, and Type 4 slices, with at least one side slice not equal to Type 2, and the cut here is of the form 43+39+43).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; If not, then all cuts have side slices exactly equal to 125, which by the above table implies that one is Type 1 and one is Type 4, in particular all side slices have c=24.  But this forces C=80, contradicting Corollary 5. &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Adding up the corners we conclude&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Corollary 6&#039;&#039;&#039; &amp;lt;math&amp;gt;6 \leq A \leq 8&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 7&#039;&#039;&#039; &amp;lt;math&amp;gt;D=0&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; Firstly, from Lemma 6 we have a cut in which the two side slices are omitting at most one C-point between them (and have no D-point), which forces the middle slice to have at most one D-point; thus D is at most 1.&lt;br /&gt;
&lt;br /&gt;
Now suppose instead that D=1 (e.g. if 11222 was in the set); then there would be two choices of coordinates in which one of the side slices would have d=1 (e.g. 1**** and *1****). But the [http://spreadsheets.google.com/ccc?key=p5T0SktZY9DuqNcxJ171Bbw&amp;amp;hl=en n=4 statistics] show that such slices have a score of at most 59 7/12, so that the total score from those two coordinates is at most 63 + 59 7/12 = 122 7/12. On the other hand, the other three slices have a net score of at most 63+63 = 126. This averages out to at most 124.633... &amp;lt; 125, a contradiction.  &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Corollary 7&#039;&#039;&#039; Every middle slice has at most 40 points.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; From Lemma 7 we see that the middle slice must have c=0, but from the n=4 statistics this is not possible for any slice of size 41 or higher (alternatively, one can use the inequalities &amp;lt;math&amp;gt;4a+b \leq 64&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;b \leq 32&amp;lt;/math&amp;gt;). &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Each middle slice now has 39 or 40 points, with c=d=e=0, and so from the inequalities &amp;lt;math&amp;gt;4a+b \leq 64&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;b \leq 32&amp;lt;/math&amp;gt; must have statistics (8,32,0,0,0),(7,32,0,0,0), or (8,31,0,0,0).  In particular the &amp;quot;a&amp;quot; index of the middle slices is at most 8.  Summing over all middle slices we conclude&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 9&#039;&#039;&#039; B is at most 40.&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 10&#039;&#039;&#039; C is equal to 78 or 79.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; By Corollary 5, it suffices to show that &amp;lt;math&amp;gt;C \geq 78&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
As 125=43+39+43, we see that every center slice must have at least 39 points. By Lemma 2 and Lemma 7 the center slice has c=d=e=0, thus the center slice has a+b &amp;gt;= 39.  On the other hand, from the n=4 theory we have 4a+b &amp;lt;= 64, which forces b &amp;gt;= 31.&lt;br /&gt;
&lt;br /&gt;
By double counting, we see that 2C is equal to the sum of the b&#039;s of all the five center slices.  Thus C &amp;gt;= 5*31/2 = 77.5 and the claim follows.  &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
From Lemmas 9 and 10 we see that &amp;lt;math&amp;gt;B+C \leq 119&amp;lt;/math&amp;gt;, and thus &amp;lt;math&amp;gt;A \geq 6&amp;lt;/math&amp;gt;.  Also, if &amp;lt;math&amp;gt;A \geq 7&amp;lt;/math&amp;gt;, then by Lemma 4 we have at least three pairs of A points with Hamming distance 2.  At most two of these pairs eliminate the same C point, so we would have C=78 in that case.  &lt;br /&gt;
&lt;br /&gt;
Putting all the above facts together, we see that (A,B,C,D,E,F) must be one of the following triples:&lt;br /&gt;
&lt;br /&gt;
* (6,40,79,0,0,0)&lt;br /&gt;
* (7,40,78,0,0,0)&lt;br /&gt;
* (8,39,78,0,0,0)&lt;br /&gt;
&lt;br /&gt;
All three cases can be eliminated, giving &amp;lt;math&amp;gt;c&#039;_5=124&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== Elimination of (6,40,79,0,0,0) ===&lt;br /&gt;
&lt;br /&gt;
Look at the 6 A points.  From Lemma 4 we have at least two pairs (a,b), (c,d) of A-points that have Hamming separation 2.&lt;br /&gt;
&lt;br /&gt;
Now look at the midpoints of these two pairs; these midpoints are C-points cannot lie in the set.  But we have exactly one C-point missing from the set, thus the midpoints must be the same.  By symmetry, we may thus assume that the two pairs are (11111,11133) and (11113,11131).  Thus 11111,11133, 11113, 11131 are in the set, and so every C-point other than 11122 is in the set.  On the other hand, the B-points 11121, 11123, 11112, 11132 lie outside the set.&lt;br /&gt;
&lt;br /&gt;
At most one of 11312, 11332 lie in the set (since 11322 lies in the set).   Suppose that 11312 lies outside the set, then we have a pair (xy1z2, xy3z2) with x,y,z = 1,3 that is totally omitted from the set, namely (11112,11312).  On the other hand, every other pair of this form can have at most one point in the set, thus there are at most seven points in the set of the form (xyzw2) with x,y,z,w = 1,3.  Similarly there are at most 8 points of the form xyz2w, or of xy2zw, x2yzw, 2xyzw, leading to at most 39 B-points in all, contradiction.&lt;br /&gt;
&lt;br /&gt;
=== Elimination of (7,40,78,0,0,0) ===&lt;br /&gt;
&lt;br /&gt;
By Lemma 4, we have at least three pairs of A-points of distance two apart that lie in the set.&lt;br /&gt;
The midpoints of these pairs are C-points that do not lie in the set; but there are only two such C-points, thus two pairs must have the same midpoint, so we may assume as before that 111xy lies in the set for x,y=1,3, which implies that 1112* and 111*2 lie outside the set.&lt;br /&gt;
&lt;br /&gt;
Now consider the 160 lines between 2 B points and one C point (cf. Lemma 3).  The sum of all the points in each such line (counting multiplicity) is 4B+2C = 316.  On the other hand, every one of the 160 lines can have at most two points, and two of these lines (namely 1112*, 111*2) have no points.  Thus all the other lines must have exactly two points.  &lt;br /&gt;
&lt;br /&gt;
We know that the C-point 11122 is missing from the set; there is one other missing C-point.  Since 1112x, 111x2 lie outside the set, we conclude from the previous paragraph that 1132x, 113x2 and 1312x, 131x2 lie in the set.  Taking midpoints we conclude that 11322 and 13122 lie outside the set.  But this is now three C-points missing (together with 11122), a contradiction.&lt;br /&gt;
&lt;br /&gt;
=== Elimination of (8,39,78,0,0,0) ===&lt;br /&gt;
&lt;br /&gt;
By Lemma 4 we have at least four pairs of A-points of distance two apart that lie in the set. The midpoints of these pairs are C-points that do not lie in the set; but there are only two such C-points, thus two pairs (a,b), (c,d) must have the same midpoint p, and the other two pairs (a&#039;,b&#039;), (c&#039;,d&#039;) must also have the same midpoint p&#039;.  (Note that every C-point is the midpoint of at most two such pairs.)&lt;br /&gt;
&lt;br /&gt;
Now consider the 160 lines between 2 B points and one C point (cf. Lemma 3).  The sum of all the points in each such line (counting multiplicity) is 4B+2C = 312.  Every one of the 160 lines can have at most two points, and four of these (those in the plane of (a,b,c,d) or of (a&#039;,b&#039;,c&#039;,d&#039;) have no points.  Thus all other lines must have exactly two points.&lt;br /&gt;
&lt;br /&gt;
Without loss of generality we have (a,b)=(11111,11133), (c,d) = (11113,11131), thus p = 11122.  By permuting the first three indices, we may assume that p&#039; is not of the form x2y2z, x2yz2, xy22z, xy2z2.  Then 1112x lies outside the set and 1122x lies in the set, so by the above paragraph 1132x lies in the set; similarly for 113x2, 1312x, 131x2.  This implies that 13122, 11322 lie outside the set, but this (together with 11122) shows that at least three C-points are missing, a contradiction.&lt;br /&gt;
&lt;br /&gt;
== General n ==&lt;br /&gt;
&lt;br /&gt;
General solution for &amp;lt;math&amp;gt;c&#039;_N&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* q 2s, all points from A(N-q,1)&lt;br /&gt;
* q-1 2s, points from A(N-q+1,2)&lt;br /&gt;
* q-2 2s, points from A(N-q+2,3)&lt;br /&gt;
* etc.&lt;br /&gt;
&lt;br /&gt;
where A(m,d) is a subset of &amp;lt;math&amp;gt;[1,3]^m&amp;lt;/math&amp;gt; for which any two points differ from each other in at least d places.&lt;br /&gt;
&lt;br /&gt;
Mathworld’s entry on error-correcting codes suggests it might be NP-complete to find the size of A(m,d) in general.&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;math&amp;gt;|A(m,1)| = 2^m&amp;lt;/math&amp;gt; because it includes all points in &amp;lt;math&amp;gt;[1,3]^m&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;|A(m,2)| = 2^{m-1}&amp;lt;/math&amp;gt; because it can include all points in &amp;lt;math&amp;gt;[1,3]^m&amp;lt;/math&amp;gt; with an odd number of 1s&lt;br /&gt;
&lt;br /&gt;
The integer programming routine from Maple 12 was used to obtain upper bounds for &amp;lt;math&amp;gt;c&#039;_6&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;c&#039;_7&amp;lt;/math&amp;gt;.  A large number of linear inequalities, described above in sections (n=3) and (n=4), were combined.  The details are in [[Maple calculations]].  The results were that &amp;lt;math&amp;gt;c&#039;_6 \le 361&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;c&#039;_7 \le 1071&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
A [[genetic algorithm]] has provided the following examples:&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;math&amp;gt;c&#039;_6 \geq 353&amp;lt;/math&amp;gt; (26 examples; [http://twofoldgaze.wordpress.com/2009/03/10/353-element-solution/ here is one])&lt;br /&gt;
* &amp;lt;math&amp;gt;c&#039;_7 \geq 988&amp;lt;/math&amp;gt; [http://twofoldgaze.wordpress.com/2009/03/10/978-element-solution/ Here is the example]&lt;br /&gt;
&lt;br /&gt;
== Larger sides (k&amp;gt;3) ==&lt;br /&gt;
&lt;br /&gt;
The following set gives a lower bound for Moser’s cube &amp;lt;math&amp;gt;[4]^n&amp;lt;/math&amp;gt; (values 1,2,3,4):  Pick all points where q entries are 2 or 3; and also pick those where q-1 entries are 2 or 3 and an odd number of entries are 1.  This is maximized when q is near n/2, giving a lower bound of&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\binom{n}{n/2} 2^n + \binom{n}{n/2-1} 2^{n-1}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
which is comparable to &amp;lt;math&amp;gt;4^n/\sqrt{n}&amp;lt;/math&amp;gt; by [[Stirling&#039;s formula]].&lt;br /&gt;
&lt;br /&gt;
For k=5 (values 1,2,3,4,5) If A, B, C, D, and E denote the numbers of 1-s, 2-s, 3-s, 4-s and 5-s then the first three points of a geometric line form a 3-term arithmetic progression in A+E+2(B+D)+3C. So, for k=5 we have a similar lower bound for the Moser’s problem as for DHJ k=3, i.e. &amp;lt;math&amp;gt;5^{n - O(\sqrt{\log n})}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
The k=6 version of Moser implies DHJ(3).  Indeed, any k=3 combinatorial line-free set can be &amp;quot;doubled up&amp;quot; into a k=6 geometric line-free set of the same density by pulling back the set from the map &amp;lt;math&amp;gt;\phi: [6]^n \to [3]^n&amp;lt;/math&amp;gt; that maps 1, 2, 3, 4, 5, 6 to 1, 2, 3, 3, 2, 1 respectively; note that this map sends k=6 geometric lines to k=3 combinatorial lines.&lt;/div&gt;</summary>
		<author><name>121.220.134.232</name></author>
	</entry>
	<entry>
		<id>https://michaelnielsen.org/polymath/index.php?title=Moser%27s_cube_problem&amp;diff=1041</id>
		<title>Moser&#039;s cube problem</title>
		<link rel="alternate" type="text/html" href="https://michaelnielsen.org/polymath/index.php?title=Moser%27s_cube_problem&amp;diff=1041"/>
		<updated>2009-03-22T04:43:07Z</updated>

		<summary type="html">&lt;p&gt;121.220.134.232: /* n=2 */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Define a &#039;&#039;Moser set&#039;&#039; to be a subset of &amp;lt;math&amp;gt;[3]^n&amp;lt;/math&amp;gt; which does not contain any [[geometric line]], and let &amp;lt;math&amp;gt;c&#039;_n&amp;lt;/math&amp;gt; denote the size of the largest Moser set in &amp;lt;math&amp;gt;[3]^n&amp;lt;/math&amp;gt;.  The first few values are (see [http://www.research.att.com/~njas/sequences/A003142 OEIS A003142]):&lt;br /&gt;
&lt;br /&gt;
: &amp;lt;math&amp;gt;c&#039;_0 = 1; c&#039;_1 = 2; c&#039;_2 = 6; c&#039;_3 = 16; c&#039;_4 = 43; c&#039;_5 = 124.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Beyond this point, we only have some upper and lower bounds, in particular &amp;lt;math&amp;gt;353 \leq c&#039;_6 \leq 361&amp;lt;/math&amp;gt;; see [http://spreadsheets.google.com/ccc?key=p5T0SktZY9DsU-uZ1tK7VEg this spreadsheet] for the latest bounds.&lt;br /&gt;
&lt;br /&gt;
The best known asymptotic lower bound for &amp;lt;math&amp;gt;c&#039;_n&amp;lt;/math&amp;gt; is&lt;br /&gt;
&lt;br /&gt;
: &amp;lt;math&amp;gt;c&#039;_n \gg 3^n/\sqrt{n}&amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
formed by fixing the number of 2s to a single value near n/3.  Compare this to the DHJ(2) or Sperner limit of &amp;lt;math&amp;gt;2^n/\sqrt{n}&amp;lt;/math&amp;gt;.  Is it possible to do any better?  Note that we have a [[Upper_and_lower_bounds#Asymptotics|significantly better bound]] for the DHJ(3) &amp;lt;math&amp;gt;c_n&amp;lt;/math&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
: &amp;lt;math&amp;gt;c_n \geq 3^{n-O(\sqrt{\log n})}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
A more precise lower bound is&lt;br /&gt;
&lt;br /&gt;
: &amp;lt;math&amp;gt;c&#039;_n \geq \binom{n+1}{q} 2^{n-q}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where q is the nearest integer to &amp;lt;math&amp;gt;n/3&amp;lt;/math&amp;gt;, formed by taking all strings with q 2s, together with all strings with q-1 2s and an odd number of 1s.  This for instance gives the lower bound &amp;lt;math&amp;gt;c&#039;_5 \geq 120&amp;lt;/math&amp;gt;, which compares with the upper bound &amp;lt;math&amp;gt;c&#039;_5 \leq 3 c&#039;_4 = 129&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Using [[DHJ(3)]], we have the upper bound&lt;br /&gt;
&lt;br /&gt;
: &amp;lt;math&amp;gt;c&#039;_n = o(3^n)&amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
but no effective decay rate is known. It would be good to have a combinatorial proof of this fact (which is weaker than [[DHJ(3)]], but implies [[Roth&#039;s theorem]]).&lt;br /&gt;
&lt;br /&gt;
== Notation ==&lt;br /&gt;
&lt;br /&gt;
Given a Moser set A in &amp;lt;math&amp;gt;[3]^n&amp;lt;/math&amp;gt;, we let a be the number of points in A with no 2s, b be the number of points in A with one 2, c the number of points with two 2s, etc.  We call (a,b,c,...) the &#039;&#039;statistics&#039;&#039; of A.  Given a slice S of &amp;lt;math&amp;gt;[3]^n&amp;lt;/math&amp;gt;, we let a(S), b(S), etc. denote the statistics of that slice (dropping the fixed coordinates).  Thus for instance if A = {11, 12, 22, 32}, then (a,b,c) = (1,2,1), and (a(1*),b(1*)) = (1,1).&lt;br /&gt;
&lt;br /&gt;
We call a statistic (a,b,c,...) &#039;&#039;attainable&#039;&#039; if it is attained by a Moser set.  We say that an attainable statistic is &#039;&#039;Pareto-optimal&#039;&#039; if it cannot be pointwise dominated by any other attainable statistic (a&#039;,b&#039;,c&#039;,...) (thus &amp;lt;math&amp;gt;a&#039; \geq a&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;b&#039; \geq b&amp;lt;/math&amp;gt;, etc.)  We say that it is &#039;&#039;extremal&#039;&#039; if it is not a convex combination of any other attainable statistic (this is a stronger property than Pareto-optimal).  For the purposes of maximising linear scores of attainable statistics, it suffices to check extremal statistics.&lt;br /&gt;
&lt;br /&gt;
We let &amp;lt;math&amp;gt;(\alpha_0,\alpha_1,\ldots)&amp;lt;/math&amp;gt; be the normalized version of &amp;lt;math&amp;gt;(a,b,\ldots)&amp;lt;/math&amp;gt;, in which one divides the number of points of a certain type in the set by the total number of points in the set.  Thus for instance &amp;lt;math&amp;gt;\alpha_0 = a/2^n, \alpha_1 = b/(n 2^{n-1}), \alpha_3 = c/(\binom{n}{2} 2^{n-2})&amp;lt;/math&amp;gt;, etc., and the &amp;lt;math&amp;gt;\alpha_i&amp;lt;/math&amp;gt; range between 0 and 1.  Averaging arguments show that any linear inequality obeyed by the &amp;lt;math&amp;gt;\alpha_i&amp;lt;/math&amp;gt; at one dimension is automatically inherited by higher dimensions, as are shifted versions of this inequality (in which &amp;lt;math&amp;gt;\alpha_i&amp;lt;/math&amp;gt; is replaced by &amp;lt;math&amp;gt;\alpha_{i+1}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
The idea in &#039;c-statistics&#039; is to identify 1s and 3s but leave the 2s intact. Let’s use x to denote letters that are either 1 or 3, then the 81 points in &amp;lt;math&amp;gt;[3]^4&amp;lt;/math&amp;gt; get split up into 16 groups: 2222 (1 point), 222x, 22×2, 2×22, x222 (two points each), 22xx, 2×2x, x22x, 2xx2, x2×2, xx22 (four points each), 2xxx, x2xx, xx2x, xxx2 (eight points each), xxxx (sixteen points). Let c(w) denote the number of points inside a group w, e.g. c(xx22) is the number of points of the form xx22 inside the set, and is thus an integer from 0 to 4.&lt;br /&gt;
&lt;br /&gt;
== n=0 ==&lt;br /&gt;
&lt;br /&gt;
We trivially have &amp;lt;math&amp;gt;c&#039;_0=1.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== n=1 ==&lt;br /&gt;
&lt;br /&gt;
We trivially have &amp;lt;math&amp;gt;c&#039;_1=2.&amp;lt;/math&amp;gt;  The Pareto-optimal values of the statistics (a,b) are (1,1) and (2,0); these are also the extremals.  We thus have the inequality &amp;lt;math&amp;gt;a+b \leq 2&amp;lt;/math&amp;gt;, or in normalized notation&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;2\alpha_0 + \alpha_1 \leq 2&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== n=2 ==&lt;br /&gt;
&lt;br /&gt;
We have &amp;lt;math&amp;gt;c&#039;_2 = 6&amp;lt;/math&amp;gt;; the upper bound follows since &amp;lt;math&amp;gt;c&#039;_2 \leq 3 c&#039;_1&amp;lt;/math&amp;gt;, and the lower bound follows by deleting one of the two diagonals from &amp;lt;math&amp;gt;[3]^2&amp;lt;/math&amp;gt; (these are the only extremisers).&lt;br /&gt;
&lt;br /&gt;
The extremiser has statistics (a,b,c) = (2,4,0), which are of course Pareto-optimal.  If c=1 then we must have a, b at most 2 (look at the lines through 22).  This is attainable (e.g. {11, 12, 22, 23, 31}, and so (2,2,1) is another Pareto-optimal statistic.  If a=4, then b and c must be 0, so we get another Pareto-optimal statistic (4,0,0) (attainable by {11, 13, 31, 33} of course).  If a=3, then c=0 and b is at most 2, giving another Pareto-optimal statistic (3,2,0); but this is a convex combination of (4,0,0) and (2,4,0) and is thus not extremal.  Thus the complete set of extremal statistics are&lt;br /&gt;
&lt;br /&gt;
(4,0,0), (2,4,0), (2,2,1).&lt;br /&gt;
&lt;br /&gt;
The sharp linear inequalities obeyed by a,b,c (other than the trivial ones &amp;lt;math&amp;gt;a,b,c \geq 0&amp;lt;/math&amp;gt;) are then&lt;br /&gt;
&lt;br /&gt;
*&amp;lt;math&amp;gt;2a+b+2c \leq 8&amp;lt;/math&amp;gt;&lt;br /&gt;
*&amp;lt;math&amp;gt;b+2c \leq 4&amp;lt;/math&amp;gt;&lt;br /&gt;
*&amp;lt;math&amp;gt;a+2c \leq 4&amp;lt;/math&amp;gt;&lt;br /&gt;
*&amp;lt;math&amp;gt;c \leq 1&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
In normalized notation, we have&lt;br /&gt;
*&amp;lt;math&amp;gt;4\alpha_0 + 2\alpha_1 + \alpha_2 \leq 4&amp;lt;/math&amp;gt;&lt;br /&gt;
*&amp;lt;math&amp;gt;2\alpha_1 + \alpha_2 \leq 2&amp;lt;/math&amp;gt;&lt;br /&gt;
*&amp;lt;math&amp;gt;2\alpha_0 + \alpha_2 \leq 2&amp;lt;/math&amp;gt;&lt;br /&gt;
*&amp;lt;math&amp;gt;\alpha_2 \leq 1&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
The Pareto optimizers for c-statistics are (c(22),c(2x),c(x2),c(xx)) = (1112),(0222),(0004), which are covered by these linear inequalities: &lt;br /&gt;
*&amp;lt;math&amp;gt;c(22)+c(2x)+c(xx) \le 4&amp;lt;/math&amp;gt;, &lt;br /&gt;
*&amp;lt;math&amp;gt;c(22)+c(x2)+c(xx) \le 4&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== n=3 ==&lt;br /&gt;
&lt;br /&gt;
We have &amp;lt;math&amp;gt;c&#039;_3 = 16&amp;lt;/math&amp;gt;.  The lower bound can be seen for instance by taking all the strings with one 2, and half the strings with no 2 (e.g. the strings with an odd number of 1s).  The upper bound can be deduced from the corresponding [[upper and lower bounds]] for &amp;lt;math&amp;gt;c_3 = 18&amp;lt;/math&amp;gt;; the 17-point and 18-point line-free sets each contain a geometric line.&lt;br /&gt;
&lt;br /&gt;
If a Moser set in &amp;lt;math&amp;gt;[3]^3&amp;lt;/math&amp;gt; contains 222, then it can have at most 14 points, since the remaining 26 points in the cube split into 13 antipodal pairs, and at most one of each pair can lie in the set.  By exhausting over the &amp;lt;math&amp;gt;2^{13} = 8192&amp;lt;/math&amp;gt; possibilities, it can be shown that it is impossible for a 14-point set to exist; any Moser set containing 222 must in fact omit at least one antipodal pair completely and thus have only 13 points.  (A human proof of this fact can be [http://www.ma.rhul.ac.uk/~elsholtz/WWW/blog/mosertablogv01.pdf found here].)&lt;br /&gt;
&lt;br /&gt;
The Pareto-optimal statistics are&lt;br /&gt;
&lt;br /&gt;
(3,6,3,1),(4,4,3,1),(4,6,2,1),(2,6,6,0),(3,6,5,0),(4,4,5,0),(3,7,4,0),(4,6,4,0), (3,9,3,0),(4,7,3,0),(5,4,3,0),(4,9,2,0),(5,6,2,0),(6,3,2,0),(3,10,1,0),(5,7,1,0), (6,4,1,0),(4,12,0,0),(5,9,0,0),(6,6,0,0),(7,3,0,0),(8,0,0,0).&lt;br /&gt;
&lt;br /&gt;
These were found from a search of the &amp;lt;math&amp;gt;2^{27}&amp;lt;/math&amp;gt; subsets of the cube.&lt;br /&gt;
A spreadsheet containing these statistics can be [http://spreadsheets.google.com/ccc?key=p5T0SktZY9DuKZ2DyzO9EOg&amp;amp;hl=en# found here].&lt;br /&gt;
&lt;br /&gt;
The extremal statistics are&lt;br /&gt;
&lt;br /&gt;
(3,6,3,1),(4,4,3,1),(4,6,2,1),(2,6,6,0),(4,4,5,0),(4,6,4,0),(4,12,0,0),(8,0,0,0)&lt;br /&gt;
&lt;br /&gt;
The sharp linear bounds are :&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;math&amp;gt;2a+b+2c+4d \leq 22&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;3a+2b+3c+6d \leq 36&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;7a+2b+4c+8d \leq 56&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;6a+2b+3c+6d \leq 48&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;b+c+3d \leq 12&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;a+2c+4d \leq 14&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;5a+4c+8d \leq 40&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;a+4d \leq 8&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;b+6d \leq 12&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;c+3d \leq 6&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;d \leq 1&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In normalized notation,&lt;br /&gt;
* &amp;lt;math&amp;gt;8\alpha_0+ 6\alpha_1 + 6\alpha_2 + 2\alpha_3 \leq 11&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;4\alpha_0+4\alpha_1+3\alpha_2+\alpha_3 \leq 6&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;7\alpha_0+3\alpha_1+3\alpha_2+\alpha_3 \leq 7&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;8\alpha_0+3\alpha_1+3\alpha_2+\alpha_3 \leq 8&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;4\alpha_1+2\alpha_2+\alpha_3 \leq 4&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;4\alpha_0+6\alpha_2+2\alpha_3 \leq 7&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;5\alpha_0+3\alpha_2+\alpha_3 \leq 5&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;2\alpha_0+\alpha_3 \leq 2&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;2\alpha_1+\alpha_3 \leq 2&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;2\alpha_2+\alpha_3 \leq 2&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;\alpha_3 \leq 1&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The c-statistics can also be found from an exhaustive search of Moser sets.  The resulting Pareto sets and linear inequalities can be found on Sheet 8 of [http://spreadsheets.google.com/ccc?key=p5T0SktZY9DuKZ2DyzO9EOg&amp;amp;hl=en# this spreadsheet]&lt;br /&gt;
&lt;br /&gt;
== n=4 ==&lt;br /&gt;
&lt;br /&gt;
A [http://abel.math.umu.se/~klasm/extremal-moser-n=5-t=3 computer search] has obtained all extremisers to &amp;lt;math&amp;gt;c&#039;_4=43&amp;lt;/math&amp;gt;.  The 42-point solutions can be found [http://abel.math.umu.se/~klasm/moser-n=4-t=3-p=42.gz here].&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof that &amp;lt;math&amp;gt;c&#039;_4 \leq 43&amp;lt;/math&amp;gt;&#039;&#039;&#039;: &lt;br /&gt;
When e=1 (i.e. the 4D set contains 2222) then we have at most 41 points (in fact at most 39) by counting antipodal points, so assume e=0.&lt;br /&gt;
&lt;br /&gt;
Define the score of a 3D slice to be a/4+b/3+c/2+d.  Observe from double counting that the size of a 4D set is the sum of the scores of its eight side slices.&lt;br /&gt;
&lt;br /&gt;
But by [http://spreadsheets.google.com/ccc?key=p5T0SktZY9DuKZ2DyzO9EOg&amp;amp;hl=en looking at the extremals] we see that the largest score is 44/8, attained at only one point, namely when (a,b,c,d) = (2,6,6,0).  So the only way one can have a 44-point set is if all side slices are (2,6,6,0), or equivalently if the whole set has statistics (a,b,c,d,e) = (4,16,24,0,0).  But then we have all the points with two 2s, which means that the four &amp;quot;a&amp;quot; points cannot be separated by Hamming distance 2.  We conclude that we must have an antipodal pair among the &amp;quot;a&amp;quot; points with an odd number of 1s, and an antipodal pair among the &amp;quot;a&amp;quot; points with an even number of 1s.    By the symmetries of the cube, we may take the a-set to then be 1111, 3333, 1113, 3331.  But then the &amp;quot;b&amp;quot; set must exclude both 1112 and 3332, and so can have at most three points in the eight-point set xyz2 (with x,y,z=1,3) rather than four (to get four points one must alternate in a checkerboard pattern).  Adding this to the at most four points of the form xy2z, x2yz, 2xyz we see that b is at most 15, a contradiction. &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Given a subset of &amp;lt;math&amp;gt;[3]^4&amp;lt;/math&amp;gt;, let a be the number of points with no 2s, b be the number of points with 1 2, and so forth.  The quintuple (a,b,c,d,e) thus lies between (0,0,0,0,0) and (16,32,24,8,1).&lt;br /&gt;
&lt;br /&gt;
The 43-point solutions have distributions (a,b,c,d,e) as follows:&lt;br /&gt;
&lt;br /&gt;
* (5,20,18,0,0) [16 solutions]&lt;br /&gt;
* (4,16,23,0,0) [768 solutions]&lt;br /&gt;
* (3,16,24,0,0) [512 solutions]&lt;br /&gt;
* (4,15,24,0,0) [256 solutions]&lt;br /&gt;
&lt;br /&gt;
The 42-point solutions are [http://abel.math.umu.se/~klasm/Moser-42-stat.pdf distributed as follows]:&lt;br /&gt;
&lt;br /&gt;
* (6,24,12,0,0) [[http://abel.math.umu.se/~klasm/moser-n=4-42-12 8 solutions]] &lt;br /&gt;
* (5,20,17,0,0) [576 solutions]&lt;br /&gt;
* (5,19,18,0,0) [384 solutions]&lt;br /&gt;
* (6,16,18,2,0) [[http://abel.math.umu.se/~klasm/moser-n=4-42-e=2 192 solutions]]&lt;br /&gt;
* (4,20,18,0,0) [272 solutions]&lt;br /&gt;
* (5,17,20,0,0) [192 solutions]&lt;br /&gt;
* (5,16,21,0,0) [3584 solutions]&lt;br /&gt;
* (4,17,21,0,0) [768 solutions]&lt;br /&gt;
* (4,16,22,0,0) [26880 solutions]&lt;br /&gt;
* (5,15,22,0,0) [1536 solutions]&lt;br /&gt;
* (4,15,23,0,0) [22272 solutions]&lt;br /&gt;
* (3,16,23,0,0) [15744 solutions]&lt;br /&gt;
* (4,14,24,0,0) [4224 solutions]&lt;br /&gt;
* (3,15,24,0,0) [8704 solutions]&lt;br /&gt;
* (2,16,24,0,0) [896 solutions]&lt;br /&gt;
&lt;br /&gt;
Note how c is usually quite large, and d quite low.&lt;br /&gt;
&lt;br /&gt;
One of the (6,24,12,0,0) solutions is &amp;lt;math&amp;gt;\Gamma_{220}+\Gamma_{202}+\Gamma_{022}+\Gamma_{112}+\Gamma_{211}&amp;lt;/math&amp;gt; (i.e. the set of points containing exactly two 1s, and/or exactly two 3s).  The other seven are reflections of this set.&lt;br /&gt;
&lt;br /&gt;
There are 2,765,200 41-point solutions, [http://abel.math.umu.se/~klasm/solutions-4-t=3-41-moser.gz listed here].  The statistics for such points can be [http://abel.math.umu.se/~klasm/Moser-41-stat.pdf found here].  Noteworthy features of the statistics:&lt;br /&gt;
&lt;br /&gt;
* d is at most 3 (and, except for [http://abel.math.umu.se/~klasm/moser-n=3-t=3-41-d=3.gz 256 exceptional solutions] of the shape (5,15,18,3,0), have d at most 2; here are the [http://abel.math.umu.se/~klasm/moser-n=3-t=3-41-d=2.gz d=2 solutions] and [http://abel.math.umu.se/~klasm/moser-n=3-t=3-41-d=1.gz d=1 solutions])&lt;br /&gt;
* c is at least 6 (and, except for [http://abel.math.umu.se/~klasm/moser-n=3-t=3-41-c=6.gz 16 exceptional solutions] of the shape (7,28,6,0,0), have c at least 11).&lt;br /&gt;
&lt;br /&gt;
Statistics for the 41-point, 42-point, and 43-point solutions can be found [http://spreadsheets.google.com/ccc?key=p5T0SktZY9DuqNcxJ171Bbw&amp;amp;hl=en here].&lt;br /&gt;
&lt;br /&gt;
If a Moser set in &amp;lt;math&amp;gt;[3]^4&amp;lt;/math&amp;gt; contains 2222, then by the n=3 theory, any middle slice (i.e. 2***, *2**, **2*, or ***2) is missing at least one antipodal pair.  But each antipodal pair belongs to at most three middle slices, thus two of the 40 antipodal pairs must be completely missing.  As a consequence, any Moser set containing 2222 can have at most 39 points.&lt;br /&gt;
(A more refined analysis can be found at [http://www.ma.rhul.ac.uk/~elsholtz/WWW/blog/mosertablogv01.pdf found here].)&lt;br /&gt;
&lt;br /&gt;
We have the following inequalities connecting a,b,c,d,e:&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;math&amp;gt;4a+b \leq 64&amp;lt;/math&amp;gt;:  There are 32 lines connecting two &amp;quot;a&amp;quot; points with a &amp;quot;b&amp;quot; point; each &amp;quot;a&amp;quot; point belongs to four of these lines, and each &amp;quot;b&amp;quot; point belongs to one.  But each such line can have at most two points in the set, and the claim follows.&lt;br /&gt;
* This can be refined to &amp;lt;math&amp;gt;4a+b+\frac{2}{3} c \leq 64&amp;lt;/math&amp;gt;: There are 24 planes connecting four &amp;quot;a&amp;quot; points, four &amp;quot;b&amp;quot; points, and one &amp;quot;c&amp;quot; point; each &amp;quot;a&amp;quot; point belongs to six of these, each &amp;quot;b&amp;quot; point belongs to three, and each &amp;quot;c&amp;quot; point belongs to one.  For each of these planes, we have &amp;lt;math&amp;gt;2a + b + 2c \leq 8&amp;lt;/math&amp;gt; from the n=2 theory, and the claim follows.&lt;br /&gt;
* &amp;lt;math&amp;gt;6a+2c \leq 96&amp;lt;/math&amp;gt;:  There are 96 lines connecting two &amp;quot;a&amp;quot; points with a &amp;quot;c&amp;quot; point; each &amp;quot;a&amp;quot; point belongs to six of these lines, and each &amp;quot;c&amp;quot; point belongs to two.  But each such line can have at most two points in the set, and the claim follows.&lt;br /&gt;
* &amp;lt;math&amp;gt;3b+2c \leq 96&amp;lt;/math&amp;gt;:  There are 48 lines connecting two &amp;quot;b&amp;quot; points to a &amp;quot;c&amp;quot; point; each &amp;quot;b&amp;quot; point belongs to three of these points, and each &amp;quot;c&amp;quot; point belongs to two.  But each such line can have at most two points in the set, and the claim follows.&lt;br /&gt;
&lt;br /&gt;
The inequalities for n=3 imply inequalities for n=4.  Indeed, there are eight side slices of &amp;lt;math&amp;gt;[3]^4&amp;lt;/math&amp;gt;; each &amp;quot;a&amp;quot; point belongs to four of these, each &amp;quot;b&amp;quot; point belongs to three, each &amp;quot;c&amp;quot; point belongs to two, and each &amp;quot;d&amp;quot; point belongs to one.  Thus, any inequality of the form&lt;br /&gt;
:&amp;lt;math&amp;gt; \alpha a + \beta b + \gamma c + \delta d \leq M&amp;lt;/math&amp;gt;&lt;br /&gt;
in three dimensions implies the inequality&lt;br /&gt;
:&amp;lt;math&amp;gt; 4 \alpha a + 3 \beta b + 2 \gamma c + \delta d \leq 8M&amp;lt;/math&amp;gt;&lt;br /&gt;
in four dimensions.  Thus we have&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;math&amp;gt;8a+3b+4c+4d \leq 176&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;2a+b+c+d \leq 48&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;14a+3b+4c+4d \leq 244&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;4a+b+c+d \leq 64&amp;lt;/math&amp;gt; &lt;br /&gt;
* &amp;lt;math&amp;gt;3b+2c+3d \leq 96&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;a+c+d \leq 28&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;5a+2c+2d \leq 80&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;a+d \leq 16&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;b+2d \leq 32&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;2c+3d \leq 48&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Cubes also sit diagonally in the 4-dimensional cube.  They may have coordinates xxyz, where xx runs over (11,22,33) or (13,22,31), while y and z run over (1,2,3).  These cubes have a different distribution of 2s than the ordinary slices: (a,b,c,d,e) = (8,8,6,4,1) instead of (8,12,6,1,0) for the side slices and (0,8,12,6,1) for the middle slices.  So a different set of inequalities arise.  It is possible to run through the same procedure as described above for n=3, and the inequalities that arise are &amp;lt;math&amp;gt;2a+b+2c+2d+4e \le 24&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;4a+b+2c+2d+4e \le 32&amp;lt;/math&amp;gt; within the 3D cube, which when averaged becomes &amp;lt;math&amp;gt;4a+b+2c+4d+16e \le 96&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;8a+b+2c+4d+16e \le 128&amp;lt;/math&amp;gt; for the 4D cube.  A spreadsheet containing these statistics can be [http://spreadsheets.google.com/ccc?key=p5T0SktZY9DuKZ2DyzO9EOg&amp;amp;hl=en# found here] on sheet 2.  Other sheets of this spreadsheet contain results for a 3D cube sitting diagonally in a 5D, 6D or 7D cube.  Notice the similarity of the equations that arise for the xxxyz, xxyyz and xxxxyz diagonals.  Also notice the xxxxyyz diagonals have the same Pareto sets and linear inequalities as the cube&#039;s c-statistics&lt;br /&gt;
&lt;br /&gt;
== n=5 ==&lt;br /&gt;
&lt;br /&gt;
Let (A,B,C,D,E,F) be the statistics of a five-dimensional Moser set, thus (A,B,C,D,E,F) varies between (0,0,0,0,0,0) and (32,80,80,40,10,1).&lt;br /&gt;
&lt;br /&gt;
There are several Moser sets with the statistics (4,40,80,0,0,0), which thus have 124 points.  Indeed, one can take&lt;br /&gt;
&lt;br /&gt;
* all points with two 2s;&lt;br /&gt;
* all points with one 2 and an even number of 1s; and&lt;br /&gt;
* (13111),(13113),(31311),(13333). Any two of these four points differ in three places, except for one pair of points that differ in one place.&lt;br /&gt;
&lt;br /&gt;
For the rest of this section, we assume that the Moser set &amp;lt;math&amp;gt;{\mathcal A}&amp;lt;/math&amp;gt; is a 125-point set.&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 1&#039;&#039;&#039;: F=0.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; If F is non-zero, then the Moser set contains 22222, then each of the 121 antipodal pairs can have at most one point in the set, leading to only 122 points. &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 2&#039;&#039;&#039;: Every middle slice of &amp;lt;math&amp;gt;{\mathcal A}&amp;lt;/math&amp;gt; has at most 41 points.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039;  Without loss of generality we may consider the 2**** slice.  There are two cases, depending on the value of c(2****).&lt;br /&gt;
&lt;br /&gt;
Suppose first that c is at least 17; thus there are at least 17 points of the form 222xy, 22x2y, 22xy2, 2x2y2, 2xy22, or 2x22y, where the x, y denote 1 or 3.  This gives 34 &amp;quot;xy&amp;quot; wildcards in all in four coordinate slots; by the pigeonhole principle one of the slots sees at least 9 of the wildcards.  By symmetry, we may assume that the second coordinate slot sees at least 9 of these wildcards, thus there are at least 9 points of the form 2x22y, 2x2y2, 2xy22.  The x=1, x=3 cases can absorb at most six of these, thus each of these cases must absorb at least three points, with at least one absorbing at least five.  Let&#039;s say that it&#039;s the x=3 case that absorbs 5; thus &amp;lt;math&amp;gt;d(*1***) \geq 3&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;d(*3***) \geq 5&amp;lt;/math&amp;gt;.  From the n=4 theory this means that the *1*** slice has at most 41 points, and the *3*** slice has at most 40.  Meanwhile, the middle slice has at most 43, leading to 41+41+42=124 points in all.&lt;br /&gt;
&lt;br /&gt;
Now suppose c is less than 17; then by the n=4 theory the middle slice is one of the eight (6,24,12,0,0) sets.  Without loss of generality we may take it to be &amp;lt;math&amp;gt;\Gamma_{220}+\Gamma_{202}+\Gamma_{022}+\Gamma_{112}+\Gamma_{211}&amp;lt;/math&amp;gt;; in particular, the middle slice contains the points 21122 21212 21221 23322 23232 23223.  In particular, the *1*** and *3*** slices have a &amp;quot;d&amp;quot; value of at least three, and so have at most 41 points.  If the *2*** slice has at most 42 points, then we are at 41+42+41=124 points as needed, but if we have 43 or more, then we are back in the first case (as &amp;lt;math&amp;gt;c(*2***) \geq 17&amp;lt;/math&amp;gt;) after permuting the indices.&lt;br /&gt;
&amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Since 125=41+41+43, we thus have&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Corollary 1&#039;&#039;&#039;: Every side slice of &amp;lt;math&amp;gt;{\mathcal A}&amp;lt;/math&amp;gt; has at least 41 points.  If one side slice does have 41 points, then the other has 43.&lt;br /&gt;
&lt;br /&gt;
Combining this with the n=4 statistics, we conclude&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Corollary 2&#039;&#039;&#039;: Every side slice of &amp;lt;math&amp;gt;{\mathcal A}&amp;lt;/math&amp;gt; has e=0, and &amp;lt;math&amp;gt;d \leq 3&amp;lt;/math&amp;gt;.  Given two opposite side slices, e.g. 1**** and 3****, we have &amp;lt;math&amp;gt;d(1****)+d(3****) \leq 4&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Corollary 3&#039;&#039;&#039;: E=0.&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Corollary 4&#039;&#039;&#039;: Any middle slice has a &amp;quot;c&amp;quot; value of at most 8.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; Let&#039;s work with the 2**** slice.  By Corollary 2, there are at most four contributions to c(2****) of the form 21*** or 23***, and similarly for the other three positions.  Double counting then gives the claim. &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 3&#039;&#039;&#039;: &amp;lt;math&amp;gt;2B+C \leq 160&amp;lt;/math&amp;gt;.   &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039;: There are 160 lines connecting one &amp;quot;C&amp;quot; point to two &amp;quot;B&amp;quot; points (e.g. 11112, 11122, 11132); each &amp;quot;C&amp;quot; point lies in two of these, and each &amp;quot;B&amp;quot; point lies on four.  A Moser set can have at most two points out of each of these lines.  Double counting then gives the claim.  &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 4&#039;&#039;&#039; Given m A-points with &amp;lt;math&amp;gt;m \geq 5&amp;lt;/math&amp;gt;, there exists at least m-4 pairs (a,b) of such A-points with Hamming distance exactly two (i.e. b differs from a in exactly two places).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; It suffices to check this for m=5, since the case of larger m then follows by locating a pair, removing a point that contributes to that pair, and using the induction hypothesis.  Given 5 A-points, we may assume by the pigeonhole principle and symmetry that at least three of them have an odd number of 1s.  Suppose 11111 is one of the points, and that no pair has Hamming distance 2. All points with two 3s are excluded, so the only points allowed with an odd number of 1s are those with four 3s. But all those points differ from each other in two positions, so at most one of them is allowed.  &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Corollary 5&#039;&#039;&#039; &amp;lt;math&amp;gt;C \leq 79&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039;: Suppose for contradiction that C=80, then D=0 and &amp;lt;math&amp;gt;B \leq 40&amp;lt;/math&amp;gt;.  From Lemma 4 we also see that A cannot be 5 or more, leading to the contradiction.&lt;br /&gt;
&amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Define the &#039;&#039;&#039;score&#039;&#039;&#039; of a Moser set in &amp;lt;math&amp;gt;[3]^4&amp;lt;/math&amp;gt; to be the quantity &amp;lt;math&amp;gt;a + 5b/4 + 5c/3 + 5d/2 + 5e&amp;lt;/math&amp;gt;.  Double-counting (and Lemma 2) gives&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 5&#039;&#039;&#039;  The total score of all the ten side-slices of &amp;lt;math&amp;gt;{\mathcal A}&amp;lt;/math&amp;gt; is equal to &amp;lt;math&amp;gt;5|{\mathcal A}| = 5 \times 125&amp;lt;/math&amp;gt;.  In particular, there exists a pair of opposite side-slices whose scores add up to at least 125.&lt;br /&gt;
&lt;br /&gt;
By Lemma 5 and symmetry, we may assume that the 1**** and 3**** slices have score adding up to at least 125.  By Lemma 2, the 2**** slice has at most 41 points, which imply that the 1**** and 3**** have 41, 42, or 43 points.  From the [http://spreadsheets.google.com/ccc?key=p5T0SktZY9DuqNcxJ171Bbw&amp;amp;hl=en n=4 statistics] we know that all 41-point, 42-point, 43-point slices have score less than 62, with the following exceptions:&lt;br /&gt;
&lt;br /&gt;
# (2,16,24,0,0) [42 points, score: 62]&lt;br /&gt;
# (4,16,23,0,0) [43 points, score: 62 1/3]&lt;br /&gt;
# (4,15,24,0,0) [43 points, score: 62 3/4]&lt;br /&gt;
# (3,16,24,0,0) [43 points, score: 63]&lt;br /&gt;
&lt;br /&gt;
Thus the 1**** and 3**** slices must come from the above list.  Furthermore, if one of the slices is of type 1, then the other must be of type 4, and if one slice is of type 2, then the other must be of type 3 or 4.&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 6&#039;&#039;&#039; There exists one cut in which the side slices have total score strictly greater than 125 (i.e. they thus involve only Type 2, Type 3, and Type 4 slices, with at least one side slice not equal to Type 2, and the cut here is of the form 43+39+43).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; If not, then all cuts have side slices exactly equal to 125, which by the above table implies that one is Type 1 and one is Type 4, in particular all side slices have c=24.  But this forces C=80, contradicting Corollary 5. &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Adding up the corners we conclude&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Corollary 6&#039;&#039;&#039; &amp;lt;math&amp;gt;6 \leq A \leq 8&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 7&#039;&#039;&#039; &amp;lt;math&amp;gt;D=0&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; Firstly, from Lemma 6 we have a cut in which the two side slices are omitting at most one C-point between them (and have no D-point), which forces the middle slice to have at most one D-point; thus D is at most 1.&lt;br /&gt;
&lt;br /&gt;
Now suppose instead that D=1 (e.g. if 11222 was in the set); then there would be two choices of coordinates in which one of the side slices would have d=1 (e.g. 1**** and *1****). But the [http://spreadsheets.google.com/ccc?key=p5T0SktZY9DuqNcxJ171Bbw&amp;amp;hl=en n=4 statistics] show that such slices have a score of at most 59 7/12, so that the total score from those two coordinates is at most 63 + 59 7/12 = 122 7/12. On the other hand, the other three slices have a net score of at most 63+63 = 126. This averages out to at most 124.633... &amp;lt; 125, a contradiction.  &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Corollary 7&#039;&#039;&#039; Every middle slice has at most 40 points.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; From Lemma 7 we see that the middle slice must have c=0, but from the n=4 statistics this is not possible for any slice of size 41 or higher (alternatively, one can use the inequalities &amp;lt;math&amp;gt;4a+b \leq 64&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;b \leq 32&amp;lt;/math&amp;gt;). &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Each middle slice now has 39 or 40 points, with c=d=e=0, and so from the inequalities &amp;lt;math&amp;gt;4a+b \leq 64&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;b \leq 32&amp;lt;/math&amp;gt; must have statistics (8,32,0,0,0),(7,32,0,0,0), or (8,31,0,0,0).  In particular the &amp;quot;a&amp;quot; index of the middle slices is at most 8.  Summing over all middle slices we conclude&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 9&#039;&#039;&#039; B is at most 40.&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 10&#039;&#039;&#039; C is equal to 78 or 79.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; By Corollary 5, it suffices to show that &amp;lt;math&amp;gt;C \geq 78&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
As 125=43+39+43, we see that every center slice must have at least 39 points. By Lemma 2 and Lemma 7 the center slice has c=d=e=0, thus the center slice has a+b &amp;gt;= 39.  On the other hand, from the n=4 theory we have 4a+b &amp;lt;= 64, which forces b &amp;gt;= 31.&lt;br /&gt;
&lt;br /&gt;
By double counting, we see that 2C is equal to the sum of the b&#039;s of all the five center slices.  Thus C &amp;gt;= 5*31/2 = 77.5 and the claim follows.  &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
From Lemmas 9 and 10 we see that &amp;lt;math&amp;gt;B+C \leq 119&amp;lt;/math&amp;gt;, and thus &amp;lt;math&amp;gt;A \geq 6&amp;lt;/math&amp;gt;.  Also, if &amp;lt;math&amp;gt;A \geq 7&amp;lt;/math&amp;gt;, then by Lemma 4 we have at least three pairs of A points with Hamming distance 2.  At most two of these pairs eliminate the same C point, so we would have C=78 in that case.  &lt;br /&gt;
&lt;br /&gt;
Putting all the above facts together, we see that (A,B,C,D,E,F) must be one of the following triples:&lt;br /&gt;
&lt;br /&gt;
* (6,40,79,0,0,0)&lt;br /&gt;
* (7,40,78,0,0,0)&lt;br /&gt;
* (8,39,78,0,0,0)&lt;br /&gt;
&lt;br /&gt;
All three cases can be eliminated, giving &amp;lt;math&amp;gt;c&#039;_5=124&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== Elimination of (6,40,79,0,0,0) ===&lt;br /&gt;
&lt;br /&gt;
Look at the 6 A points.  From Lemma 4 we have at least two pairs (a,b), (c,d) of A-points that have Hamming separation 2.&lt;br /&gt;
&lt;br /&gt;
Now look at the midpoints of these two pairs; these midpoints are C-points cannot lie in the set.  But we have exactly one C-point missing from the set, thus the midpoints must be the same.  By symmetry, we may thus assume that the two pairs are (11111,11133) and (11113,11131).  Thus 11111,11133, 11113, 11131 are in the set, and so every C-point other than 11122 is in the set.  On the other hand, the B-points 11121, 11123, 11112, 11132 lie outside the set.&lt;br /&gt;
&lt;br /&gt;
At most one of 11312, 11332 lie in the set (since 11322 lies in the set).   Suppose that 11312 lies outside the set, then we have a pair (xy1z2, xy3z2) with x,y,z = 1,3 that is totally omitted from the set, namely (11112,11312).  On the other hand, every other pair of this form can have at most one point in the set, thus there are at most seven points in the set of the form (xyzw2) with x,y,z,w = 1,3.  Similarly there are at most 8 points of the form xyz2w, or of xy2zw, x2yzw, 2xyzw, leading to at most 39 B-points in all, contradiction.&lt;br /&gt;
&lt;br /&gt;
=== Elimination of (7,40,78,0,0,0) ===&lt;br /&gt;
&lt;br /&gt;
By Lemma 4, we have at least three pairs of A-points of distance two apart that lie in the set.&lt;br /&gt;
The midpoints of these pairs are C-points that do not lie in the set; but there are only two such C-points, thus two pairs must have the same midpoint, so we may assume as before that 111xy lies in the set for x,y=1,3, which implies that 1112* and 111*2 lie outside the set.&lt;br /&gt;
&lt;br /&gt;
Now consider the 160 lines between 2 B points and one C point (cf. Lemma 3).  The sum of all the points in each such line (counting multiplicity) is 4B+2C = 316.  On the other hand, every one of the 160 lines can have at most two points, and two of these lines (namely 1112*, 111*2) have no points.  Thus all the other lines must have exactly two points.  &lt;br /&gt;
&lt;br /&gt;
We know that the C-point 11122 is missing from the set; there is one other missing C-point.  Since 1112x, 111x2 lie outside the set, we conclude from the previous paragraph that 1132x, 113x2 and 1312x, 131x2 lie in the set.  Taking midpoints we conclude that 11322 and 13122 lie outside the set.  But this is now three C-points missing (together with 11122), a contradiction.&lt;br /&gt;
&lt;br /&gt;
=== Elimination of (8,39,78,0,0,0) ===&lt;br /&gt;
&lt;br /&gt;
By Lemma 4 we have at least four pairs of A-points of distance two apart that lie in the set. The midpoints of these pairs are C-points that do not lie in the set; but there are only two such C-points, thus two pairs (a,b), (c,d) must have the same midpoint p, and the other two pairs (a&#039;,b&#039;), (c&#039;,d&#039;) must also have the same midpoint p&#039;.  (Note that every C-point is the midpoint of at most two such pairs.)&lt;br /&gt;
&lt;br /&gt;
Now consider the 160 lines between 2 B points and one C point (cf. Lemma 3).  The sum of all the points in each such line (counting multiplicity) is 4B+2C = 312.  Every one of the 160 lines can have at most two points, and four of these (those in the plane of (a,b,c,d) or of (a&#039;,b&#039;,c&#039;,d&#039;) have no points.  Thus all other lines must have exactly two points.&lt;br /&gt;
&lt;br /&gt;
Without loss of generality we have (a,b)=(11111,11133), (c,d) = (11113,11131), thus p = 11122.  By permuting the first three indices, we may assume that p&#039; is not of the form x2y2z, x2yz2, xy22z, xy2z2.  Then 1112x lies outside the set and 1122x lies in the set, so by the above paragraph 1132x lies in the set; similarly for 113x2, 1312x, 131x2.  This implies that 13122, 11322 lie outside the set, but this (together with 11122) shows that at least three C-points are missing, a contradiction.&lt;br /&gt;
&lt;br /&gt;
== General n ==&lt;br /&gt;
&lt;br /&gt;
General solution for &amp;lt;math&amp;gt;c&#039;_N&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* q 2s, all points from A(N-q,1)&lt;br /&gt;
* q-1 2s, points from A(N-q+1,2)&lt;br /&gt;
* q-2 2s, points from A(N-q+2,3)&lt;br /&gt;
* etc.&lt;br /&gt;
&lt;br /&gt;
where A(m,d) is a subset of &amp;lt;math&amp;gt;[1,3]^m&amp;lt;/math&amp;gt; for which any two points differ from each other in at least d places.&lt;br /&gt;
&lt;br /&gt;
Mathworld’s entry on error-correcting codes suggests it might be NP-complete to find the size of A(m,d) in general.&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;math&amp;gt;|A(m,1)| = 2^m&amp;lt;/math&amp;gt; because it includes all points in &amp;lt;math&amp;gt;[1,3]^m&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;|A(m,2)| = 2^{m-1}&amp;lt;/math&amp;gt; because it can include all points in &amp;lt;math&amp;gt;[1,3]^m&amp;lt;/math&amp;gt; with an odd number of 1s&lt;br /&gt;
&lt;br /&gt;
The integer programming routine from Maple 12 was used to obtain upper bounds for &amp;lt;math&amp;gt;c&#039;_6&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;c&#039;_7&amp;lt;/math&amp;gt;.  A large number of linear inequalities, described above in sections (n=3) and (n=4), were combined.  The details are in [[Maple calculations]].  The results were that &amp;lt;math&amp;gt;c&#039;_6 \le 361&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;c&#039;_7 \le 1071&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
A [[genetic algorithm]] has provided the following examples:&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;math&amp;gt;c&#039;_6 \geq 353&amp;lt;/math&amp;gt; (26 examples; [http://twofoldgaze.wordpress.com/2009/03/10/353-element-solution/ here is one])&lt;br /&gt;
* &amp;lt;math&amp;gt;c&#039;_7 \geq 988&amp;lt;/math&amp;gt; [http://twofoldgaze.wordpress.com/2009/03/10/978-element-solution/ Here is the example]&lt;br /&gt;
&lt;br /&gt;
== Larger sides (k&amp;gt;3) ==&lt;br /&gt;
&lt;br /&gt;
The following set gives a lower bound for Moser’s cube &amp;lt;math&amp;gt;[4]^n&amp;lt;/math&amp;gt; (values 1,2,3,4):  Pick all points where q entries are 2 or 3; and also pick those where q-1 entries are 2 or 3 and an odd number of entries are 1.  This is maximized when q is near n/2, giving a lower bound of&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\binom{n}{n/2} 2^n + \binom{n}{n/2-1} 2^{n-1}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
which is comparable to &amp;lt;math&amp;gt;4^n/\sqrt{n}&amp;lt;/math&amp;gt; by [[Stirling&#039;s formula]].&lt;br /&gt;
&lt;br /&gt;
For k=5 (values 1,2,3,4,5) If A, B, C, D, and E denote the numbers of 1-s, 2-s, 3-s, 4-s and 5-s then the first three points of a geometric line form a 3-term arithmetic progression in A+E+2(B+D)+3C. So, for k=5 we have a similar lower bound for the Moser’s problem as for DHJ k=3, i.e. &amp;lt;math&amp;gt;5^{n - O(\sqrt{\log n})}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
The k=6 version of Moser implies DHJ(3).  Indeed, any k=3 combinatorial line-free set can be &amp;quot;doubled up&amp;quot; into a k=6 geometric line-free set of the same density by pulling back the set from the map &amp;lt;math&amp;gt;\phi: [6]^n \to [3]^n&amp;lt;/math&amp;gt; that maps 1, 2, 3, 4, 5, 6 to 1, 2, 3, 3, 2, 1 respectively; note that this map sends k=6 geometric lines to k=3 combinatorial lines.&lt;/div&gt;</summary>
		<author><name>121.220.134.232</name></author>
	</entry>
	<entry>
		<id>https://michaelnielsen.org/polymath/index.php?title=Moser%27s_cube_problem&amp;diff=1040</id>
		<title>Moser&#039;s cube problem</title>
		<link rel="alternate" type="text/html" href="https://michaelnielsen.org/polymath/index.php?title=Moser%27s_cube_problem&amp;diff=1040"/>
		<updated>2009-03-22T04:41:34Z</updated>

		<summary type="html">&lt;p&gt;121.220.134.232: /* Notation */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Define a &#039;&#039;Moser set&#039;&#039; to be a subset of &amp;lt;math&amp;gt;[3]^n&amp;lt;/math&amp;gt; which does not contain any [[geometric line]], and let &amp;lt;math&amp;gt;c&#039;_n&amp;lt;/math&amp;gt; denote the size of the largest Moser set in &amp;lt;math&amp;gt;[3]^n&amp;lt;/math&amp;gt;.  The first few values are (see [http://www.research.att.com/~njas/sequences/A003142 OEIS A003142]):&lt;br /&gt;
&lt;br /&gt;
: &amp;lt;math&amp;gt;c&#039;_0 = 1; c&#039;_1 = 2; c&#039;_2 = 6; c&#039;_3 = 16; c&#039;_4 = 43; c&#039;_5 = 124.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Beyond this point, we only have some upper and lower bounds, in particular &amp;lt;math&amp;gt;353 \leq c&#039;_6 \leq 361&amp;lt;/math&amp;gt;; see [http://spreadsheets.google.com/ccc?key=p5T0SktZY9DsU-uZ1tK7VEg this spreadsheet] for the latest bounds.&lt;br /&gt;
&lt;br /&gt;
The best known asymptotic lower bound for &amp;lt;math&amp;gt;c&#039;_n&amp;lt;/math&amp;gt; is&lt;br /&gt;
&lt;br /&gt;
: &amp;lt;math&amp;gt;c&#039;_n \gg 3^n/\sqrt{n}&amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
formed by fixing the number of 2s to a single value near n/3.  Compare this to the DHJ(2) or Sperner limit of &amp;lt;math&amp;gt;2^n/\sqrt{n}&amp;lt;/math&amp;gt;.  Is it possible to do any better?  Note that we have a [[Upper_and_lower_bounds#Asymptotics|significantly better bound]] for the DHJ(3) &amp;lt;math&amp;gt;c_n&amp;lt;/math&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
: &amp;lt;math&amp;gt;c_n \geq 3^{n-O(\sqrt{\log n})}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
A more precise lower bound is&lt;br /&gt;
&lt;br /&gt;
: &amp;lt;math&amp;gt;c&#039;_n \geq \binom{n+1}{q} 2^{n-q}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where q is the nearest integer to &amp;lt;math&amp;gt;n/3&amp;lt;/math&amp;gt;, formed by taking all strings with q 2s, together with all strings with q-1 2s and an odd number of 1s.  This for instance gives the lower bound &amp;lt;math&amp;gt;c&#039;_5 \geq 120&amp;lt;/math&amp;gt;, which compares with the upper bound &amp;lt;math&amp;gt;c&#039;_5 \leq 3 c&#039;_4 = 129&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Using [[DHJ(3)]], we have the upper bound&lt;br /&gt;
&lt;br /&gt;
: &amp;lt;math&amp;gt;c&#039;_n = o(3^n)&amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
but no effective decay rate is known. It would be good to have a combinatorial proof of this fact (which is weaker than [[DHJ(3)]], but implies [[Roth&#039;s theorem]]).&lt;br /&gt;
&lt;br /&gt;
== Notation ==&lt;br /&gt;
&lt;br /&gt;
Given a Moser set A in &amp;lt;math&amp;gt;[3]^n&amp;lt;/math&amp;gt;, we let a be the number of points in A with no 2s, b be the number of points in A with one 2, c the number of points with two 2s, etc.  We call (a,b,c,...) the &#039;&#039;statistics&#039;&#039; of A.  Given a slice S of &amp;lt;math&amp;gt;[3]^n&amp;lt;/math&amp;gt;, we let a(S), b(S), etc. denote the statistics of that slice (dropping the fixed coordinates).  Thus for instance if A = {11, 12, 22, 32}, then (a,b,c) = (1,2,1), and (a(1*),b(1*)) = (1,1).&lt;br /&gt;
&lt;br /&gt;
We call a statistic (a,b,c,...) &#039;&#039;attainable&#039;&#039; if it is attained by a Moser set.  We say that an attainable statistic is &#039;&#039;Pareto-optimal&#039;&#039; if it cannot be pointwise dominated by any other attainable statistic (a&#039;,b&#039;,c&#039;,...) (thus &amp;lt;math&amp;gt;a&#039; \geq a&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;b&#039; \geq b&amp;lt;/math&amp;gt;, etc.)  We say that it is &#039;&#039;extremal&#039;&#039; if it is not a convex combination of any other attainable statistic (this is a stronger property than Pareto-optimal).  For the purposes of maximising linear scores of attainable statistics, it suffices to check extremal statistics.&lt;br /&gt;
&lt;br /&gt;
We let &amp;lt;math&amp;gt;(\alpha_0,\alpha_1,\ldots)&amp;lt;/math&amp;gt; be the normalized version of &amp;lt;math&amp;gt;(a,b,\ldots)&amp;lt;/math&amp;gt;, in which one divides the number of points of a certain type in the set by the total number of points in the set.  Thus for instance &amp;lt;math&amp;gt;\alpha_0 = a/2^n, \alpha_1 = b/(n 2^{n-1}), \alpha_3 = c/(\binom{n}{2} 2^{n-2})&amp;lt;/math&amp;gt;, etc., and the &amp;lt;math&amp;gt;\alpha_i&amp;lt;/math&amp;gt; range between 0 and 1.  Averaging arguments show that any linear inequality obeyed by the &amp;lt;math&amp;gt;\alpha_i&amp;lt;/math&amp;gt; at one dimension is automatically inherited by higher dimensions, as are shifted versions of this inequality (in which &amp;lt;math&amp;gt;\alpha_i&amp;lt;/math&amp;gt; is replaced by &amp;lt;math&amp;gt;\alpha_{i+1}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
The idea in &#039;c-statistics&#039; is to identify 1s and 3s but leave the 2s intact. Let’s use x to denote letters that are either 1 or 3, then the 81 points in &amp;lt;math&amp;gt;[3]^4&amp;lt;/math&amp;gt; get split up into 16 groups: 2222 (1 point), 222x, 22×2, 2×22, x222 (two points each), 22xx, 2×2x, x22x, 2xx2, x2×2, xx22 (four points each), 2xxx, x2xx, xx2x, xxx2 (eight points each), xxxx (sixteen points). Let c(w) denote the number of points inside a group w, e.g. c(xx22) is the number of points of the form xx22 inside the set, and is thus an integer from 0 to 4.&lt;br /&gt;
&lt;br /&gt;
== n=0 ==&lt;br /&gt;
&lt;br /&gt;
We trivially have &amp;lt;math&amp;gt;c&#039;_0=1.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== n=1 ==&lt;br /&gt;
&lt;br /&gt;
We trivially have &amp;lt;math&amp;gt;c&#039;_1=2.&amp;lt;/math&amp;gt;  The Pareto-optimal values of the statistics (a,b) are (1,1) and (2,0); these are also the extremals.  We thus have the inequality &amp;lt;math&amp;gt;a+b \leq 2&amp;lt;/math&amp;gt;, or in normalized notation&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;2\alpha_0 + \alpha_1 \leq 2&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== n=2 ==&lt;br /&gt;
&lt;br /&gt;
We have &amp;lt;math&amp;gt;c&#039;_2 = 6&amp;lt;/math&amp;gt;; the upper bound follows since &amp;lt;math&amp;gt;c&#039;_2 \leq 3 c&#039;_1&amp;lt;/math&amp;gt;, and the lower bound follows by deleting one of the two diagonals from &amp;lt;math&amp;gt;[3]^2&amp;lt;/math&amp;gt; (these are the only extremisers).&lt;br /&gt;
&lt;br /&gt;
The extremiser has statistics (a,b,c) = (2,4,0), which are of course Pareto-optimal.  If c=1 then we must have a, b at most 2 (look at the lines through 22).  This is attainable (e.g. {11, 12, 22, 23, 31}, and so (2,2,1) is another Pareto-optimal statistic.  If a=4, then b and c must be 0, so we get another Pareto-optimal statistic (4,0,0) (attainable by {11, 13, 31, 33} of course).  If a=3, then c=0 and b is at most 2, giving another Pareto-optimal statistic (3,2,0); but this is a convex combination of (4,0,0) and (2,4,0) and is thus not extremal.  Thus the complete set of extremal statistics are&lt;br /&gt;
&lt;br /&gt;
(4,0,0), (2,4,0), (2,2,1).&lt;br /&gt;
&lt;br /&gt;
The sharp linear inequalities obeyed by a,b,c (other than the trivial ones &amp;lt;math&amp;gt;a,b,c \geq 0&amp;lt;/math&amp;gt;) are then&lt;br /&gt;
&lt;br /&gt;
*&amp;lt;math&amp;gt;2a+b+2c \leq 8&amp;lt;/math&amp;gt;&lt;br /&gt;
*&amp;lt;math&amp;gt;b+2c \leq 4&amp;lt;/math&amp;gt;&lt;br /&gt;
*&amp;lt;math&amp;gt;a+2c \leq 4&amp;lt;/math&amp;gt;&lt;br /&gt;
*&amp;lt;math&amp;gt;c \leq 1&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
In normalized notation, we have&lt;br /&gt;
*&amp;lt;math&amp;gt;4\alpha_0 + 2\alpha_1 + \alpha_2 \leq 4&amp;lt;/math&amp;gt;&lt;br /&gt;
*&amp;lt;math&amp;gt;2\alpha_1 + \alpha_2 \leq 2&amp;lt;/math&amp;gt;&lt;br /&gt;
*&amp;lt;math&amp;gt;2\alpha_0 + \alpha_2 \leq 2&amp;lt;/math&amp;gt;&lt;br /&gt;
*&amp;lt;math&amp;gt;\alpha_2 \leq 1&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
The Pareto optimizers for c-statistics are (c22,c2x,cx2,cxx) = (1112),(0222),(0004), which are covered by the linear inequalities &lt;br /&gt;
*&amp;lt;math&amp;gt;c22+c2x+cxx \le 4&amp;lt;/math&amp;gt;, &lt;br /&gt;
*&amp;lt;math&amp;gt;c22+cx2+cxx \le 4&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== n=3 ==&lt;br /&gt;
&lt;br /&gt;
We have &amp;lt;math&amp;gt;c&#039;_3 = 16&amp;lt;/math&amp;gt;.  The lower bound can be seen for instance by taking all the strings with one 2, and half the strings with no 2 (e.g. the strings with an odd number of 1s).  The upper bound can be deduced from the corresponding [[upper and lower bounds]] for &amp;lt;math&amp;gt;c_3 = 18&amp;lt;/math&amp;gt;; the 17-point and 18-point line-free sets each contain a geometric line.&lt;br /&gt;
&lt;br /&gt;
If a Moser set in &amp;lt;math&amp;gt;[3]^3&amp;lt;/math&amp;gt; contains 222, then it can have at most 14 points, since the remaining 26 points in the cube split into 13 antipodal pairs, and at most one of each pair can lie in the set.  By exhausting over the &amp;lt;math&amp;gt;2^{13} = 8192&amp;lt;/math&amp;gt; possibilities, it can be shown that it is impossible for a 14-point set to exist; any Moser set containing 222 must in fact omit at least one antipodal pair completely and thus have only 13 points.  (A human proof of this fact can be [http://www.ma.rhul.ac.uk/~elsholtz/WWW/blog/mosertablogv01.pdf found here].)&lt;br /&gt;
&lt;br /&gt;
The Pareto-optimal statistics are&lt;br /&gt;
&lt;br /&gt;
(3,6,3,1),(4,4,3,1),(4,6,2,1),(2,6,6,0),(3,6,5,0),(4,4,5,0),(3,7,4,0),(4,6,4,0), (3,9,3,0),(4,7,3,0),(5,4,3,0),(4,9,2,0),(5,6,2,0),(6,3,2,0),(3,10,1,0),(5,7,1,0), (6,4,1,0),(4,12,0,0),(5,9,0,0),(6,6,0,0),(7,3,0,0),(8,0,0,0).&lt;br /&gt;
&lt;br /&gt;
These were found from a search of the &amp;lt;math&amp;gt;2^{27}&amp;lt;/math&amp;gt; subsets of the cube.&lt;br /&gt;
A spreadsheet containing these statistics can be [http://spreadsheets.google.com/ccc?key=p5T0SktZY9DuKZ2DyzO9EOg&amp;amp;hl=en# found here].&lt;br /&gt;
&lt;br /&gt;
The extremal statistics are&lt;br /&gt;
&lt;br /&gt;
(3,6,3,1),(4,4,3,1),(4,6,2,1),(2,6,6,0),(4,4,5,0),(4,6,4,0),(4,12,0,0),(8,0,0,0)&lt;br /&gt;
&lt;br /&gt;
The sharp linear bounds are :&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;math&amp;gt;2a+b+2c+4d \leq 22&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;3a+2b+3c+6d \leq 36&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;7a+2b+4c+8d \leq 56&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;6a+2b+3c+6d \leq 48&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;b+c+3d \leq 12&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;a+2c+4d \leq 14&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;5a+4c+8d \leq 40&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;a+4d \leq 8&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;b+6d \leq 12&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;c+3d \leq 6&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;d \leq 1&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In normalized notation,&lt;br /&gt;
* &amp;lt;math&amp;gt;8\alpha_0+ 6\alpha_1 + 6\alpha_2 + 2\alpha_3 \leq 11&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;4\alpha_0+4\alpha_1+3\alpha_2+\alpha_3 \leq 6&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;7\alpha_0+3\alpha_1+3\alpha_2+\alpha_3 \leq 7&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;8\alpha_0+3\alpha_1+3\alpha_2+\alpha_3 \leq 8&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;4\alpha_1+2\alpha_2+\alpha_3 \leq 4&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;4\alpha_0+6\alpha_2+2\alpha_3 \leq 7&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;5\alpha_0+3\alpha_2+\alpha_3 \leq 5&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;2\alpha_0+\alpha_3 \leq 2&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;2\alpha_1+\alpha_3 \leq 2&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;2\alpha_2+\alpha_3 \leq 2&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;\alpha_3 \leq 1&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The c-statistics can also be found from an exhaustive search of Moser sets.  The resulting Pareto sets and linear inequalities can be found on Sheet 8 of [http://spreadsheets.google.com/ccc?key=p5T0SktZY9DuKZ2DyzO9EOg&amp;amp;hl=en# this spreadsheet]&lt;br /&gt;
&lt;br /&gt;
== n=4 ==&lt;br /&gt;
&lt;br /&gt;
A [http://abel.math.umu.se/~klasm/extremal-moser-n=5-t=3 computer search] has obtained all extremisers to &amp;lt;math&amp;gt;c&#039;_4=43&amp;lt;/math&amp;gt;.  The 42-point solutions can be found [http://abel.math.umu.se/~klasm/moser-n=4-t=3-p=42.gz here].&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof that &amp;lt;math&amp;gt;c&#039;_4 \leq 43&amp;lt;/math&amp;gt;&#039;&#039;&#039;: &lt;br /&gt;
When e=1 (i.e. the 4D set contains 2222) then we have at most 41 points (in fact at most 39) by counting antipodal points, so assume e=0.&lt;br /&gt;
&lt;br /&gt;
Define the score of a 3D slice to be a/4+b/3+c/2+d.  Observe from double counting that the size of a 4D set is the sum of the scores of its eight side slices.&lt;br /&gt;
&lt;br /&gt;
But by [http://spreadsheets.google.com/ccc?key=p5T0SktZY9DuKZ2DyzO9EOg&amp;amp;hl=en looking at the extremals] we see that the largest score is 44/8, attained at only one point, namely when (a,b,c,d) = (2,6,6,0).  So the only way one can have a 44-point set is if all side slices are (2,6,6,0), or equivalently if the whole set has statistics (a,b,c,d,e) = (4,16,24,0,0).  But then we have all the points with two 2s, which means that the four &amp;quot;a&amp;quot; points cannot be separated by Hamming distance 2.  We conclude that we must have an antipodal pair among the &amp;quot;a&amp;quot; points with an odd number of 1s, and an antipodal pair among the &amp;quot;a&amp;quot; points with an even number of 1s.    By the symmetries of the cube, we may take the a-set to then be 1111, 3333, 1113, 3331.  But then the &amp;quot;b&amp;quot; set must exclude both 1112 and 3332, and so can have at most three points in the eight-point set xyz2 (with x,y,z=1,3) rather than four (to get four points one must alternate in a checkerboard pattern).  Adding this to the at most four points of the form xy2z, x2yz, 2xyz we see that b is at most 15, a contradiction. &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Given a subset of &amp;lt;math&amp;gt;[3]^4&amp;lt;/math&amp;gt;, let a be the number of points with no 2s, b be the number of points with 1 2, and so forth.  The quintuple (a,b,c,d,e) thus lies between (0,0,0,0,0) and (16,32,24,8,1).&lt;br /&gt;
&lt;br /&gt;
The 43-point solutions have distributions (a,b,c,d,e) as follows:&lt;br /&gt;
&lt;br /&gt;
* (5,20,18,0,0) [16 solutions]&lt;br /&gt;
* (4,16,23,0,0) [768 solutions]&lt;br /&gt;
* (3,16,24,0,0) [512 solutions]&lt;br /&gt;
* (4,15,24,0,0) [256 solutions]&lt;br /&gt;
&lt;br /&gt;
The 42-point solutions are [http://abel.math.umu.se/~klasm/Moser-42-stat.pdf distributed as follows]:&lt;br /&gt;
&lt;br /&gt;
* (6,24,12,0,0) [[http://abel.math.umu.se/~klasm/moser-n=4-42-12 8 solutions]] &lt;br /&gt;
* (5,20,17,0,0) [576 solutions]&lt;br /&gt;
* (5,19,18,0,0) [384 solutions]&lt;br /&gt;
* (6,16,18,2,0) [[http://abel.math.umu.se/~klasm/moser-n=4-42-e=2 192 solutions]]&lt;br /&gt;
* (4,20,18,0,0) [272 solutions]&lt;br /&gt;
* (5,17,20,0,0) [192 solutions]&lt;br /&gt;
* (5,16,21,0,0) [3584 solutions]&lt;br /&gt;
* (4,17,21,0,0) [768 solutions]&lt;br /&gt;
* (4,16,22,0,0) [26880 solutions]&lt;br /&gt;
* (5,15,22,0,0) [1536 solutions]&lt;br /&gt;
* (4,15,23,0,0) [22272 solutions]&lt;br /&gt;
* (3,16,23,0,0) [15744 solutions]&lt;br /&gt;
* (4,14,24,0,0) [4224 solutions]&lt;br /&gt;
* (3,15,24,0,0) [8704 solutions]&lt;br /&gt;
* (2,16,24,0,0) [896 solutions]&lt;br /&gt;
&lt;br /&gt;
Note how c is usually quite large, and d quite low.&lt;br /&gt;
&lt;br /&gt;
One of the (6,24,12,0,0) solutions is &amp;lt;math&amp;gt;\Gamma_{220}+\Gamma_{202}+\Gamma_{022}+\Gamma_{112}+\Gamma_{211}&amp;lt;/math&amp;gt; (i.e. the set of points containing exactly two 1s, and/or exactly two 3s).  The other seven are reflections of this set.&lt;br /&gt;
&lt;br /&gt;
There are 2,765,200 41-point solutions, [http://abel.math.umu.se/~klasm/solutions-4-t=3-41-moser.gz listed here].  The statistics for such points can be [http://abel.math.umu.se/~klasm/Moser-41-stat.pdf found here].  Noteworthy features of the statistics:&lt;br /&gt;
&lt;br /&gt;
* d is at most 3 (and, except for [http://abel.math.umu.se/~klasm/moser-n=3-t=3-41-d=3.gz 256 exceptional solutions] of the shape (5,15,18,3,0), have d at most 2; here are the [http://abel.math.umu.se/~klasm/moser-n=3-t=3-41-d=2.gz d=2 solutions] and [http://abel.math.umu.se/~klasm/moser-n=3-t=3-41-d=1.gz d=1 solutions])&lt;br /&gt;
* c is at least 6 (and, except for [http://abel.math.umu.se/~klasm/moser-n=3-t=3-41-c=6.gz 16 exceptional solutions] of the shape (7,28,6,0,0), have c at least 11).&lt;br /&gt;
&lt;br /&gt;
Statistics for the 41-point, 42-point, and 43-point solutions can be found [http://spreadsheets.google.com/ccc?key=p5T0SktZY9DuqNcxJ171Bbw&amp;amp;hl=en here].&lt;br /&gt;
&lt;br /&gt;
If a Moser set in &amp;lt;math&amp;gt;[3]^4&amp;lt;/math&amp;gt; contains 2222, then by the n=3 theory, any middle slice (i.e. 2***, *2**, **2*, or ***2) is missing at least one antipodal pair.  But each antipodal pair belongs to at most three middle slices, thus two of the 40 antipodal pairs must be completely missing.  As a consequence, any Moser set containing 2222 can have at most 39 points.&lt;br /&gt;
(A more refined analysis can be found at [http://www.ma.rhul.ac.uk/~elsholtz/WWW/blog/mosertablogv01.pdf found here].)&lt;br /&gt;
&lt;br /&gt;
We have the following inequalities connecting a,b,c,d,e:&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;math&amp;gt;4a+b \leq 64&amp;lt;/math&amp;gt;:  There are 32 lines connecting two &amp;quot;a&amp;quot; points with a &amp;quot;b&amp;quot; point; each &amp;quot;a&amp;quot; point belongs to four of these lines, and each &amp;quot;b&amp;quot; point belongs to one.  But each such line can have at most two points in the set, and the claim follows.&lt;br /&gt;
* This can be refined to &amp;lt;math&amp;gt;4a+b+\frac{2}{3} c \leq 64&amp;lt;/math&amp;gt;: There are 24 planes connecting four &amp;quot;a&amp;quot; points, four &amp;quot;b&amp;quot; points, and one &amp;quot;c&amp;quot; point; each &amp;quot;a&amp;quot; point belongs to six of these, each &amp;quot;b&amp;quot; point belongs to three, and each &amp;quot;c&amp;quot; point belongs to one.  For each of these planes, we have &amp;lt;math&amp;gt;2a + b + 2c \leq 8&amp;lt;/math&amp;gt; from the n=2 theory, and the claim follows.&lt;br /&gt;
* &amp;lt;math&amp;gt;6a+2c \leq 96&amp;lt;/math&amp;gt;:  There are 96 lines connecting two &amp;quot;a&amp;quot; points with a &amp;quot;c&amp;quot; point; each &amp;quot;a&amp;quot; point belongs to six of these lines, and each &amp;quot;c&amp;quot; point belongs to two.  But each such line can have at most two points in the set, and the claim follows.&lt;br /&gt;
* &amp;lt;math&amp;gt;3b+2c \leq 96&amp;lt;/math&amp;gt;:  There are 48 lines connecting two &amp;quot;b&amp;quot; points to a &amp;quot;c&amp;quot; point; each &amp;quot;b&amp;quot; point belongs to three of these points, and each &amp;quot;c&amp;quot; point belongs to two.  But each such line can have at most two points in the set, and the claim follows.&lt;br /&gt;
&lt;br /&gt;
The inequalities for n=3 imply inequalities for n=4.  Indeed, there are eight side slices of &amp;lt;math&amp;gt;[3]^4&amp;lt;/math&amp;gt;; each &amp;quot;a&amp;quot; point belongs to four of these, each &amp;quot;b&amp;quot; point belongs to three, each &amp;quot;c&amp;quot; point belongs to two, and each &amp;quot;d&amp;quot; point belongs to one.  Thus, any inequality of the form&lt;br /&gt;
:&amp;lt;math&amp;gt; \alpha a + \beta b + \gamma c + \delta d \leq M&amp;lt;/math&amp;gt;&lt;br /&gt;
in three dimensions implies the inequality&lt;br /&gt;
:&amp;lt;math&amp;gt; 4 \alpha a + 3 \beta b + 2 \gamma c + \delta d \leq 8M&amp;lt;/math&amp;gt;&lt;br /&gt;
in four dimensions.  Thus we have&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;math&amp;gt;8a+3b+4c+4d \leq 176&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;2a+b+c+d \leq 48&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;14a+3b+4c+4d \leq 244&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;4a+b+c+d \leq 64&amp;lt;/math&amp;gt; &lt;br /&gt;
* &amp;lt;math&amp;gt;3b+2c+3d \leq 96&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;a+c+d \leq 28&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;5a+2c+2d \leq 80&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;a+d \leq 16&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;b+2d \leq 32&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;2c+3d \leq 48&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Cubes also sit diagonally in the 4-dimensional cube.  They may have coordinates xxyz, where xx runs over (11,22,33) or (13,22,31), while y and z run over (1,2,3).  These cubes have a different distribution of 2s than the ordinary slices: (a,b,c,d,e) = (8,8,6,4,1) instead of (8,12,6,1,0) for the side slices and (0,8,12,6,1) for the middle slices.  So a different set of inequalities arise.  It is possible to run through the same procedure as described above for n=3, and the inequalities that arise are &amp;lt;math&amp;gt;2a+b+2c+2d+4e \le 24&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;4a+b+2c+2d+4e \le 32&amp;lt;/math&amp;gt; within the 3D cube, which when averaged becomes &amp;lt;math&amp;gt;4a+b+2c+4d+16e \le 96&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;8a+b+2c+4d+16e \le 128&amp;lt;/math&amp;gt; for the 4D cube.  A spreadsheet containing these statistics can be [http://spreadsheets.google.com/ccc?key=p5T0SktZY9DuKZ2DyzO9EOg&amp;amp;hl=en# found here] on sheet 2.  Other sheets of this spreadsheet contain results for a 3D cube sitting diagonally in a 5D, 6D or 7D cube.  Notice the similarity of the equations that arise for the xxxyz, xxyyz and xxxxyz diagonals.  Also notice the xxxxyyz diagonals have the same Pareto sets and linear inequalities as the cube&#039;s c-statistics&lt;br /&gt;
&lt;br /&gt;
== n=5 ==&lt;br /&gt;
&lt;br /&gt;
Let (A,B,C,D,E,F) be the statistics of a five-dimensional Moser set, thus (A,B,C,D,E,F) varies between (0,0,0,0,0,0) and (32,80,80,40,10,1).&lt;br /&gt;
&lt;br /&gt;
There are several Moser sets with the statistics (4,40,80,0,0,0), which thus have 124 points.  Indeed, one can take&lt;br /&gt;
&lt;br /&gt;
* all points with two 2s;&lt;br /&gt;
* all points with one 2 and an even number of 1s; and&lt;br /&gt;
* (13111),(13113),(31311),(13333). Any two of these four points differ in three places, except for one pair of points that differ in one place.&lt;br /&gt;
&lt;br /&gt;
For the rest of this section, we assume that the Moser set &amp;lt;math&amp;gt;{\mathcal A}&amp;lt;/math&amp;gt; is a 125-point set.&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 1&#039;&#039;&#039;: F=0.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; If F is non-zero, then the Moser set contains 22222, then each of the 121 antipodal pairs can have at most one point in the set, leading to only 122 points. &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 2&#039;&#039;&#039;: Every middle slice of &amp;lt;math&amp;gt;{\mathcal A}&amp;lt;/math&amp;gt; has at most 41 points.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039;  Without loss of generality we may consider the 2**** slice.  There are two cases, depending on the value of c(2****).&lt;br /&gt;
&lt;br /&gt;
Suppose first that c is at least 17; thus there are at least 17 points of the form 222xy, 22x2y, 22xy2, 2x2y2, 2xy22, or 2x22y, where the x, y denote 1 or 3.  This gives 34 &amp;quot;xy&amp;quot; wildcards in all in four coordinate slots; by the pigeonhole principle one of the slots sees at least 9 of the wildcards.  By symmetry, we may assume that the second coordinate slot sees at least 9 of these wildcards, thus there are at least 9 points of the form 2x22y, 2x2y2, 2xy22.  The x=1, x=3 cases can absorb at most six of these, thus each of these cases must absorb at least three points, with at least one absorbing at least five.  Let&#039;s say that it&#039;s the x=3 case that absorbs 5; thus &amp;lt;math&amp;gt;d(*1***) \geq 3&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;d(*3***) \geq 5&amp;lt;/math&amp;gt;.  From the n=4 theory this means that the *1*** slice has at most 41 points, and the *3*** slice has at most 40.  Meanwhile, the middle slice has at most 43, leading to 41+41+42=124 points in all.&lt;br /&gt;
&lt;br /&gt;
Now suppose c is less than 17; then by the n=4 theory the middle slice is one of the eight (6,24,12,0,0) sets.  Without loss of generality we may take it to be &amp;lt;math&amp;gt;\Gamma_{220}+\Gamma_{202}+\Gamma_{022}+\Gamma_{112}+\Gamma_{211}&amp;lt;/math&amp;gt;; in particular, the middle slice contains the points 21122 21212 21221 23322 23232 23223.  In particular, the *1*** and *3*** slices have a &amp;quot;d&amp;quot; value of at least three, and so have at most 41 points.  If the *2*** slice has at most 42 points, then we are at 41+42+41=124 points as needed, but if we have 43 or more, then we are back in the first case (as &amp;lt;math&amp;gt;c(*2***) \geq 17&amp;lt;/math&amp;gt;) after permuting the indices.&lt;br /&gt;
&amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Since 125=41+41+43, we thus have&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Corollary 1&#039;&#039;&#039;: Every side slice of &amp;lt;math&amp;gt;{\mathcal A}&amp;lt;/math&amp;gt; has at least 41 points.  If one side slice does have 41 points, then the other has 43.&lt;br /&gt;
&lt;br /&gt;
Combining this with the n=4 statistics, we conclude&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Corollary 2&#039;&#039;&#039;: Every side slice of &amp;lt;math&amp;gt;{\mathcal A}&amp;lt;/math&amp;gt; has e=0, and &amp;lt;math&amp;gt;d \leq 3&amp;lt;/math&amp;gt;.  Given two opposite side slices, e.g. 1**** and 3****, we have &amp;lt;math&amp;gt;d(1****)+d(3****) \leq 4&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Corollary 3&#039;&#039;&#039;: E=0.&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Corollary 4&#039;&#039;&#039;: Any middle slice has a &amp;quot;c&amp;quot; value of at most 8.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; Let&#039;s work with the 2**** slice.  By Corollary 2, there are at most four contributions to c(2****) of the form 21*** or 23***, and similarly for the other three positions.  Double counting then gives the claim. &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 3&#039;&#039;&#039;: &amp;lt;math&amp;gt;2B+C \leq 160&amp;lt;/math&amp;gt;.   &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039;: There are 160 lines connecting one &amp;quot;C&amp;quot; point to two &amp;quot;B&amp;quot; points (e.g. 11112, 11122, 11132); each &amp;quot;C&amp;quot; point lies in two of these, and each &amp;quot;B&amp;quot; point lies on four.  A Moser set can have at most two points out of each of these lines.  Double counting then gives the claim.  &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 4&#039;&#039;&#039; Given m A-points with &amp;lt;math&amp;gt;m \geq 5&amp;lt;/math&amp;gt;, there exists at least m-4 pairs (a,b) of such A-points with Hamming distance exactly two (i.e. b differs from a in exactly two places).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; It suffices to check this for m=5, since the case of larger m then follows by locating a pair, removing a point that contributes to that pair, and using the induction hypothesis.  Given 5 A-points, we may assume by the pigeonhole principle and symmetry that at least three of them have an odd number of 1s.  Suppose 11111 is one of the points, and that no pair has Hamming distance 2. All points with two 3s are excluded, so the only points allowed with an odd number of 1s are those with four 3s. But all those points differ from each other in two positions, so at most one of them is allowed.  &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Corollary 5&#039;&#039;&#039; &amp;lt;math&amp;gt;C \leq 79&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039;: Suppose for contradiction that C=80, then D=0 and &amp;lt;math&amp;gt;B \leq 40&amp;lt;/math&amp;gt;.  From Lemma 4 we also see that A cannot be 5 or more, leading to the contradiction.&lt;br /&gt;
&amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Define the &#039;&#039;&#039;score&#039;&#039;&#039; of a Moser set in &amp;lt;math&amp;gt;[3]^4&amp;lt;/math&amp;gt; to be the quantity &amp;lt;math&amp;gt;a + 5b/4 + 5c/3 + 5d/2 + 5e&amp;lt;/math&amp;gt;.  Double-counting (and Lemma 2) gives&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 5&#039;&#039;&#039;  The total score of all the ten side-slices of &amp;lt;math&amp;gt;{\mathcal A}&amp;lt;/math&amp;gt; is equal to &amp;lt;math&amp;gt;5|{\mathcal A}| = 5 \times 125&amp;lt;/math&amp;gt;.  In particular, there exists a pair of opposite side-slices whose scores add up to at least 125.&lt;br /&gt;
&lt;br /&gt;
By Lemma 5 and symmetry, we may assume that the 1**** and 3**** slices have score adding up to at least 125.  By Lemma 2, the 2**** slice has at most 41 points, which imply that the 1**** and 3**** have 41, 42, or 43 points.  From the [http://spreadsheets.google.com/ccc?key=p5T0SktZY9DuqNcxJ171Bbw&amp;amp;hl=en n=4 statistics] we know that all 41-point, 42-point, 43-point slices have score less than 62, with the following exceptions:&lt;br /&gt;
&lt;br /&gt;
# (2,16,24,0,0) [42 points, score: 62]&lt;br /&gt;
# (4,16,23,0,0) [43 points, score: 62 1/3]&lt;br /&gt;
# (4,15,24,0,0) [43 points, score: 62 3/4]&lt;br /&gt;
# (3,16,24,0,0) [43 points, score: 63]&lt;br /&gt;
&lt;br /&gt;
Thus the 1**** and 3**** slices must come from the above list.  Furthermore, if one of the slices is of type 1, then the other must be of type 4, and if one slice is of type 2, then the other must be of type 3 or 4.&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 6&#039;&#039;&#039; There exists one cut in which the side slices have total score strictly greater than 125 (i.e. they thus involve only Type 2, Type 3, and Type 4 slices, with at least one side slice not equal to Type 2, and the cut here is of the form 43+39+43).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; If not, then all cuts have side slices exactly equal to 125, which by the above table implies that one is Type 1 and one is Type 4, in particular all side slices have c=24.  But this forces C=80, contradicting Corollary 5. &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Adding up the corners we conclude&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Corollary 6&#039;&#039;&#039; &amp;lt;math&amp;gt;6 \leq A \leq 8&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 7&#039;&#039;&#039; &amp;lt;math&amp;gt;D=0&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; Firstly, from Lemma 6 we have a cut in which the two side slices are omitting at most one C-point between them (and have no D-point), which forces the middle slice to have at most one D-point; thus D is at most 1.&lt;br /&gt;
&lt;br /&gt;
Now suppose instead that D=1 (e.g. if 11222 was in the set); then there would be two choices of coordinates in which one of the side slices would have d=1 (e.g. 1**** and *1****). But the [http://spreadsheets.google.com/ccc?key=p5T0SktZY9DuqNcxJ171Bbw&amp;amp;hl=en n=4 statistics] show that such slices have a score of at most 59 7/12, so that the total score from those two coordinates is at most 63 + 59 7/12 = 122 7/12. On the other hand, the other three slices have a net score of at most 63+63 = 126. This averages out to at most 124.633... &amp;lt; 125, a contradiction.  &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Corollary 7&#039;&#039;&#039; Every middle slice has at most 40 points.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; From Lemma 7 we see that the middle slice must have c=0, but from the n=4 statistics this is not possible for any slice of size 41 or higher (alternatively, one can use the inequalities &amp;lt;math&amp;gt;4a+b \leq 64&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;b \leq 32&amp;lt;/math&amp;gt;). &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Each middle slice now has 39 or 40 points, with c=d=e=0, and so from the inequalities &amp;lt;math&amp;gt;4a+b \leq 64&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;b \leq 32&amp;lt;/math&amp;gt; must have statistics (8,32,0,0,0),(7,32,0,0,0), or (8,31,0,0,0).  In particular the &amp;quot;a&amp;quot; index of the middle slices is at most 8.  Summing over all middle slices we conclude&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 9&#039;&#039;&#039; B is at most 40.&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 10&#039;&#039;&#039; C is equal to 78 or 79.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; By Corollary 5, it suffices to show that &amp;lt;math&amp;gt;C \geq 78&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
As 125=43+39+43, we see that every center slice must have at least 39 points. By Lemma 2 and Lemma 7 the center slice has c=d=e=0, thus the center slice has a+b &amp;gt;= 39.  On the other hand, from the n=4 theory we have 4a+b &amp;lt;= 64, which forces b &amp;gt;= 31.&lt;br /&gt;
&lt;br /&gt;
By double counting, we see that 2C is equal to the sum of the b&#039;s of all the five center slices.  Thus C &amp;gt;= 5*31/2 = 77.5 and the claim follows.  &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
From Lemmas 9 and 10 we see that &amp;lt;math&amp;gt;B+C \leq 119&amp;lt;/math&amp;gt;, and thus &amp;lt;math&amp;gt;A \geq 6&amp;lt;/math&amp;gt;.  Also, if &amp;lt;math&amp;gt;A \geq 7&amp;lt;/math&amp;gt;, then by Lemma 4 we have at least three pairs of A points with Hamming distance 2.  At most two of these pairs eliminate the same C point, so we would have C=78 in that case.  &lt;br /&gt;
&lt;br /&gt;
Putting all the above facts together, we see that (A,B,C,D,E,F) must be one of the following triples:&lt;br /&gt;
&lt;br /&gt;
* (6,40,79,0,0,0)&lt;br /&gt;
* (7,40,78,0,0,0)&lt;br /&gt;
* (8,39,78,0,0,0)&lt;br /&gt;
&lt;br /&gt;
All three cases can be eliminated, giving &amp;lt;math&amp;gt;c&#039;_5=124&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== Elimination of (6,40,79,0,0,0) ===&lt;br /&gt;
&lt;br /&gt;
Look at the 6 A points.  From Lemma 4 we have at least two pairs (a,b), (c,d) of A-points that have Hamming separation 2.&lt;br /&gt;
&lt;br /&gt;
Now look at the midpoints of these two pairs; these midpoints are C-points cannot lie in the set.  But we have exactly one C-point missing from the set, thus the midpoints must be the same.  By symmetry, we may thus assume that the two pairs are (11111,11133) and (11113,11131).  Thus 11111,11133, 11113, 11131 are in the set, and so every C-point other than 11122 is in the set.  On the other hand, the B-points 11121, 11123, 11112, 11132 lie outside the set.&lt;br /&gt;
&lt;br /&gt;
At most one of 11312, 11332 lie in the set (since 11322 lies in the set).   Suppose that 11312 lies outside the set, then we have a pair (xy1z2, xy3z2) with x,y,z = 1,3 that is totally omitted from the set, namely (11112,11312).  On the other hand, every other pair of this form can have at most one point in the set, thus there are at most seven points in the set of the form (xyzw2) with x,y,z,w = 1,3.  Similarly there are at most 8 points of the form xyz2w, or of xy2zw, x2yzw, 2xyzw, leading to at most 39 B-points in all, contradiction.&lt;br /&gt;
&lt;br /&gt;
=== Elimination of (7,40,78,0,0,0) ===&lt;br /&gt;
&lt;br /&gt;
By Lemma 4, we have at least three pairs of A-points of distance two apart that lie in the set.&lt;br /&gt;
The midpoints of these pairs are C-points that do not lie in the set; but there are only two such C-points, thus two pairs must have the same midpoint, so we may assume as before that 111xy lies in the set for x,y=1,3, which implies that 1112* and 111*2 lie outside the set.&lt;br /&gt;
&lt;br /&gt;
Now consider the 160 lines between 2 B points and one C point (cf. Lemma 3).  The sum of all the points in each such line (counting multiplicity) is 4B+2C = 316.  On the other hand, every one of the 160 lines can have at most two points, and two of these lines (namely 1112*, 111*2) have no points.  Thus all the other lines must have exactly two points.  &lt;br /&gt;
&lt;br /&gt;
We know that the C-point 11122 is missing from the set; there is one other missing C-point.  Since 1112x, 111x2 lie outside the set, we conclude from the previous paragraph that 1132x, 113x2 and 1312x, 131x2 lie in the set.  Taking midpoints we conclude that 11322 and 13122 lie outside the set.  But this is now three C-points missing (together with 11122), a contradiction.&lt;br /&gt;
&lt;br /&gt;
=== Elimination of (8,39,78,0,0,0) ===&lt;br /&gt;
&lt;br /&gt;
By Lemma 4 we have at least four pairs of A-points of distance two apart that lie in the set. The midpoints of these pairs are C-points that do not lie in the set; but there are only two such C-points, thus two pairs (a,b), (c,d) must have the same midpoint p, and the other two pairs (a&#039;,b&#039;), (c&#039;,d&#039;) must also have the same midpoint p&#039;.  (Note that every C-point is the midpoint of at most two such pairs.)&lt;br /&gt;
&lt;br /&gt;
Now consider the 160 lines between 2 B points and one C point (cf. Lemma 3).  The sum of all the points in each such line (counting multiplicity) is 4B+2C = 312.  Every one of the 160 lines can have at most two points, and four of these (those in the plane of (a,b,c,d) or of (a&#039;,b&#039;,c&#039;,d&#039;) have no points.  Thus all other lines must have exactly two points.&lt;br /&gt;
&lt;br /&gt;
Without loss of generality we have (a,b)=(11111,11133), (c,d) = (11113,11131), thus p = 11122.  By permuting the first three indices, we may assume that p&#039; is not of the form x2y2z, x2yz2, xy22z, xy2z2.  Then 1112x lies outside the set and 1122x lies in the set, so by the above paragraph 1132x lies in the set; similarly for 113x2, 1312x, 131x2.  This implies that 13122, 11322 lie outside the set, but this (together with 11122) shows that at least three C-points are missing, a contradiction.&lt;br /&gt;
&lt;br /&gt;
== General n ==&lt;br /&gt;
&lt;br /&gt;
General solution for &amp;lt;math&amp;gt;c&#039;_N&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* q 2s, all points from A(N-q,1)&lt;br /&gt;
* q-1 2s, points from A(N-q+1,2)&lt;br /&gt;
* q-2 2s, points from A(N-q+2,3)&lt;br /&gt;
* etc.&lt;br /&gt;
&lt;br /&gt;
where A(m,d) is a subset of &amp;lt;math&amp;gt;[1,3]^m&amp;lt;/math&amp;gt; for which any two points differ from each other in at least d places.&lt;br /&gt;
&lt;br /&gt;
Mathworld’s entry on error-correcting codes suggests it might be NP-complete to find the size of A(m,d) in general.&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;math&amp;gt;|A(m,1)| = 2^m&amp;lt;/math&amp;gt; because it includes all points in &amp;lt;math&amp;gt;[1,3]^m&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;|A(m,2)| = 2^{m-1}&amp;lt;/math&amp;gt; because it can include all points in &amp;lt;math&amp;gt;[1,3]^m&amp;lt;/math&amp;gt; with an odd number of 1s&lt;br /&gt;
&lt;br /&gt;
The integer programming routine from Maple 12 was used to obtain upper bounds for &amp;lt;math&amp;gt;c&#039;_6&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;c&#039;_7&amp;lt;/math&amp;gt;.  A large number of linear inequalities, described above in sections (n=3) and (n=4), were combined.  The details are in [[Maple calculations]].  The results were that &amp;lt;math&amp;gt;c&#039;_6 \le 361&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;c&#039;_7 \le 1071&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
A [[genetic algorithm]] has provided the following examples:&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;math&amp;gt;c&#039;_6 \geq 353&amp;lt;/math&amp;gt; (26 examples; [http://twofoldgaze.wordpress.com/2009/03/10/353-element-solution/ here is one])&lt;br /&gt;
* &amp;lt;math&amp;gt;c&#039;_7 \geq 988&amp;lt;/math&amp;gt; [http://twofoldgaze.wordpress.com/2009/03/10/978-element-solution/ Here is the example]&lt;br /&gt;
&lt;br /&gt;
== Larger sides (k&amp;gt;3) ==&lt;br /&gt;
&lt;br /&gt;
The following set gives a lower bound for Moser’s cube &amp;lt;math&amp;gt;[4]^n&amp;lt;/math&amp;gt; (values 1,2,3,4):  Pick all points where q entries are 2 or 3; and also pick those where q-1 entries are 2 or 3 and an odd number of entries are 1.  This is maximized when q is near n/2, giving a lower bound of&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\binom{n}{n/2} 2^n + \binom{n}{n/2-1} 2^{n-1}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
which is comparable to &amp;lt;math&amp;gt;4^n/\sqrt{n}&amp;lt;/math&amp;gt; by [[Stirling&#039;s formula]].&lt;br /&gt;
&lt;br /&gt;
For k=5 (values 1,2,3,4,5) If A, B, C, D, and E denote the numbers of 1-s, 2-s, 3-s, 4-s and 5-s then the first three points of a geometric line form a 3-term arithmetic progression in A+E+2(B+D)+3C. So, for k=5 we have a similar lower bound for the Moser’s problem as for DHJ k=3, i.e. &amp;lt;math&amp;gt;5^{n - O(\sqrt{\log n})}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
The k=6 version of Moser implies DHJ(3).  Indeed, any k=3 combinatorial line-free set can be &amp;quot;doubled up&amp;quot; into a k=6 geometric line-free set of the same density by pulling back the set from the map &amp;lt;math&amp;gt;\phi: [6]^n \to [3]^n&amp;lt;/math&amp;gt; that maps 1, 2, 3, 4, 5, 6 to 1, 2, 3, 3, 2, 1 respectively; note that this map sends k=6 geometric lines to k=3 combinatorial lines.&lt;/div&gt;</summary>
		<author><name>121.220.134.232</name></author>
	</entry>
	<entry>
		<id>https://michaelnielsen.org/polymath/index.php?title=Moser%27s_cube_problem&amp;diff=1035</id>
		<title>Moser&#039;s cube problem</title>
		<link rel="alternate" type="text/html" href="https://michaelnielsen.org/polymath/index.php?title=Moser%27s_cube_problem&amp;diff=1035"/>
		<updated>2009-03-21T14:06:11Z</updated>

		<summary type="html">&lt;p&gt;121.220.134.232: /* Elimination of (7,40,78,0,0,0) */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Define a &#039;&#039;Moser set&#039;&#039; to be a subset of &amp;lt;math&amp;gt;[3]^n&amp;lt;/math&amp;gt; which does not contain any [[geometric line]], and let &amp;lt;math&amp;gt;c&#039;_n&amp;lt;/math&amp;gt; denote the size of the largest Moser set in &amp;lt;math&amp;gt;[3]^n&amp;lt;/math&amp;gt;.  The first few values are (see [http://www.research.att.com/~njas/sequences/A003142 OEIS A003142]):&lt;br /&gt;
&lt;br /&gt;
: &amp;lt;math&amp;gt;c&#039;_0 = 1; c&#039;_1 = 2; c&#039;_2 = 6; c&#039;_3 = 16; c&#039;_4 = 43; c&#039;_5 = 124.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Beyond this point, we only have some upper and lower bounds, in particular &amp;lt;math&amp;gt;353 \leq c&#039;_6 \leq 361&amp;lt;/math&amp;gt;; see [http://spreadsheets.google.com/ccc?key=p5T0SktZY9DsU-uZ1tK7VEg this spreadsheet] for the latest bounds.&lt;br /&gt;
&lt;br /&gt;
The best known asymptotic lower bound for &amp;lt;math&amp;gt;c&#039;_n&amp;lt;/math&amp;gt; is&lt;br /&gt;
&lt;br /&gt;
: &amp;lt;math&amp;gt;c&#039;_n \gg 3^n/\sqrt{n}&amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
formed by fixing the number of 2s to a single value near n/3.  Compare this to the DHJ(2) or Sperner limit of &amp;lt;math&amp;gt;2^n/\sqrt{n}&amp;lt;/math&amp;gt;.  Is it possible to do any better?  Note that we have a [[Upper_and_lower_bounds#Asymptotics|significantly better bound]] for the DHJ(3) &amp;lt;math&amp;gt;c_n&amp;lt;/math&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
: &amp;lt;math&amp;gt;c_n \geq 3^{n-O(\sqrt{\log n})}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
A more precise lower bound is&lt;br /&gt;
&lt;br /&gt;
: &amp;lt;math&amp;gt;c&#039;_n \geq \binom{n+1}{q} 2^{n-q}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where q is the nearest integer to &amp;lt;math&amp;gt;n/3&amp;lt;/math&amp;gt;, formed by taking all strings with q 2s, together with all strings with q-1 2s and an odd number of 1s.  This for instance gives the lower bound &amp;lt;math&amp;gt;c&#039;_5 \geq 120&amp;lt;/math&amp;gt;, which compares with the upper bound &amp;lt;math&amp;gt;c&#039;_5 \leq 3 c&#039;_4 = 129&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Using [[DHJ(3)]], we have the upper bound&lt;br /&gt;
&lt;br /&gt;
: &amp;lt;math&amp;gt;c&#039;_n = o(3^n)&amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
but no effective decay rate is known. It would be good to have a combinatorial proof of this fact (which is weaker than [[DHJ(3)]], but implies [[Roth&#039;s theorem]]).&lt;br /&gt;
&lt;br /&gt;
== Notation ==&lt;br /&gt;
&lt;br /&gt;
Given a Moser set A in &amp;lt;math&amp;gt;[3]^n&amp;lt;/math&amp;gt;, we let a be the number of points in A with no 2s, b be the number of points in A with one 2, c the number of points with two 2s, etc.  We call (a,b,c,...) the &#039;&#039;statistics&#039;&#039; of A.  Given a slice S of &amp;lt;math&amp;gt;[3]^n&amp;lt;/math&amp;gt;, we let a(S), b(S), etc. denote the statistics of that slice (dropping the fixed coordinates).  Thus for instance if A = {11, 12, 22, 32}, then (a,b,c) = (1,2,1), and (a(1*),b(1*)) = (1,1).&lt;br /&gt;
&lt;br /&gt;
We call a statistic (a,b,c,...) &#039;&#039;attainable&#039;&#039; if it is attained by a Moser set.  We say that an attainable statistic is &#039;&#039;Pareto-optimal&#039;&#039; if it cannot be pointwise dominated by any other attainable statistic (a&#039;,b&#039;,c&#039;,...) (thus &amp;lt;math&amp;gt;a&#039; \geq a&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;b&#039; \geq b&amp;lt;/math&amp;gt;, etc.)  We say that it is &#039;&#039;extremal&#039;&#039; if it is not a convex combination of any other attainable statistic (this is a stronger property than Pareto-optimal).  For the purposes of maximising linear scores of attainable statistics, it suffices to check extremal statistics.&lt;br /&gt;
&lt;br /&gt;
We let &amp;lt;math&amp;gt;(\alpha_0,\alpha_1,\ldots)&amp;lt;/math&amp;gt; be the normalized version of &amp;lt;math&amp;gt;(a,b,\ldots)&amp;lt;/math&amp;gt;, in which one divides the number of points of a certain type in the set by the total number of points in the set.  Thus for instance &amp;lt;math&amp;gt;\alpha_0 = a/2^n, \alpha_1 = b/(n 2^{n-1}), \alpha_3 = c/(\binom{n}{2} 2^{n-2})&amp;lt;/math&amp;gt;, etc., and the &amp;lt;math&amp;gt;\alpha_i&amp;lt;/math&amp;gt; range between 0 and 1.  Averaging arguments show that any linear inequality obeyed by the &amp;lt;math&amp;gt;\alpha_i&amp;lt;/math&amp;gt; at one dimension is automatically inherited by higher dimensions, as are shifted versions of this inequality (in which &amp;lt;math&amp;gt;\alpha_i&amp;lt;/math&amp;gt; is replaced by &amp;lt;math&amp;gt;\alpha_{i+1}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
The idea in &#039;c-statistics&#039; is to identify 1s and 3s but leave the 2s intact. Let’s use x to denote letters that are either 1 or 3, then the 81 points get split up into 16 groups: 2222 (1 point), 222x, 22×2, 2×22, x222 (two points each), 22xx, 2×2x, x22x, 2xx2, x2×2, xx22 (four points each), 2xxx, x2xx, xx2x, xxx2 (eight points each), xxxx (sixteen points). Let c(w) denote the number of points inside a group w, e.g. c(xx22) is the number of points of the form xx22 inside the set, and is thus an integer from 0 to 4.&lt;br /&gt;
&lt;br /&gt;
== n=0 ==&lt;br /&gt;
&lt;br /&gt;
We trivially have &amp;lt;math&amp;gt;c&#039;_0=1.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== n=1 ==&lt;br /&gt;
&lt;br /&gt;
We trivially have &amp;lt;math&amp;gt;c&#039;_1=2.&amp;lt;/math&amp;gt;  The Pareto-optimal values of the statistics (a,b) are (1,1) and (2,0); these are also the extremals.  We thus have the inequality &amp;lt;math&amp;gt;a+b \leq 2&amp;lt;/math&amp;gt;, or in normalized notation&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;2\alpha_0 + \alpha_1 \leq 2&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== n=2 ==&lt;br /&gt;
&lt;br /&gt;
We have &amp;lt;math&amp;gt;c&#039;_2 = 6&amp;lt;/math&amp;gt;; the upper bound follows since &amp;lt;math&amp;gt;c&#039;_2 \leq 3 c&#039;_1&amp;lt;/math&amp;gt;, and the lower bound follows by deleting one of the two diagonals from &amp;lt;math&amp;gt;[3]^2&amp;lt;/math&amp;gt; (these are the only extremisers).&lt;br /&gt;
&lt;br /&gt;
The extremiser has statistics (a,b,c) = (2,4,0), which are of course Pareto-optimal.  If c=1 then we must have a, b at most 2 (look at the lines through 22).  This is attainable (e.g. {11, 12, 22, 23, 31}, and so (2,2,1) is another Pareto-optimal statistic.  If a=4, then b and c must be 0, so we get another Pareto-optimal statistic (4,0,0) (attainable by {11, 13, 31, 33} of course).  If a=3, then c=0 and b is at most 2, giving another Pareto-optimal statistic (3,2,0); but this is a convex combination of (4,0,0) and (2,4,0) and is thus not extremal.  Thus the complete set of extremal statistics are&lt;br /&gt;
&lt;br /&gt;
(4,0,0), (2,4,0), (2,2,1).&lt;br /&gt;
&lt;br /&gt;
The sharp linear inequalities obeyed by a,b,c (other than the trivial ones &amp;lt;math&amp;gt;a,b,c \geq 0&amp;lt;/math&amp;gt;) are then&lt;br /&gt;
&lt;br /&gt;
*&amp;lt;math&amp;gt;2a+b+2c \leq 8&amp;lt;/math&amp;gt;&lt;br /&gt;
*&amp;lt;math&amp;gt;b+2c \leq 4&amp;lt;/math&amp;gt;&lt;br /&gt;
*&amp;lt;math&amp;gt;a+2c \leq 4&amp;lt;/math&amp;gt;&lt;br /&gt;
*&amp;lt;math&amp;gt;c \leq 1&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
In normalized notation, we have&lt;br /&gt;
*&amp;lt;math&amp;gt;4\alpha_0 + 2\alpha_1 + \alpha_2 \leq 4&amp;lt;/math&amp;gt;&lt;br /&gt;
*&amp;lt;math&amp;gt;2\alpha_1 + \alpha_2 \leq 2&amp;lt;/math&amp;gt;&lt;br /&gt;
*&amp;lt;math&amp;gt;2\alpha_0 + \alpha_2 \leq 2&amp;lt;/math&amp;gt;&lt;br /&gt;
*&amp;lt;math&amp;gt;\alpha_2 \leq 1&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
The Pareto optimizers for c-statistics are (c22,c2x,cx2,cxx) = (1112),(0222),(0004), which are covered by the linear inequalities &lt;br /&gt;
*&amp;lt;math&amp;gt;c22+c2x+cxx \le 4&amp;lt;/math&amp;gt;, &lt;br /&gt;
*&amp;lt;math&amp;gt;c22+cx2+cxx \le 4&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== n=3 ==&lt;br /&gt;
&lt;br /&gt;
We have &amp;lt;math&amp;gt;c&#039;_3 = 16&amp;lt;/math&amp;gt;.  The lower bound can be seen for instance by taking all the strings with one 2, and half the strings with no 2 (e.g. the strings with an odd number of 1s).  The upper bound can be deduced from the corresponding [[upper and lower bounds]] for &amp;lt;math&amp;gt;c_3 = 18&amp;lt;/math&amp;gt;; the 17-point and 18-point line-free sets each contain a geometric line.&lt;br /&gt;
&lt;br /&gt;
If a Moser set in &amp;lt;math&amp;gt;[3]^3&amp;lt;/math&amp;gt; contains 222, then it can have at most 14 points, since the remaining 26 points in the cube split into 13 antipodal pairs, and at most one of each pair can lie in the set.  By exhausting over the &amp;lt;math&amp;gt;2^{13} = 8192&amp;lt;/math&amp;gt; possibilities, it can be shown that it is impossible for a 14-point set to exist; any Moser set containing 222 must in fact omit at least one antipodal pair completely and thus have only 13 points.  (A human proof of this fact can be [http://www.ma.rhul.ac.uk/~elsholtz/WWW/blog/mosertablogv01.pdf found here].)&lt;br /&gt;
&lt;br /&gt;
The Pareto-optimal statistics are&lt;br /&gt;
&lt;br /&gt;
(3,6,3,1),(4,4,3,1),(4,6,2,1),(2,6,6,0),(3,6,5,0),(4,4,5,0),(3,7,4,0),(4,6,4,0), (3,9,3,0),(4,7,3,0),(5,4,3,0),(4,9,2,0),(5,6,2,0),(6,3,2,0),(3,10,1,0),(5,7,1,0), (6,4,1,0),(4,12,0,0),(5,9,0,0),(6,6,0,0),(7,3,0,0),(8,0,0,0).&lt;br /&gt;
&lt;br /&gt;
These were found from a search of the &amp;lt;math&amp;gt;2^{27}&amp;lt;/math&amp;gt; subsets of the cube.&lt;br /&gt;
A spreadsheet containing these statistics can be [http://spreadsheets.google.com/ccc?key=p5T0SktZY9DuKZ2DyzO9EOg&amp;amp;hl=en# found here].&lt;br /&gt;
&lt;br /&gt;
The extremal statistics are&lt;br /&gt;
&lt;br /&gt;
(3,6,3,1),(4,4,3,1),(4,6,2,1),(2,6,6,0),(4,4,5,0),(4,6,4,0),(4,12,0,0),(8,0,0,0)&lt;br /&gt;
&lt;br /&gt;
The sharp linear bounds are :&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;math&amp;gt;2a+b+2c+4d \leq 22&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;3a+2b+3c+6d \leq 36&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;7a+2b+4c+8d \leq 56&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;6a+2b+3c+6d \leq 48&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;b+c+3d \leq 12&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;a+2c+4d \leq 14&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;5a+4c+8d \leq 40&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;a+4d \leq 8&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;b+6d \leq 12&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;c+3d \leq 6&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;d \leq 1&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In normalized notation,&lt;br /&gt;
* &amp;lt;math&amp;gt;8\alpha_0+ 6\alpha_1 + 6\alpha_2 + 2\alpha_3 \leq 11&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;4\alpha_0+4\alpha_1+3\alpha_2+\alpha_3 \leq 6&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;7\alpha_0+3\alpha_1+3\alpha_2+\alpha_3 \leq 7&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;8\alpha_0+3\alpha_1+3\alpha_2+\alpha_3 \leq 8&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;4\alpha_1+2\alpha_2+\alpha_3 \leq 4&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;4\alpha_0+6\alpha_2+2\alpha_3 \leq 7&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;5\alpha_0+3\alpha_2+\alpha_3 \leq 5&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;2\alpha_0+\alpha_3 \leq 2&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;2\alpha_1+\alpha_3 \leq 2&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;2\alpha_2+\alpha_3 \leq 2&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;\alpha_3 \leq 1&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The c-statistics can also be found from an exhaustive search of Moser sets.  The resulting Pareto sets and linear inequalities can be found on Sheet 8 of [http://spreadsheets.google.com/ccc?key=p5T0SktZY9DuKZ2DyzO9EOg&amp;amp;hl=en# this spreadsheet]&lt;br /&gt;
&lt;br /&gt;
== n=4 ==&lt;br /&gt;
&lt;br /&gt;
A [http://abel.math.umu.se/~klasm/extremal-moser-n=5-t=3 computer search] has obtained all extremisers to &amp;lt;math&amp;gt;c&#039;_4=43&amp;lt;/math&amp;gt;.  The 42-point solutions can be found [http://abel.math.umu.se/~klasm/moser-n=4-t=3-p=42.gz here].&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof that &amp;lt;math&amp;gt;c&#039;_4 \leq 43&amp;lt;/math&amp;gt;&#039;&#039;&#039;: &lt;br /&gt;
When e=1 (i.e. the 4D set contains 2222) then we have at most 41 points (in fact at most 39) by counting antipodal points, so assume e=0.&lt;br /&gt;
&lt;br /&gt;
Define the score of a 3D slice to be a/4+b/3+c/2+d.  Observe from double counting that the size of a 4D set is the sum of the scores of its eight side slices.&lt;br /&gt;
&lt;br /&gt;
But by [http://spreadsheets.google.com/ccc?key=p5T0SktZY9DuKZ2DyzO9EOg&amp;amp;hl=en looking at the extremals] we see that the largest score is 44/8, attained at only one point, namely when (a,b,c,d) = (2,6,6,0).  So the only way one can have a 44-point set is if all side slices are (2,6,6,0), or equivalently if the whole set has statistics (a,b,c,d,e) = (4,16,24,0,0).  But then we have all the points with two 2s, which means that the four &amp;quot;a&amp;quot; points cannot be separated by Hamming distance 2.  We conclude that we must have an antipodal pair among the &amp;quot;a&amp;quot; points with an odd number of 1s, and an antipodal pair among the &amp;quot;a&amp;quot; points with an even number of 1s.    By the symmetries of the cube, we may take the a-set to then be 1111, 3333, 1113, 3331.  But then the &amp;quot;b&amp;quot; set must exclude both 1112 and 3332, and so can have at most three points in the eight-point set xyz2 (with x,y,z=1,3) rather than four (to get four points one must alternate in a checkerboard pattern).  Adding this to the at most four points of the form xy2z, x2yz, 2xyz we see that b is at most 15, a contradiction. &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Given a subset of &amp;lt;math&amp;gt;[3]^4&amp;lt;/math&amp;gt;, let a be the number of points with no 2s, b be the number of points with 1 2, and so forth.  The quintuple (a,b,c,d,e) thus lies between (0,0,0,0,0) and (16,32,24,8,1).&lt;br /&gt;
&lt;br /&gt;
The 43-point solutions have distributions (a,b,c,d,e) as follows:&lt;br /&gt;
&lt;br /&gt;
* (5,20,18,0,0) [16 solutions]&lt;br /&gt;
* (4,16,23,0,0) [768 solutions]&lt;br /&gt;
* (3,16,24,0,0) [512 solutions]&lt;br /&gt;
* (4,15,24,0,0) [256 solutions]&lt;br /&gt;
&lt;br /&gt;
The 42-point solutions are [http://abel.math.umu.se/~klasm/Moser-42-stat.pdf distributed as follows]:&lt;br /&gt;
&lt;br /&gt;
* (6,24,12,0,0) [[http://abel.math.umu.se/~klasm/moser-n=4-42-12 8 solutions]] &lt;br /&gt;
* (5,20,17,0,0) [576 solutions]&lt;br /&gt;
* (5,19,18,0,0) [384 solutions]&lt;br /&gt;
* (6,16,18,2,0) [[http://abel.math.umu.se/~klasm/moser-n=4-42-e=2 192 solutions]]&lt;br /&gt;
* (4,20,18,0,0) [272 solutions]&lt;br /&gt;
* (5,17,20,0,0) [192 solutions]&lt;br /&gt;
* (5,16,21,0,0) [3584 solutions]&lt;br /&gt;
* (4,17,21,0,0) [768 solutions]&lt;br /&gt;
* (4,16,22,0,0) [26880 solutions]&lt;br /&gt;
* (5,15,22,0,0) [1536 solutions]&lt;br /&gt;
* (4,15,23,0,0) [22272 solutions]&lt;br /&gt;
* (3,16,23,0,0) [15744 solutions]&lt;br /&gt;
* (4,14,24,0,0) [4224 solutions]&lt;br /&gt;
* (3,15,24,0,0) [8704 solutions]&lt;br /&gt;
* (2,16,24,0,0) [896 solutions]&lt;br /&gt;
&lt;br /&gt;
Note how c is usually quite large, and d quite low.&lt;br /&gt;
&lt;br /&gt;
One of the (6,24,12,0,0) solutions is &amp;lt;math&amp;gt;\Gamma_{220}+\Gamma_{202}+\Gamma_{022}+\Gamma_{112}+\Gamma_{211}&amp;lt;/math&amp;gt; (i.e. the set of points containing exactly two 1s, and/or exactly two 3s).  The other seven are reflections of this set.&lt;br /&gt;
&lt;br /&gt;
There are 2,765,200 41-point solutions, [http://abel.math.umu.se/~klasm/solutions-4-t=3-41-moser.gz listed here].  The statistics for such points can be [http://abel.math.umu.se/~klasm/Moser-41-stat.pdf found here].  Noteworthy features of the statistics:&lt;br /&gt;
&lt;br /&gt;
* d is at most 3 (and, except for [http://abel.math.umu.se/~klasm/moser-n=3-t=3-41-d=3.gz 256 exceptional solutions] of the shape (5,15,18,3,0), have d at most 2; here are the [http://abel.math.umu.se/~klasm/moser-n=3-t=3-41-d=2.gz d=2 solutions] and [http://abel.math.umu.se/~klasm/moser-n=3-t=3-41-d=1.gz d=1 solutions])&lt;br /&gt;
* c is at least 6 (and, except for [http://abel.math.umu.se/~klasm/moser-n=3-t=3-41-c=6.gz 16 exceptional solutions] of the shape (7,28,6,0,0), have c at least 11).&lt;br /&gt;
&lt;br /&gt;
Statistics for the 41-point, 42-point, and 43-point solutions can be found [http://spreadsheets.google.com/ccc?key=p5T0SktZY9DuqNcxJ171Bbw&amp;amp;hl=en here].&lt;br /&gt;
&lt;br /&gt;
If a Moser set in &amp;lt;math&amp;gt;[3]^4&amp;lt;/math&amp;gt; contains 2222, then by the n=3 theory, any middle slice (i.e. 2***, *2**, **2*, or ***2) is missing at least one antipodal pair.  But each antipodal pair belongs to at most three middle slices, thus two of the 40 antipodal pairs must be completely missing.  As a consequence, any Moser set containing 2222 can have at most 39 points.&lt;br /&gt;
(A more refined analysis can be found at [http://www.ma.rhul.ac.uk/~elsholtz/WWW/blog/mosertablogv01.pdf found here].)&lt;br /&gt;
&lt;br /&gt;
We have the following inequalities connecting a,b,c,d,e:&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;math&amp;gt;4a+b \leq 64&amp;lt;/math&amp;gt;:  There are 32 lines connecting two &amp;quot;a&amp;quot; points with a &amp;quot;b&amp;quot; point; each &amp;quot;a&amp;quot; point belongs to four of these lines, and each &amp;quot;b&amp;quot; point belongs to one.  But each such line can have at most two points in the set, and the claim follows.&lt;br /&gt;
* This can be refined to &amp;lt;math&amp;gt;4a+b+\frac{2}{3} c \leq 64&amp;lt;/math&amp;gt;: There are 24 planes connecting four &amp;quot;a&amp;quot; points, four &amp;quot;b&amp;quot; points, and one &amp;quot;c&amp;quot; point; each &amp;quot;a&amp;quot; point belongs to six of these, each &amp;quot;b&amp;quot; point belongs to three, and each &amp;quot;c&amp;quot; point belongs to one.  For each of these planes, we have &amp;lt;math&amp;gt;2a + b + 2c \leq 8&amp;lt;/math&amp;gt; from the n=2 theory, and the claim follows.&lt;br /&gt;
* &amp;lt;math&amp;gt;6a+2c \leq 96&amp;lt;/math&amp;gt;:  There are 96 lines connecting two &amp;quot;a&amp;quot; points with a &amp;quot;c&amp;quot; point; each &amp;quot;a&amp;quot; point belongs to six of these lines, and each &amp;quot;c&amp;quot; point belongs to two.  But each such line can have at most two points in the set, and the claim follows.&lt;br /&gt;
* &amp;lt;math&amp;gt;3b+2c \leq 96&amp;lt;/math&amp;gt;:  There are 48 lines connecting two &amp;quot;b&amp;quot; points to a &amp;quot;c&amp;quot; point; each &amp;quot;b&amp;quot; point belongs to three of these points, and each &amp;quot;c&amp;quot; point belongs to two.  But each such line can have at most two points in the set, and the claim follows.&lt;br /&gt;
&lt;br /&gt;
The inequalities for n=3 imply inequalities for n=4.  Indeed, there are eight side slices of &amp;lt;math&amp;gt;[3]^4&amp;lt;/math&amp;gt;; each &amp;quot;a&amp;quot; point belongs to four of these, each &amp;quot;b&amp;quot; point belongs to three, each &amp;quot;c&amp;quot; point belongs to two, and each &amp;quot;d&amp;quot; point belongs to one.  Thus, any inequality of the form&lt;br /&gt;
:&amp;lt;math&amp;gt; \alpha a + \beta b + \gamma c + \delta d \leq M&amp;lt;/math&amp;gt;&lt;br /&gt;
in three dimensions implies the inequality&lt;br /&gt;
:&amp;lt;math&amp;gt; 4 \alpha a + 3 \beta b + 2 \gamma c + \delta d \leq 8M&amp;lt;/math&amp;gt;&lt;br /&gt;
in four dimensions.  Thus we have&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;math&amp;gt;8a+3b+4c+4d \leq 176&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;2a+b+c+d \leq 48&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;14a+3b+4c+4d \leq 244&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;4a+b+c+d \leq 64&amp;lt;/math&amp;gt; &lt;br /&gt;
* &amp;lt;math&amp;gt;3b+2c+3d \leq 96&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;a+c+d \leq 28&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;5a+2c+2d \leq 80&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;a+d \leq 16&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;b+2d \leq 32&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;2c+3d \leq 48&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Cubes also sit diagonally in the 4-dimensional cube.  They may have coordinates xxyz, where xx runs over (11,22,33) or (13,22,31), while y and z run over (1,2,3).  These cubes have a different distribution of 2s than the ordinary slices: (a,b,c,d,e) = (8,8,6,4,1) instead of (8,12,6,1,0) for the side slices and (0,8,12,6,1) for the middle slices.  So a different set of inequalities arise.  It is possible to run through the same procedure as described above for n=3, and the inequalities that arise are &amp;lt;math&amp;gt;2a+b+2c+2d+4e \le 24&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;4a+b+2c+2d+4e \le 32&amp;lt;/math&amp;gt; within the 3D cube, which when averaged becomes &amp;lt;math&amp;gt;4a+b+2c+4d+16e \le 96&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;8a+b+2c+4d+16e \le 128&amp;lt;/math&amp;gt; for the 4D cube.  A spreadsheet containing these statistics can be [http://spreadsheets.google.com/ccc?key=p5T0SktZY9DuKZ2DyzO9EOg&amp;amp;hl=en# found here] on sheet 2.  Other sheets of this spreadsheet contain results for a 3D cube sitting diagonally in a 5D, 6D or 7D cube.  Notice the similarity of the equations that arise for the xxxyz, xxyyz and xxxxyz diagonals.  Also notice the xxxxyyz diagonals have the same Pareto sets and linear inequalities as the cube&#039;s c-statistics&lt;br /&gt;
&lt;br /&gt;
== n=5 ==&lt;br /&gt;
&lt;br /&gt;
Let (A,B,C,D,E,F) be the statistics of a five-dimensional Moser set, thus (A,B,C,D,E,F) varies between (0,0,0,0,0,0) and (32,80,80,40,10,1).&lt;br /&gt;
&lt;br /&gt;
There are several Moser sets with the statistics (4,40,80,0,0,0), which thus have 124 points.  Indeed, one can take&lt;br /&gt;
&lt;br /&gt;
* all points with two 2s;&lt;br /&gt;
* all points with one 2 and an even number of 1s; and&lt;br /&gt;
* (13111),(13113),(31311),(13333). Any two of these four points differ in three places, except for one pair of points that differ in one place.&lt;br /&gt;
&lt;br /&gt;
For the rest of this section, we assume that the Moser set &amp;lt;math&amp;gt;{\mathcal A}&amp;lt;/math&amp;gt; is a 125-point set.&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 1&#039;&#039;&#039;: F=0.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; If F is non-zero, then the Moser set contains 22222, then each of the 121 antipodal pairs can have at most one point in the set, leading to only 122 points. &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 2&#039;&#039;&#039;: Every middle slice of &amp;lt;math&amp;gt;{\mathcal A}&amp;lt;/math&amp;gt; has at most 41 points.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039;  Without loss of generality we may consider the 2**** slice.  There are two cases, depending on the value of c(2****).&lt;br /&gt;
&lt;br /&gt;
Suppose first that c is at least 17; thus there are at least 17 points of the form 222xy, 22x2y, 22xy2, 2x2y2, 2xy22, or 2x22y, where the x, y denote 1 or 3.  This gives 34 &amp;quot;xy&amp;quot; wildcards in all in four coordinate slots; by the pigeonhole principle one of the slots sees at least 9 of the wildcards.  By symmetry, we may assume that the second coordinate slot sees at least 9 of these wildcards, thus there are at least 9 points of the form 2x22y, 2x2y2, 2xy22.  The x=1, x=3 cases can absorb at most six of these, thus each of these cases must absorb at least three points, with at least one absorbing at least five.  Let&#039;s say that it&#039;s the x=3 case that absorbs 5; thus &amp;lt;math&amp;gt;d(*1***) \geq 3&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;d(*3***) \geq 5&amp;lt;/math&amp;gt;.  From the n=4 theory this means that the *1*** slice has at most 41 points, and the *3*** slice has at most 40.  Meanwhile, the middle slice has at most 43, leading to 41+41+42=124 points in all.&lt;br /&gt;
&lt;br /&gt;
Now suppose c is less than 17; then by the n=4 theory the middle slice is one of the eight (6,24,12,0,0) sets.  Without loss of generality we may take it to be &amp;lt;math&amp;gt;\Gamma_{220}+\Gamma_{202}+\Gamma_{022}+\Gamma_{112}+\Gamma_{211}&amp;lt;/math&amp;gt;; in particular, the middle slice contains the points 21122 21212 21221 23322 23232 23223.  In particular, the *1*** and *3*** slices have a &amp;quot;d&amp;quot; value of at least three, and so have at most 41 points.  If the *2*** slice has at most 42 points, then we are at 41+42+41=124 points as needed, but if we have 43 or more, then we are back in the first case (as &amp;lt;math&amp;gt;c(*2***) \geq 17&amp;lt;/math&amp;gt;) after permuting the indices.&lt;br /&gt;
&amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Since 125=41+41+43, we thus have&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Corollary 1&#039;&#039;&#039;: Every side slice of &amp;lt;math&amp;gt;{\mathcal A}&amp;lt;/math&amp;gt; has at least 41 points.  If one side slice does have 41 points, then the other has 43.&lt;br /&gt;
&lt;br /&gt;
Combining this with the n=4 statistics, we conclude&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Corollary 2&#039;&#039;&#039;: Every side slice of &amp;lt;math&amp;gt;{\mathcal A}&amp;lt;/math&amp;gt; has e=0, and &amp;lt;math&amp;gt;d \leq 3&amp;lt;/math&amp;gt;.  Given two opposite side slices, e.g. 1**** and 3****, we have &amp;lt;math&amp;gt;d(1****)+d(3****) \leq 4&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Corollary 3&#039;&#039;&#039;: E=0.&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Corollary 4&#039;&#039;&#039;: Any middle slice has a &amp;quot;c&amp;quot; value of at most 8.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; Let&#039;s work with the 2**** slice.  By Corollary 2, there are at most four contributions to c(2****) of the form 21*** or 23***, and similarly for the other three positions.  Double counting then gives the claim. &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 3&#039;&#039;&#039;: &amp;lt;math&amp;gt;2B+C \leq 160&amp;lt;/math&amp;gt;.   &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039;: There are 160 lines connecting one &amp;quot;C&amp;quot; point to two &amp;quot;B&amp;quot; points (e.g. 11112, 11122, 11132); each &amp;quot;C&amp;quot; point lies in two of these, and each &amp;quot;B&amp;quot; point lies on four.  A Moser set can have at most two points out of each of these lines.  Double counting then gives the claim.  &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 4&#039;&#039;&#039; Given m A-points with &amp;lt;math&amp;gt;m \geq 5&amp;lt;/math&amp;gt;, there exists at least m-4 pairs (a,b) of such A-points with Hamming distance exactly two (i.e. b differs from a in exactly two places).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; It suffices to check this for m=5, since the case of larger m then follows by locating a pair, removing a point that contributes to that pair, and using the induction hypothesis.  Given 5 A-points, we may assume by the pigeonhole principle and symmetry that at least three of them have an odd number of 1s.  Suppose 11111 is one of the points, and that no pair has Hamming distance 2. All points with two 3s are excluded, so the only points allowed with an odd number of 1s are those with four 3s. But all those points differ from each other in two positions, so at most one of them is allowed.  &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Corollary 5&#039;&#039;&#039; &amp;lt;math&amp;gt;C \leq 79&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039;: Suppose for contradiction that C=80, then D=0 and &amp;lt;math&amp;gt;B \leq 40&amp;lt;/math&amp;gt;.  From Lemma 4 we also see that A cannot be 5 or more, leading to the contradiction.&lt;br /&gt;
&amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Define the &#039;&#039;&#039;score&#039;&#039;&#039; of a Moser set in &amp;lt;math&amp;gt;[3]^4&amp;lt;/math&amp;gt; to be the quantity &amp;lt;math&amp;gt;a + 5b/4 + 5c/3 + 5d/2 + 5e&amp;lt;/math&amp;gt;.  Double-counting (and Lemma 2) gives&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 5&#039;&#039;&#039;  The total score of all the ten side-slices of &amp;lt;math&amp;gt;{\mathcal A}&amp;lt;/math&amp;gt; is equal to &amp;lt;math&amp;gt;5|{\mathcal A}| = 5 \times 125&amp;lt;/math&amp;gt;.  In particular, there exists a pair of opposite side-slices whose scores add up to at least 125.&lt;br /&gt;
&lt;br /&gt;
By Lemma 5 and symmetry, we may assume that the 1**** and 3**** slices have score adding up to at least 125.  By Lemma 2, the 2**** slice has at most 41 points, which imply that the 1**** and 3**** have 41, 42, or 43 points.  From the [http://spreadsheets.google.com/ccc?key=p5T0SktZY9DuqNcxJ171Bbw&amp;amp;hl=en n=4 statistics] we know that all 41-point, 42-point, 43-point slices have score less than 62, with the following exceptions:&lt;br /&gt;
&lt;br /&gt;
# (2,16,24,0,0) [42 points, score: 62]&lt;br /&gt;
# (4,16,23,0,0) [43 points, score: 62 1/3]&lt;br /&gt;
# (4,15,24,0,0) [43 points, score: 62 3/4]&lt;br /&gt;
# (3,16,24,0,0) [43 points, score: 63]&lt;br /&gt;
&lt;br /&gt;
Thus the 1**** and 3**** slices must come from the above list.  Furthermore, if one of the slices is of type 1, then the other must be of type 4, and if one slice is of type 2, then the other must be of type 3 or 4.&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 6&#039;&#039;&#039; There exists one cut in which the side slices have total score strictly greater than 125 (i.e. they thus involve only Type 2, Type 3, and Type 4 slices, with at least one side slice not equal to Type 2, and the cut here is of the form 43+39+43).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; If not, then all cuts have side slices exactly equal to 125, which by the above table implies that one is Type 1 and one is Type 4, in particular all side slices have c=24.  But this forces C=80, contradicting Corollary 5. &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Adding up the corners we conclude&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Corollary 6&#039;&#039;&#039; &amp;lt;math&amp;gt;6 \leq A \leq 8&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 7&#039;&#039;&#039; &amp;lt;math&amp;gt;D=0&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; Firstly, from Lemma 6 we have a cut in which the two side slices are omitting at most one C-point between them (and have no D-point), which forces the middle slice to have at most one D-point; thus D is at most 1.&lt;br /&gt;
&lt;br /&gt;
Now suppose instead that D=1 (e.g. if 11222 was in the set); then there would be two choices of coordinates in which one of the side slices would have d=1 (e.g. 1**** and *1****). But the [http://spreadsheets.google.com/ccc?key=p5T0SktZY9DuqNcxJ171Bbw&amp;amp;hl=en n=4 statistics] show that such slices have a score of at most 59 7/12, so that the total score from those two coordinates is at most 63 + 59 7/12 = 122 7/12. On the other hand, the other three slices have a net score of at most 63+63 = 126. This averages out to at most 124.633... &amp;lt; 125, a contradiction.  &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Corollary 7&#039;&#039;&#039; Every middle slice has at most 40 points.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; From Lemma 7 we see that the middle slice must have c=0, but from the n=4 statistics this is not possible for any slice of size 41 or higher (alternatively, one can use the inequalities &amp;lt;math&amp;gt;4a+b \leq 64&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;b \leq 32&amp;lt;/math&amp;gt;). &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Each middle slice now has 39 or 40 points, with c=d=e=0, and so from the inequalities &amp;lt;math&amp;gt;4a+b \leq 64&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;b \leq 32&amp;lt;/math&amp;gt; must have statistics (8,32,0,0,0),(7,32,0,0,0), or (8,31,0,0,0).  In particular the &amp;quot;a&amp;quot; index of the middle slices is at most 8.  Summing over all middle slices we conclude&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 9&#039;&#039;&#039; B is at most 40.&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 10&#039;&#039;&#039; C is equal to 78 or 79.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; By Corollary 5, it suffices to show that &amp;lt;math&amp;gt;C \geq 78&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
As 125=43+39+43, we see that every center slice must have at least 39 points. By Lemma 2 and Lemma 7 the center slice has c=d=e=0, thus the center slice has a+b &amp;gt;= 39.  On the other hand, from the n=4 theory we have 4a+b &amp;lt;= 64, which forces b &amp;gt;= 31.&lt;br /&gt;
&lt;br /&gt;
By double counting, we see that 2C is equal to the sum of the b&#039;s of all the five center slices.  Thus C &amp;gt;= 5*31/2 = 77.5 and the claim follows.  &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
From Lemmas 9 and 10 we see that &amp;lt;math&amp;gt;B+C \leq 119&amp;lt;/math&amp;gt;, and thus &amp;lt;math&amp;gt;A \geq 6&amp;lt;/math&amp;gt;.  Also, if &amp;lt;math&amp;gt;A \geq 7&amp;lt;/math&amp;gt;, then by Lemma 4 we have at least three pairs of A points with Hamming distance 2.  At most two of these pairs eliminate the same C point, so we would have C=78 in that case.  &lt;br /&gt;
&lt;br /&gt;
Putting all the above facts together, we see that (A,B,C,D,E,F) must be one of the following triples:&lt;br /&gt;
&lt;br /&gt;
* (6,40,79,0,0,0)&lt;br /&gt;
* (7,40,78,0,0,0)&lt;br /&gt;
* (8,39,78,0,0,0)&lt;br /&gt;
&lt;br /&gt;
All three cases can be eliminated, giving &amp;lt;math&amp;gt;c&#039;_5=124&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== Elimination of (6,40,79,0,0,0) ===&lt;br /&gt;
&lt;br /&gt;
Look at the 6 A points.  From Lemma 4 we have at least two pairs (a,b), (c,d) of A-points that have Hamming separation 2.&lt;br /&gt;
&lt;br /&gt;
Now look at the midpoints of these two pairs; these midpoints are C-points cannot lie in the set.  But we have exactly one C-point missing from the set, thus the midpoints must be the same.  By symmetry, we may thus assume that the two pairs are (11111,11133) and (11113,11131).  Thus 11111,11133, 11113, 11131 are in the set, and so every C-point other than 11122 is in the set.  On the other hand, the B-points 11121, 11123, 11112, 11132 lie outside the set.&lt;br /&gt;
&lt;br /&gt;
At most one of 11312, 11332 lie in the set (since 11322 lies in the set).   Suppose that 11312 lies outside the set, then we have a pair (xy1z2, xy3z2) with x,y,z = 1,3 that is totally omitted from the set, namely (11112,11312).  On the other hand, every other pair of this form can have at most one point in the set, thus there are at most seven points in the set of the form (xyzw2) with x,y,z,w = 1,3.  Similarly there are at most 8 points of the form xyz2w, or of xy2zw, x2yzw, 2xyzw, leading to at most 39 B-points in all, contradiction.&lt;br /&gt;
&lt;br /&gt;
=== Elimination of (7,40,78,0,0,0) ===&lt;br /&gt;
&lt;br /&gt;
By Lemma 4, we have at least three pairs of A-points of distance two apart that lie in the set.&lt;br /&gt;
The midpoints of these pairs are C-points that do not lie in the set; but there are only two such C-points, thus two pairs must have the same midpoint, so we may assume as before that 111xy lies in the set for x,y=1,3, which implies that 1112* and 111*2 lie outside the set.&lt;br /&gt;
&lt;br /&gt;
Now consider the 160 lines between 2 B points and one C point (cf. Lemma 3).  The sum of all the points in each such line (counting multiplicity) is 4B+2C = 316.  On the other hand, every one of the 160 lines can have at most two points, and two of these lines (namely 1112*, 111*2) have no points.  Thus all the other lines must have exactly two points.  &lt;br /&gt;
&lt;br /&gt;
We know that the C-point 11122 is missing from the set; there is one other missing C-point.  Since 1112x, 111x2 lie outside the set, we conclude from the previous paragraph that 1132x, 113x2 and 1312x, 131x2 lie in the set.  Taking midpoints we conclude that 11322 and 13122 lie outside the set.  But this is now three C-points missing (together with 11122), a contradiction.&lt;br /&gt;
&lt;br /&gt;
=== Elimination of (8,39,78,0,0,0) ===&lt;br /&gt;
&lt;br /&gt;
By Lemma 4 we have at least four pairs of A-points of distance two apart that lie in the set. The midpoints of these pairs are C-points that do not lie in the set; but there are only two such C-points, thus two pairs (a,b), (c,d) must have the same midpoint p, and the other two pairs (a&#039;,b&#039;), (c&#039;,d&#039;) must also have the same midpoint p&#039;.  (Note that every C-point is the midpoint of at most two such pairs.)&lt;br /&gt;
&lt;br /&gt;
Now consider the 160 lines between 2 B points and one C point (cf. Lemma 3).  The sum of all the points in each such line (counting multiplicity) is 4B+2C = 312.  Every one of the 160 lines can have at most two points, and four of these (those in the plane of (a,b,c,d) or of (a&#039;,b&#039;,c&#039;,d&#039;) have no points.  Thus all other lines must have exactly two points.&lt;br /&gt;
&lt;br /&gt;
Without loss of generality we have (a,b)=(11111,11133), (c,d) = (11113,11131), thus p = 11122.  By permuting the first three indices, we may assume that p&#039; is not of the form x2y2z, x2yz2, xy22z, xy2z2.  Then 1112x lies outside the set and 1122x lies in the set, so by the above paragraph 1132x lies in the set; similarly for 113x2, 1312x, 131x2.  This implies that 13122, 11322 lie outside the set, but this (together with 11122) shows that at least three C-points are missing, a contradiction.&lt;br /&gt;
&lt;br /&gt;
== General n ==&lt;br /&gt;
&lt;br /&gt;
General solution for &amp;lt;math&amp;gt;c&#039;_N&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* q 2s, all points from A(N-q,1)&lt;br /&gt;
* q-1 2s, points from A(N-q+1,2)&lt;br /&gt;
* q-2 2s, points from A(N-q+2,3)&lt;br /&gt;
* etc.&lt;br /&gt;
&lt;br /&gt;
where A(m,d) is a subset of &amp;lt;math&amp;gt;[1,3]^m&amp;lt;/math&amp;gt; for which any two points differ from each other in at least d places.&lt;br /&gt;
&lt;br /&gt;
Mathworld’s entry on error-correcting codes suggests it might be NP-complete to find the size of A(m,d) in general.&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;math&amp;gt;|A(m,1)| = 2^m&amp;lt;/math&amp;gt; because it includes all points in &amp;lt;math&amp;gt;[1,3]^m&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;|A(m,2)| = 2^{m-1}&amp;lt;/math&amp;gt; because it can include all points in &amp;lt;math&amp;gt;[1,3]^m&amp;lt;/math&amp;gt; with an odd number of 1s&lt;br /&gt;
&lt;br /&gt;
The integer programming routine from Maple 12 was used to obtain upper bounds for &amp;lt;math&amp;gt;c&#039;_6&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;c&#039;_7&amp;lt;/math&amp;gt;.  A large number of linear inequalities, described above in sections (n=3) and (n=4), were combined.  The details are in [[Maple calculations]].  The results were that &amp;lt;math&amp;gt;c&#039;_6 \le 361&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;c&#039;_7 \le 1071&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
A [[genetic algorithm]] has provided the following examples:&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;math&amp;gt;c&#039;_6 \geq 353&amp;lt;/math&amp;gt; (26 examples; [http://twofoldgaze.wordpress.com/2009/03/10/353-element-solution/ here is one])&lt;br /&gt;
* &amp;lt;math&amp;gt;c&#039;_7 \geq 988&amp;lt;/math&amp;gt; [http://twofoldgaze.wordpress.com/2009/03/10/978-element-solution/ Here is the example]&lt;br /&gt;
&lt;br /&gt;
== Larger sides (k&amp;gt;3) ==&lt;br /&gt;
&lt;br /&gt;
The following set gives a lower bound for Moser’s cube &amp;lt;math&amp;gt;[4]^n&amp;lt;/math&amp;gt; (values 1,2,3,4):  Pick all points where q entries are 2 or 3; and also pick those where q-1 entries are 2 or 3 and an odd number of entries are 1.  This is maximized when q is near n/2, giving a lower bound of&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\binom{n}{n/2} 2^n + \binom{n}{n/2-1} 2^{n-1}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
which is comparable to &amp;lt;math&amp;gt;4^n/\sqrt{n}&amp;lt;/math&amp;gt; by [[Stirling&#039;s formula]].&lt;br /&gt;
&lt;br /&gt;
For k=5 (values 1,2,3,4,5) If A, B, C, D, and E denote the numbers of 1-s, 2-s, 3-s, 4-s and 5-s then the first three points of a geometric line form a 3-term arithmetic progression in A+E+2(B+D)+3C. So, for k=5 we have a similar lower bound for the Moser’s problem as for DHJ k=3, i.e. &amp;lt;math&amp;gt;5^{n - O(\sqrt{\log n})}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
The k=6 version of Moser implies DHJ(3).  Indeed, any k=3 combinatorial line-free set can be &amp;quot;doubled up&amp;quot; into a k=6 geometric line-free set of the same density by pulling back the set from the map &amp;lt;math&amp;gt;\phi: [6]^n \to [3]^n&amp;lt;/math&amp;gt; that maps 1, 2, 3, 4, 5, 6 to 1, 2, 3, 3, 2, 1 respectively; note that this map sends k=6 geometric lines to k=3 combinatorial lines.&lt;/div&gt;</summary>
		<author><name>121.220.134.232</name></author>
	</entry>
	<entry>
		<id>https://michaelnielsen.org/polymath/index.php?title=Moser%27s_cube_problem&amp;diff=1034</id>
		<title>Moser&#039;s cube problem</title>
		<link rel="alternate" type="text/html" href="https://michaelnielsen.org/polymath/index.php?title=Moser%27s_cube_problem&amp;diff=1034"/>
		<updated>2009-03-21T14:04:27Z</updated>

		<summary type="html">&lt;p&gt;121.220.134.232: /* Elimination of (6,40,79,0,0,0) */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Define a &#039;&#039;Moser set&#039;&#039; to be a subset of &amp;lt;math&amp;gt;[3]^n&amp;lt;/math&amp;gt; which does not contain any [[geometric line]], and let &amp;lt;math&amp;gt;c&#039;_n&amp;lt;/math&amp;gt; denote the size of the largest Moser set in &amp;lt;math&amp;gt;[3]^n&amp;lt;/math&amp;gt;.  The first few values are (see [http://www.research.att.com/~njas/sequences/A003142 OEIS A003142]):&lt;br /&gt;
&lt;br /&gt;
: &amp;lt;math&amp;gt;c&#039;_0 = 1; c&#039;_1 = 2; c&#039;_2 = 6; c&#039;_3 = 16; c&#039;_4 = 43; c&#039;_5 = 124.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Beyond this point, we only have some upper and lower bounds, in particular &amp;lt;math&amp;gt;353 \leq c&#039;_6 \leq 361&amp;lt;/math&amp;gt;; see [http://spreadsheets.google.com/ccc?key=p5T0SktZY9DsU-uZ1tK7VEg this spreadsheet] for the latest bounds.&lt;br /&gt;
&lt;br /&gt;
The best known asymptotic lower bound for &amp;lt;math&amp;gt;c&#039;_n&amp;lt;/math&amp;gt; is&lt;br /&gt;
&lt;br /&gt;
: &amp;lt;math&amp;gt;c&#039;_n \gg 3^n/\sqrt{n}&amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
formed by fixing the number of 2s to a single value near n/3.  Compare this to the DHJ(2) or Sperner limit of &amp;lt;math&amp;gt;2^n/\sqrt{n}&amp;lt;/math&amp;gt;.  Is it possible to do any better?  Note that we have a [[Upper_and_lower_bounds#Asymptotics|significantly better bound]] for the DHJ(3) &amp;lt;math&amp;gt;c_n&amp;lt;/math&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
: &amp;lt;math&amp;gt;c_n \geq 3^{n-O(\sqrt{\log n})}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
A more precise lower bound is&lt;br /&gt;
&lt;br /&gt;
: &amp;lt;math&amp;gt;c&#039;_n \geq \binom{n+1}{q} 2^{n-q}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where q is the nearest integer to &amp;lt;math&amp;gt;n/3&amp;lt;/math&amp;gt;, formed by taking all strings with q 2s, together with all strings with q-1 2s and an odd number of 1s.  This for instance gives the lower bound &amp;lt;math&amp;gt;c&#039;_5 \geq 120&amp;lt;/math&amp;gt;, which compares with the upper bound &amp;lt;math&amp;gt;c&#039;_5 \leq 3 c&#039;_4 = 129&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Using [[DHJ(3)]], we have the upper bound&lt;br /&gt;
&lt;br /&gt;
: &amp;lt;math&amp;gt;c&#039;_n = o(3^n)&amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
but no effective decay rate is known. It would be good to have a combinatorial proof of this fact (which is weaker than [[DHJ(3)]], but implies [[Roth&#039;s theorem]]).&lt;br /&gt;
&lt;br /&gt;
== Notation ==&lt;br /&gt;
&lt;br /&gt;
Given a Moser set A in &amp;lt;math&amp;gt;[3]^n&amp;lt;/math&amp;gt;, we let a be the number of points in A with no 2s, b be the number of points in A with one 2, c the number of points with two 2s, etc.  We call (a,b,c,...) the &#039;&#039;statistics&#039;&#039; of A.  Given a slice S of &amp;lt;math&amp;gt;[3]^n&amp;lt;/math&amp;gt;, we let a(S), b(S), etc. denote the statistics of that slice (dropping the fixed coordinates).  Thus for instance if A = {11, 12, 22, 32}, then (a,b,c) = (1,2,1), and (a(1*),b(1*)) = (1,1).&lt;br /&gt;
&lt;br /&gt;
We call a statistic (a,b,c,...) &#039;&#039;attainable&#039;&#039; if it is attained by a Moser set.  We say that an attainable statistic is &#039;&#039;Pareto-optimal&#039;&#039; if it cannot be pointwise dominated by any other attainable statistic (a&#039;,b&#039;,c&#039;,...) (thus &amp;lt;math&amp;gt;a&#039; \geq a&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;b&#039; \geq b&amp;lt;/math&amp;gt;, etc.)  We say that it is &#039;&#039;extremal&#039;&#039; if it is not a convex combination of any other attainable statistic (this is a stronger property than Pareto-optimal).  For the purposes of maximising linear scores of attainable statistics, it suffices to check extremal statistics.&lt;br /&gt;
&lt;br /&gt;
We let &amp;lt;math&amp;gt;(\alpha_0,\alpha_1,\ldots)&amp;lt;/math&amp;gt; be the normalized version of &amp;lt;math&amp;gt;(a,b,\ldots)&amp;lt;/math&amp;gt;, in which one divides the number of points of a certain type in the set by the total number of points in the set.  Thus for instance &amp;lt;math&amp;gt;\alpha_0 = a/2^n, \alpha_1 = b/(n 2^{n-1}), \alpha_3 = c/(\binom{n}{2} 2^{n-2})&amp;lt;/math&amp;gt;, etc., and the &amp;lt;math&amp;gt;\alpha_i&amp;lt;/math&amp;gt; range between 0 and 1.  Averaging arguments show that any linear inequality obeyed by the &amp;lt;math&amp;gt;\alpha_i&amp;lt;/math&amp;gt; at one dimension is automatically inherited by higher dimensions, as are shifted versions of this inequality (in which &amp;lt;math&amp;gt;\alpha_i&amp;lt;/math&amp;gt; is replaced by &amp;lt;math&amp;gt;\alpha_{i+1}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
The idea in &#039;c-statistics&#039; is to identify 1s and 3s but leave the 2s intact. Let’s use x to denote letters that are either 1 or 3, then the 81 points get split up into 16 groups: 2222 (1 point), 222x, 22×2, 2×22, x222 (two points each), 22xx, 2×2x, x22x, 2xx2, x2×2, xx22 (four points each), 2xxx, x2xx, xx2x, xxx2 (eight points each), xxxx (sixteen points). Let c(w) denote the number of points inside a group w, e.g. c(xx22) is the number of points of the form xx22 inside the set, and is thus an integer from 0 to 4.&lt;br /&gt;
&lt;br /&gt;
== n=0 ==&lt;br /&gt;
&lt;br /&gt;
We trivially have &amp;lt;math&amp;gt;c&#039;_0=1.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== n=1 ==&lt;br /&gt;
&lt;br /&gt;
We trivially have &amp;lt;math&amp;gt;c&#039;_1=2.&amp;lt;/math&amp;gt;  The Pareto-optimal values of the statistics (a,b) are (1,1) and (2,0); these are also the extremals.  We thus have the inequality &amp;lt;math&amp;gt;a+b \leq 2&amp;lt;/math&amp;gt;, or in normalized notation&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;2\alpha_0 + \alpha_1 \leq 2&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== n=2 ==&lt;br /&gt;
&lt;br /&gt;
We have &amp;lt;math&amp;gt;c&#039;_2 = 6&amp;lt;/math&amp;gt;; the upper bound follows since &amp;lt;math&amp;gt;c&#039;_2 \leq 3 c&#039;_1&amp;lt;/math&amp;gt;, and the lower bound follows by deleting one of the two diagonals from &amp;lt;math&amp;gt;[3]^2&amp;lt;/math&amp;gt; (these are the only extremisers).&lt;br /&gt;
&lt;br /&gt;
The extremiser has statistics (a,b,c) = (2,4,0), which are of course Pareto-optimal.  If c=1 then we must have a, b at most 2 (look at the lines through 22).  This is attainable (e.g. {11, 12, 22, 23, 31}, and so (2,2,1) is another Pareto-optimal statistic.  If a=4, then b and c must be 0, so we get another Pareto-optimal statistic (4,0,0) (attainable by {11, 13, 31, 33} of course).  If a=3, then c=0 and b is at most 2, giving another Pareto-optimal statistic (3,2,0); but this is a convex combination of (4,0,0) and (2,4,0) and is thus not extremal.  Thus the complete set of extremal statistics are&lt;br /&gt;
&lt;br /&gt;
(4,0,0), (2,4,0), (2,2,1).&lt;br /&gt;
&lt;br /&gt;
The sharp linear inequalities obeyed by a,b,c (other than the trivial ones &amp;lt;math&amp;gt;a,b,c \geq 0&amp;lt;/math&amp;gt;) are then&lt;br /&gt;
&lt;br /&gt;
*&amp;lt;math&amp;gt;2a+b+2c \leq 8&amp;lt;/math&amp;gt;&lt;br /&gt;
*&amp;lt;math&amp;gt;b+2c \leq 4&amp;lt;/math&amp;gt;&lt;br /&gt;
*&amp;lt;math&amp;gt;a+2c \leq 4&amp;lt;/math&amp;gt;&lt;br /&gt;
*&amp;lt;math&amp;gt;c \leq 1&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
In normalized notation, we have&lt;br /&gt;
*&amp;lt;math&amp;gt;4\alpha_0 + 2\alpha_1 + \alpha_2 \leq 4&amp;lt;/math&amp;gt;&lt;br /&gt;
*&amp;lt;math&amp;gt;2\alpha_1 + \alpha_2 \leq 2&amp;lt;/math&amp;gt;&lt;br /&gt;
*&amp;lt;math&amp;gt;2\alpha_0 + \alpha_2 \leq 2&amp;lt;/math&amp;gt;&lt;br /&gt;
*&amp;lt;math&amp;gt;\alpha_2 \leq 1&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
The Pareto optimizers for c-statistics are (c22,c2x,cx2,cxx) = (1112),(0222),(0004), which are covered by the linear inequalities &lt;br /&gt;
*&amp;lt;math&amp;gt;c22+c2x+cxx \le 4&amp;lt;/math&amp;gt;, &lt;br /&gt;
*&amp;lt;math&amp;gt;c22+cx2+cxx \le 4&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== n=3 ==&lt;br /&gt;
&lt;br /&gt;
We have &amp;lt;math&amp;gt;c&#039;_3 = 16&amp;lt;/math&amp;gt;.  The lower bound can be seen for instance by taking all the strings with one 2, and half the strings with no 2 (e.g. the strings with an odd number of 1s).  The upper bound can be deduced from the corresponding [[upper and lower bounds]] for &amp;lt;math&amp;gt;c_3 = 18&amp;lt;/math&amp;gt;; the 17-point and 18-point line-free sets each contain a geometric line.&lt;br /&gt;
&lt;br /&gt;
If a Moser set in &amp;lt;math&amp;gt;[3]^3&amp;lt;/math&amp;gt; contains 222, then it can have at most 14 points, since the remaining 26 points in the cube split into 13 antipodal pairs, and at most one of each pair can lie in the set.  By exhausting over the &amp;lt;math&amp;gt;2^{13} = 8192&amp;lt;/math&amp;gt; possibilities, it can be shown that it is impossible for a 14-point set to exist; any Moser set containing 222 must in fact omit at least one antipodal pair completely and thus have only 13 points.  (A human proof of this fact can be [http://www.ma.rhul.ac.uk/~elsholtz/WWW/blog/mosertablogv01.pdf found here].)&lt;br /&gt;
&lt;br /&gt;
The Pareto-optimal statistics are&lt;br /&gt;
&lt;br /&gt;
(3,6,3,1),(4,4,3,1),(4,6,2,1),(2,6,6,0),(3,6,5,0),(4,4,5,0),(3,7,4,0),(4,6,4,0), (3,9,3,0),(4,7,3,0),(5,4,3,0),(4,9,2,0),(5,6,2,0),(6,3,2,0),(3,10,1,0),(5,7,1,0), (6,4,1,0),(4,12,0,0),(5,9,0,0),(6,6,0,0),(7,3,0,0),(8,0,0,0).&lt;br /&gt;
&lt;br /&gt;
These were found from a search of the &amp;lt;math&amp;gt;2^{27}&amp;lt;/math&amp;gt; subsets of the cube.&lt;br /&gt;
A spreadsheet containing these statistics can be [http://spreadsheets.google.com/ccc?key=p5T0SktZY9DuKZ2DyzO9EOg&amp;amp;hl=en# found here].&lt;br /&gt;
&lt;br /&gt;
The extremal statistics are&lt;br /&gt;
&lt;br /&gt;
(3,6,3,1),(4,4,3,1),(4,6,2,1),(2,6,6,0),(4,4,5,0),(4,6,4,0),(4,12,0,0),(8,0,0,0)&lt;br /&gt;
&lt;br /&gt;
The sharp linear bounds are :&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;math&amp;gt;2a+b+2c+4d \leq 22&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;3a+2b+3c+6d \leq 36&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;7a+2b+4c+8d \leq 56&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;6a+2b+3c+6d \leq 48&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;b+c+3d \leq 12&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;a+2c+4d \leq 14&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;5a+4c+8d \leq 40&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;a+4d \leq 8&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;b+6d \leq 12&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;c+3d \leq 6&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;d \leq 1&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In normalized notation,&lt;br /&gt;
* &amp;lt;math&amp;gt;8\alpha_0+ 6\alpha_1 + 6\alpha_2 + 2\alpha_3 \leq 11&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;4\alpha_0+4\alpha_1+3\alpha_2+\alpha_3 \leq 6&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;7\alpha_0+3\alpha_1+3\alpha_2+\alpha_3 \leq 7&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;8\alpha_0+3\alpha_1+3\alpha_2+\alpha_3 \leq 8&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;4\alpha_1+2\alpha_2+\alpha_3 \leq 4&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;4\alpha_0+6\alpha_2+2\alpha_3 \leq 7&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;5\alpha_0+3\alpha_2+\alpha_3 \leq 5&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;2\alpha_0+\alpha_3 \leq 2&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;2\alpha_1+\alpha_3 \leq 2&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;2\alpha_2+\alpha_3 \leq 2&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;\alpha_3 \leq 1&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The c-statistics can also be found from an exhaustive search of Moser sets.  The resulting Pareto sets and linear inequalities can be found on Sheet 8 of [http://spreadsheets.google.com/ccc?key=p5T0SktZY9DuKZ2DyzO9EOg&amp;amp;hl=en# this spreadsheet]&lt;br /&gt;
&lt;br /&gt;
== n=4 ==&lt;br /&gt;
&lt;br /&gt;
A [http://abel.math.umu.se/~klasm/extremal-moser-n=5-t=3 computer search] has obtained all extremisers to &amp;lt;math&amp;gt;c&#039;_4=43&amp;lt;/math&amp;gt;.  The 42-point solutions can be found [http://abel.math.umu.se/~klasm/moser-n=4-t=3-p=42.gz here].&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof that &amp;lt;math&amp;gt;c&#039;_4 \leq 43&amp;lt;/math&amp;gt;&#039;&#039;&#039;: &lt;br /&gt;
When e=1 (i.e. the 4D set contains 2222) then we have at most 41 points (in fact at most 39) by counting antipodal points, so assume e=0.&lt;br /&gt;
&lt;br /&gt;
Define the score of a 3D slice to be a/4+b/3+c/2+d.  Observe from double counting that the size of a 4D set is the sum of the scores of its eight side slices.&lt;br /&gt;
&lt;br /&gt;
But by [http://spreadsheets.google.com/ccc?key=p5T0SktZY9DuKZ2DyzO9EOg&amp;amp;hl=en looking at the extremals] we see that the largest score is 44/8, attained at only one point, namely when (a,b,c,d) = (2,6,6,0).  So the only way one can have a 44-point set is if all side slices are (2,6,6,0), or equivalently if the whole set has statistics (a,b,c,d,e) = (4,16,24,0,0).  But then we have all the points with two 2s, which means that the four &amp;quot;a&amp;quot; points cannot be separated by Hamming distance 2.  We conclude that we must have an antipodal pair among the &amp;quot;a&amp;quot; points with an odd number of 1s, and an antipodal pair among the &amp;quot;a&amp;quot; points with an even number of 1s.    By the symmetries of the cube, we may take the a-set to then be 1111, 3333, 1113, 3331.  But then the &amp;quot;b&amp;quot; set must exclude both 1112 and 3332, and so can have at most three points in the eight-point set xyz2 (with x,y,z=1,3) rather than four (to get four points one must alternate in a checkerboard pattern).  Adding this to the at most four points of the form xy2z, x2yz, 2xyz we see that b is at most 15, a contradiction. &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Given a subset of &amp;lt;math&amp;gt;[3]^4&amp;lt;/math&amp;gt;, let a be the number of points with no 2s, b be the number of points with 1 2, and so forth.  The quintuple (a,b,c,d,e) thus lies between (0,0,0,0,0) and (16,32,24,8,1).&lt;br /&gt;
&lt;br /&gt;
The 43-point solutions have distributions (a,b,c,d,e) as follows:&lt;br /&gt;
&lt;br /&gt;
* (5,20,18,0,0) [16 solutions]&lt;br /&gt;
* (4,16,23,0,0) [768 solutions]&lt;br /&gt;
* (3,16,24,0,0) [512 solutions]&lt;br /&gt;
* (4,15,24,0,0) [256 solutions]&lt;br /&gt;
&lt;br /&gt;
The 42-point solutions are [http://abel.math.umu.se/~klasm/Moser-42-stat.pdf distributed as follows]:&lt;br /&gt;
&lt;br /&gt;
* (6,24,12,0,0) [[http://abel.math.umu.se/~klasm/moser-n=4-42-12 8 solutions]] &lt;br /&gt;
* (5,20,17,0,0) [576 solutions]&lt;br /&gt;
* (5,19,18,0,0) [384 solutions]&lt;br /&gt;
* (6,16,18,2,0) [[http://abel.math.umu.se/~klasm/moser-n=4-42-e=2 192 solutions]]&lt;br /&gt;
* (4,20,18,0,0) [272 solutions]&lt;br /&gt;
* (5,17,20,0,0) [192 solutions]&lt;br /&gt;
* (5,16,21,0,0) [3584 solutions]&lt;br /&gt;
* (4,17,21,0,0) [768 solutions]&lt;br /&gt;
* (4,16,22,0,0) [26880 solutions]&lt;br /&gt;
* (5,15,22,0,0) [1536 solutions]&lt;br /&gt;
* (4,15,23,0,0) [22272 solutions]&lt;br /&gt;
* (3,16,23,0,0) [15744 solutions]&lt;br /&gt;
* (4,14,24,0,0) [4224 solutions]&lt;br /&gt;
* (3,15,24,0,0) [8704 solutions]&lt;br /&gt;
* (2,16,24,0,0) [896 solutions]&lt;br /&gt;
&lt;br /&gt;
Note how c is usually quite large, and d quite low.&lt;br /&gt;
&lt;br /&gt;
One of the (6,24,12,0,0) solutions is &amp;lt;math&amp;gt;\Gamma_{220}+\Gamma_{202}+\Gamma_{022}+\Gamma_{112}+\Gamma_{211}&amp;lt;/math&amp;gt; (i.e. the set of points containing exactly two 1s, and/or exactly two 3s).  The other seven are reflections of this set.&lt;br /&gt;
&lt;br /&gt;
There are 2,765,200 41-point solutions, [http://abel.math.umu.se/~klasm/solutions-4-t=3-41-moser.gz listed here].  The statistics for such points can be [http://abel.math.umu.se/~klasm/Moser-41-stat.pdf found here].  Noteworthy features of the statistics:&lt;br /&gt;
&lt;br /&gt;
* d is at most 3 (and, except for [http://abel.math.umu.se/~klasm/moser-n=3-t=3-41-d=3.gz 256 exceptional solutions] of the shape (5,15,18,3,0), have d at most 2; here are the [http://abel.math.umu.se/~klasm/moser-n=3-t=3-41-d=2.gz d=2 solutions] and [http://abel.math.umu.se/~klasm/moser-n=3-t=3-41-d=1.gz d=1 solutions])&lt;br /&gt;
* c is at least 6 (and, except for [http://abel.math.umu.se/~klasm/moser-n=3-t=3-41-c=6.gz 16 exceptional solutions] of the shape (7,28,6,0,0), have c at least 11).&lt;br /&gt;
&lt;br /&gt;
Statistics for the 41-point, 42-point, and 43-point solutions can be found [http://spreadsheets.google.com/ccc?key=p5T0SktZY9DuqNcxJ171Bbw&amp;amp;hl=en here].&lt;br /&gt;
&lt;br /&gt;
If a Moser set in &amp;lt;math&amp;gt;[3]^4&amp;lt;/math&amp;gt; contains 2222, then by the n=3 theory, any middle slice (i.e. 2***, *2**, **2*, or ***2) is missing at least one antipodal pair.  But each antipodal pair belongs to at most three middle slices, thus two of the 40 antipodal pairs must be completely missing.  As a consequence, any Moser set containing 2222 can have at most 39 points.&lt;br /&gt;
(A more refined analysis can be found at [http://www.ma.rhul.ac.uk/~elsholtz/WWW/blog/mosertablogv01.pdf found here].)&lt;br /&gt;
&lt;br /&gt;
We have the following inequalities connecting a,b,c,d,e:&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;math&amp;gt;4a+b \leq 64&amp;lt;/math&amp;gt;:  There are 32 lines connecting two &amp;quot;a&amp;quot; points with a &amp;quot;b&amp;quot; point; each &amp;quot;a&amp;quot; point belongs to four of these lines, and each &amp;quot;b&amp;quot; point belongs to one.  But each such line can have at most two points in the set, and the claim follows.&lt;br /&gt;
* This can be refined to &amp;lt;math&amp;gt;4a+b+\frac{2}{3} c \leq 64&amp;lt;/math&amp;gt;: There are 24 planes connecting four &amp;quot;a&amp;quot; points, four &amp;quot;b&amp;quot; points, and one &amp;quot;c&amp;quot; point; each &amp;quot;a&amp;quot; point belongs to six of these, each &amp;quot;b&amp;quot; point belongs to three, and each &amp;quot;c&amp;quot; point belongs to one.  For each of these planes, we have &amp;lt;math&amp;gt;2a + b + 2c \leq 8&amp;lt;/math&amp;gt; from the n=2 theory, and the claim follows.&lt;br /&gt;
* &amp;lt;math&amp;gt;6a+2c \leq 96&amp;lt;/math&amp;gt;:  There are 96 lines connecting two &amp;quot;a&amp;quot; points with a &amp;quot;c&amp;quot; point; each &amp;quot;a&amp;quot; point belongs to six of these lines, and each &amp;quot;c&amp;quot; point belongs to two.  But each such line can have at most two points in the set, and the claim follows.&lt;br /&gt;
* &amp;lt;math&amp;gt;3b+2c \leq 96&amp;lt;/math&amp;gt;:  There are 48 lines connecting two &amp;quot;b&amp;quot; points to a &amp;quot;c&amp;quot; point; each &amp;quot;b&amp;quot; point belongs to three of these points, and each &amp;quot;c&amp;quot; point belongs to two.  But each such line can have at most two points in the set, and the claim follows.&lt;br /&gt;
&lt;br /&gt;
The inequalities for n=3 imply inequalities for n=4.  Indeed, there are eight side slices of &amp;lt;math&amp;gt;[3]^4&amp;lt;/math&amp;gt;; each &amp;quot;a&amp;quot; point belongs to four of these, each &amp;quot;b&amp;quot; point belongs to three, each &amp;quot;c&amp;quot; point belongs to two, and each &amp;quot;d&amp;quot; point belongs to one.  Thus, any inequality of the form&lt;br /&gt;
:&amp;lt;math&amp;gt; \alpha a + \beta b + \gamma c + \delta d \leq M&amp;lt;/math&amp;gt;&lt;br /&gt;
in three dimensions implies the inequality&lt;br /&gt;
:&amp;lt;math&amp;gt; 4 \alpha a + 3 \beta b + 2 \gamma c + \delta d \leq 8M&amp;lt;/math&amp;gt;&lt;br /&gt;
in four dimensions.  Thus we have&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;math&amp;gt;8a+3b+4c+4d \leq 176&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;2a+b+c+d \leq 48&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;14a+3b+4c+4d \leq 244&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;4a+b+c+d \leq 64&amp;lt;/math&amp;gt; &lt;br /&gt;
* &amp;lt;math&amp;gt;3b+2c+3d \leq 96&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;a+c+d \leq 28&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;5a+2c+2d \leq 80&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;a+d \leq 16&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;b+2d \leq 32&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;2c+3d \leq 48&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Cubes also sit diagonally in the 4-dimensional cube.  They may have coordinates xxyz, where xx runs over (11,22,33) or (13,22,31), while y and z run over (1,2,3).  These cubes have a different distribution of 2s than the ordinary slices: (a,b,c,d,e) = (8,8,6,4,1) instead of (8,12,6,1,0) for the side slices and (0,8,12,6,1) for the middle slices.  So a different set of inequalities arise.  It is possible to run through the same procedure as described above for n=3, and the inequalities that arise are &amp;lt;math&amp;gt;2a+b+2c+2d+4e \le 24&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;4a+b+2c+2d+4e \le 32&amp;lt;/math&amp;gt; within the 3D cube, which when averaged becomes &amp;lt;math&amp;gt;4a+b+2c+4d+16e \le 96&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;8a+b+2c+4d+16e \le 128&amp;lt;/math&amp;gt; for the 4D cube.  A spreadsheet containing these statistics can be [http://spreadsheets.google.com/ccc?key=p5T0SktZY9DuKZ2DyzO9EOg&amp;amp;hl=en# found here] on sheet 2.  Other sheets of this spreadsheet contain results for a 3D cube sitting diagonally in a 5D, 6D or 7D cube.  Notice the similarity of the equations that arise for the xxxyz, xxyyz and xxxxyz diagonals.  Also notice the xxxxyyz diagonals have the same Pareto sets and linear inequalities as the cube&#039;s c-statistics&lt;br /&gt;
&lt;br /&gt;
== n=5 ==&lt;br /&gt;
&lt;br /&gt;
Let (A,B,C,D,E,F) be the statistics of a five-dimensional Moser set, thus (A,B,C,D,E,F) varies between (0,0,0,0,0,0) and (32,80,80,40,10,1).&lt;br /&gt;
&lt;br /&gt;
There are several Moser sets with the statistics (4,40,80,0,0,0), which thus have 124 points.  Indeed, one can take&lt;br /&gt;
&lt;br /&gt;
* all points with two 2s;&lt;br /&gt;
* all points with one 2 and an even number of 1s; and&lt;br /&gt;
* (13111),(13113),(31311),(13333). Any two of these four points differ in three places, except for one pair of points that differ in one place.&lt;br /&gt;
&lt;br /&gt;
For the rest of this section, we assume that the Moser set &amp;lt;math&amp;gt;{\mathcal A}&amp;lt;/math&amp;gt; is a 125-point set.&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 1&#039;&#039;&#039;: F=0.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; If F is non-zero, then the Moser set contains 22222, then each of the 121 antipodal pairs can have at most one point in the set, leading to only 122 points. &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 2&#039;&#039;&#039;: Every middle slice of &amp;lt;math&amp;gt;{\mathcal A}&amp;lt;/math&amp;gt; has at most 41 points.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039;  Without loss of generality we may consider the 2**** slice.  There are two cases, depending on the value of c(2****).&lt;br /&gt;
&lt;br /&gt;
Suppose first that c is at least 17; thus there are at least 17 points of the form 222xy, 22x2y, 22xy2, 2x2y2, 2xy22, or 2x22y, where the x, y denote 1 or 3.  This gives 34 &amp;quot;xy&amp;quot; wildcards in all in four coordinate slots; by the pigeonhole principle one of the slots sees at least 9 of the wildcards.  By symmetry, we may assume that the second coordinate slot sees at least 9 of these wildcards, thus there are at least 9 points of the form 2x22y, 2x2y2, 2xy22.  The x=1, x=3 cases can absorb at most six of these, thus each of these cases must absorb at least three points, with at least one absorbing at least five.  Let&#039;s say that it&#039;s the x=3 case that absorbs 5; thus &amp;lt;math&amp;gt;d(*1***) \geq 3&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;d(*3***) \geq 5&amp;lt;/math&amp;gt;.  From the n=4 theory this means that the *1*** slice has at most 41 points, and the *3*** slice has at most 40.  Meanwhile, the middle slice has at most 43, leading to 41+41+42=124 points in all.&lt;br /&gt;
&lt;br /&gt;
Now suppose c is less than 17; then by the n=4 theory the middle slice is one of the eight (6,24,12,0,0) sets.  Without loss of generality we may take it to be &amp;lt;math&amp;gt;\Gamma_{220}+\Gamma_{202}+\Gamma_{022}+\Gamma_{112}+\Gamma_{211}&amp;lt;/math&amp;gt;; in particular, the middle slice contains the points 21122 21212 21221 23322 23232 23223.  In particular, the *1*** and *3*** slices have a &amp;quot;d&amp;quot; value of at least three, and so have at most 41 points.  If the *2*** slice has at most 42 points, then we are at 41+42+41=124 points as needed, but if we have 43 or more, then we are back in the first case (as &amp;lt;math&amp;gt;c(*2***) \geq 17&amp;lt;/math&amp;gt;) after permuting the indices.&lt;br /&gt;
&amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Since 125=41+41+43, we thus have&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Corollary 1&#039;&#039;&#039;: Every side slice of &amp;lt;math&amp;gt;{\mathcal A}&amp;lt;/math&amp;gt; has at least 41 points.  If one side slice does have 41 points, then the other has 43.&lt;br /&gt;
&lt;br /&gt;
Combining this with the n=4 statistics, we conclude&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Corollary 2&#039;&#039;&#039;: Every side slice of &amp;lt;math&amp;gt;{\mathcal A}&amp;lt;/math&amp;gt; has e=0, and &amp;lt;math&amp;gt;d \leq 3&amp;lt;/math&amp;gt;.  Given two opposite side slices, e.g. 1**** and 3****, we have &amp;lt;math&amp;gt;d(1****)+d(3****) \leq 4&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Corollary 3&#039;&#039;&#039;: E=0.&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Corollary 4&#039;&#039;&#039;: Any middle slice has a &amp;quot;c&amp;quot; value of at most 8.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; Let&#039;s work with the 2**** slice.  By Corollary 2, there are at most four contributions to c(2****) of the form 21*** or 23***, and similarly for the other three positions.  Double counting then gives the claim. &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 3&#039;&#039;&#039;: &amp;lt;math&amp;gt;2B+C \leq 160&amp;lt;/math&amp;gt;.   &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039;: There are 160 lines connecting one &amp;quot;C&amp;quot; point to two &amp;quot;B&amp;quot; points (e.g. 11112, 11122, 11132); each &amp;quot;C&amp;quot; point lies in two of these, and each &amp;quot;B&amp;quot; point lies on four.  A Moser set can have at most two points out of each of these lines.  Double counting then gives the claim.  &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 4&#039;&#039;&#039; Given m A-points with &amp;lt;math&amp;gt;m \geq 5&amp;lt;/math&amp;gt;, there exists at least m-4 pairs (a,b) of such A-points with Hamming distance exactly two (i.e. b differs from a in exactly two places).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; It suffices to check this for m=5, since the case of larger m then follows by locating a pair, removing a point that contributes to that pair, and using the induction hypothesis.  Given 5 A-points, we may assume by the pigeonhole principle and symmetry that at least three of them have an odd number of 1s.  Suppose 11111 is one of the points, and that no pair has Hamming distance 2. All points with two 3s are excluded, so the only points allowed with an odd number of 1s are those with four 3s. But all those points differ from each other in two positions, so at most one of them is allowed.  &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Corollary 5&#039;&#039;&#039; &amp;lt;math&amp;gt;C \leq 79&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039;: Suppose for contradiction that C=80, then D=0 and &amp;lt;math&amp;gt;B \leq 40&amp;lt;/math&amp;gt;.  From Lemma 4 we also see that A cannot be 5 or more, leading to the contradiction.&lt;br /&gt;
&amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Define the &#039;&#039;&#039;score&#039;&#039;&#039; of a Moser set in &amp;lt;math&amp;gt;[3]^4&amp;lt;/math&amp;gt; to be the quantity &amp;lt;math&amp;gt;a + 5b/4 + 5c/3 + 5d/2 + 5e&amp;lt;/math&amp;gt;.  Double-counting (and Lemma 2) gives&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 5&#039;&#039;&#039;  The total score of all the ten side-slices of &amp;lt;math&amp;gt;{\mathcal A}&amp;lt;/math&amp;gt; is equal to &amp;lt;math&amp;gt;5|{\mathcal A}| = 5 \times 125&amp;lt;/math&amp;gt;.  In particular, there exists a pair of opposite side-slices whose scores add up to at least 125.&lt;br /&gt;
&lt;br /&gt;
By Lemma 5 and symmetry, we may assume that the 1**** and 3**** slices have score adding up to at least 125.  By Lemma 2, the 2**** slice has at most 41 points, which imply that the 1**** and 3**** have 41, 42, or 43 points.  From the [http://spreadsheets.google.com/ccc?key=p5T0SktZY9DuqNcxJ171Bbw&amp;amp;hl=en n=4 statistics] we know that all 41-point, 42-point, 43-point slices have score less than 62, with the following exceptions:&lt;br /&gt;
&lt;br /&gt;
# (2,16,24,0,0) [42 points, score: 62]&lt;br /&gt;
# (4,16,23,0,0) [43 points, score: 62 1/3]&lt;br /&gt;
# (4,15,24,0,0) [43 points, score: 62 3/4]&lt;br /&gt;
# (3,16,24,0,0) [43 points, score: 63]&lt;br /&gt;
&lt;br /&gt;
Thus the 1**** and 3**** slices must come from the above list.  Furthermore, if one of the slices is of type 1, then the other must be of type 4, and if one slice is of type 2, then the other must be of type 3 or 4.&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 6&#039;&#039;&#039; There exists one cut in which the side slices have total score strictly greater than 125 (i.e. they thus involve only Type 2, Type 3, and Type 4 slices, with at least one side slice not equal to Type 2, and the cut here is of the form 43+39+43).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; If not, then all cuts have side slices exactly equal to 125, which by the above table implies that one is Type 1 and one is Type 4, in particular all side slices have c=24.  But this forces C=80, contradicting Corollary 5. &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Adding up the corners we conclude&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Corollary 6&#039;&#039;&#039; &amp;lt;math&amp;gt;6 \leq A \leq 8&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 7&#039;&#039;&#039; &amp;lt;math&amp;gt;D=0&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; Firstly, from Lemma 6 we have a cut in which the two side slices are omitting at most one C-point between them (and have no D-point), which forces the middle slice to have at most one D-point; thus D is at most 1.&lt;br /&gt;
&lt;br /&gt;
Now suppose instead that D=1 (e.g. if 11222 was in the set); then there would be two choices of coordinates in which one of the side slices would have d=1 (e.g. 1**** and *1****). But the [http://spreadsheets.google.com/ccc?key=p5T0SktZY9DuqNcxJ171Bbw&amp;amp;hl=en n=4 statistics] show that such slices have a score of at most 59 7/12, so that the total score from those two coordinates is at most 63 + 59 7/12 = 122 7/12. On the other hand, the other three slices have a net score of at most 63+63 = 126. This averages out to at most 124.633... &amp;lt; 125, a contradiction.  &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Corollary 7&#039;&#039;&#039; Every middle slice has at most 40 points.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; From Lemma 7 we see that the middle slice must have c=0, but from the n=4 statistics this is not possible for any slice of size 41 or higher (alternatively, one can use the inequalities &amp;lt;math&amp;gt;4a+b \leq 64&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;b \leq 32&amp;lt;/math&amp;gt;). &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Each middle slice now has 39 or 40 points, with c=d=e=0, and so from the inequalities &amp;lt;math&amp;gt;4a+b \leq 64&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;b \leq 32&amp;lt;/math&amp;gt; must have statistics (8,32,0,0,0),(7,32,0,0,0), or (8,31,0,0,0).  In particular the &amp;quot;a&amp;quot; index of the middle slices is at most 8.  Summing over all middle slices we conclude&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 9&#039;&#039;&#039; B is at most 40.&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 10&#039;&#039;&#039; C is equal to 78 or 79.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; By Corollary 5, it suffices to show that &amp;lt;math&amp;gt;C \geq 78&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
As 125=43+39+43, we see that every center slice must have at least 39 points. By Lemma 2 and Lemma 7 the center slice has c=d=e=0, thus the center slice has a+b &amp;gt;= 39.  On the other hand, from the n=4 theory we have 4a+b &amp;lt;= 64, which forces b &amp;gt;= 31.&lt;br /&gt;
&lt;br /&gt;
By double counting, we see that 2C is equal to the sum of the b&#039;s of all the five center slices.  Thus C &amp;gt;= 5*31/2 = 77.5 and the claim follows.  &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
From Lemmas 9 and 10 we see that &amp;lt;math&amp;gt;B+C \leq 119&amp;lt;/math&amp;gt;, and thus &amp;lt;math&amp;gt;A \geq 6&amp;lt;/math&amp;gt;.  Also, if &amp;lt;math&amp;gt;A \geq 7&amp;lt;/math&amp;gt;, then by Lemma 4 we have at least three pairs of A points with Hamming distance 2.  At most two of these pairs eliminate the same C point, so we would have C=78 in that case.  &lt;br /&gt;
&lt;br /&gt;
Putting all the above facts together, we see that (A,B,C,D,E,F) must be one of the following triples:&lt;br /&gt;
&lt;br /&gt;
* (6,40,79,0,0,0)&lt;br /&gt;
* (7,40,78,0,0,0)&lt;br /&gt;
* (8,39,78,0,0,0)&lt;br /&gt;
&lt;br /&gt;
All three cases can be eliminated, giving &amp;lt;math&amp;gt;c&#039;_5=124&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== Elimination of (6,40,79,0,0,0) ===&lt;br /&gt;
&lt;br /&gt;
Look at the 6 A points.  From Lemma 4 we have at least two pairs (a,b), (c,d) of A-points that have Hamming separation 2.&lt;br /&gt;
&lt;br /&gt;
Now look at the midpoints of these two pairs; these midpoints are C-points cannot lie in the set.  But we have exactly one C-point missing from the set, thus the midpoints must be the same.  By symmetry, we may thus assume that the two pairs are (11111,11133) and (11113,11131).  Thus 11111,11133, 11113, 11131 are in the set, and so every C-point other than 11122 is in the set.  On the other hand, the B-points 11121, 11123, 11112, 11132 lie outside the set.&lt;br /&gt;
&lt;br /&gt;
At most one of 11312, 11332 lie in the set (since 11322 lies in the set).   Suppose that 11312 lies outside the set, then we have a pair (xy1z2, xy3z2) with x,y,z = 1,3 that is totally omitted from the set, namely (11112,11312).  On the other hand, every other pair of this form can have at most one point in the set, thus there are at most seven points in the set of the form (xyzw2) with x,y,z,w = 1,3.  Similarly there are at most 8 points of the form xyz2w, or of xy2zw, x2yzw, 2xyzw, leading to at most 39 B-points in all, contradiction.&lt;br /&gt;
&lt;br /&gt;
=== Elimination of (7,40,78,0,0,0) ===&lt;br /&gt;
&lt;br /&gt;
By Lemma 4, we have at least three pairs of A-points of distance two apart that lie in the set.&lt;br /&gt;
The midpoints of these pairs are C-points that do not lie in the set; but there are only two such C-points, thus two pairs must have the same midpoint, so we may assume as before that 111xy lies in the set for x,y=1,3, which implies that 1112* and 111*2 lie outside the set.&lt;br /&gt;
&lt;br /&gt;
Now consider the 160 lines between 2 B points and one C point (cf. Lemma 3).  The sum of all the points in each such line (counting multiplicity) is 4B+2C = 316.  On the other hand, every one of the 160 lines can have at most two points, and four of these lines (namely 1112*, 111*2) have no points.  Thus all the other lines must have exactly two points.  &lt;br /&gt;
&lt;br /&gt;
We know that the C-point 11122 is missing from the set; there is one other missing C-point.  Since 1112x, 111x2 lie outside the set, we conclude from the previous paragraph that 1132x, 113x2 and 1312x, 131x2 lie in the set.  Taking midpoints we conclude that 11322 and 13122 lie outside the set.  But this is now three C-points missing (together with 11122), a contradiction.&lt;br /&gt;
&lt;br /&gt;
=== Elimination of (8,39,78,0,0,0) ===&lt;br /&gt;
&lt;br /&gt;
By Lemma 4 we have at least four pairs of A-points of distance two apart that lie in the set. The midpoints of these pairs are C-points that do not lie in the set; but there are only two such C-points, thus two pairs (a,b), (c,d) must have the same midpoint p, and the other two pairs (a&#039;,b&#039;), (c&#039;,d&#039;) must also have the same midpoint p&#039;.  (Note that every C-point is the midpoint of at most two such pairs.)&lt;br /&gt;
&lt;br /&gt;
Now consider the 160 lines between 2 B points and one C point (cf. Lemma 3).  The sum of all the points in each such line (counting multiplicity) is 4B+2C = 312.  Every one of the 160 lines can have at most two points, and four of these (those in the plane of (a,b,c,d) or of (a&#039;,b&#039;,c&#039;,d&#039;) have no points.  Thus all other lines must have exactly two points.&lt;br /&gt;
&lt;br /&gt;
Without loss of generality we have (a,b)=(11111,11133), (c,d) = (11113,11131), thus p = 11122.  By permuting the first three indices, we may assume that p&#039; is not of the form x2y2z, x2yz2, xy22z, xy2z2.  Then 1112x lies outside the set and 1122x lies in the set, so by the above paragraph 1132x lies in the set; similarly for 113x2, 1312x, 131x2.  This implies that 13122, 11322 lie outside the set, but this (together with 11122) shows that at least three C-points are missing, a contradiction.&lt;br /&gt;
&lt;br /&gt;
== General n ==&lt;br /&gt;
&lt;br /&gt;
General solution for &amp;lt;math&amp;gt;c&#039;_N&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* q 2s, all points from A(N-q,1)&lt;br /&gt;
* q-1 2s, points from A(N-q+1,2)&lt;br /&gt;
* q-2 2s, points from A(N-q+2,3)&lt;br /&gt;
* etc.&lt;br /&gt;
&lt;br /&gt;
where A(m,d) is a subset of &amp;lt;math&amp;gt;[1,3]^m&amp;lt;/math&amp;gt; for which any two points differ from each other in at least d places.&lt;br /&gt;
&lt;br /&gt;
Mathworld’s entry on error-correcting codes suggests it might be NP-complete to find the size of A(m,d) in general.&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;math&amp;gt;|A(m,1)| = 2^m&amp;lt;/math&amp;gt; because it includes all points in &amp;lt;math&amp;gt;[1,3]^m&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;|A(m,2)| = 2^{m-1}&amp;lt;/math&amp;gt; because it can include all points in &amp;lt;math&amp;gt;[1,3]^m&amp;lt;/math&amp;gt; with an odd number of 1s&lt;br /&gt;
&lt;br /&gt;
The integer programming routine from Maple 12 was used to obtain upper bounds for &amp;lt;math&amp;gt;c&#039;_6&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;c&#039;_7&amp;lt;/math&amp;gt;.  A large number of linear inequalities, described above in sections (n=3) and (n=4), were combined.  The details are in [[Maple calculations]].  The results were that &amp;lt;math&amp;gt;c&#039;_6 \le 361&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;c&#039;_7 \le 1071&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
A [[genetic algorithm]] has provided the following examples:&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;math&amp;gt;c&#039;_6 \geq 353&amp;lt;/math&amp;gt; (26 examples; [http://twofoldgaze.wordpress.com/2009/03/10/353-element-solution/ here is one])&lt;br /&gt;
* &amp;lt;math&amp;gt;c&#039;_7 \geq 988&amp;lt;/math&amp;gt; [http://twofoldgaze.wordpress.com/2009/03/10/978-element-solution/ Here is the example]&lt;br /&gt;
&lt;br /&gt;
== Larger sides (k&amp;gt;3) ==&lt;br /&gt;
&lt;br /&gt;
The following set gives a lower bound for Moser’s cube &amp;lt;math&amp;gt;[4]^n&amp;lt;/math&amp;gt; (values 1,2,3,4):  Pick all points where q entries are 2 or 3; and also pick those where q-1 entries are 2 or 3 and an odd number of entries are 1.  This is maximized when q is near n/2, giving a lower bound of&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\binom{n}{n/2} 2^n + \binom{n}{n/2-1} 2^{n-1}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
which is comparable to &amp;lt;math&amp;gt;4^n/\sqrt{n}&amp;lt;/math&amp;gt; by [[Stirling&#039;s formula]].&lt;br /&gt;
&lt;br /&gt;
For k=5 (values 1,2,3,4,5) If A, B, C, D, and E denote the numbers of 1-s, 2-s, 3-s, 4-s and 5-s then the first three points of a geometric line form a 3-term arithmetic progression in A+E+2(B+D)+3C. So, for k=5 we have a similar lower bound for the Moser’s problem as for DHJ k=3, i.e. &amp;lt;math&amp;gt;5^{n - O(\sqrt{\log n})}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
The k=6 version of Moser implies DHJ(3).  Indeed, any k=3 combinatorial line-free set can be &amp;quot;doubled up&amp;quot; into a k=6 geometric line-free set of the same density by pulling back the set from the map &amp;lt;math&amp;gt;\phi: [6]^n \to [3]^n&amp;lt;/math&amp;gt; that maps 1, 2, 3, 4, 5, 6 to 1, 2, 3, 3, 2, 1 respectively; note that this map sends k=6 geometric lines to k=3 combinatorial lines.&lt;/div&gt;</summary>
		<author><name>121.220.134.232</name></author>
	</entry>
	<entry>
		<id>https://michaelnielsen.org/polymath/index.php?title=Moser%27s_cube_problem&amp;diff=1033</id>
		<title>Moser&#039;s cube problem</title>
		<link rel="alternate" type="text/html" href="https://michaelnielsen.org/polymath/index.php?title=Moser%27s_cube_problem&amp;diff=1033"/>
		<updated>2009-03-21T13:53:57Z</updated>

		<summary type="html">&lt;p&gt;121.220.134.232: /* n=5 */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Define a &#039;&#039;Moser set&#039;&#039; to be a subset of &amp;lt;math&amp;gt;[3]^n&amp;lt;/math&amp;gt; which does not contain any [[geometric line]], and let &amp;lt;math&amp;gt;c&#039;_n&amp;lt;/math&amp;gt; denote the size of the largest Moser set in &amp;lt;math&amp;gt;[3]^n&amp;lt;/math&amp;gt;.  The first few values are (see [http://www.research.att.com/~njas/sequences/A003142 OEIS A003142]):&lt;br /&gt;
&lt;br /&gt;
: &amp;lt;math&amp;gt;c&#039;_0 = 1; c&#039;_1 = 2; c&#039;_2 = 6; c&#039;_3 = 16; c&#039;_4 = 43; c&#039;_5 = 124.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Beyond this point, we only have some upper and lower bounds, in particular &amp;lt;math&amp;gt;353 \leq c&#039;_6 \leq 361&amp;lt;/math&amp;gt;; see [http://spreadsheets.google.com/ccc?key=p5T0SktZY9DsU-uZ1tK7VEg this spreadsheet] for the latest bounds.&lt;br /&gt;
&lt;br /&gt;
The best known asymptotic lower bound for &amp;lt;math&amp;gt;c&#039;_n&amp;lt;/math&amp;gt; is&lt;br /&gt;
&lt;br /&gt;
: &amp;lt;math&amp;gt;c&#039;_n \gg 3^n/\sqrt{n}&amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
formed by fixing the number of 2s to a single value near n/3.  Compare this to the DHJ(2) or Sperner limit of &amp;lt;math&amp;gt;2^n/\sqrt{n}&amp;lt;/math&amp;gt;.  Is it possible to do any better?  Note that we have a [[Upper_and_lower_bounds#Asymptotics|significantly better bound]] for the DHJ(3) &amp;lt;math&amp;gt;c_n&amp;lt;/math&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
: &amp;lt;math&amp;gt;c_n \geq 3^{n-O(\sqrt{\log n})}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
A more precise lower bound is&lt;br /&gt;
&lt;br /&gt;
: &amp;lt;math&amp;gt;c&#039;_n \geq \binom{n+1}{q} 2^{n-q}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where q is the nearest integer to &amp;lt;math&amp;gt;n/3&amp;lt;/math&amp;gt;, formed by taking all strings with q 2s, together with all strings with q-1 2s and an odd number of 1s.  This for instance gives the lower bound &amp;lt;math&amp;gt;c&#039;_5 \geq 120&amp;lt;/math&amp;gt;, which compares with the upper bound &amp;lt;math&amp;gt;c&#039;_5 \leq 3 c&#039;_4 = 129&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Using [[DHJ(3)]], we have the upper bound&lt;br /&gt;
&lt;br /&gt;
: &amp;lt;math&amp;gt;c&#039;_n = o(3^n)&amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
but no effective decay rate is known. It would be good to have a combinatorial proof of this fact (which is weaker than [[DHJ(3)]], but implies [[Roth&#039;s theorem]]).&lt;br /&gt;
&lt;br /&gt;
== Notation ==&lt;br /&gt;
&lt;br /&gt;
Given a Moser set A in &amp;lt;math&amp;gt;[3]^n&amp;lt;/math&amp;gt;, we let a be the number of points in A with no 2s, b be the number of points in A with one 2, c the number of points with two 2s, etc.  We call (a,b,c,...) the &#039;&#039;statistics&#039;&#039; of A.  Given a slice S of &amp;lt;math&amp;gt;[3]^n&amp;lt;/math&amp;gt;, we let a(S), b(S), etc. denote the statistics of that slice (dropping the fixed coordinates).  Thus for instance if A = {11, 12, 22, 32}, then (a,b,c) = (1,2,1), and (a(1*),b(1*)) = (1,1).&lt;br /&gt;
&lt;br /&gt;
We call a statistic (a,b,c,...) &#039;&#039;attainable&#039;&#039; if it is attained by a Moser set.  We say that an attainable statistic is &#039;&#039;Pareto-optimal&#039;&#039; if it cannot be pointwise dominated by any other attainable statistic (a&#039;,b&#039;,c&#039;,...) (thus &amp;lt;math&amp;gt;a&#039; \geq a&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;b&#039; \geq b&amp;lt;/math&amp;gt;, etc.)  We say that it is &#039;&#039;extremal&#039;&#039; if it is not a convex combination of any other attainable statistic (this is a stronger property than Pareto-optimal).  For the purposes of maximising linear scores of attainable statistics, it suffices to check extremal statistics.&lt;br /&gt;
&lt;br /&gt;
We let &amp;lt;math&amp;gt;(\alpha_0,\alpha_1,\ldots)&amp;lt;/math&amp;gt; be the normalized version of &amp;lt;math&amp;gt;(a,b,\ldots)&amp;lt;/math&amp;gt;, in which one divides the number of points of a certain type in the set by the total number of points in the set.  Thus for instance &amp;lt;math&amp;gt;\alpha_0 = a/2^n, \alpha_1 = b/(n 2^{n-1}), \alpha_3 = c/(\binom{n}{2} 2^{n-2})&amp;lt;/math&amp;gt;, etc., and the &amp;lt;math&amp;gt;\alpha_i&amp;lt;/math&amp;gt; range between 0 and 1.  Averaging arguments show that any linear inequality obeyed by the &amp;lt;math&amp;gt;\alpha_i&amp;lt;/math&amp;gt; at one dimension is automatically inherited by higher dimensions, as are shifted versions of this inequality (in which &amp;lt;math&amp;gt;\alpha_i&amp;lt;/math&amp;gt; is replaced by &amp;lt;math&amp;gt;\alpha_{i+1}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
The idea in &#039;c-statistics&#039; is to identify 1s and 3s but leave the 2s intact. Let’s use x to denote letters that are either 1 or 3, then the 81 points get split up into 16 groups: 2222 (1 point), 222x, 22×2, 2×22, x222 (two points each), 22xx, 2×2x, x22x, 2xx2, x2×2, xx22 (four points each), 2xxx, x2xx, xx2x, xxx2 (eight points each), xxxx (sixteen points). Let c(w) denote the number of points inside a group w, e.g. c(xx22) is the number of points of the form xx22 inside the set, and is thus an integer from 0 to 4.&lt;br /&gt;
&lt;br /&gt;
== n=0 ==&lt;br /&gt;
&lt;br /&gt;
We trivially have &amp;lt;math&amp;gt;c&#039;_0=1.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== n=1 ==&lt;br /&gt;
&lt;br /&gt;
We trivially have &amp;lt;math&amp;gt;c&#039;_1=2.&amp;lt;/math&amp;gt;  The Pareto-optimal values of the statistics (a,b) are (1,1) and (2,0); these are also the extremals.  We thus have the inequality &amp;lt;math&amp;gt;a+b \leq 2&amp;lt;/math&amp;gt;, or in normalized notation&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;2\alpha_0 + \alpha_1 \leq 2&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== n=2 ==&lt;br /&gt;
&lt;br /&gt;
We have &amp;lt;math&amp;gt;c&#039;_2 = 6&amp;lt;/math&amp;gt;; the upper bound follows since &amp;lt;math&amp;gt;c&#039;_2 \leq 3 c&#039;_1&amp;lt;/math&amp;gt;, and the lower bound follows by deleting one of the two diagonals from &amp;lt;math&amp;gt;[3]^2&amp;lt;/math&amp;gt; (these are the only extremisers).&lt;br /&gt;
&lt;br /&gt;
The extremiser has statistics (a,b,c) = (2,4,0), which are of course Pareto-optimal.  If c=1 then we must have a, b at most 2 (look at the lines through 22).  This is attainable (e.g. {11, 12, 22, 23, 31}, and so (2,2,1) is another Pareto-optimal statistic.  If a=4, then b and c must be 0, so we get another Pareto-optimal statistic (4,0,0) (attainable by {11, 13, 31, 33} of course).  If a=3, then c=0 and b is at most 2, giving another Pareto-optimal statistic (3,2,0); but this is a convex combination of (4,0,0) and (2,4,0) and is thus not extremal.  Thus the complete set of extremal statistics are&lt;br /&gt;
&lt;br /&gt;
(4,0,0), (2,4,0), (2,2,1).&lt;br /&gt;
&lt;br /&gt;
The sharp linear inequalities obeyed by a,b,c (other than the trivial ones &amp;lt;math&amp;gt;a,b,c \geq 0&amp;lt;/math&amp;gt;) are then&lt;br /&gt;
&lt;br /&gt;
*&amp;lt;math&amp;gt;2a+b+2c \leq 8&amp;lt;/math&amp;gt;&lt;br /&gt;
*&amp;lt;math&amp;gt;b+2c \leq 4&amp;lt;/math&amp;gt;&lt;br /&gt;
*&amp;lt;math&amp;gt;a+2c \leq 4&amp;lt;/math&amp;gt;&lt;br /&gt;
*&amp;lt;math&amp;gt;c \leq 1&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
In normalized notation, we have&lt;br /&gt;
*&amp;lt;math&amp;gt;4\alpha_0 + 2\alpha_1 + \alpha_2 \leq 4&amp;lt;/math&amp;gt;&lt;br /&gt;
*&amp;lt;math&amp;gt;2\alpha_1 + \alpha_2 \leq 2&amp;lt;/math&amp;gt;&lt;br /&gt;
*&amp;lt;math&amp;gt;2\alpha_0 + \alpha_2 \leq 2&amp;lt;/math&amp;gt;&lt;br /&gt;
*&amp;lt;math&amp;gt;\alpha_2 \leq 1&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
The Pareto optimizers for c-statistics are (c22,c2x,cx2,cxx) = (1112),(0222),(0004), which are covered by the linear inequalities &lt;br /&gt;
*&amp;lt;math&amp;gt;c22+c2x+cxx \le 4&amp;lt;/math&amp;gt;, &lt;br /&gt;
*&amp;lt;math&amp;gt;c22+cx2+cxx \le 4&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== n=3 ==&lt;br /&gt;
&lt;br /&gt;
We have &amp;lt;math&amp;gt;c&#039;_3 = 16&amp;lt;/math&amp;gt;.  The lower bound can be seen for instance by taking all the strings with one 2, and half the strings with no 2 (e.g. the strings with an odd number of 1s).  The upper bound can be deduced from the corresponding [[upper and lower bounds]] for &amp;lt;math&amp;gt;c_3 = 18&amp;lt;/math&amp;gt;; the 17-point and 18-point line-free sets each contain a geometric line.&lt;br /&gt;
&lt;br /&gt;
If a Moser set in &amp;lt;math&amp;gt;[3]^3&amp;lt;/math&amp;gt; contains 222, then it can have at most 14 points, since the remaining 26 points in the cube split into 13 antipodal pairs, and at most one of each pair can lie in the set.  By exhausting over the &amp;lt;math&amp;gt;2^{13} = 8192&amp;lt;/math&amp;gt; possibilities, it can be shown that it is impossible for a 14-point set to exist; any Moser set containing 222 must in fact omit at least one antipodal pair completely and thus have only 13 points.  (A human proof of this fact can be [http://www.ma.rhul.ac.uk/~elsholtz/WWW/blog/mosertablogv01.pdf found here].)&lt;br /&gt;
&lt;br /&gt;
The Pareto-optimal statistics are&lt;br /&gt;
&lt;br /&gt;
(3,6,3,1),(4,4,3,1),(4,6,2,1),(2,6,6,0),(3,6,5,0),(4,4,5,0),(3,7,4,0),(4,6,4,0), (3,9,3,0),(4,7,3,0),(5,4,3,0),(4,9,2,0),(5,6,2,0),(6,3,2,0),(3,10,1,0),(5,7,1,0), (6,4,1,0),(4,12,0,0),(5,9,0,0),(6,6,0,0),(7,3,0,0),(8,0,0,0).&lt;br /&gt;
&lt;br /&gt;
These were found from a search of the &amp;lt;math&amp;gt;2^{27}&amp;lt;/math&amp;gt; subsets of the cube.&lt;br /&gt;
A spreadsheet containing these statistics can be [http://spreadsheets.google.com/ccc?key=p5T0SktZY9DuKZ2DyzO9EOg&amp;amp;hl=en# found here].&lt;br /&gt;
&lt;br /&gt;
The extremal statistics are&lt;br /&gt;
&lt;br /&gt;
(3,6,3,1),(4,4,3,1),(4,6,2,1),(2,6,6,0),(4,4,5,0),(4,6,4,0),(4,12,0,0),(8,0,0,0)&lt;br /&gt;
&lt;br /&gt;
The sharp linear bounds are :&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;math&amp;gt;2a+b+2c+4d \leq 22&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;3a+2b+3c+6d \leq 36&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;7a+2b+4c+8d \leq 56&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;6a+2b+3c+6d \leq 48&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;b+c+3d \leq 12&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;a+2c+4d \leq 14&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;5a+4c+8d \leq 40&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;a+4d \leq 8&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;b+6d \leq 12&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;c+3d \leq 6&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;d \leq 1&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In normalized notation,&lt;br /&gt;
* &amp;lt;math&amp;gt;8\alpha_0+ 6\alpha_1 + 6\alpha_2 + 2\alpha_3 \leq 11&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;4\alpha_0+4\alpha_1+3\alpha_2+\alpha_3 \leq 6&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;7\alpha_0+3\alpha_1+3\alpha_2+\alpha_3 \leq 7&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;8\alpha_0+3\alpha_1+3\alpha_2+\alpha_3 \leq 8&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;4\alpha_1+2\alpha_2+\alpha_3 \leq 4&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;4\alpha_0+6\alpha_2+2\alpha_3 \leq 7&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;5\alpha_0+3\alpha_2+\alpha_3 \leq 5&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;2\alpha_0+\alpha_3 \leq 2&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;2\alpha_1+\alpha_3 \leq 2&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;2\alpha_2+\alpha_3 \leq 2&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;\alpha_3 \leq 1&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The c-statistics can also be found from an exhaustive search of Moser sets.  The resulting Pareto sets and linear inequalities can be found on Sheet 8 of [http://spreadsheets.google.com/ccc?key=p5T0SktZY9DuKZ2DyzO9EOg&amp;amp;hl=en# this spreadsheet]&lt;br /&gt;
&lt;br /&gt;
== n=4 ==&lt;br /&gt;
&lt;br /&gt;
A [http://abel.math.umu.se/~klasm/extremal-moser-n=5-t=3 computer search] has obtained all extremisers to &amp;lt;math&amp;gt;c&#039;_4=43&amp;lt;/math&amp;gt;.  The 42-point solutions can be found [http://abel.math.umu.se/~klasm/moser-n=4-t=3-p=42.gz here].&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof that &amp;lt;math&amp;gt;c&#039;_4 \leq 43&amp;lt;/math&amp;gt;&#039;&#039;&#039;: &lt;br /&gt;
When e=1 (i.e. the 4D set contains 2222) then we have at most 41 points (in fact at most 39) by counting antipodal points, so assume e=0.&lt;br /&gt;
&lt;br /&gt;
Define the score of a 3D slice to be a/4+b/3+c/2+d.  Observe from double counting that the size of a 4D set is the sum of the scores of its eight side slices.&lt;br /&gt;
&lt;br /&gt;
But by [http://spreadsheets.google.com/ccc?key=p5T0SktZY9DuKZ2DyzO9EOg&amp;amp;hl=en looking at the extremals] we see that the largest score is 44/8, attained at only one point, namely when (a,b,c,d) = (2,6,6,0).  So the only way one can have a 44-point set is if all side slices are (2,6,6,0), or equivalently if the whole set has statistics (a,b,c,d,e) = (4,16,24,0,0).  But then we have all the points with two 2s, which means that the four &amp;quot;a&amp;quot; points cannot be separated by Hamming distance 2.  We conclude that we must have an antipodal pair among the &amp;quot;a&amp;quot; points with an odd number of 1s, and an antipodal pair among the &amp;quot;a&amp;quot; points with an even number of 1s.    By the symmetries of the cube, we may take the a-set to then be 1111, 3333, 1113, 3331.  But then the &amp;quot;b&amp;quot; set must exclude both 1112 and 3332, and so can have at most three points in the eight-point set xyz2 (with x,y,z=1,3) rather than four (to get four points one must alternate in a checkerboard pattern).  Adding this to the at most four points of the form xy2z, x2yz, 2xyz we see that b is at most 15, a contradiction. &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Given a subset of &amp;lt;math&amp;gt;[3]^4&amp;lt;/math&amp;gt;, let a be the number of points with no 2s, b be the number of points with 1 2, and so forth.  The quintuple (a,b,c,d,e) thus lies between (0,0,0,0,0) and (16,32,24,8,1).&lt;br /&gt;
&lt;br /&gt;
The 43-point solutions have distributions (a,b,c,d,e) as follows:&lt;br /&gt;
&lt;br /&gt;
* (5,20,18,0,0) [16 solutions]&lt;br /&gt;
* (4,16,23,0,0) [768 solutions]&lt;br /&gt;
* (3,16,24,0,0) [512 solutions]&lt;br /&gt;
* (4,15,24,0,0) [256 solutions]&lt;br /&gt;
&lt;br /&gt;
The 42-point solutions are [http://abel.math.umu.se/~klasm/Moser-42-stat.pdf distributed as follows]:&lt;br /&gt;
&lt;br /&gt;
* (6,24,12,0,0) [[http://abel.math.umu.se/~klasm/moser-n=4-42-12 8 solutions]] &lt;br /&gt;
* (5,20,17,0,0) [576 solutions]&lt;br /&gt;
* (5,19,18,0,0) [384 solutions]&lt;br /&gt;
* (6,16,18,2,0) [[http://abel.math.umu.se/~klasm/moser-n=4-42-e=2 192 solutions]]&lt;br /&gt;
* (4,20,18,0,0) [272 solutions]&lt;br /&gt;
* (5,17,20,0,0) [192 solutions]&lt;br /&gt;
* (5,16,21,0,0) [3584 solutions]&lt;br /&gt;
* (4,17,21,0,0) [768 solutions]&lt;br /&gt;
* (4,16,22,0,0) [26880 solutions]&lt;br /&gt;
* (5,15,22,0,0) [1536 solutions]&lt;br /&gt;
* (4,15,23,0,0) [22272 solutions]&lt;br /&gt;
* (3,16,23,0,0) [15744 solutions]&lt;br /&gt;
* (4,14,24,0,0) [4224 solutions]&lt;br /&gt;
* (3,15,24,0,0) [8704 solutions]&lt;br /&gt;
* (2,16,24,0,0) [896 solutions]&lt;br /&gt;
&lt;br /&gt;
Note how c is usually quite large, and d quite low.&lt;br /&gt;
&lt;br /&gt;
One of the (6,24,12,0,0) solutions is &amp;lt;math&amp;gt;\Gamma_{220}+\Gamma_{202}+\Gamma_{022}+\Gamma_{112}+\Gamma_{211}&amp;lt;/math&amp;gt; (i.e. the set of points containing exactly two 1s, and/or exactly two 3s).  The other seven are reflections of this set.&lt;br /&gt;
&lt;br /&gt;
There are 2,765,200 41-point solutions, [http://abel.math.umu.se/~klasm/solutions-4-t=3-41-moser.gz listed here].  The statistics for such points can be [http://abel.math.umu.se/~klasm/Moser-41-stat.pdf found here].  Noteworthy features of the statistics:&lt;br /&gt;
&lt;br /&gt;
* d is at most 3 (and, except for [http://abel.math.umu.se/~klasm/moser-n=3-t=3-41-d=3.gz 256 exceptional solutions] of the shape (5,15,18,3,0), have d at most 2; here are the [http://abel.math.umu.se/~klasm/moser-n=3-t=3-41-d=2.gz d=2 solutions] and [http://abel.math.umu.se/~klasm/moser-n=3-t=3-41-d=1.gz d=1 solutions])&lt;br /&gt;
* c is at least 6 (and, except for [http://abel.math.umu.se/~klasm/moser-n=3-t=3-41-c=6.gz 16 exceptional solutions] of the shape (7,28,6,0,0), have c at least 11).&lt;br /&gt;
&lt;br /&gt;
Statistics for the 41-point, 42-point, and 43-point solutions can be found [http://spreadsheets.google.com/ccc?key=p5T0SktZY9DuqNcxJ171Bbw&amp;amp;hl=en here].&lt;br /&gt;
&lt;br /&gt;
If a Moser set in &amp;lt;math&amp;gt;[3]^4&amp;lt;/math&amp;gt; contains 2222, then by the n=3 theory, any middle slice (i.e. 2***, *2**, **2*, or ***2) is missing at least one antipodal pair.  But each antipodal pair belongs to at most three middle slices, thus two of the 40 antipodal pairs must be completely missing.  As a consequence, any Moser set containing 2222 can have at most 39 points.&lt;br /&gt;
(A more refined analysis can be found at [http://www.ma.rhul.ac.uk/~elsholtz/WWW/blog/mosertablogv01.pdf found here].)&lt;br /&gt;
&lt;br /&gt;
We have the following inequalities connecting a,b,c,d,e:&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;math&amp;gt;4a+b \leq 64&amp;lt;/math&amp;gt;:  There are 32 lines connecting two &amp;quot;a&amp;quot; points with a &amp;quot;b&amp;quot; point; each &amp;quot;a&amp;quot; point belongs to four of these lines, and each &amp;quot;b&amp;quot; point belongs to one.  But each such line can have at most two points in the set, and the claim follows.&lt;br /&gt;
* This can be refined to &amp;lt;math&amp;gt;4a+b+\frac{2}{3} c \leq 64&amp;lt;/math&amp;gt;: There are 24 planes connecting four &amp;quot;a&amp;quot; points, four &amp;quot;b&amp;quot; points, and one &amp;quot;c&amp;quot; point; each &amp;quot;a&amp;quot; point belongs to six of these, each &amp;quot;b&amp;quot; point belongs to three, and each &amp;quot;c&amp;quot; point belongs to one.  For each of these planes, we have &amp;lt;math&amp;gt;2a + b + 2c \leq 8&amp;lt;/math&amp;gt; from the n=2 theory, and the claim follows.&lt;br /&gt;
* &amp;lt;math&amp;gt;6a+2c \leq 96&amp;lt;/math&amp;gt;:  There are 96 lines connecting two &amp;quot;a&amp;quot; points with a &amp;quot;c&amp;quot; point; each &amp;quot;a&amp;quot; point belongs to six of these lines, and each &amp;quot;c&amp;quot; point belongs to two.  But each such line can have at most two points in the set, and the claim follows.&lt;br /&gt;
* &amp;lt;math&amp;gt;3b+2c \leq 96&amp;lt;/math&amp;gt;:  There are 48 lines connecting two &amp;quot;b&amp;quot; points to a &amp;quot;c&amp;quot; point; each &amp;quot;b&amp;quot; point belongs to three of these points, and each &amp;quot;c&amp;quot; point belongs to two.  But each such line can have at most two points in the set, and the claim follows.&lt;br /&gt;
&lt;br /&gt;
The inequalities for n=3 imply inequalities for n=4.  Indeed, there are eight side slices of &amp;lt;math&amp;gt;[3]^4&amp;lt;/math&amp;gt;; each &amp;quot;a&amp;quot; point belongs to four of these, each &amp;quot;b&amp;quot; point belongs to three, each &amp;quot;c&amp;quot; point belongs to two, and each &amp;quot;d&amp;quot; point belongs to one.  Thus, any inequality of the form&lt;br /&gt;
:&amp;lt;math&amp;gt; \alpha a + \beta b + \gamma c + \delta d \leq M&amp;lt;/math&amp;gt;&lt;br /&gt;
in three dimensions implies the inequality&lt;br /&gt;
:&amp;lt;math&amp;gt; 4 \alpha a + 3 \beta b + 2 \gamma c + \delta d \leq 8M&amp;lt;/math&amp;gt;&lt;br /&gt;
in four dimensions.  Thus we have&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;math&amp;gt;8a+3b+4c+4d \leq 176&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;2a+b+c+d \leq 48&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;14a+3b+4c+4d \leq 244&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;4a+b+c+d \leq 64&amp;lt;/math&amp;gt; &lt;br /&gt;
* &amp;lt;math&amp;gt;3b+2c+3d \leq 96&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;a+c+d \leq 28&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;5a+2c+2d \leq 80&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;a+d \leq 16&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;b+2d \leq 32&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;2c+3d \leq 48&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Cubes also sit diagonally in the 4-dimensional cube.  They may have coordinates xxyz, where xx runs over (11,22,33) or (13,22,31), while y and z run over (1,2,3).  These cubes have a different distribution of 2s than the ordinary slices: (a,b,c,d,e) = (8,8,6,4,1) instead of (8,12,6,1,0) for the side slices and (0,8,12,6,1) for the middle slices.  So a different set of inequalities arise.  It is possible to run through the same procedure as described above for n=3, and the inequalities that arise are &amp;lt;math&amp;gt;2a+b+2c+2d+4e \le 24&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;4a+b+2c+2d+4e \le 32&amp;lt;/math&amp;gt; within the 3D cube, which when averaged becomes &amp;lt;math&amp;gt;4a+b+2c+4d+16e \le 96&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;8a+b+2c+4d+16e \le 128&amp;lt;/math&amp;gt; for the 4D cube.  A spreadsheet containing these statistics can be [http://spreadsheets.google.com/ccc?key=p5T0SktZY9DuKZ2DyzO9EOg&amp;amp;hl=en# found here] on sheet 2.  Other sheets of this spreadsheet contain results for a 3D cube sitting diagonally in a 5D, 6D or 7D cube.  Notice the similarity of the equations that arise for the xxxyz, xxyyz and xxxxyz diagonals.  Also notice the xxxxyyz diagonals have the same Pareto sets and linear inequalities as the cube&#039;s c-statistics&lt;br /&gt;
&lt;br /&gt;
== n=5 ==&lt;br /&gt;
&lt;br /&gt;
Let (A,B,C,D,E,F) be the statistics of a five-dimensional Moser set, thus (A,B,C,D,E,F) varies between (0,0,0,0,0,0) and (32,80,80,40,10,1).&lt;br /&gt;
&lt;br /&gt;
There are several Moser sets with the statistics (4,40,80,0,0,0), which thus have 124 points.  Indeed, one can take&lt;br /&gt;
&lt;br /&gt;
* all points with two 2s;&lt;br /&gt;
* all points with one 2 and an even number of 1s; and&lt;br /&gt;
* (13111),(13113),(31311),(13333). Any two of these four points differ in three places, except for one pair of points that differ in one place.&lt;br /&gt;
&lt;br /&gt;
For the rest of this section, we assume that the Moser set &amp;lt;math&amp;gt;{\mathcal A}&amp;lt;/math&amp;gt; is a 125-point set.&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 1&#039;&#039;&#039;: F=0.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; If F is non-zero, then the Moser set contains 22222, then each of the 121 antipodal pairs can have at most one point in the set, leading to only 122 points. &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 2&#039;&#039;&#039;: Every middle slice of &amp;lt;math&amp;gt;{\mathcal A}&amp;lt;/math&amp;gt; has at most 41 points.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039;  Without loss of generality we may consider the 2**** slice.  There are two cases, depending on the value of c(2****).&lt;br /&gt;
&lt;br /&gt;
Suppose first that c is at least 17; thus there are at least 17 points of the form 222xy, 22x2y, 22xy2, 2x2y2, 2xy22, or 2x22y, where the x, y denote 1 or 3.  This gives 34 &amp;quot;xy&amp;quot; wildcards in all in four coordinate slots; by the pigeonhole principle one of the slots sees at least 9 of the wildcards.  By symmetry, we may assume that the second coordinate slot sees at least 9 of these wildcards, thus there are at least 9 points of the form 2x22y, 2x2y2, 2xy22.  The x=1, x=3 cases can absorb at most six of these, thus each of these cases must absorb at least three points, with at least one absorbing at least five.  Let&#039;s say that it&#039;s the x=3 case that absorbs 5; thus &amp;lt;math&amp;gt;d(*1***) \geq 3&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;d(*3***) \geq 5&amp;lt;/math&amp;gt;.  From the n=4 theory this means that the *1*** slice has at most 41 points, and the *3*** slice has at most 40.  Meanwhile, the middle slice has at most 43, leading to 41+41+42=124 points in all.&lt;br /&gt;
&lt;br /&gt;
Now suppose c is less than 17; then by the n=4 theory the middle slice is one of the eight (6,24,12,0,0) sets.  Without loss of generality we may take it to be &amp;lt;math&amp;gt;\Gamma_{220}+\Gamma_{202}+\Gamma_{022}+\Gamma_{112}+\Gamma_{211}&amp;lt;/math&amp;gt;; in particular, the middle slice contains the points 21122 21212 21221 23322 23232 23223.  In particular, the *1*** and *3*** slices have a &amp;quot;d&amp;quot; value of at least three, and so have at most 41 points.  If the *2*** slice has at most 42 points, then we are at 41+42+41=124 points as needed, but if we have 43 or more, then we are back in the first case (as &amp;lt;math&amp;gt;c(*2***) \geq 17&amp;lt;/math&amp;gt;) after permuting the indices.&lt;br /&gt;
&amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Since 125=41+41+43, we thus have&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Corollary 1&#039;&#039;&#039;: Every side slice of &amp;lt;math&amp;gt;{\mathcal A}&amp;lt;/math&amp;gt; has at least 41 points.  If one side slice does have 41 points, then the other has 43.&lt;br /&gt;
&lt;br /&gt;
Combining this with the n=4 statistics, we conclude&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Corollary 2&#039;&#039;&#039;: Every side slice of &amp;lt;math&amp;gt;{\mathcal A}&amp;lt;/math&amp;gt; has e=0, and &amp;lt;math&amp;gt;d \leq 3&amp;lt;/math&amp;gt;.  Given two opposite side slices, e.g. 1**** and 3****, we have &amp;lt;math&amp;gt;d(1****)+d(3****) \leq 4&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Corollary 3&#039;&#039;&#039;: E=0.&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Corollary 4&#039;&#039;&#039;: Any middle slice has a &amp;quot;c&amp;quot; value of at most 8.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; Let&#039;s work with the 2**** slice.  By Corollary 2, there are at most four contributions to c(2****) of the form 21*** or 23***, and similarly for the other three positions.  Double counting then gives the claim. &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 3&#039;&#039;&#039;: &amp;lt;math&amp;gt;2B+C \leq 160&amp;lt;/math&amp;gt;.   &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039;: There are 160 lines connecting one &amp;quot;C&amp;quot; point to two &amp;quot;B&amp;quot; points (e.g. 11112, 11122, 11132); each &amp;quot;C&amp;quot; point lies in two of these, and each &amp;quot;B&amp;quot; point lies on four.  A Moser set can have at most two points out of each of these lines.  Double counting then gives the claim.  &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 4&#039;&#039;&#039; Given m A-points with &amp;lt;math&amp;gt;m \geq 5&amp;lt;/math&amp;gt;, there exists at least m-4 pairs (a,b) of such A-points with Hamming distance exactly two (i.e. b differs from a in exactly two places).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; It suffices to check this for m=5, since the case of larger m then follows by locating a pair, removing a point that contributes to that pair, and using the induction hypothesis.  Given 5 A-points, we may assume by the pigeonhole principle and symmetry that at least three of them have an odd number of 1s.  Suppose 11111 is one of the points, and that no pair has Hamming distance 2. All points with two 3s are excluded, so the only points allowed with an odd number of 1s are those with four 3s. But all those points differ from each other in two positions, so at most one of them is allowed.  &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Corollary 5&#039;&#039;&#039; &amp;lt;math&amp;gt;C \leq 79&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039;: Suppose for contradiction that C=80, then D=0 and &amp;lt;math&amp;gt;B \leq 40&amp;lt;/math&amp;gt;.  From Lemma 4 we also see that A cannot be 5 or more, leading to the contradiction.&lt;br /&gt;
&amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Define the &#039;&#039;&#039;score&#039;&#039;&#039; of a Moser set in &amp;lt;math&amp;gt;[3]^4&amp;lt;/math&amp;gt; to be the quantity &amp;lt;math&amp;gt;a + 5b/4 + 5c/3 + 5d/2 + 5e&amp;lt;/math&amp;gt;.  Double-counting (and Lemma 2) gives&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 5&#039;&#039;&#039;  The total score of all the ten side-slices of &amp;lt;math&amp;gt;{\mathcal A}&amp;lt;/math&amp;gt; is equal to &amp;lt;math&amp;gt;5|{\mathcal A}| = 5 \times 125&amp;lt;/math&amp;gt;.  In particular, there exists a pair of opposite side-slices whose scores add up to at least 125.&lt;br /&gt;
&lt;br /&gt;
By Lemma 5 and symmetry, we may assume that the 1**** and 3**** slices have score adding up to at least 125.  By Lemma 2, the 2**** slice has at most 41 points, which imply that the 1**** and 3**** have 41, 42, or 43 points.  From the [http://spreadsheets.google.com/ccc?key=p5T0SktZY9DuqNcxJ171Bbw&amp;amp;hl=en n=4 statistics] we know that all 41-point, 42-point, 43-point slices have score less than 62, with the following exceptions:&lt;br /&gt;
&lt;br /&gt;
# (2,16,24,0,0) [42 points, score: 62]&lt;br /&gt;
# (4,16,23,0,0) [43 points, score: 62 1/3]&lt;br /&gt;
# (4,15,24,0,0) [43 points, score: 62 3/4]&lt;br /&gt;
# (3,16,24,0,0) [43 points, score: 63]&lt;br /&gt;
&lt;br /&gt;
Thus the 1**** and 3**** slices must come from the above list.  Furthermore, if one of the slices is of type 1, then the other must be of type 4, and if one slice is of type 2, then the other must be of type 3 or 4.&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 6&#039;&#039;&#039; There exists one cut in which the side slices have total score strictly greater than 125 (i.e. they thus involve only Type 2, Type 3, and Type 4 slices, with at least one side slice not equal to Type 2, and the cut here is of the form 43+39+43).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; If not, then all cuts have side slices exactly equal to 125, which by the above table implies that one is Type 1 and one is Type 4, in particular all side slices have c=24.  But this forces C=80, contradicting Corollary 5. &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Adding up the corners we conclude&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Corollary 6&#039;&#039;&#039; &amp;lt;math&amp;gt;6 \leq A \leq 8&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 7&#039;&#039;&#039; &amp;lt;math&amp;gt;D=0&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; Firstly, from Lemma 6 we have a cut in which the two side slices are omitting at most one C-point between them (and have no D-point), which forces the middle slice to have at most one D-point; thus D is at most 1.&lt;br /&gt;
&lt;br /&gt;
Now suppose instead that D=1 (e.g. if 11222 was in the set); then there would be two choices of coordinates in which one of the side slices would have d=1 (e.g. 1**** and *1****). But the [http://spreadsheets.google.com/ccc?key=p5T0SktZY9DuqNcxJ171Bbw&amp;amp;hl=en n=4 statistics] show that such slices have a score of at most 59 7/12, so that the total score from those two coordinates is at most 63 + 59 7/12 = 122 7/12. On the other hand, the other three slices have a net score of at most 63+63 = 126. This averages out to at most 124.633... &amp;lt; 125, a contradiction.  &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Corollary 7&#039;&#039;&#039; Every middle slice has at most 40 points.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; From Lemma 7 we see that the middle slice must have c=0, but from the n=4 statistics this is not possible for any slice of size 41 or higher (alternatively, one can use the inequalities &amp;lt;math&amp;gt;4a+b \leq 64&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;b \leq 32&amp;lt;/math&amp;gt;). &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Each middle slice now has 39 or 40 points, with c=d=e=0, and so from the inequalities &amp;lt;math&amp;gt;4a+b \leq 64&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;b \leq 32&amp;lt;/math&amp;gt; must have statistics (8,32,0,0,0),(7,32,0,0,0), or (8,31,0,0,0).  In particular the &amp;quot;a&amp;quot; index of the middle slices is at most 8.  Summing over all middle slices we conclude&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 9&#039;&#039;&#039; B is at most 40.&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 10&#039;&#039;&#039; C is equal to 78 or 79.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; By Corollary 5, it suffices to show that &amp;lt;math&amp;gt;C \geq 78&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
As 125=43+39+43, we see that every center slice must have at least 39 points. By Lemma 2 and Lemma 7 the center slice has c=d=e=0, thus the center slice has a+b &amp;gt;= 39.  On the other hand, from the n=4 theory we have 4a+b &amp;lt;= 64, which forces b &amp;gt;= 31.&lt;br /&gt;
&lt;br /&gt;
By double counting, we see that 2C is equal to the sum of the b&#039;s of all the five center slices.  Thus C &amp;gt;= 5*31/2 = 77.5 and the claim follows.  &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
From Lemmas 9 and 10 we see that &amp;lt;math&amp;gt;B+C \leq 119&amp;lt;/math&amp;gt;, and thus &amp;lt;math&amp;gt;A \geq 6&amp;lt;/math&amp;gt;.  Also, if &amp;lt;math&amp;gt;A \geq 7&amp;lt;/math&amp;gt;, then by Lemma 4 we have at least three pairs of A points with Hamming distance 2.  At most two of these pairs eliminate the same C point, so we would have C=78 in that case.  &lt;br /&gt;
&lt;br /&gt;
Putting all the above facts together, we see that (A,B,C,D,E,F) must be one of the following triples:&lt;br /&gt;
&lt;br /&gt;
* (6,40,79,0,0,0)&lt;br /&gt;
* (7,40,78,0,0,0)&lt;br /&gt;
* (8,39,78,0,0,0)&lt;br /&gt;
&lt;br /&gt;
All three cases can be eliminated, giving &amp;lt;math&amp;gt;c&#039;_5=124&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== Elimination of (6,40,79,0,0,0) ===&lt;br /&gt;
&lt;br /&gt;
Look at the 6 A points.  From Lemma 4 we have at least two pairs (a,b), (c,d) of A-points that have Hamming separation 2.&lt;br /&gt;
&lt;br /&gt;
Now look at the midpoints of these two pairs; these midpoints are C-points cannot lie in the set.  But we have exactly one C-point missing from the set, thus the midpoints must be the same.  By symmetry, we may thus assume that the two pairs are (11111,11133) and (11113,11131).  Thus 11111,11133, 11113, 11131 are in the set, and so every C-point other than 11122 is in the set.  On the other hand, the B-points 11121, 11123, 11112, 11132 lie outside the set.&lt;br /&gt;
&lt;br /&gt;
At most one of 11312, 11332 lie in the set (since 11322 lies in the set).   Suppose that 11312 lies outside the set, then we have a pair (xy1z2, xy3z2) with x,y,z = 1,3 that is totally omitted from the set, namely (11112,11312).  On the other hand, every other pair of this form can have at most point in the set, thus there are at most seven points in the set of the form (xyzw2) with x,y,z,w = 1,3.  Similarly there are at most 8 points of the form xyz2w, or of xy2zw, x2yzw, 2xyzw, leading to at most 39 B-points in all, contradiction.&lt;br /&gt;
&lt;br /&gt;
=== Elimination of (7,40,78,0,0,0) ===&lt;br /&gt;
&lt;br /&gt;
By Lemma 4, we have at least three pairs of A-points of distance two apart that lie in the set.&lt;br /&gt;
The midpoints of these pairs are C-points that do not lie in the set; but there are only two such C-points, thus two pairs must have the same midpoint, so we may assume as before that 111xy lies in the set for x,y=1,3, which implies that 1112* and 111*2 lie outside the set.&lt;br /&gt;
&lt;br /&gt;
Now consider the 160 lines between 2 B points and one C point (cf. Lemma 3).  The sum of all the points in each such line (counting multiplicity) is 4B+2C = 316.  On the other hand, every one of the 160 lines can have at most two points, and four of these lines (namely 1112*, 111*2) have no points.  Thus all the other lines must have exactly two points.  &lt;br /&gt;
&lt;br /&gt;
We know that the C-point 11122 is missing from the set; there is one other missing C-point.  Since 1112x, 111x2 lie outside the set, we conclude from the previous paragraph that 1132x, 113x2 and 1312x, 131x2 lie in the set.  Taking midpoints we conclude that 11322 and 13122 lie outside the set.  But this is now three C-points missing (together with 11122), a contradiction.&lt;br /&gt;
&lt;br /&gt;
=== Elimination of (8,39,78,0,0,0) ===&lt;br /&gt;
&lt;br /&gt;
By Lemma 4 we have at least four pairs of A-points of distance two apart that lie in the set. The midpoints of these pairs are C-points that do not lie in the set; but there are only two such C-points, thus two pairs (a,b), (c,d) must have the same midpoint p, and the other two pairs (a&#039;,b&#039;), (c&#039;,d&#039;) must also have the same midpoint p&#039;.  (Note that every C-point is the midpoint of at most two such pairs.)&lt;br /&gt;
&lt;br /&gt;
Now consider the 160 lines between 2 B points and one C point (cf. Lemma 3).  The sum of all the points in each such line (counting multiplicity) is 4B+2C = 312.  Every one of the 160 lines can have at most two points, and four of these (those in the plane of (a,b,c,d) or of (a&#039;,b&#039;,c&#039;,d&#039;) have no points.  Thus all other lines must have exactly two points.&lt;br /&gt;
&lt;br /&gt;
Without loss of generality we have (a,b)=(11111,11133), (c,d) = (11113,11131), thus p = 11122.  By permuting the first three indices, we may assume that p&#039; is not of the form x2y2z, x2yz2, xy22z, xy2z2.  Then 1112x lies outside the set and 1122x lies in the set, so by the above paragraph 1132x lies in the set; similarly for 113x2, 1312x, 131x2.  This implies that 13122, 11322 lie outside the set, but this (together with 11122) shows that at least three C-points are missing, a contradiction.&lt;br /&gt;
&lt;br /&gt;
== General n ==&lt;br /&gt;
&lt;br /&gt;
General solution for &amp;lt;math&amp;gt;c&#039;_N&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* q 2s, all points from A(N-q,1)&lt;br /&gt;
* q-1 2s, points from A(N-q+1,2)&lt;br /&gt;
* q-2 2s, points from A(N-q+2,3)&lt;br /&gt;
* etc.&lt;br /&gt;
&lt;br /&gt;
where A(m,d) is a subset of &amp;lt;math&amp;gt;[1,3]^m&amp;lt;/math&amp;gt; for which any two points differ from each other in at least d places.&lt;br /&gt;
&lt;br /&gt;
Mathworld’s entry on error-correcting codes suggests it might be NP-complete to find the size of A(m,d) in general.&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;math&amp;gt;|A(m,1)| = 2^m&amp;lt;/math&amp;gt; because it includes all points in &amp;lt;math&amp;gt;[1,3]^m&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;|A(m,2)| = 2^{m-1}&amp;lt;/math&amp;gt; because it can include all points in &amp;lt;math&amp;gt;[1,3]^m&amp;lt;/math&amp;gt; with an odd number of 1s&lt;br /&gt;
&lt;br /&gt;
The integer programming routine from Maple 12 was used to obtain upper bounds for &amp;lt;math&amp;gt;c&#039;_6&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;c&#039;_7&amp;lt;/math&amp;gt;.  A large number of linear inequalities, described above in sections (n=3) and (n=4), were combined.  The details are in [[Maple calculations]].  The results were that &amp;lt;math&amp;gt;c&#039;_6 \le 361&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;c&#039;_7 \le 1071&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
A [[genetic algorithm]] has provided the following examples:&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;math&amp;gt;c&#039;_6 \geq 353&amp;lt;/math&amp;gt; (26 examples; [http://twofoldgaze.wordpress.com/2009/03/10/353-element-solution/ here is one])&lt;br /&gt;
* &amp;lt;math&amp;gt;c&#039;_7 \geq 988&amp;lt;/math&amp;gt; [http://twofoldgaze.wordpress.com/2009/03/10/978-element-solution/ Here is the example]&lt;br /&gt;
&lt;br /&gt;
== Larger sides (k&amp;gt;3) ==&lt;br /&gt;
&lt;br /&gt;
The following set gives a lower bound for Moser’s cube &amp;lt;math&amp;gt;[4]^n&amp;lt;/math&amp;gt; (values 1,2,3,4):  Pick all points where q entries are 2 or 3; and also pick those where q-1 entries are 2 or 3 and an odd number of entries are 1.  This is maximized when q is near n/2, giving a lower bound of&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\binom{n}{n/2} 2^n + \binom{n}{n/2-1} 2^{n-1}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
which is comparable to &amp;lt;math&amp;gt;4^n/\sqrt{n}&amp;lt;/math&amp;gt; by [[Stirling&#039;s formula]].&lt;br /&gt;
&lt;br /&gt;
For k=5 (values 1,2,3,4,5) If A, B, C, D, and E denote the numbers of 1-s, 2-s, 3-s, 4-s and 5-s then the first three points of a geometric line form a 3-term arithmetic progression in A+E+2(B+D)+3C. So, for k=5 we have a similar lower bound for the Moser’s problem as for DHJ k=3, i.e. &amp;lt;math&amp;gt;5^{n - O(\sqrt{\log n})}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
The k=6 version of Moser implies DHJ(3).  Indeed, any k=3 combinatorial line-free set can be &amp;quot;doubled up&amp;quot; into a k=6 geometric line-free set of the same density by pulling back the set from the map &amp;lt;math&amp;gt;\phi: [6]^n \to [3]^n&amp;lt;/math&amp;gt; that maps 1, 2, 3, 4, 5, 6 to 1, 2, 3, 3, 2, 1 respectively; note that this map sends k=6 geometric lines to k=3 combinatorial lines.&lt;/div&gt;</summary>
		<author><name>121.220.134.232</name></author>
	</entry>
	<entry>
		<id>https://michaelnielsen.org/polymath/index.php?title=Moser%27s_cube_problem&amp;diff=1032</id>
		<title>Moser&#039;s cube problem</title>
		<link rel="alternate" type="text/html" href="https://michaelnielsen.org/polymath/index.php?title=Moser%27s_cube_problem&amp;diff=1032"/>
		<updated>2009-03-21T13:51:31Z</updated>

		<summary type="html">&lt;p&gt;121.220.134.232: /* n=5 */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Define a &#039;&#039;Moser set&#039;&#039; to be a subset of &amp;lt;math&amp;gt;[3]^n&amp;lt;/math&amp;gt; which does not contain any [[geometric line]], and let &amp;lt;math&amp;gt;c&#039;_n&amp;lt;/math&amp;gt; denote the size of the largest Moser set in &amp;lt;math&amp;gt;[3]^n&amp;lt;/math&amp;gt;.  The first few values are (see [http://www.research.att.com/~njas/sequences/A003142 OEIS A003142]):&lt;br /&gt;
&lt;br /&gt;
: &amp;lt;math&amp;gt;c&#039;_0 = 1; c&#039;_1 = 2; c&#039;_2 = 6; c&#039;_3 = 16; c&#039;_4 = 43; c&#039;_5 = 124.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Beyond this point, we only have some upper and lower bounds, in particular &amp;lt;math&amp;gt;353 \leq c&#039;_6 \leq 361&amp;lt;/math&amp;gt;; see [http://spreadsheets.google.com/ccc?key=p5T0SktZY9DsU-uZ1tK7VEg this spreadsheet] for the latest bounds.&lt;br /&gt;
&lt;br /&gt;
The best known asymptotic lower bound for &amp;lt;math&amp;gt;c&#039;_n&amp;lt;/math&amp;gt; is&lt;br /&gt;
&lt;br /&gt;
: &amp;lt;math&amp;gt;c&#039;_n \gg 3^n/\sqrt{n}&amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
formed by fixing the number of 2s to a single value near n/3.  Compare this to the DHJ(2) or Sperner limit of &amp;lt;math&amp;gt;2^n/\sqrt{n}&amp;lt;/math&amp;gt;.  Is it possible to do any better?  Note that we have a [[Upper_and_lower_bounds#Asymptotics|significantly better bound]] for the DHJ(3) &amp;lt;math&amp;gt;c_n&amp;lt;/math&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
: &amp;lt;math&amp;gt;c_n \geq 3^{n-O(\sqrt{\log n})}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
A more precise lower bound is&lt;br /&gt;
&lt;br /&gt;
: &amp;lt;math&amp;gt;c&#039;_n \geq \binom{n+1}{q} 2^{n-q}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where q is the nearest integer to &amp;lt;math&amp;gt;n/3&amp;lt;/math&amp;gt;, formed by taking all strings with q 2s, together with all strings with q-1 2s and an odd number of 1s.  This for instance gives the lower bound &amp;lt;math&amp;gt;c&#039;_5 \geq 120&amp;lt;/math&amp;gt;, which compares with the upper bound &amp;lt;math&amp;gt;c&#039;_5 \leq 3 c&#039;_4 = 129&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Using [[DHJ(3)]], we have the upper bound&lt;br /&gt;
&lt;br /&gt;
: &amp;lt;math&amp;gt;c&#039;_n = o(3^n)&amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
but no effective decay rate is known. It would be good to have a combinatorial proof of this fact (which is weaker than [[DHJ(3)]], but implies [[Roth&#039;s theorem]]).&lt;br /&gt;
&lt;br /&gt;
== Notation ==&lt;br /&gt;
&lt;br /&gt;
Given a Moser set A in &amp;lt;math&amp;gt;[3]^n&amp;lt;/math&amp;gt;, we let a be the number of points in A with no 2s, b be the number of points in A with one 2, c the number of points with two 2s, etc.  We call (a,b,c,...) the &#039;&#039;statistics&#039;&#039; of A.  Given a slice S of &amp;lt;math&amp;gt;[3]^n&amp;lt;/math&amp;gt;, we let a(S), b(S), etc. denote the statistics of that slice (dropping the fixed coordinates).  Thus for instance if A = {11, 12, 22, 32}, then (a,b,c) = (1,2,1), and (a(1*),b(1*)) = (1,1).&lt;br /&gt;
&lt;br /&gt;
We call a statistic (a,b,c,...) &#039;&#039;attainable&#039;&#039; if it is attained by a Moser set.  We say that an attainable statistic is &#039;&#039;Pareto-optimal&#039;&#039; if it cannot be pointwise dominated by any other attainable statistic (a&#039;,b&#039;,c&#039;,...) (thus &amp;lt;math&amp;gt;a&#039; \geq a&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;b&#039; \geq b&amp;lt;/math&amp;gt;, etc.)  We say that it is &#039;&#039;extremal&#039;&#039; if it is not a convex combination of any other attainable statistic (this is a stronger property than Pareto-optimal).  For the purposes of maximising linear scores of attainable statistics, it suffices to check extremal statistics.&lt;br /&gt;
&lt;br /&gt;
We let &amp;lt;math&amp;gt;(\alpha_0,\alpha_1,\ldots)&amp;lt;/math&amp;gt; be the normalized version of &amp;lt;math&amp;gt;(a,b,\ldots)&amp;lt;/math&amp;gt;, in which one divides the number of points of a certain type in the set by the total number of points in the set.  Thus for instance &amp;lt;math&amp;gt;\alpha_0 = a/2^n, \alpha_1 = b/(n 2^{n-1}), \alpha_3 = c/(\binom{n}{2} 2^{n-2})&amp;lt;/math&amp;gt;, etc., and the &amp;lt;math&amp;gt;\alpha_i&amp;lt;/math&amp;gt; range between 0 and 1.  Averaging arguments show that any linear inequality obeyed by the &amp;lt;math&amp;gt;\alpha_i&amp;lt;/math&amp;gt; at one dimension is automatically inherited by higher dimensions, as are shifted versions of this inequality (in which &amp;lt;math&amp;gt;\alpha_i&amp;lt;/math&amp;gt; is replaced by &amp;lt;math&amp;gt;\alpha_{i+1}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
The idea in &#039;c-statistics&#039; is to identify 1s and 3s but leave the 2s intact. Let’s use x to denote letters that are either 1 or 3, then the 81 points get split up into 16 groups: 2222 (1 point), 222x, 22×2, 2×22, x222 (two points each), 22xx, 2×2x, x22x, 2xx2, x2×2, xx22 (four points each), 2xxx, x2xx, xx2x, xxx2 (eight points each), xxxx (sixteen points). Let c(w) denote the number of points inside a group w, e.g. c(xx22) is the number of points of the form xx22 inside the set, and is thus an integer from 0 to 4.&lt;br /&gt;
&lt;br /&gt;
== n=0 ==&lt;br /&gt;
&lt;br /&gt;
We trivially have &amp;lt;math&amp;gt;c&#039;_0=1.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== n=1 ==&lt;br /&gt;
&lt;br /&gt;
We trivially have &amp;lt;math&amp;gt;c&#039;_1=2.&amp;lt;/math&amp;gt;  The Pareto-optimal values of the statistics (a,b) are (1,1) and (2,0); these are also the extremals.  We thus have the inequality &amp;lt;math&amp;gt;a+b \leq 2&amp;lt;/math&amp;gt;, or in normalized notation&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;2\alpha_0 + \alpha_1 \leq 2&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== n=2 ==&lt;br /&gt;
&lt;br /&gt;
We have &amp;lt;math&amp;gt;c&#039;_2 = 6&amp;lt;/math&amp;gt;; the upper bound follows since &amp;lt;math&amp;gt;c&#039;_2 \leq 3 c&#039;_1&amp;lt;/math&amp;gt;, and the lower bound follows by deleting one of the two diagonals from &amp;lt;math&amp;gt;[3]^2&amp;lt;/math&amp;gt; (these are the only extremisers).&lt;br /&gt;
&lt;br /&gt;
The extremiser has statistics (a,b,c) = (2,4,0), which are of course Pareto-optimal.  If c=1 then we must have a, b at most 2 (look at the lines through 22).  This is attainable (e.g. {11, 12, 22, 23, 31}, and so (2,2,1) is another Pareto-optimal statistic.  If a=4, then b and c must be 0, so we get another Pareto-optimal statistic (4,0,0) (attainable by {11, 13, 31, 33} of course).  If a=3, then c=0 and b is at most 2, giving another Pareto-optimal statistic (3,2,0); but this is a convex combination of (4,0,0) and (2,4,0) and is thus not extremal.  Thus the complete set of extremal statistics are&lt;br /&gt;
&lt;br /&gt;
(4,0,0), (2,4,0), (2,2,1).&lt;br /&gt;
&lt;br /&gt;
The sharp linear inequalities obeyed by a,b,c (other than the trivial ones &amp;lt;math&amp;gt;a,b,c \geq 0&amp;lt;/math&amp;gt;) are then&lt;br /&gt;
&lt;br /&gt;
*&amp;lt;math&amp;gt;2a+b+2c \leq 8&amp;lt;/math&amp;gt;&lt;br /&gt;
*&amp;lt;math&amp;gt;b+2c \leq 4&amp;lt;/math&amp;gt;&lt;br /&gt;
*&amp;lt;math&amp;gt;a+2c \leq 4&amp;lt;/math&amp;gt;&lt;br /&gt;
*&amp;lt;math&amp;gt;c \leq 1&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
In normalized notation, we have&lt;br /&gt;
*&amp;lt;math&amp;gt;4\alpha_0 + 2\alpha_1 + \alpha_2 \leq 4&amp;lt;/math&amp;gt;&lt;br /&gt;
*&amp;lt;math&amp;gt;2\alpha_1 + \alpha_2 \leq 2&amp;lt;/math&amp;gt;&lt;br /&gt;
*&amp;lt;math&amp;gt;2\alpha_0 + \alpha_2 \leq 2&amp;lt;/math&amp;gt;&lt;br /&gt;
*&amp;lt;math&amp;gt;\alpha_2 \leq 1&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
The Pareto optimizers for c-statistics are (c22,c2x,cx2,cxx) = (1112),(0222),(0004), which are covered by the linear inequalities &lt;br /&gt;
*&amp;lt;math&amp;gt;c22+c2x+cxx \le 4&amp;lt;/math&amp;gt;, &lt;br /&gt;
*&amp;lt;math&amp;gt;c22+cx2+cxx \le 4&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== n=3 ==&lt;br /&gt;
&lt;br /&gt;
We have &amp;lt;math&amp;gt;c&#039;_3 = 16&amp;lt;/math&amp;gt;.  The lower bound can be seen for instance by taking all the strings with one 2, and half the strings with no 2 (e.g. the strings with an odd number of 1s).  The upper bound can be deduced from the corresponding [[upper and lower bounds]] for &amp;lt;math&amp;gt;c_3 = 18&amp;lt;/math&amp;gt;; the 17-point and 18-point line-free sets each contain a geometric line.&lt;br /&gt;
&lt;br /&gt;
If a Moser set in &amp;lt;math&amp;gt;[3]^3&amp;lt;/math&amp;gt; contains 222, then it can have at most 14 points, since the remaining 26 points in the cube split into 13 antipodal pairs, and at most one of each pair can lie in the set.  By exhausting over the &amp;lt;math&amp;gt;2^{13} = 8192&amp;lt;/math&amp;gt; possibilities, it can be shown that it is impossible for a 14-point set to exist; any Moser set containing 222 must in fact omit at least one antipodal pair completely and thus have only 13 points.  (A human proof of this fact can be [http://www.ma.rhul.ac.uk/~elsholtz/WWW/blog/mosertablogv01.pdf found here].)&lt;br /&gt;
&lt;br /&gt;
The Pareto-optimal statistics are&lt;br /&gt;
&lt;br /&gt;
(3,6,3,1),(4,4,3,1),(4,6,2,1),(2,6,6,0),(3,6,5,0),(4,4,5,0),(3,7,4,0),(4,6,4,0), (3,9,3,0),(4,7,3,0),(5,4,3,0),(4,9,2,0),(5,6,2,0),(6,3,2,0),(3,10,1,0),(5,7,1,0), (6,4,1,0),(4,12,0,0),(5,9,0,0),(6,6,0,0),(7,3,0,0),(8,0,0,0).&lt;br /&gt;
&lt;br /&gt;
These were found from a search of the &amp;lt;math&amp;gt;2^{27}&amp;lt;/math&amp;gt; subsets of the cube.&lt;br /&gt;
A spreadsheet containing these statistics can be [http://spreadsheets.google.com/ccc?key=p5T0SktZY9DuKZ2DyzO9EOg&amp;amp;hl=en# found here].&lt;br /&gt;
&lt;br /&gt;
The extremal statistics are&lt;br /&gt;
&lt;br /&gt;
(3,6,3,1),(4,4,3,1),(4,6,2,1),(2,6,6,0),(4,4,5,0),(4,6,4,0),(4,12,0,0),(8,0,0,0)&lt;br /&gt;
&lt;br /&gt;
The sharp linear bounds are :&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;math&amp;gt;2a+b+2c+4d \leq 22&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;3a+2b+3c+6d \leq 36&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;7a+2b+4c+8d \leq 56&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;6a+2b+3c+6d \leq 48&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;b+c+3d \leq 12&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;a+2c+4d \leq 14&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;5a+4c+8d \leq 40&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;a+4d \leq 8&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;b+6d \leq 12&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;c+3d \leq 6&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;d \leq 1&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In normalized notation,&lt;br /&gt;
* &amp;lt;math&amp;gt;8\alpha_0+ 6\alpha_1 + 6\alpha_2 + 2\alpha_3 \leq 11&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;4\alpha_0+4\alpha_1+3\alpha_2+\alpha_3 \leq 6&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;7\alpha_0+3\alpha_1+3\alpha_2+\alpha_3 \leq 7&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;8\alpha_0+3\alpha_1+3\alpha_2+\alpha_3 \leq 8&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;4\alpha_1+2\alpha_2+\alpha_3 \leq 4&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;4\alpha_0+6\alpha_2+2\alpha_3 \leq 7&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;5\alpha_0+3\alpha_2+\alpha_3 \leq 5&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;2\alpha_0+\alpha_3 \leq 2&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;2\alpha_1+\alpha_3 \leq 2&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;2\alpha_2+\alpha_3 \leq 2&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;\alpha_3 \leq 1&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The c-statistics can also be found from an exhaustive search of Moser sets.  The resulting Pareto sets and linear inequalities can be found on Sheet 8 of [http://spreadsheets.google.com/ccc?key=p5T0SktZY9DuKZ2DyzO9EOg&amp;amp;hl=en# this spreadsheet]&lt;br /&gt;
&lt;br /&gt;
== n=4 ==&lt;br /&gt;
&lt;br /&gt;
A [http://abel.math.umu.se/~klasm/extremal-moser-n=5-t=3 computer search] has obtained all extremisers to &amp;lt;math&amp;gt;c&#039;_4=43&amp;lt;/math&amp;gt;.  The 42-point solutions can be found [http://abel.math.umu.se/~klasm/moser-n=4-t=3-p=42.gz here].&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof that &amp;lt;math&amp;gt;c&#039;_4 \leq 43&amp;lt;/math&amp;gt;&#039;&#039;&#039;: &lt;br /&gt;
When e=1 (i.e. the 4D set contains 2222) then we have at most 41 points (in fact at most 39) by counting antipodal points, so assume e=0.&lt;br /&gt;
&lt;br /&gt;
Define the score of a 3D slice to be a/4+b/3+c/2+d.  Observe from double counting that the size of a 4D set is the sum of the scores of its eight side slices.&lt;br /&gt;
&lt;br /&gt;
But by [http://spreadsheets.google.com/ccc?key=p5T0SktZY9DuKZ2DyzO9EOg&amp;amp;hl=en looking at the extremals] we see that the largest score is 44/8, attained at only one point, namely when (a,b,c,d) = (2,6,6,0).  So the only way one can have a 44-point set is if all side slices are (2,6,6,0), or equivalently if the whole set has statistics (a,b,c,d,e) = (4,16,24,0,0).  But then we have all the points with two 2s, which means that the four &amp;quot;a&amp;quot; points cannot be separated by Hamming distance 2.  We conclude that we must have an antipodal pair among the &amp;quot;a&amp;quot; points with an odd number of 1s, and an antipodal pair among the &amp;quot;a&amp;quot; points with an even number of 1s.    By the symmetries of the cube, we may take the a-set to then be 1111, 3333, 1113, 3331.  But then the &amp;quot;b&amp;quot; set must exclude both 1112 and 3332, and so can have at most three points in the eight-point set xyz2 (with x,y,z=1,3) rather than four (to get four points one must alternate in a checkerboard pattern).  Adding this to the at most four points of the form xy2z, x2yz, 2xyz we see that b is at most 15, a contradiction. &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Given a subset of &amp;lt;math&amp;gt;[3]^4&amp;lt;/math&amp;gt;, let a be the number of points with no 2s, b be the number of points with 1 2, and so forth.  The quintuple (a,b,c,d,e) thus lies between (0,0,0,0,0) and (16,32,24,8,1).&lt;br /&gt;
&lt;br /&gt;
The 43-point solutions have distributions (a,b,c,d,e) as follows:&lt;br /&gt;
&lt;br /&gt;
* (5,20,18,0,0) [16 solutions]&lt;br /&gt;
* (4,16,23,0,0) [768 solutions]&lt;br /&gt;
* (3,16,24,0,0) [512 solutions]&lt;br /&gt;
* (4,15,24,0,0) [256 solutions]&lt;br /&gt;
&lt;br /&gt;
The 42-point solutions are [http://abel.math.umu.se/~klasm/Moser-42-stat.pdf distributed as follows]:&lt;br /&gt;
&lt;br /&gt;
* (6,24,12,0,0) [[http://abel.math.umu.se/~klasm/moser-n=4-42-12 8 solutions]] &lt;br /&gt;
* (5,20,17,0,0) [576 solutions]&lt;br /&gt;
* (5,19,18,0,0) [384 solutions]&lt;br /&gt;
* (6,16,18,2,0) [[http://abel.math.umu.se/~klasm/moser-n=4-42-e=2 192 solutions]]&lt;br /&gt;
* (4,20,18,0,0) [272 solutions]&lt;br /&gt;
* (5,17,20,0,0) [192 solutions]&lt;br /&gt;
* (5,16,21,0,0) [3584 solutions]&lt;br /&gt;
* (4,17,21,0,0) [768 solutions]&lt;br /&gt;
* (4,16,22,0,0) [26880 solutions]&lt;br /&gt;
* (5,15,22,0,0) [1536 solutions]&lt;br /&gt;
* (4,15,23,0,0) [22272 solutions]&lt;br /&gt;
* (3,16,23,0,0) [15744 solutions]&lt;br /&gt;
* (4,14,24,0,0) [4224 solutions]&lt;br /&gt;
* (3,15,24,0,0) [8704 solutions]&lt;br /&gt;
* (2,16,24,0,0) [896 solutions]&lt;br /&gt;
&lt;br /&gt;
Note how c is usually quite large, and d quite low.&lt;br /&gt;
&lt;br /&gt;
One of the (6,24,12,0,0) solutions is &amp;lt;math&amp;gt;\Gamma_{220}+\Gamma_{202}+\Gamma_{022}+\Gamma_{112}+\Gamma_{211}&amp;lt;/math&amp;gt; (i.e. the set of points containing exactly two 1s, and/or exactly two 3s).  The other seven are reflections of this set.&lt;br /&gt;
&lt;br /&gt;
There are 2,765,200 41-point solutions, [http://abel.math.umu.se/~klasm/solutions-4-t=3-41-moser.gz listed here].  The statistics for such points can be [http://abel.math.umu.se/~klasm/Moser-41-stat.pdf found here].  Noteworthy features of the statistics:&lt;br /&gt;
&lt;br /&gt;
* d is at most 3 (and, except for [http://abel.math.umu.se/~klasm/moser-n=3-t=3-41-d=3.gz 256 exceptional solutions] of the shape (5,15,18,3,0), have d at most 2; here are the [http://abel.math.umu.se/~klasm/moser-n=3-t=3-41-d=2.gz d=2 solutions] and [http://abel.math.umu.se/~klasm/moser-n=3-t=3-41-d=1.gz d=1 solutions])&lt;br /&gt;
* c is at least 6 (and, except for [http://abel.math.umu.se/~klasm/moser-n=3-t=3-41-c=6.gz 16 exceptional solutions] of the shape (7,28,6,0,0), have c at least 11).&lt;br /&gt;
&lt;br /&gt;
Statistics for the 41-point, 42-point, and 43-point solutions can be found [http://spreadsheets.google.com/ccc?key=p5T0SktZY9DuqNcxJ171Bbw&amp;amp;hl=en here].&lt;br /&gt;
&lt;br /&gt;
If a Moser set in &amp;lt;math&amp;gt;[3]^4&amp;lt;/math&amp;gt; contains 2222, then by the n=3 theory, any middle slice (i.e. 2***, *2**, **2*, or ***2) is missing at least one antipodal pair.  But each antipodal pair belongs to at most three middle slices, thus two of the 40 antipodal pairs must be completely missing.  As a consequence, any Moser set containing 2222 can have at most 39 points.&lt;br /&gt;
(A more refined analysis can be found at [http://www.ma.rhul.ac.uk/~elsholtz/WWW/blog/mosertablogv01.pdf found here].)&lt;br /&gt;
&lt;br /&gt;
We have the following inequalities connecting a,b,c,d,e:&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;math&amp;gt;4a+b \leq 64&amp;lt;/math&amp;gt;:  There are 32 lines connecting two &amp;quot;a&amp;quot; points with a &amp;quot;b&amp;quot; point; each &amp;quot;a&amp;quot; point belongs to four of these lines, and each &amp;quot;b&amp;quot; point belongs to one.  But each such line can have at most two points in the set, and the claim follows.&lt;br /&gt;
* This can be refined to &amp;lt;math&amp;gt;4a+b+\frac{2}{3} c \leq 64&amp;lt;/math&amp;gt;: There are 24 planes connecting four &amp;quot;a&amp;quot; points, four &amp;quot;b&amp;quot; points, and one &amp;quot;c&amp;quot; point; each &amp;quot;a&amp;quot; point belongs to six of these, each &amp;quot;b&amp;quot; point belongs to three, and each &amp;quot;c&amp;quot; point belongs to one.  For each of these planes, we have &amp;lt;math&amp;gt;2a + b + 2c \leq 8&amp;lt;/math&amp;gt; from the n=2 theory, and the claim follows.&lt;br /&gt;
* &amp;lt;math&amp;gt;6a+2c \leq 96&amp;lt;/math&amp;gt;:  There are 96 lines connecting two &amp;quot;a&amp;quot; points with a &amp;quot;c&amp;quot; point; each &amp;quot;a&amp;quot; point belongs to six of these lines, and each &amp;quot;c&amp;quot; point belongs to two.  But each such line can have at most two points in the set, and the claim follows.&lt;br /&gt;
* &amp;lt;math&amp;gt;3b+2c \leq 96&amp;lt;/math&amp;gt;:  There are 48 lines connecting two &amp;quot;b&amp;quot; points to a &amp;quot;c&amp;quot; point; each &amp;quot;b&amp;quot; point belongs to three of these points, and each &amp;quot;c&amp;quot; point belongs to two.  But each such line can have at most two points in the set, and the claim follows.&lt;br /&gt;
&lt;br /&gt;
The inequalities for n=3 imply inequalities for n=4.  Indeed, there are eight side slices of &amp;lt;math&amp;gt;[3]^4&amp;lt;/math&amp;gt;; each &amp;quot;a&amp;quot; point belongs to four of these, each &amp;quot;b&amp;quot; point belongs to three, each &amp;quot;c&amp;quot; point belongs to two, and each &amp;quot;d&amp;quot; point belongs to one.  Thus, any inequality of the form&lt;br /&gt;
:&amp;lt;math&amp;gt; \alpha a + \beta b + \gamma c + \delta d \leq M&amp;lt;/math&amp;gt;&lt;br /&gt;
in three dimensions implies the inequality&lt;br /&gt;
:&amp;lt;math&amp;gt; 4 \alpha a + 3 \beta b + 2 \gamma c + \delta d \leq 8M&amp;lt;/math&amp;gt;&lt;br /&gt;
in four dimensions.  Thus we have&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;math&amp;gt;8a+3b+4c+4d \leq 176&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;2a+b+c+d \leq 48&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;14a+3b+4c+4d \leq 244&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;4a+b+c+d \leq 64&amp;lt;/math&amp;gt; &lt;br /&gt;
* &amp;lt;math&amp;gt;3b+2c+3d \leq 96&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;a+c+d \leq 28&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;5a+2c+2d \leq 80&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;a+d \leq 16&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;b+2d \leq 32&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;2c+3d \leq 48&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Cubes also sit diagonally in the 4-dimensional cube.  They may have coordinates xxyz, where xx runs over (11,22,33) or (13,22,31), while y and z run over (1,2,3).  These cubes have a different distribution of 2s than the ordinary slices: (a,b,c,d,e) = (8,8,6,4,1) instead of (8,12,6,1,0) for the side slices and (0,8,12,6,1) for the middle slices.  So a different set of inequalities arise.  It is possible to run through the same procedure as described above for n=3, and the inequalities that arise are &amp;lt;math&amp;gt;2a+b+2c+2d+4e \le 24&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;4a+b+2c+2d+4e \le 32&amp;lt;/math&amp;gt; within the 3D cube, which when averaged becomes &amp;lt;math&amp;gt;4a+b+2c+4d+16e \le 96&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;8a+b+2c+4d+16e \le 128&amp;lt;/math&amp;gt; for the 4D cube.  A spreadsheet containing these statistics can be [http://spreadsheets.google.com/ccc?key=p5T0SktZY9DuKZ2DyzO9EOg&amp;amp;hl=en# found here] on sheet 2.  Other sheets of this spreadsheet contain results for a 3D cube sitting diagonally in a 5D, 6D or 7D cube.  Notice the similarity of the equations that arise for the xxxyz, xxyyz and xxxxyz diagonals.  Also notice the xxxxyyz diagonals have the same Pareto sets and linear inequalities as the cube&#039;s c-statistics&lt;br /&gt;
&lt;br /&gt;
== n=5 ==&lt;br /&gt;
&lt;br /&gt;
Let (A,B,C,D,E,F) be the statistics of a five-dimensional Moser set, thus (A,B,C,D,E,F) varies between (0,0,0,0,0,0) and (32,80,80,40,10,1).&lt;br /&gt;
&lt;br /&gt;
There are several Moser sets with the statistics (4,40,80,0,0,0), which thus have 124 points.  Indeed, one can take&lt;br /&gt;
&lt;br /&gt;
* all points with two 2s;&lt;br /&gt;
* all points with one 2 and an even number of 1s; and&lt;br /&gt;
* (13111),(13113),(31311),(13333). Any two of these four points differ in three places, except for one pair of points that differ in one place.&lt;br /&gt;
&lt;br /&gt;
For the rest of this section, we assume that the Moser set &amp;lt;math&amp;gt;{\mathcal A}&amp;lt;/math&amp;gt; is a 125-point set.&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 1&#039;&#039;&#039;: F=0.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; If F is non-zero, then the Moser set contains 22222, then each of the 121 antipodal pairs can have at most one point in the set, leading to only 122 points. &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 2&#039;&#039;&#039;: Every middle slice of &amp;lt;math&amp;gt;{\mathcal A}&amp;lt;/math&amp;gt; has at most 41 points.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039;  Without loss of generality we may consider the 2**** slice.  There are two cases, depending on the value of c(2****).&lt;br /&gt;
&lt;br /&gt;
Suppose first that c is at least 17; thus there are at least 17 points of the form 222xy, 22x2y, 22xy2, 2x2y2, 2xy22, or 2x22y, where the x, y denote 1 or 3.  This gives 34 &amp;quot;xy&amp;quot; wildcards in all in four coordinate slots; by the pigeonhole principle one of the slots sees at least 9 of the wildcards.  By symmetry, we may assume that the second coordinate slot sees at least 9 of these wildcards, thus there are at least 9 points of the form 2x22y, 2x2y2, 2xy22.  The x=1, x=3 cases can absorb at most six of these, thus each of these cases must absorb at least three points, with at least one absorbing at least five.  Let&#039;s say that it&#039;s the x=3 case that absorbs 5; thus &amp;lt;math&amp;gt;d(*1***) \geq 3&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;d(*3***) \geq 5&amp;lt;/math&amp;gt;.  From the n=4 theory this means that the *1*** slice has at most 41 points, and the *3*** slice has at most 40.  Meanwhile, the middle slice has at most 43, leading to 41+41+42=124 points in all.&lt;br /&gt;
&lt;br /&gt;
Now suppose c is less than 17; then by the n=4 theory the middle slice is one of the eight (6,24,12,0,0) sets.  Without loss of generality we may take it to be &amp;lt;math&amp;gt;\Gamma_{220}+\Gamma_{202}+\Gamma_{022}+\Gamma_{112}+\Gamma_{211}&amp;lt;/math&amp;gt;; in particular, the middle slice contains the points 21122 21212 21221 23322 23232 23223.  In particular, the *1*** and *3*** slices have a &amp;quot;d&amp;quot; value of at least three, and so have at most 41 points.  If the *2*** slice has at most 42 points, then we are at 41+42+41=124 points as needed, but if we have 43 or more, then we are back in the first case (as &amp;lt;math&amp;gt;c(*2***) \geq 17&amp;lt;/math&amp;gt;) after permuting the indices.&lt;br /&gt;
&amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Since 125=41+41+43, we thus have&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Corollary 1&#039;&#039;&#039;: Every side slice of &amp;lt;math&amp;gt;{\mathcal A}&amp;lt;/math&amp;gt; has at least 41 points.  If one side slice does have 41 points, then the other has 43.&lt;br /&gt;
&lt;br /&gt;
Combining this with the n=4 statistics, we conclude&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Corollary 2&#039;&#039;&#039;: Every side slice of &amp;lt;math&amp;gt;{\mathcal A}&amp;lt;/math&amp;gt; has e=0, and &amp;lt;math&amp;gt;d \leq 3&amp;lt;/math&amp;gt;.  Given two opposite side slices, e.g. 1**** and 3****, we have &amp;lt;math&amp;gt;d(1****)+d(3****) \leq 4&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Corollary 3&#039;&#039;&#039;: E=0.&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Corollary 4&#039;&#039;&#039;: Any middle slice has a &amp;quot;c&amp;quot; value of at most 8.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; Let&#039;s work with the 2**** slice.  By Corollary 2, there are at most four contributions to c(2****) of the form 21*** or 23***, and similarly for the other three positions.  Double counting then gives the claim. &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 3&#039;&#039;&#039;: &amp;lt;math&amp;gt;2B+C \leq 160&amp;lt;/math&amp;gt;.   &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039;: There are 160 lines connecting one &amp;quot;C&amp;quot; point to two &amp;quot;B&amp;quot; points (e.g. 11112, 11122, 11132); each &amp;quot;C&amp;quot; point lies in two of these, and each &amp;quot;B&amp;quot; point lies on four.  A Moser set can have at most two points out of each of these lines.  Double counting then gives the claim.  &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 4&#039;&#039;&#039; Given m A-points with &amp;lt;math&amp;gt;m \geq 5&amp;lt;/math&amp;gt;, there exists at least m-4 pairs (a,b) of such A-points with Hamming distance exactly two (i.e. b differs from a in exactly two places).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; It suffices to check this for m=5, since the case of larger m then follows by locating a pair, removing a point that contributes to that pair, and using the induction hypothesis.  Given 5 A-points, we may assume by the pigeonhole principle and symmetry that at least three of them have an odd number of 1s.  Suppose 11111 is one of the points, and that no pair has Hamming distance 2. All points with two 3s are excluded, so the only points allowed with an odd number of 1s are those with four 3s. But all those points differ from each other in two positions, so at most one of them is allowed.  &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Corollary 5&#039;&#039;&#039; &amp;lt;math&amp;gt;C \leq 79&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039;: Suppose for contradiction that C=80, then D=0 and &amp;lt;math&amp;gt;B \leq 40&amp;lt;/math&amp;gt;.  From Lemma 4 we also see that A cannot be 5 or more, leading to the contradiction.&lt;br /&gt;
&amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Define the &#039;&#039;&#039;score&#039;&#039;&#039; of a Moser set in &amp;lt;math&amp;gt;[3]^4&amp;lt;/math&amp;gt; to be the quantity &amp;lt;math&amp;gt;a + 5b/4 + 5c/3 + 5d/2 + 5e&amp;lt;/math&amp;gt;.  Double-counting (and Lemma 2) gives&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 5&#039;&#039;&#039;  The total score of all the ten side-slices of &amp;lt;math&amp;gt;{\mathcal A}&amp;lt;/math&amp;gt; is equal to &amp;lt;math&amp;gt;5|{\mathcal A}| = 5 \times 125&amp;lt;/math&amp;gt;.  In particular, there exists a pair of opposite side-slices whose scores add up to at least 125.&lt;br /&gt;
&lt;br /&gt;
By Lemma 5 and symmetry, we may assume that the 1**** and 3**** slices have score adding up to at least 125.  By Lemma 2, the 2**** slice has at most 41 points, which imply that the 1**** and 3**** have 41, 42, or 43 points.  From the [http://spreadsheets.google.com/ccc?key=p5T0SktZY9DuqNcxJ171Bbw&amp;amp;hl=en n=4 statistics] we know that all 41-point, 42-point, 43-point slices have score less than 62, with the following exceptions:&lt;br /&gt;
&lt;br /&gt;
# (2,16,24,0,0) [42 points, score: 62]&lt;br /&gt;
# (4,16,23,0,0) [43 points, score: 62 1/3]&lt;br /&gt;
# (4,15,24,0,0) [43 points, score: 62 3/4]&lt;br /&gt;
# (3,16,24,0,0) [43 points, score: 63]&lt;br /&gt;
&lt;br /&gt;
Thus the 1**** and 3**** slices must from the above list.  Furthermore, if one of the slices is of type 1, then the other must be of type 4, and if one slice is of type 2, then the other must be of type 3 or 4.&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 6&#039;&#039;&#039; There exists one cut in which the side slices have total score strictly greater than 125 (i.e. they thus involve only Type 2, Type 3, and Type 4 slices, with at least one side slice not equal to Type 2, and the cut here is of the form 43+39+43).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; If not, then all cuts have side slices exactly equal to 125, which by the above table implies that one is Type 1 and one is Type 4, in particular all side slices have c=24.  But this forces C=80, contradicting Corollary 5. &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Adding up the corners we conclude&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Corollary 6&#039;&#039;&#039; &amp;lt;math&amp;gt;6 \leq A \leq 8&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 7&#039;&#039;&#039; &amp;lt;math&amp;gt;D=0&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; Firstly, from Lemma 6 we have a cut in which the two side slices are omitting at most one C-point between them (and have no D-point), which forces the middle slice to have at most one D-point; thus D is at most 1.&lt;br /&gt;
&lt;br /&gt;
Now suppose instead that D=1 (e.g. if 11222 was in the set); then there would be two choices of coordinates in which one of the side slices would have d=1 (e.g. 1**** and *1****). But the [http://spreadsheets.google.com/ccc?key=p5T0SktZY9DuqNcxJ171Bbw&amp;amp;hl=en n=4 statistics] show that such slices have a score of at most 59 7/12, so that the total score from those two coordinates is at most 63 + 59 7/12 = 122 7/12. On the other hand, the other three slices have a net score of at most 63+63 = 126. This averages out to at most 124.633... &amp;lt; 125, a contradiction.  &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Corollary 7&#039;&#039;&#039; Every middle slice has at most 40 points.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; From Lemma 7 we see that the middle slice must have c=0, but from the n=4 statistics this is not possible for any slice of size 41 or higher (alternatively, one can use the inequalities &amp;lt;math&amp;gt;4a+b \leq 64&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;b \leq 32&amp;lt;/math&amp;gt;). &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Each middle slice now has 39 or 40 points, with c=d=e=0, and so from the inequalities &amp;lt;math&amp;gt;4a+b \leq 64&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;b \leq 32&amp;lt;/math&amp;gt; must have statistics (8,32,0,0,0),(7,32,0,0,0), or (8,31,0,0,0).  In particular the &amp;quot;a&amp;quot; index of the middle slices is at most 8.  Summing over all middle slices we conclude&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 9&#039;&#039;&#039; B is at most 40.&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 10&#039;&#039;&#039; C is equal to 78 or 79.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; By Corollary 5, it suffices to show that &amp;lt;math&amp;gt;C \geq 78&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
As 125=43+39+43, we see that every center slice must have at least 39 points. By Lemma 2 and Lemma 7 the center slice has c=d=e=0, thus the center slice has a+b &amp;gt;= 39.  On the other hand, from the n=4 theory we have 4a+b &amp;lt;= 64, which forces b &amp;gt;= 31.&lt;br /&gt;
&lt;br /&gt;
By double counting, we see that 2C is equal to the sum of the b&#039;s of all the five center slices.  Thus C &amp;gt;= 5*31/2 = 77.5 and the claim follows.  &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
From Lemmas 9 and 10 we see that &amp;lt;math&amp;gt;B+C \leq 119&amp;lt;/math&amp;gt;, and thus &amp;lt;math&amp;gt;A \geq 6&amp;lt;/math&amp;gt;.  Also, if &amp;lt;math&amp;gt;A \geq 7&amp;lt;/math&amp;gt;, then by Lemma 4 we have at least three pairs of A points with Hamming distance 2.  At most two of these pairs eliminate the same C point, so we would have C=78 in that case.  &lt;br /&gt;
&lt;br /&gt;
Putting all the above facts together, we see that (A,B,C,D,E,F) must be one of the following triples:&lt;br /&gt;
&lt;br /&gt;
* (6,40,79,0,0,0)&lt;br /&gt;
* (7,40,78,0,0,0)&lt;br /&gt;
* (8,39,78,0,0,0)&lt;br /&gt;
&lt;br /&gt;
All three cases can be eliminated, giving &amp;lt;math&amp;gt;c&#039;_5=124&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== Elimination of (6,40,79,0,0,0) ===&lt;br /&gt;
&lt;br /&gt;
Look at the 6 A points.  From Lemma 4 we have at least two pairs (a,b), (c,d) of A-points that have Hamming separation 2.&lt;br /&gt;
&lt;br /&gt;
Now look at the midpoints of these two pairs; these midpoints are C-points cannot lie in the set.  But we have exactly one C-point missing from the set, thus the midpoints must be the same.  By symmetry, we may thus assume that the two pairs are (11111,11133) and (11113,11131).  Thus 11111,11133, 11113, 11131 are in the set, and so every C-point other than 11122 is in the set.  On the other hand, the B-points 11121, 11123, 11112, 11132 lie outside the set.&lt;br /&gt;
&lt;br /&gt;
At most one of 11312, 11332 lie in the set (since 11322 lies in the set).   Suppose that 11312 lies outside the set, then we have a pair (xy1z2, xy3z2) with x,y,z = 1,3 that is totally omitted from the set, namely (11112,11312).  On the other hand, every other pair of this form can have at most point in the set, thus there are at most seven points in the set of the form (xyzw2) with x,y,z,w = 1,3.  Similarly there are at most 8 points of the form xyz2w, or of xy2zw, x2yzw, 2xyzw, leading to at most 39 B-points in all, contradiction.&lt;br /&gt;
&lt;br /&gt;
=== Elimination of (7,40,78,0,0,0) ===&lt;br /&gt;
&lt;br /&gt;
By Lemma 4, we have at least three pairs of A-points of distance two apart that lie in the set.&lt;br /&gt;
The midpoints of these pairs are C-points that do not lie in the set; but there are only two such C-points, thus two pairs must have the same midpoint, so we may assume as before that 111xy lies in the set for x,y=1,3, which implies that 1112* and 111*2 lie outside the set.&lt;br /&gt;
&lt;br /&gt;
Now consider the 160 lines between 2 B points and one C point (cf. Lemma 3).  The sum of all the points in each such line (counting multiplicity) is 4B+2C = 316.  On the other hand, every one of the 160 lines can have at most two points, and four of these lines (namely 1112*, 111*2) have no points.  Thus all the other lines must have exactly two points.  &lt;br /&gt;
&lt;br /&gt;
We know that the C-point 11122 is missing from the set; there is one other missing C-point.  Since 1112x, 111x2 lie outside the set, we conclude from the previous paragraph that 1132x, 113x2 and 1312x, 131x2 lie in the set.  Taking midpoints we conclude that 11322 and 13122 lie outside the set.  But this is now three C-points missing (together with 11122), a contradiction.&lt;br /&gt;
&lt;br /&gt;
=== Elimination of (8,39,78,0,0,0) ===&lt;br /&gt;
&lt;br /&gt;
By Lemma 4 we have at least four pairs of A-points of distance two apart that lie in the set. The midpoints of these pairs are C-points that do not lie in the set; but there are only two such C-points, thus two pairs (a,b), (c,d) must have the same midpoint p, and the other two pairs (a&#039;,b&#039;), (c&#039;,d&#039;) must also have the same midpoint p&#039;.  (Note that every C-point is the midpoint of at most two such pairs.)&lt;br /&gt;
&lt;br /&gt;
Now consider the 160 lines between 2 B points and one C point (cf. Lemma 3).  The sum of all the points in each such line (counting multiplicity) is 4B+2C = 312.  Every one of the 160 lines can have at most two points, and four of these (those in the plane of (a,b,c,d) or of (a&#039;,b&#039;,c&#039;,d&#039;) have no points.  Thus all other lines must have exactly two points.&lt;br /&gt;
&lt;br /&gt;
Without loss of generality we have (a,b)=(11111,11133), (c,d) = (11113,11131), thus p = 11122.  By permuting the first three indices, we may assume that p&#039; is not of the form x2y2z, x2yz2, xy22z, xy2z2.  Then 1112x lies outside the set and 1122x lies in the set, so by the above paragraph 1132x lies in the set; similarly for 113x2, 1312x, 131x2.  This implies that 13122, 11322 lie outside the set, but this (together with 11122) shows that at least three C-points are missing, a contradiction.&lt;br /&gt;
&lt;br /&gt;
== General n ==&lt;br /&gt;
&lt;br /&gt;
General solution for &amp;lt;math&amp;gt;c&#039;_N&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* q 2s, all points from A(N-q,1)&lt;br /&gt;
* q-1 2s, points from A(N-q+1,2)&lt;br /&gt;
* q-2 2s, points from A(N-q+2,3)&lt;br /&gt;
* etc.&lt;br /&gt;
&lt;br /&gt;
where A(m,d) is a subset of &amp;lt;math&amp;gt;[1,3]^m&amp;lt;/math&amp;gt; for which any two points differ from each other in at least d places.&lt;br /&gt;
&lt;br /&gt;
Mathworld’s entry on error-correcting codes suggests it might be NP-complete to find the size of A(m,d) in general.&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;math&amp;gt;|A(m,1)| = 2^m&amp;lt;/math&amp;gt; because it includes all points in &amp;lt;math&amp;gt;[1,3]^m&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;|A(m,2)| = 2^{m-1}&amp;lt;/math&amp;gt; because it can include all points in &amp;lt;math&amp;gt;[1,3]^m&amp;lt;/math&amp;gt; with an odd number of 1s&lt;br /&gt;
&lt;br /&gt;
The integer programming routine from Maple 12 was used to obtain upper bounds for &amp;lt;math&amp;gt;c&#039;_6&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;c&#039;_7&amp;lt;/math&amp;gt;.  A large number of linear inequalities, described above in sections (n=3) and (n=4), were combined.  The details are in [[Maple calculations]].  The results were that &amp;lt;math&amp;gt;c&#039;_6 \le 361&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;c&#039;_7 \le 1071&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
A [[genetic algorithm]] has provided the following examples:&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;math&amp;gt;c&#039;_6 \geq 353&amp;lt;/math&amp;gt; (26 examples; [http://twofoldgaze.wordpress.com/2009/03/10/353-element-solution/ here is one])&lt;br /&gt;
* &amp;lt;math&amp;gt;c&#039;_7 \geq 988&amp;lt;/math&amp;gt; [http://twofoldgaze.wordpress.com/2009/03/10/978-element-solution/ Here is the example]&lt;br /&gt;
&lt;br /&gt;
== Larger sides (k&amp;gt;3) ==&lt;br /&gt;
&lt;br /&gt;
The following set gives a lower bound for Moser’s cube &amp;lt;math&amp;gt;[4]^n&amp;lt;/math&amp;gt; (values 1,2,3,4):  Pick all points where q entries are 2 or 3; and also pick those where q-1 entries are 2 or 3 and an odd number of entries are 1.  This is maximized when q is near n/2, giving a lower bound of&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\binom{n}{n/2} 2^n + \binom{n}{n/2-1} 2^{n-1}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
which is comparable to &amp;lt;math&amp;gt;4^n/\sqrt{n}&amp;lt;/math&amp;gt; by [[Stirling&#039;s formula]].&lt;br /&gt;
&lt;br /&gt;
For k=5 (values 1,2,3,4,5) If A, B, C, D, and E denote the numbers of 1-s, 2-s, 3-s, 4-s and 5-s then the first three points of a geometric line form a 3-term arithmetic progression in A+E+2(B+D)+3C. So, for k=5 we have a similar lower bound for the Moser’s problem as for DHJ k=3, i.e. &amp;lt;math&amp;gt;5^{n - O(\sqrt{\log n})}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
The k=6 version of Moser implies DHJ(3).  Indeed, any k=3 combinatorial line-free set can be &amp;quot;doubled up&amp;quot; into a k=6 geometric line-free set of the same density by pulling back the set from the map &amp;lt;math&amp;gt;\phi: [6]^n \to [3]^n&amp;lt;/math&amp;gt; that maps 1, 2, 3, 4, 5, 6 to 1, 2, 3, 3, 2, 1 respectively; note that this map sends k=6 geometric lines to k=3 combinatorial lines.&lt;/div&gt;</summary>
		<author><name>121.220.134.232</name></author>
	</entry>
	<entry>
		<id>https://michaelnielsen.org/polymath/index.php?title=Moser%27s_cube_problem&amp;diff=1031</id>
		<title>Moser&#039;s cube problem</title>
		<link rel="alternate" type="text/html" href="https://michaelnielsen.org/polymath/index.php?title=Moser%27s_cube_problem&amp;diff=1031"/>
		<updated>2009-03-21T13:48:13Z</updated>

		<summary type="html">&lt;p&gt;121.220.134.232: /* n=5 */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Define a &#039;&#039;Moser set&#039;&#039; to be a subset of &amp;lt;math&amp;gt;[3]^n&amp;lt;/math&amp;gt; which does not contain any [[geometric line]], and let &amp;lt;math&amp;gt;c&#039;_n&amp;lt;/math&amp;gt; denote the size of the largest Moser set in &amp;lt;math&amp;gt;[3]^n&amp;lt;/math&amp;gt;.  The first few values are (see [http://www.research.att.com/~njas/sequences/A003142 OEIS A003142]):&lt;br /&gt;
&lt;br /&gt;
: &amp;lt;math&amp;gt;c&#039;_0 = 1; c&#039;_1 = 2; c&#039;_2 = 6; c&#039;_3 = 16; c&#039;_4 = 43; c&#039;_5 = 124.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Beyond this point, we only have some upper and lower bounds, in particular &amp;lt;math&amp;gt;353 \leq c&#039;_6 \leq 361&amp;lt;/math&amp;gt;; see [http://spreadsheets.google.com/ccc?key=p5T0SktZY9DsU-uZ1tK7VEg this spreadsheet] for the latest bounds.&lt;br /&gt;
&lt;br /&gt;
The best known asymptotic lower bound for &amp;lt;math&amp;gt;c&#039;_n&amp;lt;/math&amp;gt; is&lt;br /&gt;
&lt;br /&gt;
: &amp;lt;math&amp;gt;c&#039;_n \gg 3^n/\sqrt{n}&amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
formed by fixing the number of 2s to a single value near n/3.  Compare this to the DHJ(2) or Sperner limit of &amp;lt;math&amp;gt;2^n/\sqrt{n}&amp;lt;/math&amp;gt;.  Is it possible to do any better?  Note that we have a [[Upper_and_lower_bounds#Asymptotics|significantly better bound]] for the DHJ(3) &amp;lt;math&amp;gt;c_n&amp;lt;/math&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
: &amp;lt;math&amp;gt;c_n \geq 3^{n-O(\sqrt{\log n})}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
A more precise lower bound is&lt;br /&gt;
&lt;br /&gt;
: &amp;lt;math&amp;gt;c&#039;_n \geq \binom{n+1}{q} 2^{n-q}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where q is the nearest integer to &amp;lt;math&amp;gt;n/3&amp;lt;/math&amp;gt;, formed by taking all strings with q 2s, together with all strings with q-1 2s and an odd number of 1s.  This for instance gives the lower bound &amp;lt;math&amp;gt;c&#039;_5 \geq 120&amp;lt;/math&amp;gt;, which compares with the upper bound &amp;lt;math&amp;gt;c&#039;_5 \leq 3 c&#039;_4 = 129&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Using [[DHJ(3)]], we have the upper bound&lt;br /&gt;
&lt;br /&gt;
: &amp;lt;math&amp;gt;c&#039;_n = o(3^n)&amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
but no effective decay rate is known. It would be good to have a combinatorial proof of this fact (which is weaker than [[DHJ(3)]], but implies [[Roth&#039;s theorem]]).&lt;br /&gt;
&lt;br /&gt;
== Notation ==&lt;br /&gt;
&lt;br /&gt;
Given a Moser set A in &amp;lt;math&amp;gt;[3]^n&amp;lt;/math&amp;gt;, we let a be the number of points in A with no 2s, b be the number of points in A with one 2, c the number of points with two 2s, etc.  We call (a,b,c,...) the &#039;&#039;statistics&#039;&#039; of A.  Given a slice S of &amp;lt;math&amp;gt;[3]^n&amp;lt;/math&amp;gt;, we let a(S), b(S), etc. denote the statistics of that slice (dropping the fixed coordinates).  Thus for instance if A = {11, 12, 22, 32}, then (a,b,c) = (1,2,1), and (a(1*),b(1*)) = (1,1).&lt;br /&gt;
&lt;br /&gt;
We call a statistic (a,b,c,...) &#039;&#039;attainable&#039;&#039; if it is attained by a Moser set.  We say that an attainable statistic is &#039;&#039;Pareto-optimal&#039;&#039; if it cannot be pointwise dominated by any other attainable statistic (a&#039;,b&#039;,c&#039;,...) (thus &amp;lt;math&amp;gt;a&#039; \geq a&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;b&#039; \geq b&amp;lt;/math&amp;gt;, etc.)  We say that it is &#039;&#039;extremal&#039;&#039; if it is not a convex combination of any other attainable statistic (this is a stronger property than Pareto-optimal).  For the purposes of maximising linear scores of attainable statistics, it suffices to check extremal statistics.&lt;br /&gt;
&lt;br /&gt;
We let &amp;lt;math&amp;gt;(\alpha_0,\alpha_1,\ldots)&amp;lt;/math&amp;gt; be the normalized version of &amp;lt;math&amp;gt;(a,b,\ldots)&amp;lt;/math&amp;gt;, in which one divides the number of points of a certain type in the set by the total number of points in the set.  Thus for instance &amp;lt;math&amp;gt;\alpha_0 = a/2^n, \alpha_1 = b/(n 2^{n-1}), \alpha_3 = c/(\binom{n}{2} 2^{n-2})&amp;lt;/math&amp;gt;, etc., and the &amp;lt;math&amp;gt;\alpha_i&amp;lt;/math&amp;gt; range between 0 and 1.  Averaging arguments show that any linear inequality obeyed by the &amp;lt;math&amp;gt;\alpha_i&amp;lt;/math&amp;gt; at one dimension is automatically inherited by higher dimensions, as are shifted versions of this inequality (in which &amp;lt;math&amp;gt;\alpha_i&amp;lt;/math&amp;gt; is replaced by &amp;lt;math&amp;gt;\alpha_{i+1}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
The idea in &#039;c-statistics&#039; is to identify 1s and 3s but leave the 2s intact. Let’s use x to denote letters that are either 1 or 3, then the 81 points get split up into 16 groups: 2222 (1 point), 222x, 22×2, 2×22, x222 (two points each), 22xx, 2×2x, x22x, 2xx2, x2×2, xx22 (four points each), 2xxx, x2xx, xx2x, xxx2 (eight points each), xxxx (sixteen points). Let c(w) denote the number of points inside a group w, e.g. c(xx22) is the number of points of the form xx22 inside the set, and is thus an integer from 0 to 4.&lt;br /&gt;
&lt;br /&gt;
== n=0 ==&lt;br /&gt;
&lt;br /&gt;
We trivially have &amp;lt;math&amp;gt;c&#039;_0=1.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== n=1 ==&lt;br /&gt;
&lt;br /&gt;
We trivially have &amp;lt;math&amp;gt;c&#039;_1=2.&amp;lt;/math&amp;gt;  The Pareto-optimal values of the statistics (a,b) are (1,1) and (2,0); these are also the extremals.  We thus have the inequality &amp;lt;math&amp;gt;a+b \leq 2&amp;lt;/math&amp;gt;, or in normalized notation&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;2\alpha_0 + \alpha_1 \leq 2&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== n=2 ==&lt;br /&gt;
&lt;br /&gt;
We have &amp;lt;math&amp;gt;c&#039;_2 = 6&amp;lt;/math&amp;gt;; the upper bound follows since &amp;lt;math&amp;gt;c&#039;_2 \leq 3 c&#039;_1&amp;lt;/math&amp;gt;, and the lower bound follows by deleting one of the two diagonals from &amp;lt;math&amp;gt;[3]^2&amp;lt;/math&amp;gt; (these are the only extremisers).&lt;br /&gt;
&lt;br /&gt;
The extremiser has statistics (a,b,c) = (2,4,0), which are of course Pareto-optimal.  If c=1 then we must have a, b at most 2 (look at the lines through 22).  This is attainable (e.g. {11, 12, 22, 23, 31}, and so (2,2,1) is another Pareto-optimal statistic.  If a=4, then b and c must be 0, so we get another Pareto-optimal statistic (4,0,0) (attainable by {11, 13, 31, 33} of course).  If a=3, then c=0 and b is at most 2, giving another Pareto-optimal statistic (3,2,0); but this is a convex combination of (4,0,0) and (2,4,0) and is thus not extremal.  Thus the complete set of extremal statistics are&lt;br /&gt;
&lt;br /&gt;
(4,0,0), (2,4,0), (2,2,1).&lt;br /&gt;
&lt;br /&gt;
The sharp linear inequalities obeyed by a,b,c (other than the trivial ones &amp;lt;math&amp;gt;a,b,c \geq 0&amp;lt;/math&amp;gt;) are then&lt;br /&gt;
&lt;br /&gt;
*&amp;lt;math&amp;gt;2a+b+2c \leq 8&amp;lt;/math&amp;gt;&lt;br /&gt;
*&amp;lt;math&amp;gt;b+2c \leq 4&amp;lt;/math&amp;gt;&lt;br /&gt;
*&amp;lt;math&amp;gt;a+2c \leq 4&amp;lt;/math&amp;gt;&lt;br /&gt;
*&amp;lt;math&amp;gt;c \leq 1&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
In normalized notation, we have&lt;br /&gt;
*&amp;lt;math&amp;gt;4\alpha_0 + 2\alpha_1 + \alpha_2 \leq 4&amp;lt;/math&amp;gt;&lt;br /&gt;
*&amp;lt;math&amp;gt;2\alpha_1 + \alpha_2 \leq 2&amp;lt;/math&amp;gt;&lt;br /&gt;
*&amp;lt;math&amp;gt;2\alpha_0 + \alpha_2 \leq 2&amp;lt;/math&amp;gt;&lt;br /&gt;
*&amp;lt;math&amp;gt;\alpha_2 \leq 1&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
The Pareto optimizers for c-statistics are (c22,c2x,cx2,cxx) = (1112),(0222),(0004), which are covered by the linear inequalities &lt;br /&gt;
*&amp;lt;math&amp;gt;c22+c2x+cxx \le 4&amp;lt;/math&amp;gt;, &lt;br /&gt;
*&amp;lt;math&amp;gt;c22+cx2+cxx \le 4&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== n=3 ==&lt;br /&gt;
&lt;br /&gt;
We have &amp;lt;math&amp;gt;c&#039;_3 = 16&amp;lt;/math&amp;gt;.  The lower bound can be seen for instance by taking all the strings with one 2, and half the strings with no 2 (e.g. the strings with an odd number of 1s).  The upper bound can be deduced from the corresponding [[upper and lower bounds]] for &amp;lt;math&amp;gt;c_3 = 18&amp;lt;/math&amp;gt;; the 17-point and 18-point line-free sets each contain a geometric line.&lt;br /&gt;
&lt;br /&gt;
If a Moser set in &amp;lt;math&amp;gt;[3]^3&amp;lt;/math&amp;gt; contains 222, then it can have at most 14 points, since the remaining 26 points in the cube split into 13 antipodal pairs, and at most one of each pair can lie in the set.  By exhausting over the &amp;lt;math&amp;gt;2^{13} = 8192&amp;lt;/math&amp;gt; possibilities, it can be shown that it is impossible for a 14-point set to exist; any Moser set containing 222 must in fact omit at least one antipodal pair completely and thus have only 13 points.  (A human proof of this fact can be [http://www.ma.rhul.ac.uk/~elsholtz/WWW/blog/mosertablogv01.pdf found here].)&lt;br /&gt;
&lt;br /&gt;
The Pareto-optimal statistics are&lt;br /&gt;
&lt;br /&gt;
(3,6,3,1),(4,4,3,1),(4,6,2,1),(2,6,6,0),(3,6,5,0),(4,4,5,0),(3,7,4,0),(4,6,4,0), (3,9,3,0),(4,7,3,0),(5,4,3,0),(4,9,2,0),(5,6,2,0),(6,3,2,0),(3,10,1,0),(5,7,1,0), (6,4,1,0),(4,12,0,0),(5,9,0,0),(6,6,0,0),(7,3,0,0),(8,0,0,0).&lt;br /&gt;
&lt;br /&gt;
These were found from a search of the &amp;lt;math&amp;gt;2^{27}&amp;lt;/math&amp;gt; subsets of the cube.&lt;br /&gt;
A spreadsheet containing these statistics can be [http://spreadsheets.google.com/ccc?key=p5T0SktZY9DuKZ2DyzO9EOg&amp;amp;hl=en# found here].&lt;br /&gt;
&lt;br /&gt;
The extremal statistics are&lt;br /&gt;
&lt;br /&gt;
(3,6,3,1),(4,4,3,1),(4,6,2,1),(2,6,6,0),(4,4,5,0),(4,6,4,0),(4,12,0,0),(8,0,0,0)&lt;br /&gt;
&lt;br /&gt;
The sharp linear bounds are :&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;math&amp;gt;2a+b+2c+4d \leq 22&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;3a+2b+3c+6d \leq 36&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;7a+2b+4c+8d \leq 56&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;6a+2b+3c+6d \leq 48&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;b+c+3d \leq 12&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;a+2c+4d \leq 14&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;5a+4c+8d \leq 40&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;a+4d \leq 8&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;b+6d \leq 12&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;c+3d \leq 6&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;d \leq 1&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In normalized notation,&lt;br /&gt;
* &amp;lt;math&amp;gt;8\alpha_0+ 6\alpha_1 + 6\alpha_2 + 2\alpha_3 \leq 11&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;4\alpha_0+4\alpha_1+3\alpha_2+\alpha_3 \leq 6&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;7\alpha_0+3\alpha_1+3\alpha_2+\alpha_3 \leq 7&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;8\alpha_0+3\alpha_1+3\alpha_2+\alpha_3 \leq 8&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;4\alpha_1+2\alpha_2+\alpha_3 \leq 4&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;4\alpha_0+6\alpha_2+2\alpha_3 \leq 7&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;5\alpha_0+3\alpha_2+\alpha_3 \leq 5&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;2\alpha_0+\alpha_3 \leq 2&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;2\alpha_1+\alpha_3 \leq 2&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;2\alpha_2+\alpha_3 \leq 2&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;\alpha_3 \leq 1&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The c-statistics can also be found from an exhaustive search of Moser sets.  The resulting Pareto sets and linear inequalities can be found on Sheet 8 of [http://spreadsheets.google.com/ccc?key=p5T0SktZY9DuKZ2DyzO9EOg&amp;amp;hl=en# this spreadsheet]&lt;br /&gt;
&lt;br /&gt;
== n=4 ==&lt;br /&gt;
&lt;br /&gt;
A [http://abel.math.umu.se/~klasm/extremal-moser-n=5-t=3 computer search] has obtained all extremisers to &amp;lt;math&amp;gt;c&#039;_4=43&amp;lt;/math&amp;gt;.  The 42-point solutions can be found [http://abel.math.umu.se/~klasm/moser-n=4-t=3-p=42.gz here].&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof that &amp;lt;math&amp;gt;c&#039;_4 \leq 43&amp;lt;/math&amp;gt;&#039;&#039;&#039;: &lt;br /&gt;
When e=1 (i.e. the 4D set contains 2222) then we have at most 41 points (in fact at most 39) by counting antipodal points, so assume e=0.&lt;br /&gt;
&lt;br /&gt;
Define the score of a 3D slice to be a/4+b/3+c/2+d.  Observe from double counting that the size of a 4D set is the sum of the scores of its eight side slices.&lt;br /&gt;
&lt;br /&gt;
But by [http://spreadsheets.google.com/ccc?key=p5T0SktZY9DuKZ2DyzO9EOg&amp;amp;hl=en looking at the extremals] we see that the largest score is 44/8, attained at only one point, namely when (a,b,c,d) = (2,6,6,0).  So the only way one can have a 44-point set is if all side slices are (2,6,6,0), or equivalently if the whole set has statistics (a,b,c,d,e) = (4,16,24,0,0).  But then we have all the points with two 2s, which means that the four &amp;quot;a&amp;quot; points cannot be separated by Hamming distance 2.  We conclude that we must have an antipodal pair among the &amp;quot;a&amp;quot; points with an odd number of 1s, and an antipodal pair among the &amp;quot;a&amp;quot; points with an even number of 1s.    By the symmetries of the cube, we may take the a-set to then be 1111, 3333, 1113, 3331.  But then the &amp;quot;b&amp;quot; set must exclude both 1112 and 3332, and so can have at most three points in the eight-point set xyz2 (with x,y,z=1,3) rather than four (to get four points one must alternate in a checkerboard pattern).  Adding this to the at most four points of the form xy2z, x2yz, 2xyz we see that b is at most 15, a contradiction. &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Given a subset of &amp;lt;math&amp;gt;[3]^4&amp;lt;/math&amp;gt;, let a be the number of points with no 2s, b be the number of points with 1 2, and so forth.  The quintuple (a,b,c,d,e) thus lies between (0,0,0,0,0) and (16,32,24,8,1).&lt;br /&gt;
&lt;br /&gt;
The 43-point solutions have distributions (a,b,c,d,e) as follows:&lt;br /&gt;
&lt;br /&gt;
* (5,20,18,0,0) [16 solutions]&lt;br /&gt;
* (4,16,23,0,0) [768 solutions]&lt;br /&gt;
* (3,16,24,0,0) [512 solutions]&lt;br /&gt;
* (4,15,24,0,0) [256 solutions]&lt;br /&gt;
&lt;br /&gt;
The 42-point solutions are [http://abel.math.umu.se/~klasm/Moser-42-stat.pdf distributed as follows]:&lt;br /&gt;
&lt;br /&gt;
* (6,24,12,0,0) [[http://abel.math.umu.se/~klasm/moser-n=4-42-12 8 solutions]] &lt;br /&gt;
* (5,20,17,0,0) [576 solutions]&lt;br /&gt;
* (5,19,18,0,0) [384 solutions]&lt;br /&gt;
* (6,16,18,2,0) [[http://abel.math.umu.se/~klasm/moser-n=4-42-e=2 192 solutions]]&lt;br /&gt;
* (4,20,18,0,0) [272 solutions]&lt;br /&gt;
* (5,17,20,0,0) [192 solutions]&lt;br /&gt;
* (5,16,21,0,0) [3584 solutions]&lt;br /&gt;
* (4,17,21,0,0) [768 solutions]&lt;br /&gt;
* (4,16,22,0,0) [26880 solutions]&lt;br /&gt;
* (5,15,22,0,0) [1536 solutions]&lt;br /&gt;
* (4,15,23,0,0) [22272 solutions]&lt;br /&gt;
* (3,16,23,0,0) [15744 solutions]&lt;br /&gt;
* (4,14,24,0,0) [4224 solutions]&lt;br /&gt;
* (3,15,24,0,0) [8704 solutions]&lt;br /&gt;
* (2,16,24,0,0) [896 solutions]&lt;br /&gt;
&lt;br /&gt;
Note how c is usually quite large, and d quite low.&lt;br /&gt;
&lt;br /&gt;
One of the (6,24,12,0,0) solutions is &amp;lt;math&amp;gt;\Gamma_{220}+\Gamma_{202}+\Gamma_{022}+\Gamma_{112}+\Gamma_{211}&amp;lt;/math&amp;gt; (i.e. the set of points containing exactly two 1s, and/or exactly two 3s).  The other seven are reflections of this set.&lt;br /&gt;
&lt;br /&gt;
There are 2,765,200 41-point solutions, [http://abel.math.umu.se/~klasm/solutions-4-t=3-41-moser.gz listed here].  The statistics for such points can be [http://abel.math.umu.se/~klasm/Moser-41-stat.pdf found here].  Noteworthy features of the statistics:&lt;br /&gt;
&lt;br /&gt;
* d is at most 3 (and, except for [http://abel.math.umu.se/~klasm/moser-n=3-t=3-41-d=3.gz 256 exceptional solutions] of the shape (5,15,18,3,0), have d at most 2; here are the [http://abel.math.umu.se/~klasm/moser-n=3-t=3-41-d=2.gz d=2 solutions] and [http://abel.math.umu.se/~klasm/moser-n=3-t=3-41-d=1.gz d=1 solutions])&lt;br /&gt;
* c is at least 6 (and, except for [http://abel.math.umu.se/~klasm/moser-n=3-t=3-41-c=6.gz 16 exceptional solutions] of the shape (7,28,6,0,0), have c at least 11).&lt;br /&gt;
&lt;br /&gt;
Statistics for the 41-point, 42-point, and 43-point solutions can be found [http://spreadsheets.google.com/ccc?key=p5T0SktZY9DuqNcxJ171Bbw&amp;amp;hl=en here].&lt;br /&gt;
&lt;br /&gt;
If a Moser set in &amp;lt;math&amp;gt;[3]^4&amp;lt;/math&amp;gt; contains 2222, then by the n=3 theory, any middle slice (i.e. 2***, *2**, **2*, or ***2) is missing at least one antipodal pair.  But each antipodal pair belongs to at most three middle slices, thus two of the 40 antipodal pairs must be completely missing.  As a consequence, any Moser set containing 2222 can have at most 39 points.&lt;br /&gt;
(A more refined analysis can be found at [http://www.ma.rhul.ac.uk/~elsholtz/WWW/blog/mosertablogv01.pdf found here].)&lt;br /&gt;
&lt;br /&gt;
We have the following inequalities connecting a,b,c,d,e:&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;math&amp;gt;4a+b \leq 64&amp;lt;/math&amp;gt;:  There are 32 lines connecting two &amp;quot;a&amp;quot; points with a &amp;quot;b&amp;quot; point; each &amp;quot;a&amp;quot; point belongs to four of these lines, and each &amp;quot;b&amp;quot; point belongs to one.  But each such line can have at most two points in the set, and the claim follows.&lt;br /&gt;
* This can be refined to &amp;lt;math&amp;gt;4a+b+\frac{2}{3} c \leq 64&amp;lt;/math&amp;gt;: There are 24 planes connecting four &amp;quot;a&amp;quot; points, four &amp;quot;b&amp;quot; points, and one &amp;quot;c&amp;quot; point; each &amp;quot;a&amp;quot; point belongs to six of these, each &amp;quot;b&amp;quot; point belongs to three, and each &amp;quot;c&amp;quot; point belongs to one.  For each of these planes, we have &amp;lt;math&amp;gt;2a + b + 2c \leq 8&amp;lt;/math&amp;gt; from the n=2 theory, and the claim follows.&lt;br /&gt;
* &amp;lt;math&amp;gt;6a+2c \leq 96&amp;lt;/math&amp;gt;:  There are 96 lines connecting two &amp;quot;a&amp;quot; points with a &amp;quot;c&amp;quot; point; each &amp;quot;a&amp;quot; point belongs to six of these lines, and each &amp;quot;c&amp;quot; point belongs to two.  But each such line can have at most two points in the set, and the claim follows.&lt;br /&gt;
* &amp;lt;math&amp;gt;3b+2c \leq 96&amp;lt;/math&amp;gt;:  There are 48 lines connecting two &amp;quot;b&amp;quot; points to a &amp;quot;c&amp;quot; point; each &amp;quot;b&amp;quot; point belongs to three of these points, and each &amp;quot;c&amp;quot; point belongs to two.  But each such line can have at most two points in the set, and the claim follows.&lt;br /&gt;
&lt;br /&gt;
The inequalities for n=3 imply inequalities for n=4.  Indeed, there are eight side slices of &amp;lt;math&amp;gt;[3]^4&amp;lt;/math&amp;gt;; each &amp;quot;a&amp;quot; point belongs to four of these, each &amp;quot;b&amp;quot; point belongs to three, each &amp;quot;c&amp;quot; point belongs to two, and each &amp;quot;d&amp;quot; point belongs to one.  Thus, any inequality of the form&lt;br /&gt;
:&amp;lt;math&amp;gt; \alpha a + \beta b + \gamma c + \delta d \leq M&amp;lt;/math&amp;gt;&lt;br /&gt;
in three dimensions implies the inequality&lt;br /&gt;
:&amp;lt;math&amp;gt; 4 \alpha a + 3 \beta b + 2 \gamma c + \delta d \leq 8M&amp;lt;/math&amp;gt;&lt;br /&gt;
in four dimensions.  Thus we have&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;math&amp;gt;8a+3b+4c+4d \leq 176&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;2a+b+c+d \leq 48&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;14a+3b+4c+4d \leq 244&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;4a+b+c+d \leq 64&amp;lt;/math&amp;gt; &lt;br /&gt;
* &amp;lt;math&amp;gt;3b+2c+3d \leq 96&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;a+c+d \leq 28&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;5a+2c+2d \leq 80&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;a+d \leq 16&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;b+2d \leq 32&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;2c+3d \leq 48&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Cubes also sit diagonally in the 4-dimensional cube.  They may have coordinates xxyz, where xx runs over (11,22,33) or (13,22,31), while y and z run over (1,2,3).  These cubes have a different distribution of 2s than the ordinary slices: (a,b,c,d,e) = (8,8,6,4,1) instead of (8,12,6,1,0) for the side slices and (0,8,12,6,1) for the middle slices.  So a different set of inequalities arise.  It is possible to run through the same procedure as described above for n=3, and the inequalities that arise are &amp;lt;math&amp;gt;2a+b+2c+2d+4e \le 24&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;4a+b+2c+2d+4e \le 32&amp;lt;/math&amp;gt; within the 3D cube, which when averaged becomes &amp;lt;math&amp;gt;4a+b+2c+4d+16e \le 96&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;8a+b+2c+4d+16e \le 128&amp;lt;/math&amp;gt; for the 4D cube.  A spreadsheet containing these statistics can be [http://spreadsheets.google.com/ccc?key=p5T0SktZY9DuKZ2DyzO9EOg&amp;amp;hl=en# found here] on sheet 2.  Other sheets of this spreadsheet contain results for a 3D cube sitting diagonally in a 5D, 6D or 7D cube.  Notice the similarity of the equations that arise for the xxxyz, xxyyz and xxxxyz diagonals.  Also notice the xxxxyyz diagonals have the same Pareto sets and linear inequalities as the cube&#039;s c-statistics&lt;br /&gt;
&lt;br /&gt;
== n=5 ==&lt;br /&gt;
&lt;br /&gt;
Let (A,B,C,D,E,F) be the statistics of a five-dimensional Moser set, thus (A,B,C,D,E,F) varies between (0,0,0,0,0,0) and (32,80,80,40,10,1).&lt;br /&gt;
&lt;br /&gt;
There are several Moser sets with the statistics (4,40,80,0,0,0), which thus have 124 points.  Indeed, one can take&lt;br /&gt;
&lt;br /&gt;
* all points with two 2s;&lt;br /&gt;
* all points with one 2 and an even number of 1s; and&lt;br /&gt;
* (13111),(13113),(31311),(13333). Any two of these four points differ in three places, except for one pair of points that differ in one place.&lt;br /&gt;
&lt;br /&gt;
For the rest of this section, we assume that the Moser set &amp;lt;math&amp;gt;{\mathcal A}&amp;lt;/math&amp;gt; is a 125-point set.&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 1&#039;&#039;&#039;: F=0.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; If F is non-zero, then the Moser set contains 22222, then each of the 121 antipodal pairs can have at most one point in the set, leading to only 122 points. &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 2&#039;&#039;&#039;: Every middle slice of &amp;lt;math&amp;gt;{\mathcal A}&amp;lt;/math&amp;gt; has at most 41 points.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039;  Without loss of generality we may consider the 2**** slice.  There are two cases, depending on the value of c(2****).&lt;br /&gt;
&lt;br /&gt;
Suppose first that c is at least 17; thus there are at least 17 points of the form 222xy, 22x2y, 22xy2, 2x2y2, 2xy22, or 2x22y, where the x, y denote 1 or 3.  This gives 34 &amp;quot;xy&amp;quot; wildcards in all in four coordinate slots; by the pigeonhole principle one of the slots sees at least 9 of the wildcards.  By symmetry, we may assume that the second coordinate slot sees at least 9 of these wildcards, thus there are at least 9 points of the form 2x22y, 2x2y2, 2xy22.  The x=1, x=3 cases can absorb at most six of these, thus each of these cases must absorb at least three points, with at least one absorbing at least five.  Let&#039;s say that it&#039;s the x=3 case that absorbs 5; thus &amp;lt;math&amp;gt;d(*1***) \geq 3&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;d(*3***) \geq 5&amp;lt;/math&amp;gt;.  From the n=4 theory this means that the *1*** slice has at most 41 points, and the *3*** slice has at most 40.  Meanwhile, the middle slice has at most 43, leading to 41+41+42=124 points in all.&lt;br /&gt;
&lt;br /&gt;
Now suppose c is less than 17; then by the n=4 theory the middle slice is one of the eight (6,24,12,0,0) sets.  Without loss of generality we may take it to be &amp;lt;math&amp;gt;\Gamma_{220}+\Gamma_{202}+\Gamma_{022}+\Gamma_{112}+\Gamma_{211}&amp;lt;/math&amp;gt;; in particular, the middle slice contains the points 21122 21212 21221 23322 23232 23223.  In particular, the *1*** and *3*** slices have a &amp;quot;d&amp;quot; value of at least three, and so have at most 41 points.  If the *2*** slice has at most 42 points, then we are at 41+42+41=124 points as needed, but if we have 43 or more, then we are back in the first case (as &amp;lt;math&amp;gt;c(*2***) \geq 17&amp;lt;/math&amp;gt;) after permuting the indices.&lt;br /&gt;
&amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Since 125=41+41+43, we thus have&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Corollary 1&#039;&#039;&#039;: Every side slice of &amp;lt;math&amp;gt;{\mathcal A}&amp;lt;/math&amp;gt; has at least 41 points.  If one side slice does have 41 points, then the other has 43.&lt;br /&gt;
&lt;br /&gt;
Combining this with the n=4 statistics, we conclude&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Corollary 2&#039;&#039;&#039;: Every side slice of &amp;lt;math&amp;gt;{\mathcal A}&amp;lt;/math&amp;gt; has e=0, and &amp;lt;math&amp;gt;d \leq 3&amp;lt;/math&amp;gt;.  Given two opposite side slices, e.g. 1**** and 3****, we have &amp;lt;math&amp;gt;d(1****)+d(3****) \leq 4&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Corollary 3&#039;&#039;&#039;: E=0.&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Corollary 4&#039;&#039;&#039;: Any middle slice has a &amp;quot;c&amp;quot; value of at most 8.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; Let&#039;s work with the 2**** slice.  By Corollary 2, there are at most four contributions to c(2****) of the form 21*** or 23***, and similarly for the other three positions.  Double counting then gives the claim. &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 3&#039;&#039;&#039;: &amp;lt;math&amp;gt;2B+C \leq 160&amp;lt;/math&amp;gt;.   &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039;: There are 160 lines connecting one &amp;quot;C&amp;quot; point to two &amp;quot;B&amp;quot; points (e.g. 11112, 11122, 11132); each &amp;quot;C&amp;quot; point lies in two of these, and each &amp;quot;B&amp;quot; point lies on four.  A Moser set can have at most two points out of each of these lines.  Double counting then gives the claim.  &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 4&#039;&#039;&#039; Given m A-points with &amp;lt;math&amp;gt;m \geq 5&amp;lt;/math&amp;gt;, there exists at least m-4 pairs (a,b) of such A-points with Hamming distance exactly two (i.e. b differs from a in exactly two places).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; It suffices to check this for m=5, since the case of larger m then follows by locating a pair, removing a point that contributes to that pair, and using the induction hypothesis.  Given 5 A-points, we may assume by the pigeonhole principle and symmetry that at least three of them have an odd number of 1s.  Suppose 11111 is one of the points, and that no pair has Hamming distance 2. All points with two 3s are excluded, so the only points allowed with an odd number of 1s are those with four 3s. But all those points differ from each other in two positions, so at most one of them is allowed.  &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Corollary 5&#039;&#039;&#039; &amp;lt;math&amp;gt;C \leq 79&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039;: Suppose for contradiction that C=80, then D=0 and &amp;lt;math&amp;gt;B \leq 40&amp;lt;/math&amp;gt;.  From Lemma 4 we also see that A cannot exceed 5, leading to the contradiction.&lt;br /&gt;
&amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Define the &#039;&#039;&#039;score&#039;&#039;&#039; of a Moser set in &amp;lt;math&amp;gt;[3]^4&amp;lt;/math&amp;gt; to be the quantity &amp;lt;math&amp;gt;a + 5b/4 + 5c/3 + 5d/2 + 5e&amp;lt;/math&amp;gt;.  Double-counting (and Lemma 2) gives&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 5&#039;&#039;&#039;  The total score of all the ten side-slices of &amp;lt;math&amp;gt;{\mathcal A}&amp;lt;/math&amp;gt; is equal to &amp;lt;math&amp;gt;5|{\mathcal A}| = 5 \times 125&amp;lt;/math&amp;gt;.  In particular, there exists a pair of opposite side-slices whose scores add up to at least 125.&lt;br /&gt;
&lt;br /&gt;
By Lemma 5 and symmetry, we may assume that the 1**** and 3**** slices have score adding up to at least 125.  By Lemma 2, the 2**** slice has at most 41 points, which imply that the 1**** and 3**** have 41, 42, or 43 points.  From the [http://spreadsheets.google.com/ccc?key=p5T0SktZY9DuqNcxJ171Bbw&amp;amp;hl=en n=4 statistics] we know that all 41-point, 42-point, 43-point slices have score less than 62, with the following exceptions:&lt;br /&gt;
&lt;br /&gt;
# (2,16,24,0,0) [42 points, score: 62]&lt;br /&gt;
# (4,16,23,0,0) [43 points, score: 62 1/3]&lt;br /&gt;
# (4,15,24,0,0) [43 points, score: 62 3/4]&lt;br /&gt;
# (3,16,24,0,0) [43 points, score: 63]&lt;br /&gt;
&lt;br /&gt;
Thus the 1**** and 3**** slices must from the above list.  Furthermore, if one of the slices is of type 1, then the other must be of type 4, and if one slice is of type 2, then the other must be of type 3 or 4.&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 6&#039;&#039;&#039; There exists one cut in which the side slices have total score strictly greater than 125 (i.e. they thus involve only Type 2, Type 3, and Type 4 slices, with at least one side slice not equal to Type 2, and the cut here is of the form 43+39+43).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; If not, then all cuts have side slices exactly equal to 125, which by the above table implies that one is Type 1 and one is Type 4, in particular all side slices have c=24.  But this forces C=80, contradicting Corollary 5. &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Adding up the corners we conclude&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Corollary 6&#039;&#039;&#039; &amp;lt;math&amp;gt;6 \leq A \leq 8&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 7&#039;&#039;&#039; &amp;lt;math&amp;gt;D=0&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; Firstly, from Lemma 6 we have a cut in which the two side slices are omitting at most one C-point between them (and have no D-point), which forces the middle slice to have at most one D-point; thus D is at most 1.&lt;br /&gt;
&lt;br /&gt;
Now suppose instead that D=1 (e.g. if 11222 was in the set); then there would be two choices of coordinates in which one of the side slices would have d=1 (e.g. 1**** and *1****). But the [http://spreadsheets.google.com/ccc?key=p5T0SktZY9DuqNcxJ171Bbw&amp;amp;hl=en n=4 statistics] show that such slices have a score of at most 59 7/12, so that the total score from those two coordinates is at most 63 + 59 7/12 = 122 7/12. On the other hand, the other three slices have a net score of at most 63+63 = 126. This averages out to at most 124.633... &amp;lt; 125, a contradiction.  &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Corollary 7&#039;&#039;&#039; Every middle slice has at most 40 points.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; From Lemma 7 we see that the middle slice must have c=0, but from the n=4 statistics this is not possible for any slice of size 41 or higher (alternatively, one can use the inequalities &amp;lt;math&amp;gt;4a+b \leq 64&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;b \leq 32&amp;lt;/math&amp;gt;). &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Each middle slice now has 39 or 40 points, with c=d=e=0, and so from the inequalities &amp;lt;math&amp;gt;4a+b \leq 64&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;b \leq 32&amp;lt;/math&amp;gt; must have statistics (8,32,0,0,0),(7,32,0,0,0), or (8,31,0,0,0).  In particular the &amp;quot;a&amp;quot; index of the middle slices is at most 8.  Summing over all middle slices we conclude&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 9&#039;&#039;&#039; B is at most 40.&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 10&#039;&#039;&#039; C is equal to 78 or 79.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; By Corollary 5, it suffices to show that &amp;lt;math&amp;gt;C \geq 78&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
As 125=43+39+43, we see that every center slice must have at least 39 points. By Lemma 2 and Lemma 7 the center slice has c=d=e=0, thus the center slice has a+b &amp;gt;= 39.  On the other hand, from the n=4 theory we have 4a+b &amp;lt;= 64, which forces b &amp;gt;= 31.&lt;br /&gt;
&lt;br /&gt;
By double counting, we see that 2C is equal to the sum of the b&#039;s of all the five center slices.  Thus C &amp;gt;= 5*31/2 = 77.5 and the claim follows.  &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
From Lemmas 9 and 10 we see that &amp;lt;math&amp;gt;B+C \leq 119&amp;lt;/math&amp;gt;, and thus &amp;lt;math&amp;gt;A \geq 6&amp;lt;/math&amp;gt;.  Also, if &amp;lt;math&amp;gt;A \geq 7&amp;lt;/math&amp;gt;, then by Lemma 4 we have at least three pairs of A points with Hamming distance 2.  At most two of these pairs eliminate the same C point, so we would have C=78 in that case.  &lt;br /&gt;
&lt;br /&gt;
Putting all the above facts together, we see that (A,B,C,D,E,F) must be one of the following triples:&lt;br /&gt;
&lt;br /&gt;
* (6,40,79,0,0,0)&lt;br /&gt;
* (7,40,78,0,0,0)&lt;br /&gt;
* (8,39,78,0,0,0)&lt;br /&gt;
&lt;br /&gt;
All three cases can be eliminated, giving &amp;lt;math&amp;gt;c&#039;_5=124&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== Elimination of (6,40,79,0,0,0) ===&lt;br /&gt;
&lt;br /&gt;
Look at the 6 A points.  From Lemma 4 we have at least two pairs (a,b), (c,d) of A-points that have Hamming separation 2.&lt;br /&gt;
&lt;br /&gt;
Now look at the midpoints of these two pairs; these midpoints are C-points cannot lie in the set.  But we have exactly one C-point missing from the set, thus the midpoints must be the same.  By symmetry, we may thus assume that the two pairs are (11111,11133) and (11113,11131).  Thus 11111,11133, 11113, 11131 are in the set, and so every C-point other than 11122 is in the set.  On the other hand, the B-points 11121, 11123, 11112, 11132 lie outside the set.&lt;br /&gt;
&lt;br /&gt;
At most one of 11312, 11332 lie in the set (since 11322 lies in the set).   Suppose that 11312 lies outside the set, then we have a pair (xy1z2, xy3z2) with x,y,z = 1,3 that is totally omitted from the set, namely (11112,11312).  On the other hand, every other pair of this form can have at most point in the set, thus there are at most seven points in the set of the form (xyzw2) with x,y,z,w = 1,3.  Similarly there are at most 8 points of the form xyz2w, or of xy2zw, x2yzw, 2xyzw, leading to at most 39 B-points in all, contradiction.&lt;br /&gt;
&lt;br /&gt;
=== Elimination of (7,40,78,0,0,0) ===&lt;br /&gt;
&lt;br /&gt;
By Lemma 4, we have at least three pairs of A-points of distance two apart that lie in the set.&lt;br /&gt;
The midpoints of these pairs are C-points that do not lie in the set; but there are only two such C-points, thus two pairs must have the same midpoint, so we may assume as before that 111xy lies in the set for x,y=1,3, which implies that 1112* and 111*2 lie outside the set.&lt;br /&gt;
&lt;br /&gt;
Now consider the 160 lines between 2 B points and one C point (cf. Lemma 3).  The sum of all the points in each such line (counting multiplicity) is 4B+2C = 316.  On the other hand, every one of the 160 lines can have at most two points, and four of these lines (namely 1112*, 111*2) have no points.  Thus all the other lines must have exactly two points.  &lt;br /&gt;
&lt;br /&gt;
We know that the C-point 11122 is missing from the set; there is one other missing C-point.  Since 1112x, 111x2 lie outside the set, we conclude from the previous paragraph that 1132x, 113x2 and 1312x, 131x2 lie in the set.  Taking midpoints we conclude that 11322 and 13122 lie outside the set.  But this is now three C-points missing (together with 11122), a contradiction.&lt;br /&gt;
&lt;br /&gt;
=== Elimination of (8,39,78,0,0,0) ===&lt;br /&gt;
&lt;br /&gt;
By Lemma 4 we have at least four pairs of A-points of distance two apart that lie in the set. The midpoints of these pairs are C-points that do not lie in the set; but there are only two such C-points, thus two pairs (a,b), (c,d) must have the same midpoint p, and the other two pairs (a&#039;,b&#039;), (c&#039;,d&#039;) must also have the same midpoint p&#039;.  (Note that every C-point is the midpoint of at most two such pairs.)&lt;br /&gt;
&lt;br /&gt;
Now consider the 160 lines between 2 B points and one C point (cf. Lemma 3).  The sum of all the points in each such line (counting multiplicity) is 4B+2C = 312.  Every one of the 160 lines can have at most two points, and four of these (those in the plane of (a,b,c,d) or of (a&#039;,b&#039;,c&#039;,d&#039;) have no points.  Thus all other lines must have exactly two points.&lt;br /&gt;
&lt;br /&gt;
Without loss of generality we have (a,b)=(11111,11133), (c,d) = (11113,11131), thus p = 11122.  By permuting the first three indices, we may assume that p&#039; is not of the form x2y2z, x2yz2, xy22z, xy2z2.  Then 1112x lies outside the set and 1122x lies in the set, so by the above paragraph 1132x lies in the set; similarly for 113x2, 1312x, 131x2.  This implies that 13122, 11322 lie outside the set, but this (together with 11122) shows that at least three C-points are missing, a contradiction.&lt;br /&gt;
&lt;br /&gt;
== General n ==&lt;br /&gt;
&lt;br /&gt;
General solution for &amp;lt;math&amp;gt;c&#039;_N&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* q 2s, all points from A(N-q,1)&lt;br /&gt;
* q-1 2s, points from A(N-q+1,2)&lt;br /&gt;
* q-2 2s, points from A(N-q+2,3)&lt;br /&gt;
* etc.&lt;br /&gt;
&lt;br /&gt;
where A(m,d) is a subset of &amp;lt;math&amp;gt;[1,3]^m&amp;lt;/math&amp;gt; for which any two points differ from each other in at least d places.&lt;br /&gt;
&lt;br /&gt;
Mathworld’s entry on error-correcting codes suggests it might be NP-complete to find the size of A(m,d) in general.&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;math&amp;gt;|A(m,1)| = 2^m&amp;lt;/math&amp;gt; because it includes all points in &amp;lt;math&amp;gt;[1,3]^m&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;|A(m,2)| = 2^{m-1}&amp;lt;/math&amp;gt; because it can include all points in &amp;lt;math&amp;gt;[1,3]^m&amp;lt;/math&amp;gt; with an odd number of 1s&lt;br /&gt;
&lt;br /&gt;
The integer programming routine from Maple 12 was used to obtain upper bounds for &amp;lt;math&amp;gt;c&#039;_6&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;c&#039;_7&amp;lt;/math&amp;gt;.  A large number of linear inequalities, described above in sections (n=3) and (n=4), were combined.  The details are in [[Maple calculations]].  The results were that &amp;lt;math&amp;gt;c&#039;_6 \le 361&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;c&#039;_7 \le 1071&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
A [[genetic algorithm]] has provided the following examples:&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;math&amp;gt;c&#039;_6 \geq 353&amp;lt;/math&amp;gt; (26 examples; [http://twofoldgaze.wordpress.com/2009/03/10/353-element-solution/ here is one])&lt;br /&gt;
* &amp;lt;math&amp;gt;c&#039;_7 \geq 988&amp;lt;/math&amp;gt; [http://twofoldgaze.wordpress.com/2009/03/10/978-element-solution/ Here is the example]&lt;br /&gt;
&lt;br /&gt;
== Larger sides (k&amp;gt;3) ==&lt;br /&gt;
&lt;br /&gt;
The following set gives a lower bound for Moser’s cube &amp;lt;math&amp;gt;[4]^n&amp;lt;/math&amp;gt; (values 1,2,3,4):  Pick all points where q entries are 2 or 3; and also pick those where q-1 entries are 2 or 3 and an odd number of entries are 1.  This is maximized when q is near n/2, giving a lower bound of&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\binom{n}{n/2} 2^n + \binom{n}{n/2-1} 2^{n-1}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
which is comparable to &amp;lt;math&amp;gt;4^n/\sqrt{n}&amp;lt;/math&amp;gt; by [[Stirling&#039;s formula]].&lt;br /&gt;
&lt;br /&gt;
For k=5 (values 1,2,3,4,5) If A, B, C, D, and E denote the numbers of 1-s, 2-s, 3-s, 4-s and 5-s then the first three points of a geometric line form a 3-term arithmetic progression in A+E+2(B+D)+3C. So, for k=5 we have a similar lower bound for the Moser’s problem as for DHJ k=3, i.e. &amp;lt;math&amp;gt;5^{n - O(\sqrt{\log n})}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
The k=6 version of Moser implies DHJ(3).  Indeed, any k=3 combinatorial line-free set can be &amp;quot;doubled up&amp;quot; into a k=6 geometric line-free set of the same density by pulling back the set from the map &amp;lt;math&amp;gt;\phi: [6]^n \to [3]^n&amp;lt;/math&amp;gt; that maps 1, 2, 3, 4, 5, 6 to 1, 2, 3, 3, 2, 1 respectively; note that this map sends k=6 geometric lines to k=3 combinatorial lines.&lt;/div&gt;</summary>
		<author><name>121.220.134.232</name></author>
	</entry>
	<entry>
		<id>https://michaelnielsen.org/polymath/index.php?title=Moser%27s_cube_problem&amp;diff=1030</id>
		<title>Moser&#039;s cube problem</title>
		<link rel="alternate" type="text/html" href="https://michaelnielsen.org/polymath/index.php?title=Moser%27s_cube_problem&amp;diff=1030"/>
		<updated>2009-03-21T13:41:48Z</updated>

		<summary type="html">&lt;p&gt;121.220.134.232: /* n=5 */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Define a &#039;&#039;Moser set&#039;&#039; to be a subset of &amp;lt;math&amp;gt;[3]^n&amp;lt;/math&amp;gt; which does not contain any [[geometric line]], and let &amp;lt;math&amp;gt;c&#039;_n&amp;lt;/math&amp;gt; denote the size of the largest Moser set in &amp;lt;math&amp;gt;[3]^n&amp;lt;/math&amp;gt;.  The first few values are (see [http://www.research.att.com/~njas/sequences/A003142 OEIS A003142]):&lt;br /&gt;
&lt;br /&gt;
: &amp;lt;math&amp;gt;c&#039;_0 = 1; c&#039;_1 = 2; c&#039;_2 = 6; c&#039;_3 = 16; c&#039;_4 = 43; c&#039;_5 = 124.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Beyond this point, we only have some upper and lower bounds, in particular &amp;lt;math&amp;gt;353 \leq c&#039;_6 \leq 361&amp;lt;/math&amp;gt;; see [http://spreadsheets.google.com/ccc?key=p5T0SktZY9DsU-uZ1tK7VEg this spreadsheet] for the latest bounds.&lt;br /&gt;
&lt;br /&gt;
The best known asymptotic lower bound for &amp;lt;math&amp;gt;c&#039;_n&amp;lt;/math&amp;gt; is&lt;br /&gt;
&lt;br /&gt;
: &amp;lt;math&amp;gt;c&#039;_n \gg 3^n/\sqrt{n}&amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
formed by fixing the number of 2s to a single value near n/3.  Compare this to the DHJ(2) or Sperner limit of &amp;lt;math&amp;gt;2^n/\sqrt{n}&amp;lt;/math&amp;gt;.  Is it possible to do any better?  Note that we have a [[Upper_and_lower_bounds#Asymptotics|significantly better bound]] for the DHJ(3) &amp;lt;math&amp;gt;c_n&amp;lt;/math&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
: &amp;lt;math&amp;gt;c_n \geq 3^{n-O(\sqrt{\log n})}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
A more precise lower bound is&lt;br /&gt;
&lt;br /&gt;
: &amp;lt;math&amp;gt;c&#039;_n \geq \binom{n+1}{q} 2^{n-q}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where q is the nearest integer to &amp;lt;math&amp;gt;n/3&amp;lt;/math&amp;gt;, formed by taking all strings with q 2s, together with all strings with q-1 2s and an odd number of 1s.  This for instance gives the lower bound &amp;lt;math&amp;gt;c&#039;_5 \geq 120&amp;lt;/math&amp;gt;, which compares with the upper bound &amp;lt;math&amp;gt;c&#039;_5 \leq 3 c&#039;_4 = 129&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Using [[DHJ(3)]], we have the upper bound&lt;br /&gt;
&lt;br /&gt;
: &amp;lt;math&amp;gt;c&#039;_n = o(3^n)&amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
but no effective decay rate is known. It would be good to have a combinatorial proof of this fact (which is weaker than [[DHJ(3)]], but implies [[Roth&#039;s theorem]]).&lt;br /&gt;
&lt;br /&gt;
== Notation ==&lt;br /&gt;
&lt;br /&gt;
Given a Moser set A in &amp;lt;math&amp;gt;[3]^n&amp;lt;/math&amp;gt;, we let a be the number of points in A with no 2s, b be the number of points in A with one 2, c the number of points with two 2s, etc.  We call (a,b,c,...) the &#039;&#039;statistics&#039;&#039; of A.  Given a slice S of &amp;lt;math&amp;gt;[3]^n&amp;lt;/math&amp;gt;, we let a(S), b(S), etc. denote the statistics of that slice (dropping the fixed coordinates).  Thus for instance if A = {11, 12, 22, 32}, then (a,b,c) = (1,2,1), and (a(1*),b(1*)) = (1,1).&lt;br /&gt;
&lt;br /&gt;
We call a statistic (a,b,c,...) &#039;&#039;attainable&#039;&#039; if it is attained by a Moser set.  We say that an attainable statistic is &#039;&#039;Pareto-optimal&#039;&#039; if it cannot be pointwise dominated by any other attainable statistic (a&#039;,b&#039;,c&#039;,...) (thus &amp;lt;math&amp;gt;a&#039; \geq a&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;b&#039; \geq b&amp;lt;/math&amp;gt;, etc.)  We say that it is &#039;&#039;extremal&#039;&#039; if it is not a convex combination of any other attainable statistic (this is a stronger property than Pareto-optimal).  For the purposes of maximising linear scores of attainable statistics, it suffices to check extremal statistics.&lt;br /&gt;
&lt;br /&gt;
We let &amp;lt;math&amp;gt;(\alpha_0,\alpha_1,\ldots)&amp;lt;/math&amp;gt; be the normalized version of &amp;lt;math&amp;gt;(a,b,\ldots)&amp;lt;/math&amp;gt;, in which one divides the number of points of a certain type in the set by the total number of points in the set.  Thus for instance &amp;lt;math&amp;gt;\alpha_0 = a/2^n, \alpha_1 = b/(n 2^{n-1}), \alpha_3 = c/(\binom{n}{2} 2^{n-2})&amp;lt;/math&amp;gt;, etc., and the &amp;lt;math&amp;gt;\alpha_i&amp;lt;/math&amp;gt; range between 0 and 1.  Averaging arguments show that any linear inequality obeyed by the &amp;lt;math&amp;gt;\alpha_i&amp;lt;/math&amp;gt; at one dimension is automatically inherited by higher dimensions, as are shifted versions of this inequality (in which &amp;lt;math&amp;gt;\alpha_i&amp;lt;/math&amp;gt; is replaced by &amp;lt;math&amp;gt;\alpha_{i+1}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
The idea in &#039;c-statistics&#039; is to identify 1s and 3s but leave the 2s intact. Let’s use x to denote letters that are either 1 or 3, then the 81 points get split up into 16 groups: 2222 (1 point), 222x, 22×2, 2×22, x222 (two points each), 22xx, 2×2x, x22x, 2xx2, x2×2, xx22 (four points each), 2xxx, x2xx, xx2x, xxx2 (eight points each), xxxx (sixteen points). Let c(w) denote the number of points inside a group w, e.g. c(xx22) is the number of points of the form xx22 inside the set, and is thus an integer from 0 to 4.&lt;br /&gt;
&lt;br /&gt;
== n=0 ==&lt;br /&gt;
&lt;br /&gt;
We trivially have &amp;lt;math&amp;gt;c&#039;_0=1.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== n=1 ==&lt;br /&gt;
&lt;br /&gt;
We trivially have &amp;lt;math&amp;gt;c&#039;_1=2.&amp;lt;/math&amp;gt;  The Pareto-optimal values of the statistics (a,b) are (1,1) and (2,0); these are also the extremals.  We thus have the inequality &amp;lt;math&amp;gt;a+b \leq 2&amp;lt;/math&amp;gt;, or in normalized notation&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;2\alpha_0 + \alpha_1 \leq 2&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== n=2 ==&lt;br /&gt;
&lt;br /&gt;
We have &amp;lt;math&amp;gt;c&#039;_2 = 6&amp;lt;/math&amp;gt;; the upper bound follows since &amp;lt;math&amp;gt;c&#039;_2 \leq 3 c&#039;_1&amp;lt;/math&amp;gt;, and the lower bound follows by deleting one of the two diagonals from &amp;lt;math&amp;gt;[3]^2&amp;lt;/math&amp;gt; (these are the only extremisers).&lt;br /&gt;
&lt;br /&gt;
The extremiser has statistics (a,b,c) = (2,4,0), which are of course Pareto-optimal.  If c=1 then we must have a, b at most 2 (look at the lines through 22).  This is attainable (e.g. {11, 12, 22, 23, 31}, and so (2,2,1) is another Pareto-optimal statistic.  If a=4, then b and c must be 0, so we get another Pareto-optimal statistic (4,0,0) (attainable by {11, 13, 31, 33} of course).  If a=3, then c=0 and b is at most 2, giving another Pareto-optimal statistic (3,2,0); but this is a convex combination of (4,0,0) and (2,4,0) and is thus not extremal.  Thus the complete set of extremal statistics are&lt;br /&gt;
&lt;br /&gt;
(4,0,0), (2,4,0), (2,2,1).&lt;br /&gt;
&lt;br /&gt;
The sharp linear inequalities obeyed by a,b,c (other than the trivial ones &amp;lt;math&amp;gt;a,b,c \geq 0&amp;lt;/math&amp;gt;) are then&lt;br /&gt;
&lt;br /&gt;
*&amp;lt;math&amp;gt;2a+b+2c \leq 8&amp;lt;/math&amp;gt;&lt;br /&gt;
*&amp;lt;math&amp;gt;b+2c \leq 4&amp;lt;/math&amp;gt;&lt;br /&gt;
*&amp;lt;math&amp;gt;a+2c \leq 4&amp;lt;/math&amp;gt;&lt;br /&gt;
*&amp;lt;math&amp;gt;c \leq 1&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
In normalized notation, we have&lt;br /&gt;
*&amp;lt;math&amp;gt;4\alpha_0 + 2\alpha_1 + \alpha_2 \leq 4&amp;lt;/math&amp;gt;&lt;br /&gt;
*&amp;lt;math&amp;gt;2\alpha_1 + \alpha_2 \leq 2&amp;lt;/math&amp;gt;&lt;br /&gt;
*&amp;lt;math&amp;gt;2\alpha_0 + \alpha_2 \leq 2&amp;lt;/math&amp;gt;&lt;br /&gt;
*&amp;lt;math&amp;gt;\alpha_2 \leq 1&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
The Pareto optimizers for c-statistics are (c22,c2x,cx2,cxx) = (1112),(0222),(0004), which are covered by the linear inequalities &lt;br /&gt;
*&amp;lt;math&amp;gt;c22+c2x+cxx \le 4&amp;lt;/math&amp;gt;, &lt;br /&gt;
*&amp;lt;math&amp;gt;c22+cx2+cxx \le 4&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== n=3 ==&lt;br /&gt;
&lt;br /&gt;
We have &amp;lt;math&amp;gt;c&#039;_3 = 16&amp;lt;/math&amp;gt;.  The lower bound can be seen for instance by taking all the strings with one 2, and half the strings with no 2 (e.g. the strings with an odd number of 1s).  The upper bound can be deduced from the corresponding [[upper and lower bounds]] for &amp;lt;math&amp;gt;c_3 = 18&amp;lt;/math&amp;gt;; the 17-point and 18-point line-free sets each contain a geometric line.&lt;br /&gt;
&lt;br /&gt;
If a Moser set in &amp;lt;math&amp;gt;[3]^3&amp;lt;/math&amp;gt; contains 222, then it can have at most 14 points, since the remaining 26 points in the cube split into 13 antipodal pairs, and at most one of each pair can lie in the set.  By exhausting over the &amp;lt;math&amp;gt;2^{13} = 8192&amp;lt;/math&amp;gt; possibilities, it can be shown that it is impossible for a 14-point set to exist; any Moser set containing 222 must in fact omit at least one antipodal pair completely and thus have only 13 points.  (A human proof of this fact can be [http://www.ma.rhul.ac.uk/~elsholtz/WWW/blog/mosertablogv01.pdf found here].)&lt;br /&gt;
&lt;br /&gt;
The Pareto-optimal statistics are&lt;br /&gt;
&lt;br /&gt;
(3,6,3,1),(4,4,3,1),(4,6,2,1),(2,6,6,0),(3,6,5,0),(4,4,5,0),(3,7,4,0),(4,6,4,0), (3,9,3,0),(4,7,3,0),(5,4,3,0),(4,9,2,0),(5,6,2,0),(6,3,2,0),(3,10,1,0),(5,7,1,0), (6,4,1,0),(4,12,0,0),(5,9,0,0),(6,6,0,0),(7,3,0,0),(8,0,0,0).&lt;br /&gt;
&lt;br /&gt;
These were found from a search of the &amp;lt;math&amp;gt;2^{27}&amp;lt;/math&amp;gt; subsets of the cube.&lt;br /&gt;
A spreadsheet containing these statistics can be [http://spreadsheets.google.com/ccc?key=p5T0SktZY9DuKZ2DyzO9EOg&amp;amp;hl=en# found here].&lt;br /&gt;
&lt;br /&gt;
The extremal statistics are&lt;br /&gt;
&lt;br /&gt;
(3,6,3,1),(4,4,3,1),(4,6,2,1),(2,6,6,0),(4,4,5,0),(4,6,4,0),(4,12,0,0),(8,0,0,0)&lt;br /&gt;
&lt;br /&gt;
The sharp linear bounds are :&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;math&amp;gt;2a+b+2c+4d \leq 22&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;3a+2b+3c+6d \leq 36&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;7a+2b+4c+8d \leq 56&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;6a+2b+3c+6d \leq 48&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;b+c+3d \leq 12&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;a+2c+4d \leq 14&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;5a+4c+8d \leq 40&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;a+4d \leq 8&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;b+6d \leq 12&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;c+3d \leq 6&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;d \leq 1&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In normalized notation,&lt;br /&gt;
* &amp;lt;math&amp;gt;8\alpha_0+ 6\alpha_1 + 6\alpha_2 + 2\alpha_3 \leq 11&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;4\alpha_0+4\alpha_1+3\alpha_2+\alpha_3 \leq 6&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;7\alpha_0+3\alpha_1+3\alpha_2+\alpha_3 \leq 7&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;8\alpha_0+3\alpha_1+3\alpha_2+\alpha_3 \leq 8&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;4\alpha_1+2\alpha_2+\alpha_3 \leq 4&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;4\alpha_0+6\alpha_2+2\alpha_3 \leq 7&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;5\alpha_0+3\alpha_2+\alpha_3 \leq 5&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;2\alpha_0+\alpha_3 \leq 2&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;2\alpha_1+\alpha_3 \leq 2&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;2\alpha_2+\alpha_3 \leq 2&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;\alpha_3 \leq 1&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The c-statistics can also be found from an exhaustive search of Moser sets.  The resulting Pareto sets and linear inequalities can be found on Sheet 8 of [http://spreadsheets.google.com/ccc?key=p5T0SktZY9DuKZ2DyzO9EOg&amp;amp;hl=en# this spreadsheet]&lt;br /&gt;
&lt;br /&gt;
== n=4 ==&lt;br /&gt;
&lt;br /&gt;
A [http://abel.math.umu.se/~klasm/extremal-moser-n=5-t=3 computer search] has obtained all extremisers to &amp;lt;math&amp;gt;c&#039;_4=43&amp;lt;/math&amp;gt;.  The 42-point solutions can be found [http://abel.math.umu.se/~klasm/moser-n=4-t=3-p=42.gz here].&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof that &amp;lt;math&amp;gt;c&#039;_4 \leq 43&amp;lt;/math&amp;gt;&#039;&#039;&#039;: &lt;br /&gt;
When e=1 (i.e. the 4D set contains 2222) then we have at most 41 points (in fact at most 39) by counting antipodal points, so assume e=0.&lt;br /&gt;
&lt;br /&gt;
Define the score of a 3D slice to be a/4+b/3+c/2+d.  Observe from double counting that the size of a 4D set is the sum of the scores of its eight side slices.&lt;br /&gt;
&lt;br /&gt;
But by [http://spreadsheets.google.com/ccc?key=p5T0SktZY9DuKZ2DyzO9EOg&amp;amp;hl=en looking at the extremals] we see that the largest score is 44/8, attained at only one point, namely when (a,b,c,d) = (2,6,6,0).  So the only way one can have a 44-point set is if all side slices are (2,6,6,0), or equivalently if the whole set has statistics (a,b,c,d,e) = (4,16,24,0,0).  But then we have all the points with two 2s, which means that the four &amp;quot;a&amp;quot; points cannot be separated by Hamming distance 2.  We conclude that we must have an antipodal pair among the &amp;quot;a&amp;quot; points with an odd number of 1s, and an antipodal pair among the &amp;quot;a&amp;quot; points with an even number of 1s.    By the symmetries of the cube, we may take the a-set to then be 1111, 3333, 1113, 3331.  But then the &amp;quot;b&amp;quot; set must exclude both 1112 and 3332, and so can have at most three points in the eight-point set xyz2 (with x,y,z=1,3) rather than four (to get four points one must alternate in a checkerboard pattern).  Adding this to the at most four points of the form xy2z, x2yz, 2xyz we see that b is at most 15, a contradiction. &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Given a subset of &amp;lt;math&amp;gt;[3]^4&amp;lt;/math&amp;gt;, let a be the number of points with no 2s, b be the number of points with 1 2, and so forth.  The quintuple (a,b,c,d,e) thus lies between (0,0,0,0,0) and (16,32,24,8,1).&lt;br /&gt;
&lt;br /&gt;
The 43-point solutions have distributions (a,b,c,d,e) as follows:&lt;br /&gt;
&lt;br /&gt;
* (5,20,18,0,0) [16 solutions]&lt;br /&gt;
* (4,16,23,0,0) [768 solutions]&lt;br /&gt;
* (3,16,24,0,0) [512 solutions]&lt;br /&gt;
* (4,15,24,0,0) [256 solutions]&lt;br /&gt;
&lt;br /&gt;
The 42-point solutions are [http://abel.math.umu.se/~klasm/Moser-42-stat.pdf distributed as follows]:&lt;br /&gt;
&lt;br /&gt;
* (6,24,12,0,0) [[http://abel.math.umu.se/~klasm/moser-n=4-42-12 8 solutions]] &lt;br /&gt;
* (5,20,17,0,0) [576 solutions]&lt;br /&gt;
* (5,19,18,0,0) [384 solutions]&lt;br /&gt;
* (6,16,18,2,0) [[http://abel.math.umu.se/~klasm/moser-n=4-42-e=2 192 solutions]]&lt;br /&gt;
* (4,20,18,0,0) [272 solutions]&lt;br /&gt;
* (5,17,20,0,0) [192 solutions]&lt;br /&gt;
* (5,16,21,0,0) [3584 solutions]&lt;br /&gt;
* (4,17,21,0,0) [768 solutions]&lt;br /&gt;
* (4,16,22,0,0) [26880 solutions]&lt;br /&gt;
* (5,15,22,0,0) [1536 solutions]&lt;br /&gt;
* (4,15,23,0,0) [22272 solutions]&lt;br /&gt;
* (3,16,23,0,0) [15744 solutions]&lt;br /&gt;
* (4,14,24,0,0) [4224 solutions]&lt;br /&gt;
* (3,15,24,0,0) [8704 solutions]&lt;br /&gt;
* (2,16,24,0,0) [896 solutions]&lt;br /&gt;
&lt;br /&gt;
Note how c is usually quite large, and d quite low.&lt;br /&gt;
&lt;br /&gt;
One of the (6,24,12,0,0) solutions is &amp;lt;math&amp;gt;\Gamma_{220}+\Gamma_{202}+\Gamma_{022}+\Gamma_{112}+\Gamma_{211}&amp;lt;/math&amp;gt; (i.e. the set of points containing exactly two 1s, and/or exactly two 3s).  The other seven are reflections of this set.&lt;br /&gt;
&lt;br /&gt;
There are 2,765,200 41-point solutions, [http://abel.math.umu.se/~klasm/solutions-4-t=3-41-moser.gz listed here].  The statistics for such points can be [http://abel.math.umu.se/~klasm/Moser-41-stat.pdf found here].  Noteworthy features of the statistics:&lt;br /&gt;
&lt;br /&gt;
* d is at most 3 (and, except for [http://abel.math.umu.se/~klasm/moser-n=3-t=3-41-d=3.gz 256 exceptional solutions] of the shape (5,15,18,3,0), have d at most 2; here are the [http://abel.math.umu.se/~klasm/moser-n=3-t=3-41-d=2.gz d=2 solutions] and [http://abel.math.umu.se/~klasm/moser-n=3-t=3-41-d=1.gz d=1 solutions])&lt;br /&gt;
* c is at least 6 (and, except for [http://abel.math.umu.se/~klasm/moser-n=3-t=3-41-c=6.gz 16 exceptional solutions] of the shape (7,28,6,0,0), have c at least 11).&lt;br /&gt;
&lt;br /&gt;
Statistics for the 41-point, 42-point, and 43-point solutions can be found [http://spreadsheets.google.com/ccc?key=p5T0SktZY9DuqNcxJ171Bbw&amp;amp;hl=en here].&lt;br /&gt;
&lt;br /&gt;
If a Moser set in &amp;lt;math&amp;gt;[3]^4&amp;lt;/math&amp;gt; contains 2222, then by the n=3 theory, any middle slice (i.e. 2***, *2**, **2*, or ***2) is missing at least one antipodal pair.  But each antipodal pair belongs to at most three middle slices, thus two of the 40 antipodal pairs must be completely missing.  As a consequence, any Moser set containing 2222 can have at most 39 points.&lt;br /&gt;
(A more refined analysis can be found at [http://www.ma.rhul.ac.uk/~elsholtz/WWW/blog/mosertablogv01.pdf found here].)&lt;br /&gt;
&lt;br /&gt;
We have the following inequalities connecting a,b,c,d,e:&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;math&amp;gt;4a+b \leq 64&amp;lt;/math&amp;gt;:  There are 32 lines connecting two &amp;quot;a&amp;quot; points with a &amp;quot;b&amp;quot; point; each &amp;quot;a&amp;quot; point belongs to four of these lines, and each &amp;quot;b&amp;quot; point belongs to one.  But each such line can have at most two points in the set, and the claim follows.&lt;br /&gt;
* This can be refined to &amp;lt;math&amp;gt;4a+b+\frac{2}{3} c \leq 64&amp;lt;/math&amp;gt;: There are 24 planes connecting four &amp;quot;a&amp;quot; points, four &amp;quot;b&amp;quot; points, and one &amp;quot;c&amp;quot; point; each &amp;quot;a&amp;quot; point belongs to six of these, each &amp;quot;b&amp;quot; point belongs to three, and each &amp;quot;c&amp;quot; point belongs to one.  For each of these planes, we have &amp;lt;math&amp;gt;2a + b + 2c \leq 8&amp;lt;/math&amp;gt; from the n=2 theory, and the claim follows.&lt;br /&gt;
* &amp;lt;math&amp;gt;6a+2c \leq 96&amp;lt;/math&amp;gt;:  There are 96 lines connecting two &amp;quot;a&amp;quot; points with a &amp;quot;c&amp;quot; point; each &amp;quot;a&amp;quot; point belongs to six of these lines, and each &amp;quot;c&amp;quot; point belongs to two.  But each such line can have at most two points in the set, and the claim follows.&lt;br /&gt;
* &amp;lt;math&amp;gt;3b+2c \leq 96&amp;lt;/math&amp;gt;:  There are 48 lines connecting two &amp;quot;b&amp;quot; points to a &amp;quot;c&amp;quot; point; each &amp;quot;b&amp;quot; point belongs to three of these points, and each &amp;quot;c&amp;quot; point belongs to two.  But each such line can have at most two points in the set, and the claim follows.&lt;br /&gt;
&lt;br /&gt;
The inequalities for n=3 imply inequalities for n=4.  Indeed, there are eight side slices of &amp;lt;math&amp;gt;[3]^4&amp;lt;/math&amp;gt;; each &amp;quot;a&amp;quot; point belongs to four of these, each &amp;quot;b&amp;quot; point belongs to three, each &amp;quot;c&amp;quot; point belongs to two, and each &amp;quot;d&amp;quot; point belongs to one.  Thus, any inequality of the form&lt;br /&gt;
:&amp;lt;math&amp;gt; \alpha a + \beta b + \gamma c + \delta d \leq M&amp;lt;/math&amp;gt;&lt;br /&gt;
in three dimensions implies the inequality&lt;br /&gt;
:&amp;lt;math&amp;gt; 4 \alpha a + 3 \beta b + 2 \gamma c + \delta d \leq 8M&amp;lt;/math&amp;gt;&lt;br /&gt;
in four dimensions.  Thus we have&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;math&amp;gt;8a+3b+4c+4d \leq 176&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;2a+b+c+d \leq 48&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;14a+3b+4c+4d \leq 244&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;4a+b+c+d \leq 64&amp;lt;/math&amp;gt; &lt;br /&gt;
* &amp;lt;math&amp;gt;3b+2c+3d \leq 96&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;a+c+d \leq 28&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;5a+2c+2d \leq 80&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;a+d \leq 16&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;b+2d \leq 32&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;2c+3d \leq 48&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Cubes also sit diagonally in the 4-dimensional cube.  They may have coordinates xxyz, where xx runs over (11,22,33) or (13,22,31), while y and z run over (1,2,3).  These cubes have a different distribution of 2s than the ordinary slices: (a,b,c,d,e) = (8,8,6,4,1) instead of (8,12,6,1,0) for the side slices and (0,8,12,6,1) for the middle slices.  So a different set of inequalities arise.  It is possible to run through the same procedure as described above for n=3, and the inequalities that arise are &amp;lt;math&amp;gt;2a+b+2c+2d+4e \le 24&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;4a+b+2c+2d+4e \le 32&amp;lt;/math&amp;gt; within the 3D cube, which when averaged becomes &amp;lt;math&amp;gt;4a+b+2c+4d+16e \le 96&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;8a+b+2c+4d+16e \le 128&amp;lt;/math&amp;gt; for the 4D cube.  A spreadsheet containing these statistics can be [http://spreadsheets.google.com/ccc?key=p5T0SktZY9DuKZ2DyzO9EOg&amp;amp;hl=en# found here] on sheet 2.  Other sheets of this spreadsheet contain results for a 3D cube sitting diagonally in a 5D, 6D or 7D cube.  Notice the similarity of the equations that arise for the xxxyz, xxyyz and xxxxyz diagonals.  Also notice the xxxxyyz diagonals have the same Pareto sets and linear inequalities as the cube&#039;s c-statistics&lt;br /&gt;
&lt;br /&gt;
== n=5 ==&lt;br /&gt;
&lt;br /&gt;
Let (A,B,C,D,E,F) be the statistics of a five-dimensional Moser set, thus (A,B,C,D,E,F) varies between (0,0,0,0,0,0) and (32,80,80,40,10,1).&lt;br /&gt;
&lt;br /&gt;
There are several Moser sets with the statistics (4,40,80,0,0,0), which thus have 124 points.  Indeed, one can take&lt;br /&gt;
&lt;br /&gt;
* all points with two 2s;&lt;br /&gt;
* all points with one 2 and an even number of 1s; and&lt;br /&gt;
* (13111),(13113),(31311),(13333). Any two of these four points differ in three places, except for one pair of points that differ in one place.&lt;br /&gt;
&lt;br /&gt;
For the rest of this section, we assume that the Moser set &amp;lt;math&amp;gt;{\mathcal A}&amp;lt;/math&amp;gt; is a 125-point set.&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 1&#039;&#039;&#039;: F=0.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; If F is non-zero, then the Moser set contains 22222, then each of the 121 antipodal pairs can have at most one point in the set, leading to only 122 points. &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 2&#039;&#039;&#039;: Every middle slice of &amp;lt;math&amp;gt;{\mathcal A}&amp;lt;/math&amp;gt; has at most 41 points.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039;  Without loss of generality we may consider the 2**** slice.  There are two cases, depending on the value of c(2****).&lt;br /&gt;
&lt;br /&gt;
Suppose first that c is at least 17; thus there are at least 17 points of the form 222xy, 22x2y, 22xy2, 2x2y2, 2xy22, or 2x22y, where the x, y denote 1 or 3.  This gives 34 &amp;quot;xy&amp;quot; wildcards in all in four coordinate slots; by the pigeonhole principle one of the slots sees at least 9 of the wildcards.  By symmetry, we may assume that the second coordinate slot sees at least 9 of these wildcards, thus there are at least 9 points of the form 2x22y, 2x2y2, 2xy22.  The x=1, x=3 cases can absorb at most six of these, thus each of these cases must absorb at least three points, with at least one absorbing at least five.  Let&#039;s say that it&#039;s the x=3 case that absorbs 5; thus &amp;lt;math&amp;gt;d(*1***) \geq 3&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;d(*3***) \geq 5&amp;lt;/math&amp;gt;.  From the n=4 theory this means that the *1*** slice has at most 41 points, and the *3*** slice has at most 40.  Meanwhile, the middle slice has at most 43, leading to 41+41+42=124 points in all.&lt;br /&gt;
&lt;br /&gt;
Now suppose c is less than 16; then by the n=4 theory the middle slice is one of the eight (6,24,12,0,0) sets.  Without loss of generality we may take it to be &amp;lt;math&amp;gt;\Gamma_{220}+\Gamma_{202}+\Gamma_{022}+\Gamma_{112}+\Gamma_{211}&amp;lt;/math&amp;gt;; in particular, the middle slice contains the points 21122 21212 21221 23322 23232 23223.  In particular, the *1*** and *3*** slices have a &amp;quot;d&amp;quot; value of at least three, and so have at most 41 points.  If the *2*** slice has at most 42 points, then we are at 41+42+41=124 points as needed, but if we have 43 or more, then we are back in the first case (as &amp;lt;math&amp;gt;c(*2***) \geq 17&amp;lt;/math&amp;gt;) after permuting the indices.&lt;br /&gt;
&amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Since 125=41+41+43, we thus have&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Corollary 1&#039;&#039;&#039;: Every side slice of &amp;lt;math&amp;gt;{\mathcal A}&amp;lt;/math&amp;gt; has at least 41 points.  If one side slice does have 41 points, then the other has 43.&lt;br /&gt;
&lt;br /&gt;
Combining this with the n=4 statistics, we conclude&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Corollary 2&#039;&#039;&#039;: Every side slice of &amp;lt;math&amp;gt;{\mathcal A}&amp;lt;/math&amp;gt; has e=0, and &amp;lt;math&amp;gt;d \leq 3&amp;lt;/math&amp;gt;.  Given two opposite side slices, e.g. 1**** and 3****, we have &amp;lt;math&amp;gt;d(1****)+d(3****) \leq 4&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Corollary 3&#039;&#039;&#039;: E=0.&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Corollary 4&#039;&#039;&#039;: Any middle slice has a &amp;quot;c&amp;quot; value of at most 8.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; Let&#039;s work with the 2**** slice.  By Corollary 2, there are at most four contributions to c(2****) of the form 21*** or 23***, and similarly for the other three positions.  Double counting then gives the claim. &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 3&#039;&#039;&#039;: &amp;lt;math&amp;gt;2B+C \leq 160&amp;lt;/math&amp;gt;.   &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039;: There are 160 lines connecting one &amp;quot;C&amp;quot; point to two &amp;quot;B&amp;quot; points (e.g. 11112, 11122, 11132); each &amp;quot;C&amp;quot; point lies in two of these, and each &amp;quot;B&amp;quot; point lies on four.  A Moser set can have at most two points out of each of these lines.  Double counting then gives the claim.  &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 4&#039;&#039;&#039; Given m A-points with &amp;lt;math&amp;gt;m \geq 5&amp;lt;/math&amp;gt;, there exists at least m-4 pairs (a,b) of such A-points with Hamming distance exactly two (i.e. b differs from a in exactly two places).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; It suffices to check this for m=5, since the case of larger m then follows by locating a pair, removing a point that contributes to that pair, and using the induction hypothesis.  Given 5 A-points, we may assume by the pigeonhole principle and symmetry that at least three of them have an odd number of 1s.  Suppose 11111 is one of the points, and that no pair has Hamming distance 2. All points with two 3s are excluded, so the only points allowed with an odd number of 1s are those with four 3s. But all those points differ from each other in two positions, so at most one of them is allowed.  &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Corollary 5&#039;&#039;&#039; &amp;lt;math&amp;gt;C \leq 79&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039;: Suppose for contradiction that C=80, then D=0 and &amp;lt;math&amp;gt;B \leq 40&amp;lt;/math&amp;gt;.  From Lemma 4 we also see that A cannot exceed 5, leading to the contradiction.&lt;br /&gt;
&amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Define the &#039;&#039;&#039;score&#039;&#039;&#039; of a Moser set in &amp;lt;math&amp;gt;[3]^4&amp;lt;/math&amp;gt; to be the quantity &amp;lt;math&amp;gt;a + 5b/4 + 5c/3 + 5d/2 + 5e&amp;lt;/math&amp;gt;.  Double-counting (and Lemma 2) gives&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 5&#039;&#039;&#039;  The total score of all the ten side-slices of &amp;lt;math&amp;gt;{\mathcal A}&amp;lt;/math&amp;gt; is equal to &amp;lt;math&amp;gt;5|{\mathcal A}| = 5 \times 125&amp;lt;/math&amp;gt;.  In particular, there exists a pair of opposite side-slices whose scores add up to at least 125.&lt;br /&gt;
&lt;br /&gt;
By Lemma 5 and symmetry, we may assume that the 1**** and 3**** slices have score adding up to at least 125.  By Lemma 2, the 2**** slice has at most 41 points, which imply that the 1**** and 3**** have 41, 42, or 43 points.  From the [http://spreadsheets.google.com/ccc?key=p5T0SktZY9DuqNcxJ171Bbw&amp;amp;hl=en n=4 statistics] we know that all 41-point, 42-point, 43-point slices have score less than 62, with the following exceptions:&lt;br /&gt;
&lt;br /&gt;
# (2,16,24,0,0) [42 points, score: 62]&lt;br /&gt;
# (4,16,23,0,0) [43 points, score: 62 1/3]&lt;br /&gt;
# (4,15,24,0,0) [43 points, score: 62 3/4]&lt;br /&gt;
# (3,16,24,0,0) [43 points, score: 63]&lt;br /&gt;
&lt;br /&gt;
Thus the 1**** and 3**** slices must from the above list.  Furthermore, if one of the slices is of type 1, then the other must be of type 4, and if one slice is of type 2, then the other must be of type 3 or 4.&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 6&#039;&#039;&#039; There exists one cut in which the side slices have total score strictly greater than 125 (i.e. they thus involve only Type 2, Type 3, and Type 4 slices, with at least one side slice not equal to Type 2, and the cut here is of the form 43+39+43).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; If not, then all cuts have side slices exactly equal to 125, which by the above table implies that one is Type 1 and one is Type 4, in particular all side slices have c=24.  But this forces C=80, contradicting Corollary 5. &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Adding up the corners we conclude&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Corollary 6&#039;&#039;&#039; &amp;lt;math&amp;gt;6 \leq A \leq 8&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 7&#039;&#039;&#039; &amp;lt;math&amp;gt;D=0&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; Firstly, from Lemma 6 we have a cut in which the two side slices are omitting at most one C-point between them (and have no D-point), which forces the middle slice to have at most one D-point; thus D is at most 1.&lt;br /&gt;
&lt;br /&gt;
Now suppose instead that D=1 (e.g. if 11222 was in the set); then there would be two choices of coordinates in which one of the side slices would have d=1 (e.g. 1**** and *1****). But the [http://spreadsheets.google.com/ccc?key=p5T0SktZY9DuqNcxJ171Bbw&amp;amp;hl=en n=4 statistics] show that such slices have a score of at most 59 7/12, so that the total score from those two coordinates is at most 63 + 59 7/12 = 122 7/12. On the other hand, the other three slices have a net score of at most 63+63 = 126. This averages out to at most 124.633... &amp;lt; 125, a contradiction.  &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Corollary 7&#039;&#039;&#039; Every middle slice has at most 40 points.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; From Lemma 7 we see that the middle slice must have c=0, but from the n=4 statistics this is not possible for any slice of size 41 or higher (alternatively, one can use the inequalities &amp;lt;math&amp;gt;4a+b \leq 64&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;b \leq 32&amp;lt;/math&amp;gt;). &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Each middle slice now has 39 or 40 points, with c=d=e=0, and so from the inequalities &amp;lt;math&amp;gt;4a+b \leq 64&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;b \leq 32&amp;lt;/math&amp;gt; must have statistics (8,32,0,0,0),(7,32,0,0,0), or (8,31,0,0,0).  In particular the &amp;quot;a&amp;quot; index of the middle slices is at most 8.  Summing over all middle slices we conclude&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 9&#039;&#039;&#039; B is at most 40.&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 10&#039;&#039;&#039; C is equal to 78 or 79.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; By Corollary 5, it suffices to show that &amp;lt;math&amp;gt;C \geq 78&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
As 125=43+39+43, we see that every center slice must have at least 39 points. By Lemma 2 and Lemma 7 the center slice has c=d=e=0, thus the center slice has a+b &amp;gt;= 39.  On the other hand, from the n=4 theory we have 4a+b &amp;lt;= 64, which forces b &amp;gt;= 31.&lt;br /&gt;
&lt;br /&gt;
By double counting, we see that 2C is equal to the sum of the b&#039;s of all the five center slices.  Thus C &amp;gt;= 5*31/2 = 77.5 and the claim follows.  &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
From Lemmas 9 and 10 we see that &amp;lt;math&amp;gt;B+C \leq 119&amp;lt;/math&amp;gt;, and thus &amp;lt;math&amp;gt;A \geq 6&amp;lt;/math&amp;gt;.  Also, if &amp;lt;math&amp;gt;A \geq 7&amp;lt;/math&amp;gt;, then by Lemma 4 we have at least three pairs of A points with Hamming distance 2.  At most two of these pairs eliminate the same C point, so we would have C=78 in that case.  &lt;br /&gt;
&lt;br /&gt;
Putting all the above facts together, we see that (A,B,C,D,E,F) must be one of the following triples:&lt;br /&gt;
&lt;br /&gt;
* (6,40,79,0,0,0)&lt;br /&gt;
* (7,40,78,0,0,0)&lt;br /&gt;
* (8,39,78,0,0,0)&lt;br /&gt;
&lt;br /&gt;
All three cases can be eliminated, giving &amp;lt;math&amp;gt;c&#039;_5=124&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== Elimination of (6,40,79,0,0,0) ===&lt;br /&gt;
&lt;br /&gt;
Look at the 6 A points.  From Lemma 4 we have at least two pairs (a,b), (c,d) of A-points that have Hamming separation 2.&lt;br /&gt;
&lt;br /&gt;
Now look at the midpoints of these two pairs; these midpoints are C-points cannot lie in the set.  But we have exactly one C-point missing from the set, thus the midpoints must be the same.  By symmetry, we may thus assume that the two pairs are (11111,11133) and (11113,11131).  Thus 11111,11133, 11113, 11131 are in the set, and so every C-point other than 11122 is in the set.  On the other hand, the B-points 11121, 11123, 11112, 11132 lie outside the set.&lt;br /&gt;
&lt;br /&gt;
At most one of 11312, 11332 lie in the set (since 11322 lies in the set).   Suppose that 11312 lies outside the set, then we have a pair (xy1z2, xy3z2) with x,y,z = 1,3 that is totally omitted from the set, namely (11112,11312).  On the other hand, every other pair of this form can have at most point in the set, thus there are at most seven points in the set of the form (xyzw2) with x,y,z,w = 1,3.  Similarly there are at most 8 points of the form xyz2w, or of xy2zw, x2yzw, 2xyzw, leading to at most 39 B-points in all, contradiction.&lt;br /&gt;
&lt;br /&gt;
=== Elimination of (7,40,78,0,0,0) ===&lt;br /&gt;
&lt;br /&gt;
By Lemma 4, we have at least three pairs of A-points of distance two apart that lie in the set.&lt;br /&gt;
The midpoints of these pairs are C-points that do not lie in the set; but there are only two such C-points, thus two pairs must have the same midpoint, so we may assume as before that 111xy lies in the set for x,y=1,3, which implies that 1112* and 111*2 lie outside the set.&lt;br /&gt;
&lt;br /&gt;
Now consider the 160 lines between 2 B points and one C point (cf. Lemma 3).  The sum of all the points in each such line (counting multiplicity) is 4B+2C = 316.  On the other hand, every one of the 160 lines can have at most two points, and four of these lines (namely 1112*, 111*2) have no points.  Thus all the other lines must have exactly two points.  &lt;br /&gt;
&lt;br /&gt;
We know that the C-point 11122 is missing from the set; there is one other missing C-point.  Since 1112x, 111x2 lie outside the set, we conclude from the previous paragraph that 1132x, 113x2 and 1312x, 131x2 lie in the set.  Taking midpoints we conclude that 11322 and 13122 lie outside the set.  But this is now three C-points missing (together with 11122), a contradiction.&lt;br /&gt;
&lt;br /&gt;
=== Elimination of (8,39,78,0,0,0) ===&lt;br /&gt;
&lt;br /&gt;
By Lemma 4 we have at least four pairs of A-points of distance two apart that lie in the set. The midpoints of these pairs are C-points that do not lie in the set; but there are only two such C-points, thus two pairs (a,b), (c,d) must have the same midpoint p, and the other two pairs (a&#039;,b&#039;), (c&#039;,d&#039;) must also have the same midpoint p&#039;.  (Note that every C-point is the midpoint of at most two such pairs.)&lt;br /&gt;
&lt;br /&gt;
Now consider the 160 lines between 2 B points and one C point (cf. Lemma 3).  The sum of all the points in each such line (counting multiplicity) is 4B+2C = 312.  Every one of the 160 lines can have at most two points, and four of these (those in the plane of (a,b,c,d) or of (a&#039;,b&#039;,c&#039;,d&#039;) have no points.  Thus all other lines must have exactly two points.&lt;br /&gt;
&lt;br /&gt;
Without loss of generality we have (a,b)=(11111,11133), (c,d) = (11113,11131), thus p = 11122.  By permuting the first three indices, we may assume that p&#039; is not of the form x2y2z, x2yz2, xy22z, xy2z2.  Then 1112x lies outside the set and 1122x lies in the set, so by the above paragraph 1132x lies in the set; similarly for 113x2, 1312x, 131x2.  This implies that 13122, 11322 lie outside the set, but this (together with 11122) shows that at least three C-points are missing, a contradiction.&lt;br /&gt;
&lt;br /&gt;
== General n ==&lt;br /&gt;
&lt;br /&gt;
General solution for &amp;lt;math&amp;gt;c&#039;_N&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* q 2s, all points from A(N-q,1)&lt;br /&gt;
* q-1 2s, points from A(N-q+1,2)&lt;br /&gt;
* q-2 2s, points from A(N-q+2,3)&lt;br /&gt;
* etc.&lt;br /&gt;
&lt;br /&gt;
where A(m,d) is a subset of &amp;lt;math&amp;gt;[1,3]^m&amp;lt;/math&amp;gt; for which any two points differ from each other in at least d places.&lt;br /&gt;
&lt;br /&gt;
Mathworld’s entry on error-correcting codes suggests it might be NP-complete to find the size of A(m,d) in general.&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;math&amp;gt;|A(m,1)| = 2^m&amp;lt;/math&amp;gt; because it includes all points in &amp;lt;math&amp;gt;[1,3]^m&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;|A(m,2)| = 2^{m-1}&amp;lt;/math&amp;gt; because it can include all points in &amp;lt;math&amp;gt;[1,3]^m&amp;lt;/math&amp;gt; with an odd number of 1s&lt;br /&gt;
&lt;br /&gt;
The integer programming routine from Maple 12 was used to obtain upper bounds for &amp;lt;math&amp;gt;c&#039;_6&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;c&#039;_7&amp;lt;/math&amp;gt;.  A large number of linear inequalities, described above in sections (n=3) and (n=4), were combined.  The details are in [[Maple calculations]].  The results were that &amp;lt;math&amp;gt;c&#039;_6 \le 361&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;c&#039;_7 \le 1071&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
A [[genetic algorithm]] has provided the following examples:&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;math&amp;gt;c&#039;_6 \geq 353&amp;lt;/math&amp;gt; (26 examples; [http://twofoldgaze.wordpress.com/2009/03/10/353-element-solution/ here is one])&lt;br /&gt;
* &amp;lt;math&amp;gt;c&#039;_7 \geq 988&amp;lt;/math&amp;gt; [http://twofoldgaze.wordpress.com/2009/03/10/978-element-solution/ Here is the example]&lt;br /&gt;
&lt;br /&gt;
== Larger sides (k&amp;gt;3) ==&lt;br /&gt;
&lt;br /&gt;
The following set gives a lower bound for Moser’s cube &amp;lt;math&amp;gt;[4]^n&amp;lt;/math&amp;gt; (values 1,2,3,4):  Pick all points where q entries are 2 or 3; and also pick those where q-1 entries are 2 or 3 and an odd number of entries are 1.  This is maximized when q is near n/2, giving a lower bound of&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\binom{n}{n/2} 2^n + \binom{n}{n/2-1} 2^{n-1}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
which is comparable to &amp;lt;math&amp;gt;4^n/\sqrt{n}&amp;lt;/math&amp;gt; by [[Stirling&#039;s formula]].&lt;br /&gt;
&lt;br /&gt;
For k=5 (values 1,2,3,4,5) If A, B, C, D, and E denote the numbers of 1-s, 2-s, 3-s, 4-s and 5-s then the first three points of a geometric line form a 3-term arithmetic progression in A+E+2(B+D)+3C. So, for k=5 we have a similar lower bound for the Moser’s problem as for DHJ k=3, i.e. &amp;lt;math&amp;gt;5^{n - O(\sqrt{\log n})}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
The k=6 version of Moser implies DHJ(3).  Indeed, any k=3 combinatorial line-free set can be &amp;quot;doubled up&amp;quot; into a k=6 geometric line-free set of the same density by pulling back the set from the map &amp;lt;math&amp;gt;\phi: [6]^n \to [3]^n&amp;lt;/math&amp;gt; that maps 1, 2, 3, 4, 5, 6 to 1, 2, 3, 3, 2, 1 respectively; note that this map sends k=6 geometric lines to k=3 combinatorial lines.&lt;/div&gt;</summary>
		<author><name>121.220.134.232</name></author>
	</entry>
	<entry>
		<id>https://michaelnielsen.org/polymath/index.php?title=Moser%27s_cube_problem&amp;diff=1029</id>
		<title>Moser&#039;s cube problem</title>
		<link rel="alternate" type="text/html" href="https://michaelnielsen.org/polymath/index.php?title=Moser%27s_cube_problem&amp;diff=1029"/>
		<updated>2009-03-21T11:53:39Z</updated>

		<summary type="html">&lt;p&gt;121.220.134.232: /* n=2 */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Define a &#039;&#039;Moser set&#039;&#039; to be a subset of &amp;lt;math&amp;gt;[3]^n&amp;lt;/math&amp;gt; which does not contain any [[geometric line]], and let &amp;lt;math&amp;gt;c&#039;_n&amp;lt;/math&amp;gt; denote the size of the largest Moser set in &amp;lt;math&amp;gt;[3]^n&amp;lt;/math&amp;gt;.  The first few values are (see [http://www.research.att.com/~njas/sequences/A003142 OEIS A003142]):&lt;br /&gt;
&lt;br /&gt;
: &amp;lt;math&amp;gt;c&#039;_0 = 1; c&#039;_1 = 2; c&#039;_2 = 6; c&#039;_3 = 16; c&#039;_4 = 43; c&#039;_5 = 124.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Beyond this point, we only have some upper and lower bounds, in particular &amp;lt;math&amp;gt;353 \leq c&#039;_6 \leq 361&amp;lt;/math&amp;gt;; see [http://spreadsheets.google.com/ccc?key=p5T0SktZY9DsU-uZ1tK7VEg this spreadsheet] for the latest bounds.&lt;br /&gt;
&lt;br /&gt;
The best known asymptotic lower bound for &amp;lt;math&amp;gt;c&#039;_n&amp;lt;/math&amp;gt; is&lt;br /&gt;
&lt;br /&gt;
: &amp;lt;math&amp;gt;c&#039;_n \gg 3^n/\sqrt{n}&amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
formed by fixing the number of 2s to a single value near n/3.  Compare this to the DHJ(2) or Sperner limit of &amp;lt;math&amp;gt;2^n/\sqrt{n}&amp;lt;/math&amp;gt;.  Is it possible to do any better?  Note that we have a [[Upper_and_lower_bounds#Asymptotics|significantly better bound]] for the DHJ(3) &amp;lt;math&amp;gt;c_n&amp;lt;/math&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
: &amp;lt;math&amp;gt;c_n \geq 3^{n-O(\sqrt{\log n})}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
A more precise lower bound is&lt;br /&gt;
&lt;br /&gt;
: &amp;lt;math&amp;gt;c&#039;_n \geq \binom{n+1}{q} 2^{n-q}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where q is the nearest integer to &amp;lt;math&amp;gt;n/3&amp;lt;/math&amp;gt;, formed by taking all strings with q 2s, together with all strings with q-1 2s and an odd number of 1s.  This for instance gives the lower bound &amp;lt;math&amp;gt;c&#039;_5 \geq 120&amp;lt;/math&amp;gt;, which compares with the upper bound &amp;lt;math&amp;gt;c&#039;_5 \leq 3 c&#039;_4 = 129&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Using [[DHJ(3)]], we have the upper bound&lt;br /&gt;
&lt;br /&gt;
: &amp;lt;math&amp;gt;c&#039;_n = o(3^n)&amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
but no effective decay rate is known. It would be good to have a combinatorial proof of this fact (which is weaker than [[DHJ(3)]], but implies [[Roth&#039;s theorem]]).&lt;br /&gt;
&lt;br /&gt;
== Notation ==&lt;br /&gt;
&lt;br /&gt;
Given a Moser set A in &amp;lt;math&amp;gt;[3]^n&amp;lt;/math&amp;gt;, we let a be the number of points in A with no 2s, b be the number of points in A with one 2, c the number of points with two 2s, etc.  We call (a,b,c,...) the &#039;&#039;statistics&#039;&#039; of A.  Given a slice S of &amp;lt;math&amp;gt;[3]^n&amp;lt;/math&amp;gt;, we let a(S), b(S), etc. denote the statistics of that slice (dropping the fixed coordinates).  Thus for instance if A = {11, 12, 22, 32}, then (a,b,c) = (1,2,1), and (a(1*),b(1*)) = (1,1).&lt;br /&gt;
&lt;br /&gt;
We call a statistic (a,b,c,...) &#039;&#039;attainable&#039;&#039; if it is attained by a Moser set.  We say that an attainable statistic is &#039;&#039;Pareto-optimal&#039;&#039; if it cannot be pointwise dominated by any other attainable statistic (a&#039;,b&#039;,c&#039;,...) (thus &amp;lt;math&amp;gt;a&#039; \geq a&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;b&#039; \geq b&amp;lt;/math&amp;gt;, etc.)  We say that it is &#039;&#039;extremal&#039;&#039; if it is not a convex combination of any other attainable statistic (this is a stronger property than Pareto-optimal).  For the purposes of maximising linear scores of attainable statistics, it suffices to check extremal statistics.&lt;br /&gt;
&lt;br /&gt;
We let &amp;lt;math&amp;gt;(\alpha_0,\alpha_1,\ldots)&amp;lt;/math&amp;gt; be the normalized version of &amp;lt;math&amp;gt;(a,b,\ldots)&amp;lt;/math&amp;gt;, in which one divides the number of points of a certain type in the set by the total number of points in the set.  Thus for instance &amp;lt;math&amp;gt;\alpha_0 = a/2^n, \alpha_1 = b/(n 2^{n-1}), \alpha_3 = c/(\binom{n}{2} 2^{n-2})&amp;lt;/math&amp;gt;, etc., and the &amp;lt;math&amp;gt;\alpha_i&amp;lt;/math&amp;gt; range between 0 and 1.  Averaging arguments show that any linear inequality obeyed by the &amp;lt;math&amp;gt;\alpha_i&amp;lt;/math&amp;gt; at one dimension is automatically inherited by higher dimensions, as are shifted versions of this inequality (in which &amp;lt;math&amp;gt;\alpha_i&amp;lt;/math&amp;gt; is replaced by &amp;lt;math&amp;gt;\alpha_{i+1}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
The idea in &#039;c-statistics&#039; is to identify 1s and 3s but leave the 2s intact. Let’s use x to denote letters that are either 1 or 3, then the 81 points get split up into 16 groups: 2222 (1 point), 222x, 22×2, 2×22, x222 (two points each), 22xx, 2×2x, x22x, 2xx2, x2×2, xx22 (four points each), 2xxx, x2xx, xx2x, xxx2 (eight points each), xxxx (sixteen points). Let c(w) denote the number of points inside a group w, e.g. c(xx22) is the number of points of the form xx22 inside the set, and is thus an integer from 0 to 4.&lt;br /&gt;
&lt;br /&gt;
== n=0 ==&lt;br /&gt;
&lt;br /&gt;
We trivially have &amp;lt;math&amp;gt;c&#039;_0=1.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== n=1 ==&lt;br /&gt;
&lt;br /&gt;
We trivially have &amp;lt;math&amp;gt;c&#039;_1=2.&amp;lt;/math&amp;gt;  The Pareto-optimal values of the statistics (a,b) are (1,1) and (2,0); these are also the extremals.  We thus have the inequality &amp;lt;math&amp;gt;a+b \leq 2&amp;lt;/math&amp;gt;, or in normalized notation&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;2\alpha_0 + \alpha_1 \leq 2&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== n=2 ==&lt;br /&gt;
&lt;br /&gt;
We have &amp;lt;math&amp;gt;c&#039;_2 = 6&amp;lt;/math&amp;gt;; the upper bound follows since &amp;lt;math&amp;gt;c&#039;_2 \leq 3 c&#039;_1&amp;lt;/math&amp;gt;, and the lower bound follows by deleting one of the two diagonals from &amp;lt;math&amp;gt;[3]^2&amp;lt;/math&amp;gt; (these are the only extremisers).&lt;br /&gt;
&lt;br /&gt;
The extremiser has statistics (a,b,c) = (2,4,0), which are of course Pareto-optimal.  If c=1 then we must have a, b at most 2 (look at the lines through 22).  This is attainable (e.g. {11, 12, 22, 23, 31}, and so (2,2,1) is another Pareto-optimal statistic.  If a=4, then b and c must be 0, so we get another Pareto-optimal statistic (4,0,0) (attainable by {11, 13, 31, 33} of course).  If a=3, then c=0 and b is at most 2, giving another Pareto-optimal statistic (3,2,0); but this is a convex combination of (4,0,0) and (2,4,0) and is thus not extremal.  Thus the complete set of extremal statistics are&lt;br /&gt;
&lt;br /&gt;
(4,0,0), (2,4,0), (2,2,1).&lt;br /&gt;
&lt;br /&gt;
The sharp linear inequalities obeyed by a,b,c (other than the trivial ones &amp;lt;math&amp;gt;a,b,c \geq 0&amp;lt;/math&amp;gt;) are then&lt;br /&gt;
&lt;br /&gt;
*&amp;lt;math&amp;gt;2a+b+2c \leq 8&amp;lt;/math&amp;gt;&lt;br /&gt;
*&amp;lt;math&amp;gt;b+2c \leq 4&amp;lt;/math&amp;gt;&lt;br /&gt;
*&amp;lt;math&amp;gt;a+2c \leq 4&amp;lt;/math&amp;gt;&lt;br /&gt;
*&amp;lt;math&amp;gt;c \leq 1&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
In normalized notation, we have&lt;br /&gt;
*&amp;lt;math&amp;gt;4\alpha_0 + 2\alpha_1 + \alpha_2 \leq 4&amp;lt;/math&amp;gt;&lt;br /&gt;
*&amp;lt;math&amp;gt;2\alpha_1 + \alpha_2 \leq 2&amp;lt;/math&amp;gt;&lt;br /&gt;
*&amp;lt;math&amp;gt;2\alpha_0 + \alpha_2 \leq 2&amp;lt;/math&amp;gt;&lt;br /&gt;
*&amp;lt;math&amp;gt;\alpha_2 \leq 1&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
The Pareto optimizers for c-statistics are (c22,c2x,cx2,cxx) = (1112),(0222),(0004), which are covered by the linear inequalities &lt;br /&gt;
*&amp;lt;math&amp;gt;c22+c2x+cxx \le 4&amp;lt;/math&amp;gt;, &lt;br /&gt;
*&amp;lt;math&amp;gt;c22+cx2+cxx \le 4&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== n=3 ==&lt;br /&gt;
&lt;br /&gt;
We have &amp;lt;math&amp;gt;c&#039;_3 = 16&amp;lt;/math&amp;gt;.  The lower bound can be seen for instance by taking all the strings with one 2, and half the strings with no 2 (e.g. the strings with an odd number of 1s).  The upper bound can be deduced from the corresponding [[upper and lower bounds]] for &amp;lt;math&amp;gt;c_3 = 18&amp;lt;/math&amp;gt;; the 17-point and 18-point line-free sets each contain a geometric line.&lt;br /&gt;
&lt;br /&gt;
If a Moser set in &amp;lt;math&amp;gt;[3]^3&amp;lt;/math&amp;gt; contains 222, then it can have at most 14 points, since the remaining 26 points in the cube split into 13 antipodal pairs, and at most one of each pair can lie in the set.  By exhausting over the &amp;lt;math&amp;gt;2^{13} = 8192&amp;lt;/math&amp;gt; possibilities, it can be shown that it is impossible for a 14-point set to exist; any Moser set containing 222 must in fact omit at least one antipodal pair completely and thus have only 13 points.  (A human proof of this fact can be [http://www.ma.rhul.ac.uk/~elsholtz/WWW/blog/mosertablogv01.pdf found here].)&lt;br /&gt;
&lt;br /&gt;
The Pareto-optimal statistics are&lt;br /&gt;
&lt;br /&gt;
(3,6,3,1),(4,4,3,1),(4,6,2,1),(2,6,6,0),(3,6,5,0),(4,4,5,0),(3,7,4,0),(4,6,4,0), (3,9,3,0),(4,7,3,0),(5,4,3,0),(4,9,2,0),(5,6,2,0),(6,3,2,0),(3,10,1,0),(5,7,1,0), (6,4,1,0),(4,12,0,0),(5,9,0,0),(6,6,0,0),(7,3,0,0),(8,0,0,0).&lt;br /&gt;
&lt;br /&gt;
These were found from a search of the &amp;lt;math&amp;gt;2^{27}&amp;lt;/math&amp;gt; subsets of the cube.&lt;br /&gt;
A spreadsheet containing these statistics can be [http://spreadsheets.google.com/ccc?key=p5T0SktZY9DuKZ2DyzO9EOg&amp;amp;hl=en# found here].&lt;br /&gt;
&lt;br /&gt;
The extremal statistics are&lt;br /&gt;
&lt;br /&gt;
(3,6,3,1),(4,4,3,1),(4,6,2,1),(2,6,6,0),(4,4,5,0),(4,6,4,0),(4,12,0,0),(8,0,0,0)&lt;br /&gt;
&lt;br /&gt;
The sharp linear bounds are :&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;math&amp;gt;2a+b+2c+4d \leq 22&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;3a+2b+3c+6d \leq 36&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;7a+2b+4c+8d \leq 56&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;6a+2b+3c+6d \leq 48&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;b+c+3d \leq 12&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;a+2c+4d \leq 14&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;5a+4c+8d \leq 40&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;a+4d \leq 8&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;b+6d \leq 12&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;c+3d \leq 6&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;d \leq 1&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In normalized notation,&lt;br /&gt;
* &amp;lt;math&amp;gt;8\alpha_0+ 6\alpha_1 + 6\alpha_2 + 2\alpha_3 \leq 11&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;4\alpha_0+4\alpha_1+3\alpha_2+\alpha_3 \leq 6&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;7\alpha_0+3\alpha_1+3\alpha_2+\alpha_3 \leq 7&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;8\alpha_0+3\alpha_1+3\alpha_2+\alpha_3 \leq 8&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;4\alpha_1+2\alpha_2+\alpha_3 \leq 4&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;4\alpha_0+6\alpha_2+2\alpha_3 \leq 7&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;5\alpha_0+3\alpha_2+\alpha_3 \leq 5&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;2\alpha_0+\alpha_3 \leq 2&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;2\alpha_1+\alpha_3 \leq 2&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;2\alpha_2+\alpha_3 \leq 2&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;\alpha_3 \leq 1&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The c-statistics can also be found from an exhaustive search of Moser sets.  The resulting Pareto sets and linear inequalities can be found on Sheet 8 of [http://spreadsheets.google.com/ccc?key=p5T0SktZY9DuKZ2DyzO9EOg&amp;amp;hl=en# this spreadsheet]&lt;br /&gt;
&lt;br /&gt;
== n=4 ==&lt;br /&gt;
&lt;br /&gt;
A [http://abel.math.umu.se/~klasm/extremal-moser-n=5-t=3 computer search] has obtained all extremisers to &amp;lt;math&amp;gt;c&#039;_4=43&amp;lt;/math&amp;gt;.  The 42-point solutions can be found [http://abel.math.umu.se/~klasm/moser-n=4-t=3-p=42.gz here].&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof that &amp;lt;math&amp;gt;c&#039;_4 \leq 43&amp;lt;/math&amp;gt;&#039;&#039;&#039;: &lt;br /&gt;
When e=1 (i.e. the 4D set contains 2222) then we have at most 41 points (in fact at most 39) by counting antipodal points, so assume e=0.&lt;br /&gt;
&lt;br /&gt;
Define the score of a 3D slice to be a/4+b/3+c/2+d.  Observe from double counting that the size of a 4D set is the sum of the scores of its eight side slices.&lt;br /&gt;
&lt;br /&gt;
But by [http://spreadsheets.google.com/ccc?key=p5T0SktZY9DuKZ2DyzO9EOg&amp;amp;hl=en looking at the extremals] we see that the largest score is 44/8, attained at only one point, namely when (a,b,c,d) = (2,6,6,0).  So the only way one can have a 44-point set is if all side slices are (2,6,6,0), or equivalently if the whole set has statistics (a,b,c,d,e) = (4,16,24,0,0).  But then we have all the points with two 2s, which means that the four &amp;quot;a&amp;quot; points cannot be separated by Hamming distance 2.  We conclude that we must have an antipodal pair among the &amp;quot;a&amp;quot; points with an odd number of 1s, and an antipodal pair among the &amp;quot;a&amp;quot; points with an even number of 1s.    By the symmetries of the cube, we may take the a-set to then be 1111, 3333, 1113, 3331.  But then the &amp;quot;b&amp;quot; set must exclude both 1112 and 3332, and so can have at most three points in the eight-point set xyz2 (with x,y,z=1,3) rather than four (to get four points one must alternate in a checkerboard pattern).  Adding this to the at most four points of the form xy2z, x2yz, 2xyz we see that b is at most 15, a contradiction. &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Given a subset of &amp;lt;math&amp;gt;[3]^4&amp;lt;/math&amp;gt;, let a be the number of points with no 2s, b be the number of points with 1 2, and so forth.  The quintuple (a,b,c,d,e) thus lies between (0,0,0,0,0) and (16,32,24,8,1).&lt;br /&gt;
&lt;br /&gt;
The 43-point solutions have distributions (a,b,c,d,e) as follows:&lt;br /&gt;
&lt;br /&gt;
* (5,20,18,0,0) [16 solutions]&lt;br /&gt;
* (4,16,23,0,0) [768 solutions]&lt;br /&gt;
* (3,16,24,0,0) [512 solutions]&lt;br /&gt;
* (4,15,24,0,0) [256 solutions]&lt;br /&gt;
&lt;br /&gt;
The 42-point solutions are [http://abel.math.umu.se/~klasm/Moser-42-stat.pdf distributed as follows]:&lt;br /&gt;
&lt;br /&gt;
* (6,24,12,0,0) [[http://abel.math.umu.se/~klasm/moser-n=4-42-12 8 solutions]] &lt;br /&gt;
* (5,20,17,0,0) [576 solutions]&lt;br /&gt;
* (5,19,18,0,0) [384 solutions]&lt;br /&gt;
* (6,16,18,2,0) [[http://abel.math.umu.se/~klasm/moser-n=4-42-e=2 192 solutions]]&lt;br /&gt;
* (4,20,18,0,0) [272 solutions]&lt;br /&gt;
* (5,17,20,0,0) [192 solutions]&lt;br /&gt;
* (5,16,21,0,0) [3584 solutions]&lt;br /&gt;
* (4,17,21,0,0) [768 solutions]&lt;br /&gt;
* (4,16,22,0,0) [26880 solutions]&lt;br /&gt;
* (5,15,22,0,0) [1536 solutions]&lt;br /&gt;
* (4,15,23,0,0) [22272 solutions]&lt;br /&gt;
* (3,16,23,0,0) [15744 solutions]&lt;br /&gt;
* (4,14,24,0,0) [4224 solutions]&lt;br /&gt;
* (3,15,24,0,0) [8704 solutions]&lt;br /&gt;
* (2,16,24,0,0) [896 solutions]&lt;br /&gt;
&lt;br /&gt;
Note how c is usually quite large, and d quite low.&lt;br /&gt;
&lt;br /&gt;
One of the (6,24,12,0,0) solutions is &amp;lt;math&amp;gt;\Gamma_{220}+\Gamma_{202}+\Gamma_{022}+\Gamma_{112}+\Gamma_{211}&amp;lt;/math&amp;gt; (i.e. the set of points containing exactly two 1s, and/or exactly two 3s).  The other seven are reflections of this set.&lt;br /&gt;
&lt;br /&gt;
There are 2,765,200 41-point solutions, [http://abel.math.umu.se/~klasm/solutions-4-t=3-41-moser.gz listed here].  The statistics for such points can be [http://abel.math.umu.se/~klasm/Moser-41-stat.pdf found here].  Noteworthy features of the statistics:&lt;br /&gt;
&lt;br /&gt;
* d is at most 3 (and, except for [http://abel.math.umu.se/~klasm/moser-n=3-t=3-41-d=3.gz 256 exceptional solutions] of the shape (5,15,18,3,0), have d at most 2; here are the [http://abel.math.umu.se/~klasm/moser-n=3-t=3-41-d=2.gz d=2 solutions] and [http://abel.math.umu.se/~klasm/moser-n=3-t=3-41-d=1.gz d=1 solutions])&lt;br /&gt;
* c is at least 6 (and, except for [http://abel.math.umu.se/~klasm/moser-n=3-t=3-41-c=6.gz 16 exceptional solutions] of the shape (7,28,6,0,0), have c at least 11).&lt;br /&gt;
&lt;br /&gt;
Statistics for the 41-point, 42-point, and 43-point solutions can be found [http://spreadsheets.google.com/ccc?key=p5T0SktZY9DuqNcxJ171Bbw&amp;amp;hl=en here].&lt;br /&gt;
&lt;br /&gt;
If a Moser set in &amp;lt;math&amp;gt;[3]^4&amp;lt;/math&amp;gt; contains 2222, then by the n=3 theory, any middle slice (i.e. 2***, *2**, **2*, or ***2) is missing at least one antipodal pair.  But each antipodal pair belongs to at most three middle slices, thus two of the 40 antipodal pairs must be completely missing.  As a consequence, any Moser set containing 2222 can have at most 39 points.&lt;br /&gt;
(A more refined analysis can be found at [http://www.ma.rhul.ac.uk/~elsholtz/WWW/blog/mosertablogv01.pdf found here].)&lt;br /&gt;
&lt;br /&gt;
We have the following inequalities connecting a,b,c,d,e:&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;math&amp;gt;4a+b \leq 64&amp;lt;/math&amp;gt;:  There are 32 lines connecting two &amp;quot;a&amp;quot; points with a &amp;quot;b&amp;quot; point; each &amp;quot;a&amp;quot; point belongs to four of these lines, and each &amp;quot;b&amp;quot; point belongs to one.  But each such line can have at most two points in the set, and the claim follows.&lt;br /&gt;
* This can be refined to &amp;lt;math&amp;gt;4a+b+\frac{2}{3} c \leq 64&amp;lt;/math&amp;gt;: There are 24 planes connecting four &amp;quot;a&amp;quot; points, four &amp;quot;b&amp;quot; points, and one &amp;quot;c&amp;quot; point; each &amp;quot;a&amp;quot; point belongs to six of these, each &amp;quot;b&amp;quot; point belongs to three, and each &amp;quot;c&amp;quot; point belongs to one.  For each of these planes, we have &amp;lt;math&amp;gt;2a + b + 2c \leq 8&amp;lt;/math&amp;gt; from the n=2 theory, and the claim follows.&lt;br /&gt;
* &amp;lt;math&amp;gt;6a+2c \leq 96&amp;lt;/math&amp;gt;:  There are 96 lines connecting two &amp;quot;a&amp;quot; points with a &amp;quot;c&amp;quot; point; each &amp;quot;a&amp;quot; point belongs to six of these lines, and each &amp;quot;c&amp;quot; point belongs to two.  But each such line can have at most two points in the set, and the claim follows.&lt;br /&gt;
* &amp;lt;math&amp;gt;3b+2c \leq 96&amp;lt;/math&amp;gt;:  There are 48 lines connecting two &amp;quot;b&amp;quot; points to a &amp;quot;c&amp;quot; point; each &amp;quot;b&amp;quot; point belongs to three of these points, and each &amp;quot;c&amp;quot; point belongs to two.  But each such line can have at most two points in the set, and the claim follows.&lt;br /&gt;
&lt;br /&gt;
The inequalities for n=3 imply inequalities for n=4.  Indeed, there are eight side slices of &amp;lt;math&amp;gt;[3]^4&amp;lt;/math&amp;gt;; each &amp;quot;a&amp;quot; point belongs to four of these, each &amp;quot;b&amp;quot; point belongs to three, each &amp;quot;c&amp;quot; point belongs to two, and each &amp;quot;d&amp;quot; point belongs to one.  Thus, any inequality of the form&lt;br /&gt;
:&amp;lt;math&amp;gt; \alpha a + \beta b + \gamma c + \delta d \leq M&amp;lt;/math&amp;gt;&lt;br /&gt;
in three dimensions implies the inequality&lt;br /&gt;
:&amp;lt;math&amp;gt; 4 \alpha a + 3 \beta b + 2 \gamma c + \delta d \leq 8M&amp;lt;/math&amp;gt;&lt;br /&gt;
in four dimensions.  Thus we have&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;math&amp;gt;8a+3b+4c+4d \leq 176&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;2a+b+c+d \leq 48&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;14a+3b+4c+4d \leq 244&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;4a+b+c+d \leq 64&amp;lt;/math&amp;gt; &lt;br /&gt;
* &amp;lt;math&amp;gt;3b+2c+3d \leq 96&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;a+c+d \leq 28&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;5a+2c+2d \leq 80&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;a+d \leq 16&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;b+2d \leq 32&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;2c+3d \leq 48&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Cubes also sit diagonally in the 4-dimensional cube.  They may have coordinates xxyz, where xx runs over (11,22,33) or (13,22,31), while y and z run over (1,2,3).  These cubes have a different distribution of 2s than the ordinary slices: (a,b,c,d,e) = (8,8,6,4,1) instead of (8,12,6,1,0) for the side slices and (0,8,12,6,1) for the middle slices.  So a different set of inequalities arise.  It is possible to run through the same procedure as described above for n=3, and the inequalities that arise are &amp;lt;math&amp;gt;2a+b+2c+2d+4e \le 24&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;4a+b+2c+2d+4e \le 32&amp;lt;/math&amp;gt; within the 3D cube, which when averaged becomes &amp;lt;math&amp;gt;4a+b+2c+4d+16e \le 96&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;8a+b+2c+4d+16e \le 128&amp;lt;/math&amp;gt; for the 4D cube.  A spreadsheet containing these statistics can be [http://spreadsheets.google.com/ccc?key=p5T0SktZY9DuKZ2DyzO9EOg&amp;amp;hl=en# found here] on sheet 2.  Other sheets of this spreadsheet contain results for a 3D cube sitting diagonally in a 5D, 6D or 7D cube.  Notice the similarity of the equations that arise for the xxxyz, xxyyz and xxxxyz diagonals.  Also notice the xxxxyyz diagonals have the same Pareto sets and linear inequalities as the cube&#039;s c-statistics&lt;br /&gt;
&lt;br /&gt;
== n=5 ==&lt;br /&gt;
&lt;br /&gt;
Let (A,B,C,D,E,F) be the statistics of a five-dimensional Moser set, thus (A,B,C,D,E,F) varies between (0,0,0,0,0,0) and (32,80,80,40,10,1).&lt;br /&gt;
&lt;br /&gt;
There are several Moser sets with the statistics (4,40,80,0,0,0), which thus have 124 points.  Indeed, one can take&lt;br /&gt;
&lt;br /&gt;
* all points with two 2s;&lt;br /&gt;
* all points with one 2 and an even number of 1s; and&lt;br /&gt;
* (13111),(13113),(31311),(13333). Any two of these four points differ in three places, except for one pair of points that differ in one place.&lt;br /&gt;
&lt;br /&gt;
For the rest of this section, we assume that the Moser set &amp;lt;math&amp;gt;{\mathcal A}&amp;lt;/math&amp;gt; is a 125-point set.&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 1&#039;&#039;&#039;: F=0.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; If F is non-zero, then the Moser set contains 22222, then each of the 121 antipodal pairs can have at most one point in the set, leading to only 122 points. &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 2&#039;&#039;&#039;: Every middle slice of &amp;lt;math&amp;gt;{\mathcal A}&amp;lt;/math&amp;gt; has at most 41 points.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039;  Without loss of generality we may consider the 2**** slice.  There are two cases, depending on the value of c(2****).&lt;br /&gt;
&lt;br /&gt;
Suppose first that c is at least 17; thus there are at least 17 points of the form 222xy, 22xy2, 2xy22, or 2x22y, where the x, y denote 1 or 3.  This gives 36 &amp;quot;xy&amp;quot; wildcards in all in four coordinate slots; by the pigeonhole principle one of the slots sees at least 9 of the wildcards.  By symmetry, we may assume that the second coordinate slot sees at least 9 of these wildcards, thus there are at least 9 points of the form 2x22y, 2x2y2, 2xy22.  The x=1, x=3 cases can absorb at most six of these, thus each of these cases must absorb at least three points, with at least one absorbing at least five.  Let&#039;s say that it&#039;s the x=3 case that absorbs 5; thus &amp;lt;math&amp;gt;d(*1***) \geq 3&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;d(*3***) \geq 5&amp;lt;/math&amp;gt;.  From the n=4 theory this means that the *1*** slice has at most 41 points, and the *3*** slice has at most 40.  Meanwhile, the middle slice has at most 43, leading to 41+41+42=124 points in all.&lt;br /&gt;
&lt;br /&gt;
Now suppose c is less than 16; then by the n=4 theory the middle slice is one of the eight (6,24,12,0,0) sets.  Without loss of generality we may take it to be &amp;lt;math&amp;gt;\Gamma_{220}+\Gamma_{202}+\Gamma_{022}+\Gamma_{112}+\Gamma_{211}&amp;lt;/math&amp;gt;; in particular, the middle slice contains the points 21122 21212 21221 23322 23232 23223.  In particular, the *1*** and *3*** slices have a &amp;quot;d&amp;quot; value of at least three, and so have at most 41 points.  If the *2*** slice has at most 42 points, then we are at 41+42+41=124 points as needed, but if we have 43 or more, then we are back in the first case (as &amp;lt;math&amp;gt;c(*2***) \geq 17&amp;lt;/math&amp;gt;) after permuting the indices.&lt;br /&gt;
&amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Since 125=41+41+43, we thus have&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Corollary 1&#039;&#039;&#039;: Every side slice of &amp;lt;math&amp;gt;{\mathcal A}&amp;lt;/math&amp;gt; has at least 41 points.  If one side slice does have 41 points, then the other has 43.&lt;br /&gt;
&lt;br /&gt;
Combining this with the n=4 statistics, we conclude&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Corollary 2&#039;&#039;&#039;: Every side slice of &amp;lt;math&amp;gt;{\mathcal A}&amp;lt;/math&amp;gt; has e=0, and &amp;lt;math&amp;gt;d \leq 3&amp;lt;/math&amp;gt;.  Given two opposite side slices, e.g. 1**** and 3****, we have &amp;lt;math&amp;gt;d(1****)+d(3****) \leq 4&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Corollary 3&#039;&#039;&#039;: E=0.&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Corollary 4&#039;&#039;&#039;: Any middle slice has a &amp;quot;c&amp;quot; value of at most 8.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; Let&#039;s work with the 2**** slice.  By Corollary 2, there are at most four contributions to c(2****) of the form 21*** or 23***, and similarly for the other three positions.  Double counting then gives the claim. &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 3&#039;&#039;&#039;: &amp;lt;math&amp;gt;2B+C \leq 160&amp;lt;/math&amp;gt;.   &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039;: There are 160 lines connecting one &amp;quot;C&amp;quot; point to two &amp;quot;B&amp;quot; points (e.g. 11112, 11122, 11132); each &amp;quot;C&amp;quot; point lies in two of these, and each &amp;quot;B&amp;quot; point lies on four.  A Moser set can have at most two points out of each of these lines.  Double counting then gives the claim.  &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 4&#039;&#039;&#039; Given m A-points with &amp;lt;math&amp;gt;m \geq 5&amp;lt;/math&amp;gt;, there exists at least m-4 pairs (a,b) of such A-points with Hamming distance exactly two (i.e. b differs from a in exactly two places).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; It suffices to check this for m=5, since the case of larger m then follows by locating a pair, removing a point that contributes to that pair, and using the induction hypothesis.  Given 5 A-points, we may assume by the pigeonhole principle and symmetry that at least three of them have an odd number of 1s.  Suppose 11111 is one of the points, and that no pair has Hamming distance 2. All points with two 3s are excluded, so the only points allowed with an odd number of 1s are those with four 3s. But all those points differ from each other in two positions, so at most one of them is allowed.  &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Corollary 5&#039;&#039;&#039; &amp;lt;math&amp;gt;C \leq 79&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039;: Suppose for contradiction that C=80, then D=0 and &amp;lt;math&amp;gt;B \leq 40&amp;lt;/math&amp;gt;.  From Lemma 4 we also see that A cannot exceed 5, leading to the contradiction.&lt;br /&gt;
&amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Define the &#039;&#039;&#039;score&#039;&#039;&#039; of a Moser set in &amp;lt;math&amp;gt;[3]^4&amp;lt;/math&amp;gt; to be the quantity &amp;lt;math&amp;gt;a + 5b/4 + 5c/3 + 5d/2 + 5e&amp;lt;/math&amp;gt;.  Double-counting (and Lemma 2) gives&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 5&#039;&#039;&#039;  The total score of all the ten side-slices of &amp;lt;math&amp;gt;{\mathcal A}&amp;lt;/math&amp;gt; is equal to &amp;lt;math&amp;gt;5|{\mathcal A}| = 5 \times 125&amp;lt;/math&amp;gt;.  In particular, there exists a pair of opposite side-slices whose scores add up to at least 125.&lt;br /&gt;
&lt;br /&gt;
By Lemma 5 and symmetry, we may assume that the 1**** and 3**** slices have score adding up to at least 125.  By Lemma 2, the 2**** slice has at most 41 points, which imply that the 1**** and 3**** have 41, 42, or 43 points.  From the [http://spreadsheets.google.com/ccc?key=p5T0SktZY9DuqNcxJ171Bbw&amp;amp;hl=en n=4 statistics] we know that all 41-point, 42-point, 43-point slices have score less than 62, with the following exceptions:&lt;br /&gt;
&lt;br /&gt;
# (2,16,24,0,0) [42 points, score: 62]&lt;br /&gt;
# (4,16,23,0,0) [43 points, score: 62 1/3]&lt;br /&gt;
# (4,15,24,0,0) [43 points, score: 62 3/4]&lt;br /&gt;
# (3,16,24,0,0) [43 points, score: 63]&lt;br /&gt;
&lt;br /&gt;
Thus the 1**** and 3**** slices must from the above list.  Furthermore, if one of the slices is of type 1, then the other must be of type 4, and if one slice is of type 2, then the other must be of type 3 or 4.&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 6&#039;&#039;&#039; There exists one cut in which the side slices have total score strictly greater than 125 (i.e. they thus involve only Type 2, Type 3, and Type 4 slices, with at least one side slice not equal to Type 2, and the cut here is of the form 43+39+43).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; If not, then all cuts have side slices exactly equal to 125, which by the above table implies that one is Type 1 and one is Type 4, in particular all side slices have c=24.  But this forces C=80, contradicting Corollary 5. &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Adding up the corners we conclude&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Corollary 6&#039;&#039;&#039; &amp;lt;math&amp;gt;6 \leq A \leq 8&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 7&#039;&#039;&#039; &amp;lt;math&amp;gt;D=0&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; Firstly, from Lemma 6 we have a cut in which the two side slices are omitting at most one C-point between them (and have no D-point), which forces the middle slice to have at most one D-point; thus D is at most 1.&lt;br /&gt;
&lt;br /&gt;
Now suppose instead that D=1 (e.g. if 11222 was in the set); then there would be two choices of coordinates in which one of the side slices would have d=1 (e.g. 1**** and *1****). But the [http://spreadsheets.google.com/ccc?key=p5T0SktZY9DuqNcxJ171Bbw&amp;amp;hl=en n=4 statistics] show that such slices have a score of at most 59 7/12, so that the total score from those two coordinates is at most 63 + 59 7/12 = 122 7/12. On the other hand, the other three slices have a net score of at most 63+63 = 126. This averages out to at most 124.633... &amp;lt; 125, a contradiction.  &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Corollary 7&#039;&#039;&#039; Every middle slice has at most 40 points.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; From Lemma 7 we see that the middle slice must have c=0, but from the n=4 statistics this is not possible for any slice of size 41 or higher (alternatively, one can use the inequalities &amp;lt;math&amp;gt;4a+b \leq 64&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;b \leq 32&amp;lt;/math&amp;gt;). &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Each middle slice now has 39 or 40 points, with c=d=e=0, and so from the inequalities &amp;lt;math&amp;gt;4a+b \leq 64&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;b \leq 32&amp;lt;/math&amp;gt; must have statistics (8,32,0,0,0),(7,32,0,0,0), or (8,31,0,0,0).  In particular the &amp;quot;a&amp;quot; index of the middle slices is at most 8.  Summing over all middle slices we conclude&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 9&#039;&#039;&#039; B is at most 40.&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 10&#039;&#039;&#039; C is equal to 78 or 79.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; By Corollary 5, it suffices to show that &amp;lt;math&amp;gt;C \geq 78&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
As 125=43+39+43, we see that every center slice must have at least 39 points. By Lemma 2 and Lemma 7 the center slice has c=d=e=0, thus the center slice has a+b &amp;gt;= 39.  On the other hand, from the n=4 theory we have 4a+b &amp;lt;= 64, which forces b &amp;gt;= 31.&lt;br /&gt;
&lt;br /&gt;
By double counting, we see that 2C is equal to the sum of the b&#039;s of all the five center slices.  Thus C &amp;gt;= 5*31/2 = 77.5 and the claim follows.  &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
From Lemmas 9 and 10 we see that &amp;lt;math&amp;gt;B+C \leq 119&amp;lt;/math&amp;gt;, and thus &amp;lt;math&amp;gt;A \geq 6&amp;lt;/math&amp;gt;.  Also, if &amp;lt;math&amp;gt;A \geq 7&amp;lt;/math&amp;gt;, then by Lemma 4 we have at least three pairs of A points with Hamming distance 2.  At most two of these pairs eliminate the same C point, so we would have C=78 in that case.  &lt;br /&gt;
&lt;br /&gt;
Putting all the above facts together, we see that (A,B,C,D,E,F) must be one of the following triples:&lt;br /&gt;
&lt;br /&gt;
* (6,40,79,0,0,0)&lt;br /&gt;
* (7,40,78,0,0,0)&lt;br /&gt;
* (8,39,78,0,0,0)&lt;br /&gt;
&lt;br /&gt;
All three cases can be eliminated, giving &amp;lt;math&amp;gt;c&#039;_5=124&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== Elimination of (6,40,79,0,0,0) ===&lt;br /&gt;
&lt;br /&gt;
Look at the 6 A points.  From Lemma 4 we have at least two pairs (a,b), (c,d) of A-points that have Hamming separation 2.&lt;br /&gt;
&lt;br /&gt;
Now look at the midpoints of these two pairs; these midpoints are C-points cannot lie in the set.  But we have exactly one C-point missing from the set, thus the midpoints must be the same.  By symmetry, we may thus assume that the two pairs are (11111,11133) and (11113,11131).  Thus 11111,11133, 11113, 11131 are in the set, and so every C-point other than 11122 is in the set.  On the other hand, the B-points 11121, 11123, 11112, 11132 lie outside the set.&lt;br /&gt;
&lt;br /&gt;
At most one of 11312, 11332 lie in the set (since 11322 lies in the set).   Suppose that 11312 lies outside the set, then we have a pair (xy1z2, xy3z2) with x,y,z = 1,3 that is totally omitted from the set, namely (11112,11312).  On the other hand, every other pair of this form can have at most point in the set, thus there are at most seven points in the set of the form (xyzw2) with x,y,z,w = 1,3.  Similarly there are at most 8 points of the form xyz2w, or of xy2zw, x2yzw, 2xyzw, leading to at most 39 B-points in all, contradiction.&lt;br /&gt;
&lt;br /&gt;
=== Elimination of (7,40,78,0,0,0) ===&lt;br /&gt;
&lt;br /&gt;
By Lemma 4, we have at least three pairs of A-points of distance two apart that lie in the set.&lt;br /&gt;
The midpoints of these pairs are C-points that do not lie in the set; but there are only two such C-points, thus two pairs must have the same midpoint, so we may assume as before that 111xy lies in the set for x,y=1,3, which implies that 1112* and 111*2 lie outside the set.&lt;br /&gt;
&lt;br /&gt;
Now consider the 160 lines between 2 B points and one C point (cf. Lemma 3).  The sum of all the points in each such line (counting multiplicity) is 4B+2C = 316.  On the other hand, every one of the 160 lines can have at most two points, and four of these lines (namely 1112*, 111*2) have no points.  Thus all the other lines must have exactly two points.  &lt;br /&gt;
&lt;br /&gt;
We know that the C-point 11122 is missing from the set; there is one other missing C-point.  Since 1112x, 111x2 lie outside the set, we conclude from the previous paragraph that 1132x, 113x2 and 1312x, 131x2 lie in the set.  Taking midpoints we conclude that 11322 and 13122 lie outside the set.  But this is now three C-points missing (together with 11122), a contradiction.&lt;br /&gt;
&lt;br /&gt;
=== Elimination of (8,39,78,0,0,0) ===&lt;br /&gt;
&lt;br /&gt;
By Lemma 4 we have at least four pairs of A-points of distance two apart that lie in the set. The midpoints of these pairs are C-points that do not lie in the set; but there are only two such C-points, thus two pairs (a,b), (c,d) must have the same midpoint p, and the other two pairs (a&#039;,b&#039;), (c&#039;,d&#039;) must also have the same midpoint p&#039;.  (Note that every C-point is the midpoint of at most two such pairs.)&lt;br /&gt;
&lt;br /&gt;
Now consider the 160 lines between 2 B points and one C point (cf. Lemma 3).  The sum of all the points in each such line (counting multiplicity) is 4B+2C = 312.  Every one of the 160 lines can have at most two points, and four of these (those in the plane of (a,b,c,d) or of (a&#039;,b&#039;,c&#039;,d&#039;) have no points.  Thus all other lines must have exactly two points.&lt;br /&gt;
&lt;br /&gt;
Without loss of generality we have (a,b)=(11111,11133), (c,d) = (11113,11131), thus p = 11122.  By permuting the first three indices, we may assume that p&#039; is not of the form x2y2z, x2yz2, xy22z, xy2z2.  Then 1112x lies outside the set and 1122x lies in the set, so by the above paragraph 1132x lies in the set; similarly for 113x2, 1312x, 131x2.  This implies that 13122, 11322 lie outside the set, but this (together with 11122) shows that at least three C-points are missing, a contradiction.&lt;br /&gt;
&lt;br /&gt;
== General n ==&lt;br /&gt;
&lt;br /&gt;
General solution for &amp;lt;math&amp;gt;c&#039;_N&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* q 2s, all points from A(N-q,1)&lt;br /&gt;
* q-1 2s, points from A(N-q+1,2)&lt;br /&gt;
* q-2 2s, points from A(N-q+2,3)&lt;br /&gt;
* etc.&lt;br /&gt;
&lt;br /&gt;
where A(m,d) is a subset of &amp;lt;math&amp;gt;[1,3]^m&amp;lt;/math&amp;gt; for which any two points differ from each other in at least d places.&lt;br /&gt;
&lt;br /&gt;
Mathworld’s entry on error-correcting codes suggests it might be NP-complete to find the size of A(m,d) in general.&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;math&amp;gt;|A(m,1)| = 2^m&amp;lt;/math&amp;gt; because it includes all points in &amp;lt;math&amp;gt;[1,3]^m&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;|A(m,2)| = 2^{m-1}&amp;lt;/math&amp;gt; because it can include all points in &amp;lt;math&amp;gt;[1,3]^m&amp;lt;/math&amp;gt; with an odd number of 1s&lt;br /&gt;
&lt;br /&gt;
The integer programming routine from Maple 12 was used to obtain upper bounds for &amp;lt;math&amp;gt;c&#039;_6&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;c&#039;_7&amp;lt;/math&amp;gt;.  A large number of linear inequalities, described above in sections (n=3) and (n=4), were combined.  The details are in [[Maple calculations]].  The results were that &amp;lt;math&amp;gt;c&#039;_6 \le 361&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;c&#039;_7 \le 1071&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
A [[genetic algorithm]] has provided the following examples:&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;math&amp;gt;c&#039;_6 \geq 353&amp;lt;/math&amp;gt; (26 examples; [http://twofoldgaze.wordpress.com/2009/03/10/353-element-solution/ here is one])&lt;br /&gt;
* &amp;lt;math&amp;gt;c&#039;_7 \geq 988&amp;lt;/math&amp;gt; [http://twofoldgaze.wordpress.com/2009/03/10/978-element-solution/ Here is the example]&lt;br /&gt;
&lt;br /&gt;
== Larger sides (k&amp;gt;3) ==&lt;br /&gt;
&lt;br /&gt;
The following set gives a lower bound for Moser’s cube &amp;lt;math&amp;gt;[4]^n&amp;lt;/math&amp;gt; (values 1,2,3,4):  Pick all points where q entries are 2 or 3; and also pick those where q-1 entries are 2 or 3 and an odd number of entries are 1.  This is maximized when q is near n/2, giving a lower bound of&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\binom{n}{n/2} 2^n + \binom{n}{n/2-1} 2^{n-1}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
which is comparable to &amp;lt;math&amp;gt;4^n/\sqrt{n}&amp;lt;/math&amp;gt; by [[Stirling&#039;s formula]].&lt;br /&gt;
&lt;br /&gt;
For k=5 (values 1,2,3,4,5) If A, B, C, D, and E denote the numbers of 1-s, 2-s, 3-s, 4-s and 5-s then the first three points of a geometric line form a 3-term arithmetic progression in A+E+2(B+D)+3C. So, for k=5 we have a similar lower bound for the Moser’s problem as for DHJ k=3, i.e. &amp;lt;math&amp;gt;5^{n - O(\sqrt{\log n})}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
The k=6 version of Moser implies DHJ(3).  Indeed, any k=3 combinatorial line-free set can be &amp;quot;doubled up&amp;quot; into a k=6 geometric line-free set of the same density by pulling back the set from the map &amp;lt;math&amp;gt;\phi: [6]^n \to [3]^n&amp;lt;/math&amp;gt; that maps 1, 2, 3, 4, 5, 6 to 1, 2, 3, 3, 2, 1 respectively; note that this map sends k=6 geometric lines to k=3 combinatorial lines.&lt;/div&gt;</summary>
		<author><name>121.220.134.232</name></author>
	</entry>
	<entry>
		<id>https://michaelnielsen.org/polymath/index.php?title=Moser%27s_cube_problem&amp;diff=1028</id>
		<title>Moser&#039;s cube problem</title>
		<link rel="alternate" type="text/html" href="https://michaelnielsen.org/polymath/index.php?title=Moser%27s_cube_problem&amp;diff=1028"/>
		<updated>2009-03-21T11:53:00Z</updated>

		<summary type="html">&lt;p&gt;121.220.134.232: /* n=2 */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Define a &#039;&#039;Moser set&#039;&#039; to be a subset of &amp;lt;math&amp;gt;[3]^n&amp;lt;/math&amp;gt; which does not contain any [[geometric line]], and let &amp;lt;math&amp;gt;c&#039;_n&amp;lt;/math&amp;gt; denote the size of the largest Moser set in &amp;lt;math&amp;gt;[3]^n&amp;lt;/math&amp;gt;.  The first few values are (see [http://www.research.att.com/~njas/sequences/A003142 OEIS A003142]):&lt;br /&gt;
&lt;br /&gt;
: &amp;lt;math&amp;gt;c&#039;_0 = 1; c&#039;_1 = 2; c&#039;_2 = 6; c&#039;_3 = 16; c&#039;_4 = 43; c&#039;_5 = 124.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Beyond this point, we only have some upper and lower bounds, in particular &amp;lt;math&amp;gt;353 \leq c&#039;_6 \leq 361&amp;lt;/math&amp;gt;; see [http://spreadsheets.google.com/ccc?key=p5T0SktZY9DsU-uZ1tK7VEg this spreadsheet] for the latest bounds.&lt;br /&gt;
&lt;br /&gt;
The best known asymptotic lower bound for &amp;lt;math&amp;gt;c&#039;_n&amp;lt;/math&amp;gt; is&lt;br /&gt;
&lt;br /&gt;
: &amp;lt;math&amp;gt;c&#039;_n \gg 3^n/\sqrt{n}&amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
formed by fixing the number of 2s to a single value near n/3.  Compare this to the DHJ(2) or Sperner limit of &amp;lt;math&amp;gt;2^n/\sqrt{n}&amp;lt;/math&amp;gt;.  Is it possible to do any better?  Note that we have a [[Upper_and_lower_bounds#Asymptotics|significantly better bound]] for the DHJ(3) &amp;lt;math&amp;gt;c_n&amp;lt;/math&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
: &amp;lt;math&amp;gt;c_n \geq 3^{n-O(\sqrt{\log n})}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
A more precise lower bound is&lt;br /&gt;
&lt;br /&gt;
: &amp;lt;math&amp;gt;c&#039;_n \geq \binom{n+1}{q} 2^{n-q}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where q is the nearest integer to &amp;lt;math&amp;gt;n/3&amp;lt;/math&amp;gt;, formed by taking all strings with q 2s, together with all strings with q-1 2s and an odd number of 1s.  This for instance gives the lower bound &amp;lt;math&amp;gt;c&#039;_5 \geq 120&amp;lt;/math&amp;gt;, which compares with the upper bound &amp;lt;math&amp;gt;c&#039;_5 \leq 3 c&#039;_4 = 129&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Using [[DHJ(3)]], we have the upper bound&lt;br /&gt;
&lt;br /&gt;
: &amp;lt;math&amp;gt;c&#039;_n = o(3^n)&amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
but no effective decay rate is known. It would be good to have a combinatorial proof of this fact (which is weaker than [[DHJ(3)]], but implies [[Roth&#039;s theorem]]).&lt;br /&gt;
&lt;br /&gt;
== Notation ==&lt;br /&gt;
&lt;br /&gt;
Given a Moser set A in &amp;lt;math&amp;gt;[3]^n&amp;lt;/math&amp;gt;, we let a be the number of points in A with no 2s, b be the number of points in A with one 2, c the number of points with two 2s, etc.  We call (a,b,c,...) the &#039;&#039;statistics&#039;&#039; of A.  Given a slice S of &amp;lt;math&amp;gt;[3]^n&amp;lt;/math&amp;gt;, we let a(S), b(S), etc. denote the statistics of that slice (dropping the fixed coordinates).  Thus for instance if A = {11, 12, 22, 32}, then (a,b,c) = (1,2,1), and (a(1*),b(1*)) = (1,1).&lt;br /&gt;
&lt;br /&gt;
We call a statistic (a,b,c,...) &#039;&#039;attainable&#039;&#039; if it is attained by a Moser set.  We say that an attainable statistic is &#039;&#039;Pareto-optimal&#039;&#039; if it cannot be pointwise dominated by any other attainable statistic (a&#039;,b&#039;,c&#039;,...) (thus &amp;lt;math&amp;gt;a&#039; \geq a&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;b&#039; \geq b&amp;lt;/math&amp;gt;, etc.)  We say that it is &#039;&#039;extremal&#039;&#039; if it is not a convex combination of any other attainable statistic (this is a stronger property than Pareto-optimal).  For the purposes of maximising linear scores of attainable statistics, it suffices to check extremal statistics.&lt;br /&gt;
&lt;br /&gt;
We let &amp;lt;math&amp;gt;(\alpha_0,\alpha_1,\ldots)&amp;lt;/math&amp;gt; be the normalized version of &amp;lt;math&amp;gt;(a,b,\ldots)&amp;lt;/math&amp;gt;, in which one divides the number of points of a certain type in the set by the total number of points in the set.  Thus for instance &amp;lt;math&amp;gt;\alpha_0 = a/2^n, \alpha_1 = b/(n 2^{n-1}), \alpha_3 = c/(\binom{n}{2} 2^{n-2})&amp;lt;/math&amp;gt;, etc., and the &amp;lt;math&amp;gt;\alpha_i&amp;lt;/math&amp;gt; range between 0 and 1.  Averaging arguments show that any linear inequality obeyed by the &amp;lt;math&amp;gt;\alpha_i&amp;lt;/math&amp;gt; at one dimension is automatically inherited by higher dimensions, as are shifted versions of this inequality (in which &amp;lt;math&amp;gt;\alpha_i&amp;lt;/math&amp;gt; is replaced by &amp;lt;math&amp;gt;\alpha_{i+1}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
The idea in &#039;c-statistics&#039; is to identify 1s and 3s but leave the 2s intact. Let’s use x to denote letters that are either 1 or 3, then the 81 points get split up into 16 groups: 2222 (1 point), 222x, 22×2, 2×22, x222 (two points each), 22xx, 2×2x, x22x, 2xx2, x2×2, xx22 (four points each), 2xxx, x2xx, xx2x, xxx2 (eight points each), xxxx (sixteen points). Let c(w) denote the number of points inside a group w, e.g. c(xx22) is the number of points of the form xx22 inside the set, and is thus an integer from 0 to 4.&lt;br /&gt;
&lt;br /&gt;
== n=0 ==&lt;br /&gt;
&lt;br /&gt;
We trivially have &amp;lt;math&amp;gt;c&#039;_0=1.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== n=1 ==&lt;br /&gt;
&lt;br /&gt;
We trivially have &amp;lt;math&amp;gt;c&#039;_1=2.&amp;lt;/math&amp;gt;  The Pareto-optimal values of the statistics (a,b) are (1,1) and (2,0); these are also the extremals.  We thus have the inequality &amp;lt;math&amp;gt;a+b \leq 2&amp;lt;/math&amp;gt;, or in normalized notation&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;2\alpha_0 + \alpha_1 \leq 2&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== n=2 ==&lt;br /&gt;
&lt;br /&gt;
We have &amp;lt;math&amp;gt;c&#039;_2 = 6&amp;lt;/math&amp;gt;; the upper bound follows since &amp;lt;math&amp;gt;c&#039;_2 \leq 3 c&#039;_1&amp;lt;/math&amp;gt;, and the lower bound follows by deleting one of the two diagonals from &amp;lt;math&amp;gt;[3]^2&amp;lt;/math&amp;gt; (these are the only extremisers).&lt;br /&gt;
&lt;br /&gt;
The extremiser has statistics (a,b,c) = (2,4,0), which are of course Pareto-optimal.  If c=1 then we must have a, b at most 2 (look at the lines through 22).  This is attainable (e.g. {11, 12, 22, 23, 31}, and so (2,2,1) is another Pareto-optimal statistic.  If a=4, then b and c must be 0, so we get another Pareto-optimal statistic (4,0,0) (attainable by {11, 13, 31, 33} of course).  If a=3, then c=0 and b is at most 2, giving another Pareto-optimal statistic (3,2,0); but this is a convex combination of (4,0,0) and (2,4,0) and is thus not extremal.  Thus the complete set of extremal statistics are&lt;br /&gt;
&lt;br /&gt;
(4,0,0), (2,4,0), (2,2,1).&lt;br /&gt;
&lt;br /&gt;
The sharp linear inequalities obeyed by a,b,c (other than the trivial ones &amp;lt;math&amp;gt;a,b,c \geq 0&amp;lt;/math&amp;gt;) are then&lt;br /&gt;
&lt;br /&gt;
*&amp;lt;math&amp;gt;2a+b+2c \leq 8&amp;lt;/math&amp;gt;&lt;br /&gt;
*&amp;lt;math&amp;gt;b+2c \leq 4&amp;lt;/math&amp;gt;&lt;br /&gt;
*&amp;lt;math&amp;gt;a+2c \leq 4&amp;lt;/math&amp;gt;&lt;br /&gt;
*&amp;lt;math&amp;gt;c \leq 1&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
In normalized notation, we have&lt;br /&gt;
*&amp;lt;math&amp;gt;4\alpha_0 + 2\alpha_1 + \alpha_2 \leq 4&amp;lt;/math&amp;gt;&lt;br /&gt;
*&amp;lt;math&amp;gt;2\alpha_1 + \alpha_2 \leq 2&amp;lt;/math&amp;gt;&lt;br /&gt;
*&amp;lt;math&amp;gt;2\alpha_0 + \alpha_2 \leq 2&amp;lt;/math&amp;gt;&lt;br /&gt;
*&amp;lt;math&amp;gt;\alpha_2 \leq 1&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
The Pareto optimizers for c-statistics are (c22,c2x,cx2,cxx) = (1112),(0222),(0004), which are covered by the linear inequalities &lt;br /&gt;
*&amp;lt;math&amp;gt;c22+c2x+cxx &amp;lt;= 4&amp;lt;/math&amp;gt;, &lt;br /&gt;
*&amp;lt;math&amp;gt;c22+cx2+cxx &amp;lt;= 4&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== n=3 ==&lt;br /&gt;
&lt;br /&gt;
We have &amp;lt;math&amp;gt;c&#039;_3 = 16&amp;lt;/math&amp;gt;.  The lower bound can be seen for instance by taking all the strings with one 2, and half the strings with no 2 (e.g. the strings with an odd number of 1s).  The upper bound can be deduced from the corresponding [[upper and lower bounds]] for &amp;lt;math&amp;gt;c_3 = 18&amp;lt;/math&amp;gt;; the 17-point and 18-point line-free sets each contain a geometric line.&lt;br /&gt;
&lt;br /&gt;
If a Moser set in &amp;lt;math&amp;gt;[3]^3&amp;lt;/math&amp;gt; contains 222, then it can have at most 14 points, since the remaining 26 points in the cube split into 13 antipodal pairs, and at most one of each pair can lie in the set.  By exhausting over the &amp;lt;math&amp;gt;2^{13} = 8192&amp;lt;/math&amp;gt; possibilities, it can be shown that it is impossible for a 14-point set to exist; any Moser set containing 222 must in fact omit at least one antipodal pair completely and thus have only 13 points.  (A human proof of this fact can be [http://www.ma.rhul.ac.uk/~elsholtz/WWW/blog/mosertablogv01.pdf found here].)&lt;br /&gt;
&lt;br /&gt;
The Pareto-optimal statistics are&lt;br /&gt;
&lt;br /&gt;
(3,6,3,1),(4,4,3,1),(4,6,2,1),(2,6,6,0),(3,6,5,0),(4,4,5,0),(3,7,4,0),(4,6,4,0), (3,9,3,0),(4,7,3,0),(5,4,3,0),(4,9,2,0),(5,6,2,0),(6,3,2,0),(3,10,1,0),(5,7,1,0), (6,4,1,0),(4,12,0,0),(5,9,0,0),(6,6,0,0),(7,3,0,0),(8,0,0,0).&lt;br /&gt;
&lt;br /&gt;
These were found from a search of the &amp;lt;math&amp;gt;2^{27}&amp;lt;/math&amp;gt; subsets of the cube.&lt;br /&gt;
A spreadsheet containing these statistics can be [http://spreadsheets.google.com/ccc?key=p5T0SktZY9DuKZ2DyzO9EOg&amp;amp;hl=en# found here].&lt;br /&gt;
&lt;br /&gt;
The extremal statistics are&lt;br /&gt;
&lt;br /&gt;
(3,6,3,1),(4,4,3,1),(4,6,2,1),(2,6,6,0),(4,4,5,0),(4,6,4,0),(4,12,0,0),(8,0,0,0)&lt;br /&gt;
&lt;br /&gt;
The sharp linear bounds are :&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;math&amp;gt;2a+b+2c+4d \leq 22&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;3a+2b+3c+6d \leq 36&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;7a+2b+4c+8d \leq 56&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;6a+2b+3c+6d \leq 48&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;b+c+3d \leq 12&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;a+2c+4d \leq 14&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;5a+4c+8d \leq 40&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;a+4d \leq 8&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;b+6d \leq 12&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;c+3d \leq 6&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;d \leq 1&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In normalized notation,&lt;br /&gt;
* &amp;lt;math&amp;gt;8\alpha_0+ 6\alpha_1 + 6\alpha_2 + 2\alpha_3 \leq 11&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;4\alpha_0+4\alpha_1+3\alpha_2+\alpha_3 \leq 6&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;7\alpha_0+3\alpha_1+3\alpha_2+\alpha_3 \leq 7&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;8\alpha_0+3\alpha_1+3\alpha_2+\alpha_3 \leq 8&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;4\alpha_1+2\alpha_2+\alpha_3 \leq 4&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;4\alpha_0+6\alpha_2+2\alpha_3 \leq 7&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;5\alpha_0+3\alpha_2+\alpha_3 \leq 5&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;2\alpha_0+\alpha_3 \leq 2&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;2\alpha_1+\alpha_3 \leq 2&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;2\alpha_2+\alpha_3 \leq 2&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;\alpha_3 \leq 1&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The c-statistics can also be found from an exhaustive search of Moser sets.  The resulting Pareto sets and linear inequalities can be found on Sheet 8 of [http://spreadsheets.google.com/ccc?key=p5T0SktZY9DuKZ2DyzO9EOg&amp;amp;hl=en# this spreadsheet]&lt;br /&gt;
&lt;br /&gt;
== n=4 ==&lt;br /&gt;
&lt;br /&gt;
A [http://abel.math.umu.se/~klasm/extremal-moser-n=5-t=3 computer search] has obtained all extremisers to &amp;lt;math&amp;gt;c&#039;_4=43&amp;lt;/math&amp;gt;.  The 42-point solutions can be found [http://abel.math.umu.se/~klasm/moser-n=4-t=3-p=42.gz here].&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof that &amp;lt;math&amp;gt;c&#039;_4 \leq 43&amp;lt;/math&amp;gt;&#039;&#039;&#039;: &lt;br /&gt;
When e=1 (i.e. the 4D set contains 2222) then we have at most 41 points (in fact at most 39) by counting antipodal points, so assume e=0.&lt;br /&gt;
&lt;br /&gt;
Define the score of a 3D slice to be a/4+b/3+c/2+d.  Observe from double counting that the size of a 4D set is the sum of the scores of its eight side slices.&lt;br /&gt;
&lt;br /&gt;
But by [http://spreadsheets.google.com/ccc?key=p5T0SktZY9DuKZ2DyzO9EOg&amp;amp;hl=en looking at the extremals] we see that the largest score is 44/8, attained at only one point, namely when (a,b,c,d) = (2,6,6,0).  So the only way one can have a 44-point set is if all side slices are (2,6,6,0), or equivalently if the whole set has statistics (a,b,c,d,e) = (4,16,24,0,0).  But then we have all the points with two 2s, which means that the four &amp;quot;a&amp;quot; points cannot be separated by Hamming distance 2.  We conclude that we must have an antipodal pair among the &amp;quot;a&amp;quot; points with an odd number of 1s, and an antipodal pair among the &amp;quot;a&amp;quot; points with an even number of 1s.    By the symmetries of the cube, we may take the a-set to then be 1111, 3333, 1113, 3331.  But then the &amp;quot;b&amp;quot; set must exclude both 1112 and 3332, and so can have at most three points in the eight-point set xyz2 (with x,y,z=1,3) rather than four (to get four points one must alternate in a checkerboard pattern).  Adding this to the at most four points of the form xy2z, x2yz, 2xyz we see that b is at most 15, a contradiction. &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Given a subset of &amp;lt;math&amp;gt;[3]^4&amp;lt;/math&amp;gt;, let a be the number of points with no 2s, b be the number of points with 1 2, and so forth.  The quintuple (a,b,c,d,e) thus lies between (0,0,0,0,0) and (16,32,24,8,1).&lt;br /&gt;
&lt;br /&gt;
The 43-point solutions have distributions (a,b,c,d,e) as follows:&lt;br /&gt;
&lt;br /&gt;
* (5,20,18,0,0) [16 solutions]&lt;br /&gt;
* (4,16,23,0,0) [768 solutions]&lt;br /&gt;
* (3,16,24,0,0) [512 solutions]&lt;br /&gt;
* (4,15,24,0,0) [256 solutions]&lt;br /&gt;
&lt;br /&gt;
The 42-point solutions are [http://abel.math.umu.se/~klasm/Moser-42-stat.pdf distributed as follows]:&lt;br /&gt;
&lt;br /&gt;
* (6,24,12,0,0) [[http://abel.math.umu.se/~klasm/moser-n=4-42-12 8 solutions]] &lt;br /&gt;
* (5,20,17,0,0) [576 solutions]&lt;br /&gt;
* (5,19,18,0,0) [384 solutions]&lt;br /&gt;
* (6,16,18,2,0) [[http://abel.math.umu.se/~klasm/moser-n=4-42-e=2 192 solutions]]&lt;br /&gt;
* (4,20,18,0,0) [272 solutions]&lt;br /&gt;
* (5,17,20,0,0) [192 solutions]&lt;br /&gt;
* (5,16,21,0,0) [3584 solutions]&lt;br /&gt;
* (4,17,21,0,0) [768 solutions]&lt;br /&gt;
* (4,16,22,0,0) [26880 solutions]&lt;br /&gt;
* (5,15,22,0,0) [1536 solutions]&lt;br /&gt;
* (4,15,23,0,0) [22272 solutions]&lt;br /&gt;
* (3,16,23,0,0) [15744 solutions]&lt;br /&gt;
* (4,14,24,0,0) [4224 solutions]&lt;br /&gt;
* (3,15,24,0,0) [8704 solutions]&lt;br /&gt;
* (2,16,24,0,0) [896 solutions]&lt;br /&gt;
&lt;br /&gt;
Note how c is usually quite large, and d quite low.&lt;br /&gt;
&lt;br /&gt;
One of the (6,24,12,0,0) solutions is &amp;lt;math&amp;gt;\Gamma_{220}+\Gamma_{202}+\Gamma_{022}+\Gamma_{112}+\Gamma_{211}&amp;lt;/math&amp;gt; (i.e. the set of points containing exactly two 1s, and/or exactly two 3s).  The other seven are reflections of this set.&lt;br /&gt;
&lt;br /&gt;
There are 2,765,200 41-point solutions, [http://abel.math.umu.se/~klasm/solutions-4-t=3-41-moser.gz listed here].  The statistics for such points can be [http://abel.math.umu.se/~klasm/Moser-41-stat.pdf found here].  Noteworthy features of the statistics:&lt;br /&gt;
&lt;br /&gt;
* d is at most 3 (and, except for [http://abel.math.umu.se/~klasm/moser-n=3-t=3-41-d=3.gz 256 exceptional solutions] of the shape (5,15,18,3,0), have d at most 2; here are the [http://abel.math.umu.se/~klasm/moser-n=3-t=3-41-d=2.gz d=2 solutions] and [http://abel.math.umu.se/~klasm/moser-n=3-t=3-41-d=1.gz d=1 solutions])&lt;br /&gt;
* c is at least 6 (and, except for [http://abel.math.umu.se/~klasm/moser-n=3-t=3-41-c=6.gz 16 exceptional solutions] of the shape (7,28,6,0,0), have c at least 11).&lt;br /&gt;
&lt;br /&gt;
Statistics for the 41-point, 42-point, and 43-point solutions can be found [http://spreadsheets.google.com/ccc?key=p5T0SktZY9DuqNcxJ171Bbw&amp;amp;hl=en here].&lt;br /&gt;
&lt;br /&gt;
If a Moser set in &amp;lt;math&amp;gt;[3]^4&amp;lt;/math&amp;gt; contains 2222, then by the n=3 theory, any middle slice (i.e. 2***, *2**, **2*, or ***2) is missing at least one antipodal pair.  But each antipodal pair belongs to at most three middle slices, thus two of the 40 antipodal pairs must be completely missing.  As a consequence, any Moser set containing 2222 can have at most 39 points.&lt;br /&gt;
(A more refined analysis can be found at [http://www.ma.rhul.ac.uk/~elsholtz/WWW/blog/mosertablogv01.pdf found here].)&lt;br /&gt;
&lt;br /&gt;
We have the following inequalities connecting a,b,c,d,e:&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;math&amp;gt;4a+b \leq 64&amp;lt;/math&amp;gt;:  There are 32 lines connecting two &amp;quot;a&amp;quot; points with a &amp;quot;b&amp;quot; point; each &amp;quot;a&amp;quot; point belongs to four of these lines, and each &amp;quot;b&amp;quot; point belongs to one.  But each such line can have at most two points in the set, and the claim follows.&lt;br /&gt;
* This can be refined to &amp;lt;math&amp;gt;4a+b+\frac{2}{3} c \leq 64&amp;lt;/math&amp;gt;: There are 24 planes connecting four &amp;quot;a&amp;quot; points, four &amp;quot;b&amp;quot; points, and one &amp;quot;c&amp;quot; point; each &amp;quot;a&amp;quot; point belongs to six of these, each &amp;quot;b&amp;quot; point belongs to three, and each &amp;quot;c&amp;quot; point belongs to one.  For each of these planes, we have &amp;lt;math&amp;gt;2a + b + 2c \leq 8&amp;lt;/math&amp;gt; from the n=2 theory, and the claim follows.&lt;br /&gt;
* &amp;lt;math&amp;gt;6a+2c \leq 96&amp;lt;/math&amp;gt;:  There are 96 lines connecting two &amp;quot;a&amp;quot; points with a &amp;quot;c&amp;quot; point; each &amp;quot;a&amp;quot; point belongs to six of these lines, and each &amp;quot;c&amp;quot; point belongs to two.  But each such line can have at most two points in the set, and the claim follows.&lt;br /&gt;
* &amp;lt;math&amp;gt;3b+2c \leq 96&amp;lt;/math&amp;gt;:  There are 48 lines connecting two &amp;quot;b&amp;quot; points to a &amp;quot;c&amp;quot; point; each &amp;quot;b&amp;quot; point belongs to three of these points, and each &amp;quot;c&amp;quot; point belongs to two.  But each such line can have at most two points in the set, and the claim follows.&lt;br /&gt;
&lt;br /&gt;
The inequalities for n=3 imply inequalities for n=4.  Indeed, there are eight side slices of &amp;lt;math&amp;gt;[3]^4&amp;lt;/math&amp;gt;; each &amp;quot;a&amp;quot; point belongs to four of these, each &amp;quot;b&amp;quot; point belongs to three, each &amp;quot;c&amp;quot; point belongs to two, and each &amp;quot;d&amp;quot; point belongs to one.  Thus, any inequality of the form&lt;br /&gt;
:&amp;lt;math&amp;gt; \alpha a + \beta b + \gamma c + \delta d \leq M&amp;lt;/math&amp;gt;&lt;br /&gt;
in three dimensions implies the inequality&lt;br /&gt;
:&amp;lt;math&amp;gt; 4 \alpha a + 3 \beta b + 2 \gamma c + \delta d \leq 8M&amp;lt;/math&amp;gt;&lt;br /&gt;
in four dimensions.  Thus we have&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;math&amp;gt;8a+3b+4c+4d \leq 176&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;2a+b+c+d \leq 48&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;14a+3b+4c+4d \leq 244&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;4a+b+c+d \leq 64&amp;lt;/math&amp;gt; &lt;br /&gt;
* &amp;lt;math&amp;gt;3b+2c+3d \leq 96&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;a+c+d \leq 28&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;5a+2c+2d \leq 80&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;a+d \leq 16&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;b+2d \leq 32&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;2c+3d \leq 48&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Cubes also sit diagonally in the 4-dimensional cube.  They may have coordinates xxyz, where xx runs over (11,22,33) or (13,22,31), while y and z run over (1,2,3).  These cubes have a different distribution of 2s than the ordinary slices: (a,b,c,d,e) = (8,8,6,4,1) instead of (8,12,6,1,0) for the side slices and (0,8,12,6,1) for the middle slices.  So a different set of inequalities arise.  It is possible to run through the same procedure as described above for n=3, and the inequalities that arise are &amp;lt;math&amp;gt;2a+b+2c+2d+4e \le 24&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;4a+b+2c+2d+4e \le 32&amp;lt;/math&amp;gt; within the 3D cube, which when averaged becomes &amp;lt;math&amp;gt;4a+b+2c+4d+16e \le 96&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;8a+b+2c+4d+16e \le 128&amp;lt;/math&amp;gt; for the 4D cube.  A spreadsheet containing these statistics can be [http://spreadsheets.google.com/ccc?key=p5T0SktZY9DuKZ2DyzO9EOg&amp;amp;hl=en# found here] on sheet 2.  Other sheets of this spreadsheet contain results for a 3D cube sitting diagonally in a 5D, 6D or 7D cube.  Notice the similarity of the equations that arise for the xxxyz, xxyyz and xxxxyz diagonals.  Also notice the xxxxyyz diagonals have the same Pareto sets and linear inequalities as the cube&#039;s c-statistics&lt;br /&gt;
&lt;br /&gt;
== n=5 ==&lt;br /&gt;
&lt;br /&gt;
Let (A,B,C,D,E,F) be the statistics of a five-dimensional Moser set, thus (A,B,C,D,E,F) varies between (0,0,0,0,0,0) and (32,80,80,40,10,1).&lt;br /&gt;
&lt;br /&gt;
There are several Moser sets with the statistics (4,40,80,0,0,0), which thus have 124 points.  Indeed, one can take&lt;br /&gt;
&lt;br /&gt;
* all points with two 2s;&lt;br /&gt;
* all points with one 2 and an even number of 1s; and&lt;br /&gt;
* (13111),(13113),(31311),(13333). Any two of these four points differ in three places, except for one pair of points that differ in one place.&lt;br /&gt;
&lt;br /&gt;
For the rest of this section, we assume that the Moser set &amp;lt;math&amp;gt;{\mathcal A}&amp;lt;/math&amp;gt; is a 125-point set.&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 1&#039;&#039;&#039;: F=0.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; If F is non-zero, then the Moser set contains 22222, then each of the 121 antipodal pairs can have at most one point in the set, leading to only 122 points. &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 2&#039;&#039;&#039;: Every middle slice of &amp;lt;math&amp;gt;{\mathcal A}&amp;lt;/math&amp;gt; has at most 41 points.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039;  Without loss of generality we may consider the 2**** slice.  There are two cases, depending on the value of c(2****).&lt;br /&gt;
&lt;br /&gt;
Suppose first that c is at least 17; thus there are at least 17 points of the form 222xy, 22xy2, 2xy22, or 2x22y, where the x, y denote 1 or 3.  This gives 36 &amp;quot;xy&amp;quot; wildcards in all in four coordinate slots; by the pigeonhole principle one of the slots sees at least 9 of the wildcards.  By symmetry, we may assume that the second coordinate slot sees at least 9 of these wildcards, thus there are at least 9 points of the form 2x22y, 2x2y2, 2xy22.  The x=1, x=3 cases can absorb at most six of these, thus each of these cases must absorb at least three points, with at least one absorbing at least five.  Let&#039;s say that it&#039;s the x=3 case that absorbs 5; thus &amp;lt;math&amp;gt;d(*1***) \geq 3&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;d(*3***) \geq 5&amp;lt;/math&amp;gt;.  From the n=4 theory this means that the *1*** slice has at most 41 points, and the *3*** slice has at most 40.  Meanwhile, the middle slice has at most 43, leading to 41+41+42=124 points in all.&lt;br /&gt;
&lt;br /&gt;
Now suppose c is less than 16; then by the n=4 theory the middle slice is one of the eight (6,24,12,0,0) sets.  Without loss of generality we may take it to be &amp;lt;math&amp;gt;\Gamma_{220}+\Gamma_{202}+\Gamma_{022}+\Gamma_{112}+\Gamma_{211}&amp;lt;/math&amp;gt;; in particular, the middle slice contains the points 21122 21212 21221 23322 23232 23223.  In particular, the *1*** and *3*** slices have a &amp;quot;d&amp;quot; value of at least three, and so have at most 41 points.  If the *2*** slice has at most 42 points, then we are at 41+42+41=124 points as needed, but if we have 43 or more, then we are back in the first case (as &amp;lt;math&amp;gt;c(*2***) \geq 17&amp;lt;/math&amp;gt;) after permuting the indices.&lt;br /&gt;
&amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Since 125=41+41+43, we thus have&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Corollary 1&#039;&#039;&#039;: Every side slice of &amp;lt;math&amp;gt;{\mathcal A}&amp;lt;/math&amp;gt; has at least 41 points.  If one side slice does have 41 points, then the other has 43.&lt;br /&gt;
&lt;br /&gt;
Combining this with the n=4 statistics, we conclude&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Corollary 2&#039;&#039;&#039;: Every side slice of &amp;lt;math&amp;gt;{\mathcal A}&amp;lt;/math&amp;gt; has e=0, and &amp;lt;math&amp;gt;d \leq 3&amp;lt;/math&amp;gt;.  Given two opposite side slices, e.g. 1**** and 3****, we have &amp;lt;math&amp;gt;d(1****)+d(3****) \leq 4&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Corollary 3&#039;&#039;&#039;: E=0.&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Corollary 4&#039;&#039;&#039;: Any middle slice has a &amp;quot;c&amp;quot; value of at most 8.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; Let&#039;s work with the 2**** slice.  By Corollary 2, there are at most four contributions to c(2****) of the form 21*** or 23***, and similarly for the other three positions.  Double counting then gives the claim. &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 3&#039;&#039;&#039;: &amp;lt;math&amp;gt;2B+C \leq 160&amp;lt;/math&amp;gt;.   &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039;: There are 160 lines connecting one &amp;quot;C&amp;quot; point to two &amp;quot;B&amp;quot; points (e.g. 11112, 11122, 11132); each &amp;quot;C&amp;quot; point lies in two of these, and each &amp;quot;B&amp;quot; point lies on four.  A Moser set can have at most two points out of each of these lines.  Double counting then gives the claim.  &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 4&#039;&#039;&#039; Given m A-points with &amp;lt;math&amp;gt;m \geq 5&amp;lt;/math&amp;gt;, there exists at least m-4 pairs (a,b) of such A-points with Hamming distance exactly two (i.e. b differs from a in exactly two places).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; It suffices to check this for m=5, since the case of larger m then follows by locating a pair, removing a point that contributes to that pair, and using the induction hypothesis.  Given 5 A-points, we may assume by the pigeonhole principle and symmetry that at least three of them have an odd number of 1s.  Suppose 11111 is one of the points, and that no pair has Hamming distance 2. All points with two 3s are excluded, so the only points allowed with an odd number of 1s are those with four 3s. But all those points differ from each other in two positions, so at most one of them is allowed.  &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Corollary 5&#039;&#039;&#039; &amp;lt;math&amp;gt;C \leq 79&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039;: Suppose for contradiction that C=80, then D=0 and &amp;lt;math&amp;gt;B \leq 40&amp;lt;/math&amp;gt;.  From Lemma 4 we also see that A cannot exceed 5, leading to the contradiction.&lt;br /&gt;
&amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Define the &#039;&#039;&#039;score&#039;&#039;&#039; of a Moser set in &amp;lt;math&amp;gt;[3]^4&amp;lt;/math&amp;gt; to be the quantity &amp;lt;math&amp;gt;a + 5b/4 + 5c/3 + 5d/2 + 5e&amp;lt;/math&amp;gt;.  Double-counting (and Lemma 2) gives&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 5&#039;&#039;&#039;  The total score of all the ten side-slices of &amp;lt;math&amp;gt;{\mathcal A}&amp;lt;/math&amp;gt; is equal to &amp;lt;math&amp;gt;5|{\mathcal A}| = 5 \times 125&amp;lt;/math&amp;gt;.  In particular, there exists a pair of opposite side-slices whose scores add up to at least 125.&lt;br /&gt;
&lt;br /&gt;
By Lemma 5 and symmetry, we may assume that the 1**** and 3**** slices have score adding up to at least 125.  By Lemma 2, the 2**** slice has at most 41 points, which imply that the 1**** and 3**** have 41, 42, or 43 points.  From the [http://spreadsheets.google.com/ccc?key=p5T0SktZY9DuqNcxJ171Bbw&amp;amp;hl=en n=4 statistics] we know that all 41-point, 42-point, 43-point slices have score less than 62, with the following exceptions:&lt;br /&gt;
&lt;br /&gt;
# (2,16,24,0,0) [42 points, score: 62]&lt;br /&gt;
# (4,16,23,0,0) [43 points, score: 62 1/3]&lt;br /&gt;
# (4,15,24,0,0) [43 points, score: 62 3/4]&lt;br /&gt;
# (3,16,24,0,0) [43 points, score: 63]&lt;br /&gt;
&lt;br /&gt;
Thus the 1**** and 3**** slices must from the above list.  Furthermore, if one of the slices is of type 1, then the other must be of type 4, and if one slice is of type 2, then the other must be of type 3 or 4.&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 6&#039;&#039;&#039; There exists one cut in which the side slices have total score strictly greater than 125 (i.e. they thus involve only Type 2, Type 3, and Type 4 slices, with at least one side slice not equal to Type 2, and the cut here is of the form 43+39+43).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; If not, then all cuts have side slices exactly equal to 125, which by the above table implies that one is Type 1 and one is Type 4, in particular all side slices have c=24.  But this forces C=80, contradicting Corollary 5. &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Adding up the corners we conclude&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Corollary 6&#039;&#039;&#039; &amp;lt;math&amp;gt;6 \leq A \leq 8&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 7&#039;&#039;&#039; &amp;lt;math&amp;gt;D=0&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; Firstly, from Lemma 6 we have a cut in which the two side slices are omitting at most one C-point between them (and have no D-point), which forces the middle slice to have at most one D-point; thus D is at most 1.&lt;br /&gt;
&lt;br /&gt;
Now suppose instead that D=1 (e.g. if 11222 was in the set); then there would be two choices of coordinates in which one of the side slices would have d=1 (e.g. 1**** and *1****). But the [http://spreadsheets.google.com/ccc?key=p5T0SktZY9DuqNcxJ171Bbw&amp;amp;hl=en n=4 statistics] show that such slices have a score of at most 59 7/12, so that the total score from those two coordinates is at most 63 + 59 7/12 = 122 7/12. On the other hand, the other three slices have a net score of at most 63+63 = 126. This averages out to at most 124.633... &amp;lt; 125, a contradiction.  &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Corollary 7&#039;&#039;&#039; Every middle slice has at most 40 points.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; From Lemma 7 we see that the middle slice must have c=0, but from the n=4 statistics this is not possible for any slice of size 41 or higher (alternatively, one can use the inequalities &amp;lt;math&amp;gt;4a+b \leq 64&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;b \leq 32&amp;lt;/math&amp;gt;). &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Each middle slice now has 39 or 40 points, with c=d=e=0, and so from the inequalities &amp;lt;math&amp;gt;4a+b \leq 64&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;b \leq 32&amp;lt;/math&amp;gt; must have statistics (8,32,0,0,0),(7,32,0,0,0), or (8,31,0,0,0).  In particular the &amp;quot;a&amp;quot; index of the middle slices is at most 8.  Summing over all middle slices we conclude&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 9&#039;&#039;&#039; B is at most 40.&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 10&#039;&#039;&#039; C is equal to 78 or 79.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; By Corollary 5, it suffices to show that &amp;lt;math&amp;gt;C \geq 78&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
As 125=43+39+43, we see that every center slice must have at least 39 points. By Lemma 2 and Lemma 7 the center slice has c=d=e=0, thus the center slice has a+b &amp;gt;= 39.  On the other hand, from the n=4 theory we have 4a+b &amp;lt;= 64, which forces b &amp;gt;= 31.&lt;br /&gt;
&lt;br /&gt;
By double counting, we see that 2C is equal to the sum of the b&#039;s of all the five center slices.  Thus C &amp;gt;= 5*31/2 = 77.5 and the claim follows.  &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
From Lemmas 9 and 10 we see that &amp;lt;math&amp;gt;B+C \leq 119&amp;lt;/math&amp;gt;, and thus &amp;lt;math&amp;gt;A \geq 6&amp;lt;/math&amp;gt;.  Also, if &amp;lt;math&amp;gt;A \geq 7&amp;lt;/math&amp;gt;, then by Lemma 4 we have at least three pairs of A points with Hamming distance 2.  At most two of these pairs eliminate the same C point, so we would have C=78 in that case.  &lt;br /&gt;
&lt;br /&gt;
Putting all the above facts together, we see that (A,B,C,D,E,F) must be one of the following triples:&lt;br /&gt;
&lt;br /&gt;
* (6,40,79,0,0,0)&lt;br /&gt;
* (7,40,78,0,0,0)&lt;br /&gt;
* (8,39,78,0,0,0)&lt;br /&gt;
&lt;br /&gt;
All three cases can be eliminated, giving &amp;lt;math&amp;gt;c&#039;_5=124&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== Elimination of (6,40,79,0,0,0) ===&lt;br /&gt;
&lt;br /&gt;
Look at the 6 A points.  From Lemma 4 we have at least two pairs (a,b), (c,d) of A-points that have Hamming separation 2.&lt;br /&gt;
&lt;br /&gt;
Now look at the midpoints of these two pairs; these midpoints are C-points cannot lie in the set.  But we have exactly one C-point missing from the set, thus the midpoints must be the same.  By symmetry, we may thus assume that the two pairs are (11111,11133) and (11113,11131).  Thus 11111,11133, 11113, 11131 are in the set, and so every C-point other than 11122 is in the set.  On the other hand, the B-points 11121, 11123, 11112, 11132 lie outside the set.&lt;br /&gt;
&lt;br /&gt;
At most one of 11312, 11332 lie in the set (since 11322 lies in the set).   Suppose that 11312 lies outside the set, then we have a pair (xy1z2, xy3z2) with x,y,z = 1,3 that is totally omitted from the set, namely (11112,11312).  On the other hand, every other pair of this form can have at most point in the set, thus there are at most seven points in the set of the form (xyzw2) with x,y,z,w = 1,3.  Similarly there are at most 8 points of the form xyz2w, or of xy2zw, x2yzw, 2xyzw, leading to at most 39 B-points in all, contradiction.&lt;br /&gt;
&lt;br /&gt;
=== Elimination of (7,40,78,0,0,0) ===&lt;br /&gt;
&lt;br /&gt;
By Lemma 4, we have at least three pairs of A-points of distance two apart that lie in the set.&lt;br /&gt;
The midpoints of these pairs are C-points that do not lie in the set; but there are only two such C-points, thus two pairs must have the same midpoint, so we may assume as before that 111xy lies in the set for x,y=1,3, which implies that 1112* and 111*2 lie outside the set.&lt;br /&gt;
&lt;br /&gt;
Now consider the 160 lines between 2 B points and one C point (cf. Lemma 3).  The sum of all the points in each such line (counting multiplicity) is 4B+2C = 316.  On the other hand, every one of the 160 lines can have at most two points, and four of these lines (namely 1112*, 111*2) have no points.  Thus all the other lines must have exactly two points.  &lt;br /&gt;
&lt;br /&gt;
We know that the C-point 11122 is missing from the set; there is one other missing C-point.  Since 1112x, 111x2 lie outside the set, we conclude from the previous paragraph that 1132x, 113x2 and 1312x, 131x2 lie in the set.  Taking midpoints we conclude that 11322 and 13122 lie outside the set.  But this is now three C-points missing (together with 11122), a contradiction.&lt;br /&gt;
&lt;br /&gt;
=== Elimination of (8,39,78,0,0,0) ===&lt;br /&gt;
&lt;br /&gt;
By Lemma 4 we have at least four pairs of A-points of distance two apart that lie in the set. The midpoints of these pairs are C-points that do not lie in the set; but there are only two such C-points, thus two pairs (a,b), (c,d) must have the same midpoint p, and the other two pairs (a&#039;,b&#039;), (c&#039;,d&#039;) must also have the same midpoint p&#039;.  (Note that every C-point is the midpoint of at most two such pairs.)&lt;br /&gt;
&lt;br /&gt;
Now consider the 160 lines between 2 B points and one C point (cf. Lemma 3).  The sum of all the points in each such line (counting multiplicity) is 4B+2C = 312.  Every one of the 160 lines can have at most two points, and four of these (those in the plane of (a,b,c,d) or of (a&#039;,b&#039;,c&#039;,d&#039;) have no points.  Thus all other lines must have exactly two points.&lt;br /&gt;
&lt;br /&gt;
Without loss of generality we have (a,b)=(11111,11133), (c,d) = (11113,11131), thus p = 11122.  By permuting the first three indices, we may assume that p&#039; is not of the form x2y2z, x2yz2, xy22z, xy2z2.  Then 1112x lies outside the set and 1122x lies in the set, so by the above paragraph 1132x lies in the set; similarly for 113x2, 1312x, 131x2.  This implies that 13122, 11322 lie outside the set, but this (together with 11122) shows that at least three C-points are missing, a contradiction.&lt;br /&gt;
&lt;br /&gt;
== General n ==&lt;br /&gt;
&lt;br /&gt;
General solution for &amp;lt;math&amp;gt;c&#039;_N&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* q 2s, all points from A(N-q,1)&lt;br /&gt;
* q-1 2s, points from A(N-q+1,2)&lt;br /&gt;
* q-2 2s, points from A(N-q+2,3)&lt;br /&gt;
* etc.&lt;br /&gt;
&lt;br /&gt;
where A(m,d) is a subset of &amp;lt;math&amp;gt;[1,3]^m&amp;lt;/math&amp;gt; for which any two points differ from each other in at least d places.&lt;br /&gt;
&lt;br /&gt;
Mathworld’s entry on error-correcting codes suggests it might be NP-complete to find the size of A(m,d) in general.&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;math&amp;gt;|A(m,1)| = 2^m&amp;lt;/math&amp;gt; because it includes all points in &amp;lt;math&amp;gt;[1,3]^m&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;|A(m,2)| = 2^{m-1}&amp;lt;/math&amp;gt; because it can include all points in &amp;lt;math&amp;gt;[1,3]^m&amp;lt;/math&amp;gt; with an odd number of 1s&lt;br /&gt;
&lt;br /&gt;
The integer programming routine from Maple 12 was used to obtain upper bounds for &amp;lt;math&amp;gt;c&#039;_6&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;c&#039;_7&amp;lt;/math&amp;gt;.  A large number of linear inequalities, described above in sections (n=3) and (n=4), were combined.  The details are in [[Maple calculations]].  The results were that &amp;lt;math&amp;gt;c&#039;_6 \le 361&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;c&#039;_7 \le 1071&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
A [[genetic algorithm]] has provided the following examples:&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;math&amp;gt;c&#039;_6 \geq 353&amp;lt;/math&amp;gt; (26 examples; [http://twofoldgaze.wordpress.com/2009/03/10/353-element-solution/ here is one])&lt;br /&gt;
* &amp;lt;math&amp;gt;c&#039;_7 \geq 988&amp;lt;/math&amp;gt; [http://twofoldgaze.wordpress.com/2009/03/10/978-element-solution/ Here is the example]&lt;br /&gt;
&lt;br /&gt;
== Larger sides (k&amp;gt;3) ==&lt;br /&gt;
&lt;br /&gt;
The following set gives a lower bound for Moser’s cube &amp;lt;math&amp;gt;[4]^n&amp;lt;/math&amp;gt; (values 1,2,3,4):  Pick all points where q entries are 2 or 3; and also pick those where q-1 entries are 2 or 3 and an odd number of entries are 1.  This is maximized when q is near n/2, giving a lower bound of&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\binom{n}{n/2} 2^n + \binom{n}{n/2-1} 2^{n-1}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
which is comparable to &amp;lt;math&amp;gt;4^n/\sqrt{n}&amp;lt;/math&amp;gt; by [[Stirling&#039;s formula]].&lt;br /&gt;
&lt;br /&gt;
For k=5 (values 1,2,3,4,5) If A, B, C, D, and E denote the numbers of 1-s, 2-s, 3-s, 4-s and 5-s then the first three points of a geometric line form a 3-term arithmetic progression in A+E+2(B+D)+3C. So, for k=5 we have a similar lower bound for the Moser’s problem as for DHJ k=3, i.e. &amp;lt;math&amp;gt;5^{n - O(\sqrt{\log n})}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
The k=6 version of Moser implies DHJ(3).  Indeed, any k=3 combinatorial line-free set can be &amp;quot;doubled up&amp;quot; into a k=6 geometric line-free set of the same density by pulling back the set from the map &amp;lt;math&amp;gt;\phi: [6]^n \to [3]^n&amp;lt;/math&amp;gt; that maps 1, 2, 3, 4, 5, 6 to 1, 2, 3, 3, 2, 1 respectively; note that this map sends k=6 geometric lines to k=3 combinatorial lines.&lt;/div&gt;</summary>
		<author><name>121.220.134.232</name></author>
	</entry>
	<entry>
		<id>https://michaelnielsen.org/polymath/index.php?title=Moser%27s_cube_problem&amp;diff=1027</id>
		<title>Moser&#039;s cube problem</title>
		<link rel="alternate" type="text/html" href="https://michaelnielsen.org/polymath/index.php?title=Moser%27s_cube_problem&amp;diff=1027"/>
		<updated>2009-03-21T04:32:45Z</updated>

		<summary type="html">&lt;p&gt;121.220.134.232: /* n=4 */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Define a &#039;&#039;Moser set&#039;&#039; to be a subset of &amp;lt;math&amp;gt;[3]^n&amp;lt;/math&amp;gt; which does not contain any [[geometric line]], and let &amp;lt;math&amp;gt;c&#039;_n&amp;lt;/math&amp;gt; denote the size of the largest Moser set in &amp;lt;math&amp;gt;[3]^n&amp;lt;/math&amp;gt;.  The first few values are (see [http://www.research.att.com/~njas/sequences/A003142 OEIS A003142]):&lt;br /&gt;
&lt;br /&gt;
: &amp;lt;math&amp;gt;c&#039;_0 = 1; c&#039;_1 = 2; c&#039;_2 = 6; c&#039;_3 = 16; c&#039;_4 = 43; c&#039;_5 = 124.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Beyond this point, we only have some upper and lower bounds, in particular &amp;lt;math&amp;gt;353 \leq c&#039;_6 \leq 361&amp;lt;/math&amp;gt;; see [http://spreadsheets.google.com/ccc?key=p5T0SktZY9DsU-uZ1tK7VEg this spreadsheet] for the latest bounds.&lt;br /&gt;
&lt;br /&gt;
The best known asymptotic lower bound for &amp;lt;math&amp;gt;c&#039;_n&amp;lt;/math&amp;gt; is&lt;br /&gt;
&lt;br /&gt;
: &amp;lt;math&amp;gt;c&#039;_n \gg 3^n/\sqrt{n}&amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
formed by fixing the number of 2s to a single value near n/3.  Compare this to the DHJ(2) or Sperner limit of &amp;lt;math&amp;gt;2^n/\sqrt{n}&amp;lt;/math&amp;gt;.  Is it possible to do any better?  Note that we have a [[Upper_and_lower_bounds#Asymptotics|significantly better bound]] for the DHJ(3) &amp;lt;math&amp;gt;c_n&amp;lt;/math&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
: &amp;lt;math&amp;gt;c_n \geq 3^{n-O(\sqrt{\log n})}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
A more precise lower bound is&lt;br /&gt;
&lt;br /&gt;
: &amp;lt;math&amp;gt;c&#039;_n \geq \binom{n+1}{q} 2^{n-q}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where q is the nearest integer to &amp;lt;math&amp;gt;n/3&amp;lt;/math&amp;gt;, formed by taking all strings with q 2s, together with all strings with q-1 2s and an odd number of 1s.  This for instance gives the lower bound &amp;lt;math&amp;gt;c&#039;_5 \geq 120&amp;lt;/math&amp;gt;, which compares with the upper bound &amp;lt;math&amp;gt;c&#039;_5 \leq 3 c&#039;_4 = 129&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Using [[DHJ(3)]], we have the upper bound&lt;br /&gt;
&lt;br /&gt;
: &amp;lt;math&amp;gt;c&#039;_n = o(3^n)&amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
but no effective decay rate is known. It would be good to have a combinatorial proof of this fact (which is weaker than [[DHJ(3)]], but implies [[Roth&#039;s theorem]]).&lt;br /&gt;
&lt;br /&gt;
== Notation ==&lt;br /&gt;
&lt;br /&gt;
Given a Moser set A in &amp;lt;math&amp;gt;[3]^n&amp;lt;/math&amp;gt;, we let a be the number of points in A with no 2s, b be the number of points in A with one 2, c the number of points with two 2s, etc.  We call (a,b,c,...) the &#039;&#039;statistics&#039;&#039; of A.  Given a slice S of &amp;lt;math&amp;gt;[3]^n&amp;lt;/math&amp;gt;, we let a(S), b(S), etc. denote the statistics of that slice (dropping the fixed coordinates).  Thus for instance if A = {11, 12, 22, 32}, then (a,b,c) = (1,2,1), and (a(1*),b(1*)) = (1,1).&lt;br /&gt;
&lt;br /&gt;
We call a statistic (a,b,c,...) &#039;&#039;attainable&#039;&#039; if it is attained by a Moser set.  We say that an attainable statistic is &#039;&#039;Pareto-optimal&#039;&#039; if it cannot be pointwise dominated by any other attainable statistic (a&#039;,b&#039;,c&#039;,...) (thus &amp;lt;math&amp;gt;a&#039; \geq a&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;b&#039; \geq b&amp;lt;/math&amp;gt;, etc.)  We say that it is &#039;&#039;extremal&#039;&#039; if it is not a convex combination of any other attainable statistic (this is a stronger property than Pareto-optimal).  For the purposes of maximising linear scores of attainable statistics, it suffices to check extremal statistics.&lt;br /&gt;
&lt;br /&gt;
We let &amp;lt;math&amp;gt;(\alpha_0,\alpha_1,\ldots)&amp;lt;/math&amp;gt; be the normalized version of &amp;lt;math&amp;gt;(a,b,\ldots)&amp;lt;/math&amp;gt;, in which one divides the number of points of a certain type in the set by the total number of points in the set.  Thus for instance &amp;lt;math&amp;gt;\alpha_0 = a/2^n, \alpha_1 = b/(n 2^{n-1}), \alpha_3 = c/(\binom{n}{2} 2^{n-2})&amp;lt;/math&amp;gt;, etc., and the &amp;lt;math&amp;gt;\alpha_i&amp;lt;/math&amp;gt; range between 0 and 1.  Averaging arguments show that any linear inequality obeyed by the &amp;lt;math&amp;gt;\alpha_i&amp;lt;/math&amp;gt; at one dimension is automatically inherited by higher dimensions, as are shifted versions of this inequality (in which &amp;lt;math&amp;gt;\alpha_i&amp;lt;/math&amp;gt; is replaced by &amp;lt;math&amp;gt;\alpha_{i+1}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
The idea in &#039;c-statistics&#039; is to identify 1s and 3s but leave the 2s intact. Let’s use x to denote letters that are either 1 or 3, then the 81 points get split up into 16 groups: 2222 (1 point), 222x, 22×2, 2×22, x222 (two points each), 22xx, 2×2x, x22x, 2xx2, x2×2, xx22 (four points each), 2xxx, x2xx, xx2x, xxx2 (eight points each), xxxx (sixteen points). Let c(w) denote the number of points inside a group w, e.g. c(xx22) is the number of points of the form xx22 inside the set, and is thus an integer from 0 to 4.&lt;br /&gt;
&lt;br /&gt;
== n=0 ==&lt;br /&gt;
&lt;br /&gt;
We trivially have &amp;lt;math&amp;gt;c&#039;_0=1.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== n=1 ==&lt;br /&gt;
&lt;br /&gt;
We trivially have &amp;lt;math&amp;gt;c&#039;_1=2.&amp;lt;/math&amp;gt;  The Pareto-optimal values of the statistics (a,b) are (1,1) and (2,0); these are also the extremals.  We thus have the inequality &amp;lt;math&amp;gt;a+b \leq 2&amp;lt;/math&amp;gt;, or in normalized notation&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;2\alpha_0 + \alpha_1 \leq 2&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== n=2 ==&lt;br /&gt;
&lt;br /&gt;
We have &amp;lt;math&amp;gt;c&#039;_2 = 6&amp;lt;/math&amp;gt;; the upper bound follows since &amp;lt;math&amp;gt;c&#039;_2 \leq 3 c&#039;_1&amp;lt;/math&amp;gt;, and the lower bound follows by deleting one of the two diagonals from &amp;lt;math&amp;gt;[3]^2&amp;lt;/math&amp;gt; (these are the only extremisers).&lt;br /&gt;
&lt;br /&gt;
The extremiser has statistics (a,b,c) = (2,4,0), which are of course Pareto-optimal.  If c=1 then we must have a, b at most 2 (look at the lines through 22).  This is attainable (e.g. {11, 12, 22, 23, 31}, and so (2,2,1) is another Pareto-optimal statistic.  If a=4, then b and c must be 0, so we get another Pareto-optimal statistic (4,0,0) (attainable by {11, 13, 31, 33} of course).  If a=3, then c=0 and b is at most 2, giving another Pareto-optimal statistic (3,2,0); but this is a convex combination of (4,0,0) and (2,4,0) and is thus not extremal.  Thus the complete set of extremal statistics are&lt;br /&gt;
&lt;br /&gt;
(4,0,0), (2,4,0), (2,2,1).&lt;br /&gt;
&lt;br /&gt;
The sharp linear inequalities obeyed by a,b,c (other than the trivial ones &amp;lt;math&amp;gt;a,b,c \geq 0&amp;lt;/math&amp;gt;) are then&lt;br /&gt;
&lt;br /&gt;
*&amp;lt;math&amp;gt;2a+b+2c \leq 8&amp;lt;/math&amp;gt;&lt;br /&gt;
*&amp;lt;math&amp;gt;b+2c \leq 4&amp;lt;/math&amp;gt;&lt;br /&gt;
*&amp;lt;math&amp;gt;a+2c \leq 4&amp;lt;/math&amp;gt;&lt;br /&gt;
*&amp;lt;math&amp;gt;c \leq 1&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
In normalized notation, we have&lt;br /&gt;
*&amp;lt;math&amp;gt;4\alpha_0 + 2\alpha_1 + \alpha_2 \leq 4&amp;lt;/math&amp;gt;&lt;br /&gt;
*&amp;lt;math&amp;gt;2\alpha_1 + \alpha_2 \leq 2&amp;lt;/math&amp;gt;&lt;br /&gt;
*&amp;lt;math&amp;gt;2\alpha_0 + \alpha_2 \leq 2&amp;lt;/math&amp;gt;&lt;br /&gt;
*&amp;lt;math&amp;gt;\alpha_2 \leq 1&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
The Pareto optimizers for c-statistics are (c22,c2x,cx2,cxx) = (1112),(0222),(0004), which are covered by the linear inequalities c22+c2x+cxx &amp;lt;= 4, c22+cx2+cxx &amp;lt;= 4.&lt;br /&gt;
&lt;br /&gt;
== n=3 ==&lt;br /&gt;
&lt;br /&gt;
We have &amp;lt;math&amp;gt;c&#039;_3 = 16&amp;lt;/math&amp;gt;.  The lower bound can be seen for instance by taking all the strings with one 2, and half the strings with no 2 (e.g. the strings with an odd number of 1s).  The upper bound can be deduced from the corresponding [[upper and lower bounds]] for &amp;lt;math&amp;gt;c_3 = 18&amp;lt;/math&amp;gt;; the 17-point and 18-point line-free sets each contain a geometric line.&lt;br /&gt;
&lt;br /&gt;
If a Moser set in &amp;lt;math&amp;gt;[3]^3&amp;lt;/math&amp;gt; contains 222, then it can have at most 14 points, since the remaining 26 points in the cube split into 13 antipodal pairs, and at most one of each pair can lie in the set.  By exhausting over the &amp;lt;math&amp;gt;2^{13} = 8192&amp;lt;/math&amp;gt; possibilities, it can be shown that it is impossible for a 14-point set to exist; any Moser set containing 222 must in fact omit at least one antipodal pair completely and thus have only 13 points.  (A human proof of this fact can be [http://www.ma.rhul.ac.uk/~elsholtz/WWW/blog/mosertablogv01.pdf found here].)&lt;br /&gt;
&lt;br /&gt;
The Pareto-optimal statistics are&lt;br /&gt;
&lt;br /&gt;
(3,6,3,1),(4,4,3,1),(4,6,2,1),(2,6,6,0),(3,6,5,0),(4,4,5,0),(3,7,4,0),(4,6,4,0), (3,9,3,0),(4,7,3,0),(5,4,3,0),(4,9,2,0),(5,6,2,0),(6,3,2,0),(3,10,1,0),(5,7,1,0), (6,4,1,0),(4,12,0,0),(5,9,0,0),(6,6,0,0),(7,3,0,0),(8,0,0,0).&lt;br /&gt;
&lt;br /&gt;
These were found from a search of the &amp;lt;math&amp;gt;2^{27}&amp;lt;/math&amp;gt; subsets of the cube.&lt;br /&gt;
A spreadsheet containing these statistics can be [http://spreadsheets.google.com/ccc?key=p5T0SktZY9DuKZ2DyzO9EOg&amp;amp;hl=en# found here].&lt;br /&gt;
&lt;br /&gt;
The extremal statistics are&lt;br /&gt;
&lt;br /&gt;
(3,6,3,1),(4,4,3,1),(4,6,2,1),(2,6,6,0),(4,4,5,0),(4,6,4,0),(4,12,0,0),(8,0,0,0)&lt;br /&gt;
&lt;br /&gt;
The sharp linear bounds are :&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;math&amp;gt;2a+b+2c+4d \leq 22&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;3a+2b+3c+6d \leq 36&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;7a+2b+4c+8d \leq 56&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;6a+2b+3c+6d \leq 48&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;b+c+3d \leq 12&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;a+2c+4d \leq 14&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;5a+4c+8d \leq 40&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;a+4d \leq 8&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;b+6d \leq 12&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;c+3d \leq 6&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;d \leq 1&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In normalized notation,&lt;br /&gt;
* &amp;lt;math&amp;gt;8\alpha_0+ 6\alpha_1 + 6\alpha_2 + 2\alpha_3 \leq 11&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;4\alpha_0+4\alpha_1+3\alpha_2+\alpha_3 \leq 6&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;7\alpha_0+3\alpha_1+3\alpha_2+\alpha_3 \leq 7&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;8\alpha_0+3\alpha_1+3\alpha_2+\alpha_3 \leq 8&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;4\alpha_1+2\alpha_2+\alpha_3 \leq 4&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;4\alpha_0+6\alpha_2+2\alpha_3 \leq 7&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;5\alpha_0+3\alpha_2+\alpha_3 \leq 5&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;2\alpha_0+\alpha_3 \leq 2&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;2\alpha_1+\alpha_3 \leq 2&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;2\alpha_2+\alpha_3 \leq 2&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;\alpha_3 \leq 1&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The c-statistics can also be found from an exhaustive search of Moser sets.  The resulting Pareto sets and linear inequalities can be found on Sheet 8 of [http://spreadsheets.google.com/ccc?key=p5T0SktZY9DuKZ2DyzO9EOg&amp;amp;hl=en# this spreadsheet]&lt;br /&gt;
&lt;br /&gt;
== n=4 ==&lt;br /&gt;
&lt;br /&gt;
A [http://abel.math.umu.se/~klasm/extremal-moser-n=5-t=3 computer search] has obtained all extremisers to &amp;lt;math&amp;gt;c&#039;_4=43&amp;lt;/math&amp;gt;.  The 42-point solutions can be found [http://abel.math.umu.se/~klasm/moser-n=4-t=3-p=42.gz here].&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof that &amp;lt;math&amp;gt;c&#039;_4 \leq 43&amp;lt;/math&amp;gt;&#039;&#039;&#039;: &lt;br /&gt;
When e=1 (i.e. the 4D set contains 2222) then we have at most 41 points (in fact at most 39) by counting antipodal points, so assume e=0.&lt;br /&gt;
&lt;br /&gt;
Define the score of a 3D slice to be a/4+b/3+c/2+d.  Observe from double counting that the size of a 4D set is the sum of the scores of its eight side slices.&lt;br /&gt;
&lt;br /&gt;
But by [http://spreadsheets.google.com/ccc?key=p5T0SktZY9DuKZ2DyzO9EOg&amp;amp;hl=en looking at the extremals] we see that the largest score is 44/8, attained at only one point, namely when (a,b,c,d) = (2,6,6,0).  So the only way one can have a 44-point set is if all side slices are (2,6,6,0), or equivalently if the whole set has statistics (a,b,c,d,e) = (4,16,24,0,0).  But then we have all the points with two 2s, which means that the four &amp;quot;a&amp;quot; points cannot be separated by Hamming distance 2.  We conclude that we must have an antipodal pair among the &amp;quot;a&amp;quot; points with an odd number of 1s, and an antipodal pair among the &amp;quot;a&amp;quot; points with an even number of 1s.    By the symmetries of the cube, we may take the a-set to then be 1111, 3333, 1113, 3331.  But then the &amp;quot;b&amp;quot; set must exclude both 1112 and 3332, and so can have at most three points in the eight-point set xyz2 (with x,y,z=1,3) rather than four (to get four points one must alternate in a checkerboard pattern).  Adding this to the at most four points of the form xy2z, x2yz, 2xyz we see that b is at most 15, a contradiction. &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Given a subset of &amp;lt;math&amp;gt;[3]^4&amp;lt;/math&amp;gt;, let a be the number of points with no 2s, b be the number of points with 1 2, and so forth.  The quintuple (a,b,c,d,e) thus lies between (0,0,0,0,0) and (16,32,24,8,1).&lt;br /&gt;
&lt;br /&gt;
The 43-point solutions have distributions (a,b,c,d,e) as follows:&lt;br /&gt;
&lt;br /&gt;
* (5,20,18,0,0) [16 solutions]&lt;br /&gt;
* (4,16,23,0,0) [768 solutions]&lt;br /&gt;
* (3,16,24,0,0) [512 solutions]&lt;br /&gt;
* (4,15,24,0,0) [256 solutions]&lt;br /&gt;
&lt;br /&gt;
The 42-point solutions are [http://abel.math.umu.se/~klasm/Moser-42-stat.pdf distributed as follows]:&lt;br /&gt;
&lt;br /&gt;
* (6,24,12,0,0) [[http://abel.math.umu.se/~klasm/moser-n=4-42-12 8 solutions]] &lt;br /&gt;
* (5,20,17,0,0) [576 solutions]&lt;br /&gt;
* (5,19,18,0,0) [384 solutions]&lt;br /&gt;
* (6,16,18,2,0) [[http://abel.math.umu.se/~klasm/moser-n=4-42-e=2 192 solutions]]&lt;br /&gt;
* (4,20,18,0,0) [272 solutions]&lt;br /&gt;
* (5,17,20,0,0) [192 solutions]&lt;br /&gt;
* (5,16,21,0,0) [3584 solutions]&lt;br /&gt;
* (4,17,21,0,0) [768 solutions]&lt;br /&gt;
* (4,16,22,0,0) [26880 solutions]&lt;br /&gt;
* (5,15,22,0,0) [1536 solutions]&lt;br /&gt;
* (4,15,23,0,0) [22272 solutions]&lt;br /&gt;
* (3,16,23,0,0) [15744 solutions]&lt;br /&gt;
* (4,14,24,0,0) [4224 solutions]&lt;br /&gt;
* (3,15,24,0,0) [8704 solutions]&lt;br /&gt;
* (2,16,24,0,0) [896 solutions]&lt;br /&gt;
&lt;br /&gt;
Note how c is usually quite large, and d quite low.&lt;br /&gt;
&lt;br /&gt;
One of the (6,24,12,0,0) solutions is &amp;lt;math&amp;gt;\Gamma_{220}+\Gamma_{202}+\Gamma_{022}+\Gamma_{112}+\Gamma_{211}&amp;lt;/math&amp;gt; (i.e. the set of points containing exactly two 1s, and/or exactly two 3s).  The other seven are reflections of this set.&lt;br /&gt;
&lt;br /&gt;
There are 2,765,200 41-point solutions, [http://abel.math.umu.se/~klasm/solutions-4-t=3-41-moser.gz listed here].  The statistics for such points can be [http://abel.math.umu.se/~klasm/Moser-41-stat.pdf found here].  Noteworthy features of the statistics:&lt;br /&gt;
&lt;br /&gt;
* d is at most 3 (and, except for [http://abel.math.umu.se/~klasm/moser-n=3-t=3-41-d=3.gz 256 exceptional solutions] of the shape (5,15,18,3,0), have d at most 2; here are the [http://abel.math.umu.se/~klasm/moser-n=3-t=3-41-d=2.gz d=2 solutions] and [http://abel.math.umu.se/~klasm/moser-n=3-t=3-41-d=1.gz d=1 solutions])&lt;br /&gt;
* c is at least 6 (and, except for [http://abel.math.umu.se/~klasm/moser-n=3-t=3-41-c=6.gz 16 exceptional solutions] of the shape (7,28,6,0,0), have c at least 11).&lt;br /&gt;
&lt;br /&gt;
Statistics for the 41-point, 42-point, and 43-point solutions can be found [http://spreadsheets.google.com/ccc?key=p5T0SktZY9DuqNcxJ171Bbw&amp;amp;hl=en here].&lt;br /&gt;
&lt;br /&gt;
If a Moser set in &amp;lt;math&amp;gt;[3]^4&amp;lt;/math&amp;gt; contains 2222, then by the n=3 theory, any middle slice (i.e. 2***, *2**, **2*, or ***2) is missing at least one antipodal pair.  But each antipodal pair belongs to at most three middle slices, thus two of the 40 antipodal pairs must be completely missing.  As a consequence, any Moser set containing 2222 can have at most 39 points.&lt;br /&gt;
(A more refined analysis can be found at [http://www.ma.rhul.ac.uk/~elsholtz/WWW/blog/mosertablogv01.pdf found here].)&lt;br /&gt;
&lt;br /&gt;
We have the following inequalities connecting a,b,c,d,e:&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;math&amp;gt;4a+b \leq 64&amp;lt;/math&amp;gt;:  There are 32 lines connecting two &amp;quot;a&amp;quot; points with a &amp;quot;b&amp;quot; point; each &amp;quot;a&amp;quot; point belongs to four of these lines, and each &amp;quot;b&amp;quot; point belongs to one.  But each such line can have at most two points in the set, and the claim follows.&lt;br /&gt;
* This can be refined to &amp;lt;math&amp;gt;4a+b+\frac{2}{3} c \leq 64&amp;lt;/math&amp;gt;: There are 24 planes connecting four &amp;quot;a&amp;quot; points, four &amp;quot;b&amp;quot; points, and one &amp;quot;c&amp;quot; point; each &amp;quot;a&amp;quot; point belongs to six of these, each &amp;quot;b&amp;quot; point belongs to three, and each &amp;quot;c&amp;quot; point belongs to one.  For each of these planes, we have &amp;lt;math&amp;gt;2a + b + 2c \leq 8&amp;lt;/math&amp;gt; from the n=2 theory, and the claim follows.&lt;br /&gt;
* &amp;lt;math&amp;gt;6a+2c \leq 96&amp;lt;/math&amp;gt;:  There are 96 lines connecting two &amp;quot;a&amp;quot; points with a &amp;quot;c&amp;quot; point; each &amp;quot;a&amp;quot; point belongs to six of these lines, and each &amp;quot;c&amp;quot; point belongs to two.  But each such line can have at most two points in the set, and the claim follows.&lt;br /&gt;
* &amp;lt;math&amp;gt;3b+2c \leq 96&amp;lt;/math&amp;gt;:  There are 48 lines connecting two &amp;quot;b&amp;quot; points to a &amp;quot;c&amp;quot; point; each &amp;quot;b&amp;quot; point belongs to three of these points, and each &amp;quot;c&amp;quot; point belongs to two.  But each such line can have at most two points in the set, and the claim follows.&lt;br /&gt;
&lt;br /&gt;
The inequalities for n=3 imply inequalities for n=4.  Indeed, there are eight side slices of &amp;lt;math&amp;gt;[3]^4&amp;lt;/math&amp;gt;; each &amp;quot;a&amp;quot; point belongs to four of these, each &amp;quot;b&amp;quot; point belongs to three, each &amp;quot;c&amp;quot; point belongs to two, and each &amp;quot;d&amp;quot; point belongs to one.  Thus, any inequality of the form&lt;br /&gt;
:&amp;lt;math&amp;gt; \alpha a + \beta b + \gamma c + \delta d \leq M&amp;lt;/math&amp;gt;&lt;br /&gt;
in three dimensions implies the inequality&lt;br /&gt;
:&amp;lt;math&amp;gt; 4 \alpha a + 3 \beta b + 2 \gamma c + \delta d \leq 8M&amp;lt;/math&amp;gt;&lt;br /&gt;
in four dimensions.  Thus we have&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;math&amp;gt;8a+3b+4c+4d \leq 176&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;2a+b+c+d \leq 48&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;14a+3b+4c+4d \leq 244&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;4a+b+c+d \leq 64&amp;lt;/math&amp;gt; &lt;br /&gt;
* &amp;lt;math&amp;gt;3b+2c+3d \leq 96&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;a+c+d \leq 28&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;5a+2c+2d \leq 80&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;a+d \leq 16&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;b+2d \leq 32&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;2c+3d \leq 48&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Cubes also sit diagonally in the 4-dimensional cube.  They may have coordinates xxyz, where xx runs over (11,22,33) or (13,22,31), while y and z run over (1,2,3).  These cubes have a different distribution of 2s than the ordinary slices: (a,b,c,d,e) = (8,8,6,4,1) instead of (8,12,6,1,0) for the side slices and (0,8,12,6,1) for the middle slices.  So a different set of inequalities arise.  It is possible to run through the same procedure as described above for n=3, and the inequalities that arise are &amp;lt;math&amp;gt;2a+b+2c+2d+4e \le 24&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;4a+b+2c+2d+4e \le 32&amp;lt;/math&amp;gt; within the 3D cube, which when averaged becomes &amp;lt;math&amp;gt;4a+b+2c+4d+16e \le 96&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;8a+b+2c+4d+16e \le 128&amp;lt;/math&amp;gt; for the 4D cube.  A spreadsheet containing these statistics can be [http://spreadsheets.google.com/ccc?key=p5T0SktZY9DuKZ2DyzO9EOg&amp;amp;hl=en# found here] on sheet 2.  Other sheets of this spreadsheet contain results for a 3D cube sitting diagonally in a 5D, 6D or 7D cube.  Notice the similarity of the equations that arise for the xxxyz, xxyyz and xxxxyz diagonals.  Also notice the xxxxyyz diagonals have the same Pareto sets and linear inequalities as the cube&#039;s c-statistics&lt;br /&gt;
&lt;br /&gt;
== n=5 ==&lt;br /&gt;
&lt;br /&gt;
Let (A,B,C,D,E,F) be the statistics of a five-dimensional Moser set, thus (A,B,C,D,E,F) varies between (0,0,0,0,0,0) and (32,80,80,40,10,1).&lt;br /&gt;
&lt;br /&gt;
There are several Moser sets with the statistics (4,40,80,0,0,0), which thus have 124 points.  Indeed, one can take&lt;br /&gt;
&lt;br /&gt;
* all points with two 2s;&lt;br /&gt;
* all points with one 2 and an even number of 1s; and&lt;br /&gt;
* (13111),(13113),(31311),(13333). Any two of these four points differ in three places, except for one pair of points that differ in one place.&lt;br /&gt;
&lt;br /&gt;
For the rest of this section, we assume that the Moser set &amp;lt;math&amp;gt;{\mathcal A}&amp;lt;/math&amp;gt; is a 125-point set.&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 1&#039;&#039;&#039;: F=0.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; If F is non-zero, then the Moser set contains 22222, then each of the 121 antipodal pairs can have at most one point in the set, leading to only 122 points. &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 2&#039;&#039;&#039;: Every middle slice of &amp;lt;math&amp;gt;{\mathcal A}&amp;lt;/math&amp;gt; has at most 41 points.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039;  Without loss of generality we may consider the 2**** slice.  There are two cases, depending on the value of c(2****).&lt;br /&gt;
&lt;br /&gt;
Suppose first that c is at least 17; thus there are at least 17 points of the form 222xy, 22xy2, 2xy22, or 2x22y, where the x, y denote 1 or 3.  This gives 36 &amp;quot;xy&amp;quot; wildcards in all in four coordinate slots; by the pigeonhole principle one of the slots sees at least 9 of the wildcards.  By symmetry, we may assume that the second coordinate slot sees at least 9 of these wildcards, thus there are at least 9 points of the form 2x22y, 2x2y2, 2xy22.  The x=1, x=3 cases can absorb at most six of these, thus each of these cases must absorb at least three points, with at least one absorbing at least five.  Let&#039;s say that it&#039;s the x=3 case that absorbs 5; thus &amp;lt;math&amp;gt;d(*1***) \geq 3&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;d(*3***) \geq 5&amp;lt;/math&amp;gt;.  From the n=4 theory this means that the *1*** slice has at most 41 points, and the *3*** slice has at most 40.  Meanwhile, the middle slice has at most 43, leading to 41+41+42=124 points in all.&lt;br /&gt;
&lt;br /&gt;
Now suppose c is less than 16; then by the n=4 theory the middle slice is one of the eight (6,24,12,0,0) sets.  Without loss of generality we may take it to be &amp;lt;math&amp;gt;\Gamma_{220}+\Gamma_{202}+\Gamma_{022}+\Gamma_{112}+\Gamma_{211}&amp;lt;/math&amp;gt;; in particular, the middle slice contains the points 21122 21212 21221 23322 23232 23223.  In particular, the *1*** and *3*** slices have a &amp;quot;d&amp;quot; value of at least three, and so have at most 41 points.  If the *2*** slice has at most 42 points, then we are at 41+42+41=124 points as needed, but if we have 43 or more, then we are back in the first case (as &amp;lt;math&amp;gt;c(*2***) \geq 17&amp;lt;/math&amp;gt;) after permuting the indices.&lt;br /&gt;
&amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Since 125=41+41+43, we thus have&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Corollary 1&#039;&#039;&#039;: Every side slice of &amp;lt;math&amp;gt;{\mathcal A}&amp;lt;/math&amp;gt; has at least 41 points.  If one side slice does have 41 points, then the other has 43.&lt;br /&gt;
&lt;br /&gt;
Combining this with the n=4 statistics, we conclude&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Corollary 2&#039;&#039;&#039;: Every side slice of &amp;lt;math&amp;gt;{\mathcal A}&amp;lt;/math&amp;gt; has e=0, and &amp;lt;math&amp;gt;d \leq 3&amp;lt;/math&amp;gt;.  Given two opposite side slices, e.g. 1**** and 3****, we have &amp;lt;math&amp;gt;d(1****)+d(3****) \leq 4&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Corollary 3&#039;&#039;&#039;: E=0.&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Corollary 4&#039;&#039;&#039;: Any middle slice has a &amp;quot;c&amp;quot; value of at most 8.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; Let&#039;s work with the 2**** slice.  By Corollary 2, there are at most four contributions to c(2****) of the form 21*** or 23***, and similarly for the other three positions.  Double counting then gives the claim. &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 3&#039;&#039;&#039;: &amp;lt;math&amp;gt;2B+C \leq 160&amp;lt;/math&amp;gt;.   &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039;: There are 160 lines connecting one &amp;quot;C&amp;quot; point to two &amp;quot;B&amp;quot; points (e.g. 11112, 11122, 11132); each &amp;quot;C&amp;quot; point lies in two of these, and each &amp;quot;B&amp;quot; point lies on four.  A Moser set can have at most two points out of each of these lines.  Double counting then gives the claim.  &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 4&#039;&#039;&#039; Given m A-points with &amp;lt;math&amp;gt;m \geq 5&amp;lt;/math&amp;gt;, there exists at least m-4 pairs (a,b) of such A-points with Hamming distance exactly two (i.e. b differs from a in exactly two places).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; It suffices to check this for m=5, since the case of larger m then follows by locating a pair, removing a point that contributes to that pair, and using the induction hypothesis.  Given 5 A-points, we may assume by the pigeonhole principle and symmetry that at least three of them have an odd number of 1s.  Suppose 11111 is one of the points, and that no pair has Hamming distance 2. All points with two 3s are excluded, so the only points allowed with an odd number of 1s are those with four 3s. But all those points differ from each other in two positions, so at most one of them is allowed.  &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Corollary 5&#039;&#039;&#039; &amp;lt;math&amp;gt;C \leq 79&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039;: Suppose for contradiction that C=80, then D=0 and &amp;lt;math&amp;gt;B \leq 40&amp;lt;/math&amp;gt;.  From Lemma 4 we also see that A cannot exceed 5, leading to the contradiction.&lt;br /&gt;
&amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Define the &#039;&#039;&#039;score&#039;&#039;&#039; of a Moser set in &amp;lt;math&amp;gt;[3]^4&amp;lt;/math&amp;gt; to be the quantity &amp;lt;math&amp;gt;a + 5b/4 + 5c/3 + 5d/2 + 5e&amp;lt;/math&amp;gt;.  Double-counting (and Lemma 2) gives&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 5&#039;&#039;&#039;  The total score of all the ten side-slices of &amp;lt;math&amp;gt;{\mathcal A}&amp;lt;/math&amp;gt; is equal to &amp;lt;math&amp;gt;5|{\mathcal A}| = 5 \times 125&amp;lt;/math&amp;gt;.  In particular, there exists a pair of opposite side-slices whose scores add up to at least 125.&lt;br /&gt;
&lt;br /&gt;
By Lemma 5 and symmetry, we may assume that the 1**** and 3**** slices have score adding up to at least 125.  By Lemma 2, the 2**** slice has at most 41 points, which imply that the 1**** and 3**** have 41, 42, or 43 points.  From the [http://spreadsheets.google.com/ccc?key=p5T0SktZY9DuqNcxJ171Bbw&amp;amp;hl=en n=4 statistics] we know that all 41-point, 42-point, 43-point slices have score less than 62, with the following exceptions:&lt;br /&gt;
&lt;br /&gt;
# (2,16,24,0,0) [42 points, score: 62]&lt;br /&gt;
# (4,16,23,0,0) [43 points, score: 62 1/3]&lt;br /&gt;
# (4,15,24,0,0) [43 points, score: 62 3/4]&lt;br /&gt;
# (3,16,24,0,0) [43 points, score: 63]&lt;br /&gt;
&lt;br /&gt;
Thus the 1**** and 3**** slices must from the above list.  Furthermore, if one of the slices is of type 1, then the other must be of type 4, and if one slice is of type 2, then the other must be of type 3 or 4.&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 6&#039;&#039;&#039; There exists one cut in which the side slices have total score strictly greater than 125 (i.e. they thus involve only Type 2, Type 3, and Type 4 slices, with at least one side slice not equal to Type 2, and the cut here is of the form 43+39+43).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; If not, then all cuts have side slices exactly equal to 125, which by the above table implies that one is Type 1 and one is Type 4, in particular all side slices have c=24.  But this forces C=80, contradicting Corollary 5. &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Adding up the corners we conclude&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Corollary 6&#039;&#039;&#039; &amp;lt;math&amp;gt;6 \leq A \leq 8&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 7&#039;&#039;&#039; &amp;lt;math&amp;gt;D=0&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; Firstly, from Lemma 6 we have a cut in which the two side slices are omitting at most one C-point between them (and have no D-point), which forces the middle slice to have at most one D-point; thus D is at most 1.&lt;br /&gt;
&lt;br /&gt;
Now suppose instead that D=1 (e.g. if 11222 was in the set); then there would be two choices of coordinates in which one of the side slices would have d=1 (e.g. 1**** and *1****). But the [http://spreadsheets.google.com/ccc?key=p5T0SktZY9DuqNcxJ171Bbw&amp;amp;hl=en n=4 statistics] show that such slices have a score of at most 59 7/12, so that the total score from those two coordinates is at most 63 + 59 7/12 = 122 7/12. On the other hand, the other three slices have a net score of at most 63+63 = 126. This averages out to at most 124.633... &amp;lt; 125, a contradiction.  &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Corollary 7&#039;&#039;&#039; Every middle slice has at most 40 points.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; From Lemma 7 we see that the middle slice must have c=0, but from the n=4 statistics this is not possible for any slice of size 41 or higher (alternatively, one can use the inequalities &amp;lt;math&amp;gt;4a+b \leq 64&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;b \leq 32&amp;lt;/math&amp;gt;). &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Each middle slice now has 39 or 40 points, with c=d=e=0, and so from the inequalities &amp;lt;math&amp;gt;4a+b \leq 64&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;b \leq 32&amp;lt;/math&amp;gt; must have statistics (8,32,0,0,0),(7,32,0,0,0), or (8,31,0,0,0).  In particular the &amp;quot;a&amp;quot; index of the middle slices is at most 8.  Summing over all middle slices we conclude&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 9&#039;&#039;&#039; B is at most 40.&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 10&#039;&#039;&#039; C is equal to 78 or 79.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; By Corollary 5, it suffices to show that &amp;lt;math&amp;gt;C \geq 78&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
As 125=43+39+43, we see that every center slice must have at least 39 points. By Lemma 2 and Lemma 7 the center slice has c=d=e=0, thus the center slice has a+b &amp;gt;= 39.  On the other hand, from the n=4 theory we have 4a+b &amp;lt;= 64, which forces b &amp;gt;= 31.&lt;br /&gt;
&lt;br /&gt;
By double counting, we see that 2C is equal to the sum of the b&#039;s of all the five center slices.  Thus C &amp;gt;= 5*31/2 = 77.5 and the claim follows.  &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
From Lemmas 9 and 10 we see that &amp;lt;math&amp;gt;B+C \leq 119&amp;lt;/math&amp;gt;, and thus &amp;lt;math&amp;gt;A \geq 6&amp;lt;/math&amp;gt;.  Also, if &amp;lt;math&amp;gt;A \geq 7&amp;lt;/math&amp;gt;, then by Lemma 4 we have at least three pairs of A points with Hamming distance 2.  At most two of these pairs eliminate the same C point, so we would have C=78 in that case.  &lt;br /&gt;
&lt;br /&gt;
Putting all the above facts together, we see that (A,B,C,D,E,F) must be one of the following triples:&lt;br /&gt;
&lt;br /&gt;
* (6,40,79,0,0,0)&lt;br /&gt;
* (7,40,78,0,0,0)&lt;br /&gt;
* (8,39,78,0,0,0)&lt;br /&gt;
&lt;br /&gt;
All three cases can be eliminated, giving &amp;lt;math&amp;gt;c&#039;_5=124&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== Elimination of (6,40,79,0,0,0) ===&lt;br /&gt;
&lt;br /&gt;
Look at the 6 A points.  From Lemma 4 we have at least two pairs (a,b), (c,d) of A-points that have Hamming separation 2.&lt;br /&gt;
&lt;br /&gt;
Now look at the midpoints of these two pairs; these midpoints are C-points cannot lie in the set.  But we have exactly one C-point missing from the set, thus the midpoints must be the same.  By symmetry, we may thus assume that the two pairs are (11111,11133) and (11113,11131).  Thus 11111,11133, 11113, 11131 are in the set, and so every C-point other than 11122 is in the set.  On the other hand, the B-points 11121, 11123, 11112, 11132 lie outside the set.&lt;br /&gt;
&lt;br /&gt;
At most one of 11312, 11332 lie in the set (since 11322 lies in the set).   Suppose that 11312 lies outside the set, then we have a pair (xy1z2, xy3z2) with x,y,z = 1,3 that is totally omitted from the set, namely (11112,11312).  On the other hand, every other pair of this form can have at most point in the set, thus there are at most seven points in the set of the form (xyzw2) with x,y,z,w = 1,3.  Similarly there are at most 8 points of the form xyz2w, or of xy2zw, x2yzw, 2xyzw, leading to at most 39 B-points in all, contradiction.&lt;br /&gt;
&lt;br /&gt;
=== Elimination of (7,40,78,0,0,0) ===&lt;br /&gt;
&lt;br /&gt;
By Lemma 4, we have at least three pairs of A-points of distance two apart that lie in the set.&lt;br /&gt;
The midpoints of these pairs are C-points that do not lie in the set; but there are only two such C-points, thus two pairs must have the same midpoint, so we may assume as before that 111xy lies in the set for x,y=1,3, which implies that 1112* and 111*2 lie outside the set.&lt;br /&gt;
&lt;br /&gt;
Now consider the 160 lines between 2 B points and one C point (cf. Lemma 3).  The sum of all the points in each such line (counting multiplicity) is 4B+2C = 316.  On the other hand, every one of the 160 lines can have at most two points, and four of these lines (namely 1112*, 111*2) have no points.  Thus all the other lines must have exactly two points.  &lt;br /&gt;
&lt;br /&gt;
We know that the C-point 11122 is missing from the set; there is one other missing C-point.  Since 1112x, 111x2 lie outside the set, we conclude from the previous paragraph that 1132x, 113x2 and 1312x, 131x2 lie in the set.  Taking midpoints we conclude that 11322 and 13122 lie outside the set.  But this is now three C-points missing (together with 11122), a contradiction.&lt;br /&gt;
&lt;br /&gt;
=== Elimination of (8,39,78,0,0,0) ===&lt;br /&gt;
&lt;br /&gt;
By Lemma 4 we have at least four pairs of A-points of distance two apart that lie in the set. The midpoints of these pairs are C-points that do not lie in the set; but there are only two such C-points, thus two pairs (a,b), (c,d) must have the same midpoint p, and the other two pairs (a&#039;,b&#039;), (c&#039;,d&#039;) must also have the same midpoint p&#039;.  (Note that every C-point is the midpoint of at most two such pairs.)&lt;br /&gt;
&lt;br /&gt;
Now consider the 160 lines between 2 B points and one C point (cf. Lemma 3).  The sum of all the points in each such line (counting multiplicity) is 4B+2C = 312.  Every one of the 160 lines can have at most two points, and four of these (those in the plane of (a,b,c,d) or of (a&#039;,b&#039;,c&#039;,d&#039;) have no points.  Thus all other lines must have exactly two points.&lt;br /&gt;
&lt;br /&gt;
Without loss of generality we have (a,b)=(11111,11133), (c,d) = (11113,11131), thus p = 11122.  By permuting the first three indices, we may assume that p&#039; is not of the form x2y2z, x2yz2, xy22z, xy2z2.  Then 1112x lies outside the set and 1122x lies in the set, so by the above paragraph 1132x lies in the set; similarly for 113x2, 1312x, 131x2.  This implies that 13122, 11322 lie outside the set, but this (together with 11122) shows that at least three C-points are missing, a contradiction.&lt;br /&gt;
&lt;br /&gt;
== General n ==&lt;br /&gt;
&lt;br /&gt;
General solution for &amp;lt;math&amp;gt;c&#039;_N&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* q 2s, all points from A(N-q,1)&lt;br /&gt;
* q-1 2s, points from A(N-q+1,2)&lt;br /&gt;
* q-2 2s, points from A(N-q+2,3)&lt;br /&gt;
* etc.&lt;br /&gt;
&lt;br /&gt;
where A(m,d) is a subset of &amp;lt;math&amp;gt;[1,3]^m&amp;lt;/math&amp;gt; for which any two points differ from each other in at least d places.&lt;br /&gt;
&lt;br /&gt;
Mathworld’s entry on error-correcting codes suggests it might be NP-complete to find the size of A(m,d) in general.&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;math&amp;gt;|A(m,1)| = 2^m&amp;lt;/math&amp;gt; because it includes all points in &amp;lt;math&amp;gt;[1,3]^m&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;|A(m,2)| = 2^{m-1}&amp;lt;/math&amp;gt; because it can include all points in &amp;lt;math&amp;gt;[1,3]^m&amp;lt;/math&amp;gt; with an odd number of 1s&lt;br /&gt;
&lt;br /&gt;
The integer programming routine from Maple 12 was used to obtain upper bounds for &amp;lt;math&amp;gt;c&#039;_6&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;c&#039;_7&amp;lt;/math&amp;gt;.  A large number of linear inequalities, described above in sections (n=3) and (n=4), were combined.  The details are in [[Maple calculations]].  The results were that &amp;lt;math&amp;gt;c&#039;_6 \le 361&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;c&#039;_7 \le 1071&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
A [[genetic algorithm]] has provided the following examples:&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;math&amp;gt;c&#039;_6 \geq 353&amp;lt;/math&amp;gt; (26 examples; [http://twofoldgaze.wordpress.com/2009/03/10/353-element-solution/ here is one])&lt;br /&gt;
* &amp;lt;math&amp;gt;c&#039;_7 \geq 988&amp;lt;/math&amp;gt; [http://twofoldgaze.wordpress.com/2009/03/10/978-element-solution/ Here is the example]&lt;br /&gt;
&lt;br /&gt;
== Larger sides (k&amp;gt;3) ==&lt;br /&gt;
&lt;br /&gt;
The following set gives a lower bound for Moser’s cube &amp;lt;math&amp;gt;[4]^n&amp;lt;/math&amp;gt; (values 1,2,3,4):  Pick all points where q entries are 2 or 3; and also pick those where q-1 entries are 2 or 3 and an odd number of entries are 1.  This is maximized when q is near n/2, giving a lower bound of&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\binom{n}{n/2} 2^n + \binom{n}{n/2-1} 2^{n-1}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
which is comparable to &amp;lt;math&amp;gt;4^n/\sqrt{n}&amp;lt;/math&amp;gt; by [[Stirling&#039;s formula]].&lt;br /&gt;
&lt;br /&gt;
For k=5 (values 1,2,3,4,5) If A, B, C, D, and E denote the numbers of 1-s, 2-s, 3-s, 4-s and 5-s then the first three points of a geometric line form a 3-term arithmetic progression in A+E+2(B+D)+3C. So, for k=5 we have a similar lower bound for the Moser’s problem as for DHJ k=3, i.e. &amp;lt;math&amp;gt;5^{n - O(\sqrt{\log n})}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
The k=6 version of Moser implies DHJ(3).  Indeed, any k=3 combinatorial line-free set can be &amp;quot;doubled up&amp;quot; into a k=6 geometric line-free set of the same density by pulling back the set from the map &amp;lt;math&amp;gt;\phi: [6]^n \to [3]^n&amp;lt;/math&amp;gt; that maps 1, 2, 3, 4, 5, 6 to 1, 2, 3, 3, 2, 1 respectively; note that this map sends k=6 geometric lines to k=3 combinatorial lines.&lt;/div&gt;</summary>
		<author><name>121.220.134.232</name></author>
	</entry>
	<entry>
		<id>https://michaelnielsen.org/polymath/index.php?title=Moser%27s_cube_problem&amp;diff=1026</id>
		<title>Moser&#039;s cube problem</title>
		<link rel="alternate" type="text/html" href="https://michaelnielsen.org/polymath/index.php?title=Moser%27s_cube_problem&amp;diff=1026"/>
		<updated>2009-03-21T04:08:36Z</updated>

		<summary type="html">&lt;p&gt;121.220.134.232: /* n=2 */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Define a &#039;&#039;Moser set&#039;&#039; to be a subset of &amp;lt;math&amp;gt;[3]^n&amp;lt;/math&amp;gt; which does not contain any [[geometric line]], and let &amp;lt;math&amp;gt;c&#039;_n&amp;lt;/math&amp;gt; denote the size of the largest Moser set in &amp;lt;math&amp;gt;[3]^n&amp;lt;/math&amp;gt;.  The first few values are (see [http://www.research.att.com/~njas/sequences/A003142 OEIS A003142]):&lt;br /&gt;
&lt;br /&gt;
: &amp;lt;math&amp;gt;c&#039;_0 = 1; c&#039;_1 = 2; c&#039;_2 = 6; c&#039;_3 = 16; c&#039;_4 = 43; c&#039;_5 = 124.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Beyond this point, we only have some upper and lower bounds, in particular &amp;lt;math&amp;gt;353 \leq c&#039;_6 \leq 361&amp;lt;/math&amp;gt;; see [http://spreadsheets.google.com/ccc?key=p5T0SktZY9DsU-uZ1tK7VEg this spreadsheet] for the latest bounds.&lt;br /&gt;
&lt;br /&gt;
The best known asymptotic lower bound for &amp;lt;math&amp;gt;c&#039;_n&amp;lt;/math&amp;gt; is&lt;br /&gt;
&lt;br /&gt;
: &amp;lt;math&amp;gt;c&#039;_n \gg 3^n/\sqrt{n}&amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
formed by fixing the number of 2s to a single value near n/3.  Compare this to the DHJ(2) or Sperner limit of &amp;lt;math&amp;gt;2^n/\sqrt{n}&amp;lt;/math&amp;gt;.  Is it possible to do any better?  Note that we have a [[Upper_and_lower_bounds#Asymptotics|significantly better bound]] for the DHJ(3) &amp;lt;math&amp;gt;c_n&amp;lt;/math&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
: &amp;lt;math&amp;gt;c_n \geq 3^{n-O(\sqrt{\log n})}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
A more precise lower bound is&lt;br /&gt;
&lt;br /&gt;
: &amp;lt;math&amp;gt;c&#039;_n \geq \binom{n+1}{q} 2^{n-q}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where q is the nearest integer to &amp;lt;math&amp;gt;n/3&amp;lt;/math&amp;gt;, formed by taking all strings with q 2s, together with all strings with q-1 2s and an odd number of 1s.  This for instance gives the lower bound &amp;lt;math&amp;gt;c&#039;_5 \geq 120&amp;lt;/math&amp;gt;, which compares with the upper bound &amp;lt;math&amp;gt;c&#039;_5 \leq 3 c&#039;_4 = 129&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Using [[DHJ(3)]], we have the upper bound&lt;br /&gt;
&lt;br /&gt;
: &amp;lt;math&amp;gt;c&#039;_n = o(3^n)&amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
but no effective decay rate is known. It would be good to have a combinatorial proof of this fact (which is weaker than [[DHJ(3)]], but implies [[Roth&#039;s theorem]]).&lt;br /&gt;
&lt;br /&gt;
== Notation ==&lt;br /&gt;
&lt;br /&gt;
Given a Moser set A in &amp;lt;math&amp;gt;[3]^n&amp;lt;/math&amp;gt;, we let a be the number of points in A with no 2s, b be the number of points in A with one 2, c the number of points with two 2s, etc.  We call (a,b,c,...) the &#039;&#039;statistics&#039;&#039; of A.  Given a slice S of &amp;lt;math&amp;gt;[3]^n&amp;lt;/math&amp;gt;, we let a(S), b(S), etc. denote the statistics of that slice (dropping the fixed coordinates).  Thus for instance if A = {11, 12, 22, 32}, then (a,b,c) = (1,2,1), and (a(1*),b(1*)) = (1,1).&lt;br /&gt;
&lt;br /&gt;
We call a statistic (a,b,c,...) &#039;&#039;attainable&#039;&#039; if it is attained by a Moser set.  We say that an attainable statistic is &#039;&#039;Pareto-optimal&#039;&#039; if it cannot be pointwise dominated by any other attainable statistic (a&#039;,b&#039;,c&#039;,...) (thus &amp;lt;math&amp;gt;a&#039; \geq a&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;b&#039; \geq b&amp;lt;/math&amp;gt;, etc.)  We say that it is &#039;&#039;extremal&#039;&#039; if it is not a convex combination of any other attainable statistic (this is a stronger property than Pareto-optimal).  For the purposes of maximising linear scores of attainable statistics, it suffices to check extremal statistics.&lt;br /&gt;
&lt;br /&gt;
We let &amp;lt;math&amp;gt;(\alpha_0,\alpha_1,\ldots)&amp;lt;/math&amp;gt; be the normalized version of &amp;lt;math&amp;gt;(a,b,\ldots)&amp;lt;/math&amp;gt;, in which one divides the number of points of a certain type in the set by the total number of points in the set.  Thus for instance &amp;lt;math&amp;gt;\alpha_0 = a/2^n, \alpha_1 = b/(n 2^{n-1}), \alpha_3 = c/(\binom{n}{2} 2^{n-2})&amp;lt;/math&amp;gt;, etc., and the &amp;lt;math&amp;gt;\alpha_i&amp;lt;/math&amp;gt; range between 0 and 1.  Averaging arguments show that any linear inequality obeyed by the &amp;lt;math&amp;gt;\alpha_i&amp;lt;/math&amp;gt; at one dimension is automatically inherited by higher dimensions, as are shifted versions of this inequality (in which &amp;lt;math&amp;gt;\alpha_i&amp;lt;/math&amp;gt; is replaced by &amp;lt;math&amp;gt;\alpha_{i+1}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
The idea in &#039;c-statistics&#039; is to identify 1s and 3s but leave the 2s intact. Let’s use x to denote letters that are either 1 or 3, then the 81 points get split up into 16 groups: 2222 (1 point), 222x, 22×2, 2×22, x222 (two points each), 22xx, 2×2x, x22x, 2xx2, x2×2, xx22 (four points each), 2xxx, x2xx, xx2x, xxx2 (eight points each), xxxx (sixteen points). Let c(w) denote the number of points inside a group w, e.g. c(xx22) is the number of points of the form xx22 inside the set, and is thus an integer from 0 to 4.&lt;br /&gt;
&lt;br /&gt;
== n=0 ==&lt;br /&gt;
&lt;br /&gt;
We trivially have &amp;lt;math&amp;gt;c&#039;_0=1.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== n=1 ==&lt;br /&gt;
&lt;br /&gt;
We trivially have &amp;lt;math&amp;gt;c&#039;_1=2.&amp;lt;/math&amp;gt;  The Pareto-optimal values of the statistics (a,b) are (1,1) and (2,0); these are also the extremals.  We thus have the inequality &amp;lt;math&amp;gt;a+b \leq 2&amp;lt;/math&amp;gt;, or in normalized notation&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;2\alpha_0 + \alpha_1 \leq 2&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== n=2 ==&lt;br /&gt;
&lt;br /&gt;
We have &amp;lt;math&amp;gt;c&#039;_2 = 6&amp;lt;/math&amp;gt;; the upper bound follows since &amp;lt;math&amp;gt;c&#039;_2 \leq 3 c&#039;_1&amp;lt;/math&amp;gt;, and the lower bound follows by deleting one of the two diagonals from &amp;lt;math&amp;gt;[3]^2&amp;lt;/math&amp;gt; (these are the only extremisers).&lt;br /&gt;
&lt;br /&gt;
The extremiser has statistics (a,b,c) = (2,4,0), which are of course Pareto-optimal.  If c=1 then we must have a, b at most 2 (look at the lines through 22).  This is attainable (e.g. {11, 12, 22, 23, 31}, and so (2,2,1) is another Pareto-optimal statistic.  If a=4, then b and c must be 0, so we get another Pareto-optimal statistic (4,0,0) (attainable by {11, 13, 31, 33} of course).  If a=3, then c=0 and b is at most 2, giving another Pareto-optimal statistic (3,2,0); but this is a convex combination of (4,0,0) and (2,4,0) and is thus not extremal.  Thus the complete set of extremal statistics are&lt;br /&gt;
&lt;br /&gt;
(4,0,0), (2,4,0), (2,2,1).&lt;br /&gt;
&lt;br /&gt;
The sharp linear inequalities obeyed by a,b,c (other than the trivial ones &amp;lt;math&amp;gt;a,b,c \geq 0&amp;lt;/math&amp;gt;) are then&lt;br /&gt;
&lt;br /&gt;
*&amp;lt;math&amp;gt;2a+b+2c \leq 8&amp;lt;/math&amp;gt;&lt;br /&gt;
*&amp;lt;math&amp;gt;b+2c \leq 4&amp;lt;/math&amp;gt;&lt;br /&gt;
*&amp;lt;math&amp;gt;a+2c \leq 4&amp;lt;/math&amp;gt;&lt;br /&gt;
*&amp;lt;math&amp;gt;c \leq 1&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
In normalized notation, we have&lt;br /&gt;
*&amp;lt;math&amp;gt;4\alpha_0 + 2\alpha_1 + \alpha_2 \leq 4&amp;lt;/math&amp;gt;&lt;br /&gt;
*&amp;lt;math&amp;gt;2\alpha_1 + \alpha_2 \leq 2&amp;lt;/math&amp;gt;&lt;br /&gt;
*&amp;lt;math&amp;gt;2\alpha_0 + \alpha_2 \leq 2&amp;lt;/math&amp;gt;&lt;br /&gt;
*&amp;lt;math&amp;gt;\alpha_2 \leq 1&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
The Pareto optimizers for c-statistics are (c22,c2x,cx2,cxx) = (1112),(0222),(0004), which are covered by the linear inequalities c22+c2x+cxx &amp;lt;= 4, c22+cx2+cxx &amp;lt;= 4.&lt;br /&gt;
&lt;br /&gt;
== n=3 ==&lt;br /&gt;
&lt;br /&gt;
We have &amp;lt;math&amp;gt;c&#039;_3 = 16&amp;lt;/math&amp;gt;.  The lower bound can be seen for instance by taking all the strings with one 2, and half the strings with no 2 (e.g. the strings with an odd number of 1s).  The upper bound can be deduced from the corresponding [[upper and lower bounds]] for &amp;lt;math&amp;gt;c_3 = 18&amp;lt;/math&amp;gt;; the 17-point and 18-point line-free sets each contain a geometric line.&lt;br /&gt;
&lt;br /&gt;
If a Moser set in &amp;lt;math&amp;gt;[3]^3&amp;lt;/math&amp;gt; contains 222, then it can have at most 14 points, since the remaining 26 points in the cube split into 13 antipodal pairs, and at most one of each pair can lie in the set.  By exhausting over the &amp;lt;math&amp;gt;2^{13} = 8192&amp;lt;/math&amp;gt; possibilities, it can be shown that it is impossible for a 14-point set to exist; any Moser set containing 222 must in fact omit at least one antipodal pair completely and thus have only 13 points.  (A human proof of this fact can be [http://www.ma.rhul.ac.uk/~elsholtz/WWW/blog/mosertablogv01.pdf found here].)&lt;br /&gt;
&lt;br /&gt;
The Pareto-optimal statistics are&lt;br /&gt;
&lt;br /&gt;
(3,6,3,1),(4,4,3,1),(4,6,2,1),(2,6,6,0),(3,6,5,0),(4,4,5,0),(3,7,4,0),(4,6,4,0), (3,9,3,0),(4,7,3,0),(5,4,3,0),(4,9,2,0),(5,6,2,0),(6,3,2,0),(3,10,1,0),(5,7,1,0), (6,4,1,0),(4,12,0,0),(5,9,0,0),(6,6,0,0),(7,3,0,0),(8,0,0,0).&lt;br /&gt;
&lt;br /&gt;
These were found from a search of the &amp;lt;math&amp;gt;2^{27}&amp;lt;/math&amp;gt; subsets of the cube.&lt;br /&gt;
A spreadsheet containing these statistics can be [http://spreadsheets.google.com/ccc?key=p5T0SktZY9DuKZ2DyzO9EOg&amp;amp;hl=en# found here].&lt;br /&gt;
&lt;br /&gt;
The extremal statistics are&lt;br /&gt;
&lt;br /&gt;
(3,6,3,1),(4,4,3,1),(4,6,2,1),(2,6,6,0),(4,4,5,0),(4,6,4,0),(4,12,0,0),(8,0,0,0)&lt;br /&gt;
&lt;br /&gt;
The sharp linear bounds are :&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;math&amp;gt;2a+b+2c+4d \leq 22&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;3a+2b+3c+6d \leq 36&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;7a+2b+4c+8d \leq 56&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;6a+2b+3c+6d \leq 48&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;b+c+3d \leq 12&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;a+2c+4d \leq 14&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;5a+4c+8d \leq 40&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;a+4d \leq 8&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;b+6d \leq 12&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;c+3d \leq 6&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;d \leq 1&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In normalized notation,&lt;br /&gt;
* &amp;lt;math&amp;gt;8\alpha_0+ 6\alpha_1 + 6\alpha_2 + 2\alpha_3 \leq 11&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;4\alpha_0+4\alpha_1+3\alpha_2+\alpha_3 \leq 6&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;7\alpha_0+3\alpha_1+3\alpha_2+\alpha_3 \leq 7&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;8\alpha_0+3\alpha_1+3\alpha_2+\alpha_3 \leq 8&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;4\alpha_1+2\alpha_2+\alpha_3 \leq 4&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;4\alpha_0+6\alpha_2+2\alpha_3 \leq 7&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;5\alpha_0+3\alpha_2+\alpha_3 \leq 5&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;2\alpha_0+\alpha_3 \leq 2&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;2\alpha_1+\alpha_3 \leq 2&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;2\alpha_2+\alpha_3 \leq 2&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;\alpha_3 \leq 1&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The c-statistics can also be found from an exhaustive search of Moser sets.  The resulting Pareto sets and linear inequalities can be found on Sheet 8 of [http://spreadsheets.google.com/ccc?key=p5T0SktZY9DuKZ2DyzO9EOg&amp;amp;hl=en# this spreadsheet]&lt;br /&gt;
&lt;br /&gt;
== n=4 ==&lt;br /&gt;
&lt;br /&gt;
A [http://abel.math.umu.se/~klasm/extremal-moser-n=5-t=3 computer search] has obtained all extremisers to &amp;lt;math&amp;gt;c&#039;_4=43&amp;lt;/math&amp;gt;.  The 42-point solutions can be found [http://abel.math.umu.se/~klasm/moser-n=4-t=3-p=42.gz here].&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof that &amp;lt;math&amp;gt;c&#039;_4 \leq 43&amp;lt;/math&amp;gt;&#039;&#039;&#039;: &lt;br /&gt;
When e=1 (i.e. the 4D set contains 2222) then we have at most 41 points (in fact at most 39) by counting antipodal points, so assume e=0.&lt;br /&gt;
&lt;br /&gt;
Define the score of a 3D slice to be a/4+b/3+c/2+d.  Observe from double counting that the size of a 4D set is the sum of the scores of its eight side slices.&lt;br /&gt;
&lt;br /&gt;
But by [http://spreadsheets.google.com/ccc?key=p5T0SktZY9DuKZ2DyzO9EOg&amp;amp;hl=en looking at the extremals] we see that the largest score is 44/8, attained at only one point, namely when (a,b,c,d) = (2,6,6,0).  So the only way one can have a 44-point set is if all side slices are (2,6,6,0), or equivalently if the whole set has statistics (a,b,c,d,e) = (4,16,24,0,0).  But then we have all the points with two 2s, which means that the four &amp;quot;a&amp;quot; points cannot be separated by Hamming distance 2.  We conclude that we must have an antipodal pair among the &amp;quot;a&amp;quot; points with an odd number of 1s, and an antipodal pair among the &amp;quot;a&amp;quot; points with an even number of 1s.    By the symmetries of the cube, we may take the a-set to then be 1111, 3333, 1113, 3331.  But then the &amp;quot;b&amp;quot; set must exclude both 1112 and 3332, and so can have at most three points in the eight-point set xyz2 (with x,y,z=1,3) rather than four (to get four points one must alternate in a checkerboard pattern).  Adding this to the at most four points of the form xy2z, x2yz, 2xyz we see that b is at most 16, a contradiction. &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Given a subset of &amp;lt;math&amp;gt;[3]^4&amp;lt;/math&amp;gt;, let a be the number of points with no 2s, b be the number of points with 1 2, and so forth.  The quintuple (a,b,c,d,e) thus lies between (0,0,0,0,0) and (16,32,24,8,1).&lt;br /&gt;
&lt;br /&gt;
The 43-point solutions have distributions (a,b,c,d,e) as follows:&lt;br /&gt;
&lt;br /&gt;
* (5,20,18,0,0) [16 solutions]&lt;br /&gt;
* (4,16,23,0,0) [768 solutions]&lt;br /&gt;
* (3,16,24,0,0) [512 solutions]&lt;br /&gt;
* (4,15,24,0,0) [256 solutions]&lt;br /&gt;
&lt;br /&gt;
The 42-point solutions are [http://abel.math.umu.se/~klasm/Moser-42-stat.pdf distributed as follows]:&lt;br /&gt;
&lt;br /&gt;
* (6,24,12,0,0) [[http://abel.math.umu.se/~klasm/moser-n=4-42-12 8 solutions]] &lt;br /&gt;
* (5,20,17,0,0) [576 solutions]&lt;br /&gt;
* (5,19,18,0,0) [384 solutions]&lt;br /&gt;
* (6,16,18,2,0) [[http://abel.math.umu.se/~klasm/moser-n=4-42-e=2 192 solutions]]&lt;br /&gt;
* (4,20,18,0,0) [272 solutions]&lt;br /&gt;
* (5,17,20,0,0) [192 solutions]&lt;br /&gt;
* (5,16,21,0,0) [3584 solutions]&lt;br /&gt;
* (4,17,21,0,0) [768 solutions]&lt;br /&gt;
* (4,16,22,0,0) [26880 solutions]&lt;br /&gt;
* (5,15,22,0,0) [1536 solutions]&lt;br /&gt;
* (4,15,23,0,0) [22272 solutions]&lt;br /&gt;
* (3,16,23,0,0) [15744 solutions]&lt;br /&gt;
* (4,14,24,0,0) [4224 solutions]&lt;br /&gt;
* (3,15,24,0,0) [8704 solutions]&lt;br /&gt;
* (2,16,24,0,0) [896 solutions]&lt;br /&gt;
&lt;br /&gt;
Note how c is usually quite large, and d quite low.&lt;br /&gt;
&lt;br /&gt;
One of the (6,24,12,0,0) solutions is &amp;lt;math&amp;gt;\Gamma_{220}+\Gamma_{202}+\Gamma_{022}+\Gamma_{112}+\Gamma_{211}&amp;lt;/math&amp;gt; (i.e. the set of points containing exactly two 1s, and/or exactly two 3s).  The other seven are reflections of this set.&lt;br /&gt;
&lt;br /&gt;
There are 2,765,200 41-point solutions, [http://abel.math.umu.se/~klasm/solutions-4-t=3-41-moser.gz listed here].  The statistics for such points can be [http://abel.math.umu.se/~klasm/Moser-41-stat.pdf found here].  Noteworthy features of the statistics:&lt;br /&gt;
&lt;br /&gt;
* d is at most 3 (and, except for [http://abel.math.umu.se/~klasm/moser-n=3-t=3-41-d=3.gz 256 exceptional solutions] of the shape (5,15,18,3,0), have d at most 2; here are the [http://abel.math.umu.se/~klasm/moser-n=3-t=3-41-d=2.gz d=2 solutions] and [http://abel.math.umu.se/~klasm/moser-n=3-t=3-41-d=1.gz d=1 solutions])&lt;br /&gt;
* c is at least 6 (and, except for [http://abel.math.umu.se/~klasm/moser-n=3-t=3-41-c=6.gz 16 exceptional solutions] of the shape (7,28,6,0,0), have c at least 11).&lt;br /&gt;
&lt;br /&gt;
Statistics for the 41-point, 42-point, and 43-point solutions can be found [http://spreadsheets.google.com/ccc?key=p5T0SktZY9DuqNcxJ171Bbw&amp;amp;hl=en here].&lt;br /&gt;
&lt;br /&gt;
If a Moser set in &amp;lt;math&amp;gt;[3]^4&amp;lt;/math&amp;gt; contains 2222, then by the n=3 theory, any middle slice (i.e. 2***, *2**, **2*, or ***2) is missing at least one antipodal pair.  But each antipodal pair belongs to at most three middle slices, thus two of the 40 antipodal pairs must be completely missing.  As a consequence, any Moser set containing 2222 can have at most 39 points.&lt;br /&gt;
(A more refined analysis can be found at [http://www.ma.rhul.ac.uk/~elsholtz/WWW/blog/mosertablogv01.pdf found here].)&lt;br /&gt;
&lt;br /&gt;
We have the following inequalities connecting a,b,c,d,e:&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;math&amp;gt;4a+b \leq 64&amp;lt;/math&amp;gt;:  There are 32 lines connecting two &amp;quot;a&amp;quot; points with a &amp;quot;b&amp;quot; point; each &amp;quot;a&amp;quot; point belongs to four of these lines, and each &amp;quot;b&amp;quot; point belongs to one.  But each such line can have at most two points in the set, and the claim follows.&lt;br /&gt;
* This can be refined to &amp;lt;math&amp;gt;4a+b+\frac{2}{3} c \leq 64&amp;lt;/math&amp;gt;: There are 24 planes connecting four &amp;quot;a&amp;quot; points, four &amp;quot;b&amp;quot; points, and one &amp;quot;c&amp;quot; point; each &amp;quot;a&amp;quot; point belongs to six of these, each &amp;quot;b&amp;quot; point belongs to three, and each &amp;quot;c&amp;quot; point belongs to one.  For each of these planes, we have &amp;lt;math&amp;gt;2a + b + 2c \leq 8&amp;lt;/math&amp;gt; from the n=2 theory, and the claim follows.&lt;br /&gt;
* &amp;lt;math&amp;gt;6a+2c \leq 96&amp;lt;/math&amp;gt;:  There are 96 lines connecting two &amp;quot;a&amp;quot; points with a &amp;quot;c&amp;quot; point; each &amp;quot;a&amp;quot; point belongs to six of these lines, and each &amp;quot;c&amp;quot; point belongs to two.  But each such line can have at most two points in the set, and the claim follows.&lt;br /&gt;
* &amp;lt;math&amp;gt;3b+2c \leq 96&amp;lt;/math&amp;gt;:  There are 48 lines connecting two &amp;quot;b&amp;quot; points to a &amp;quot;c&amp;quot; point; each &amp;quot;b&amp;quot; point belongs to three of these points, and each &amp;quot;c&amp;quot; point belongs to two.  But each such line can have at most two points in the set, and the claim follows.&lt;br /&gt;
&lt;br /&gt;
The inequalities for n=3 imply inequalities for n=4.  Indeed, there are eight side slices of &amp;lt;math&amp;gt;[3]^4&amp;lt;/math&amp;gt;; each &amp;quot;a&amp;quot; point belongs to four of these, each &amp;quot;b&amp;quot; point belongs to three, each &amp;quot;c&amp;quot; point belongs to two, and each &amp;quot;d&amp;quot; point belongs to one.  Thus, any inequality of the form&lt;br /&gt;
:&amp;lt;math&amp;gt; \alpha a + \beta b + \gamma c + \delta d \leq M&amp;lt;/math&amp;gt;&lt;br /&gt;
in three dimensions implies the inequality&lt;br /&gt;
:&amp;lt;math&amp;gt; 4 \alpha a + 3 \beta b + 2 \gamma c + \delta d \leq 8M&amp;lt;/math&amp;gt;&lt;br /&gt;
in four dimensions.  Thus we have&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;math&amp;gt;8a+3b+4c+4d \leq 176&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;2a+b+c+d \leq 48&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;14a+3b+4c+4d \leq 244&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;4a+b+c+d \leq 64&amp;lt;/math&amp;gt; &lt;br /&gt;
* &amp;lt;math&amp;gt;3b+2c+3d \leq 96&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;a+c+d \leq 28&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;5a+2c+2d \leq 80&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;a+d \leq 16&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;b+2d \leq 32&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;2c+3d \leq 48&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Cubes also sit diagonally in the 4-dimensional cube.  They may have coordinates xxyz, where xx runs over (11,22,33) or (13,22,31), while y and z run over (1,2,3).  These cubes have a different distribution of 2s than the ordinary slices: (a,b,c,d,e) = (8,8,6,4,1) instead of (8,12,6,1,0) for the side slices and (0,8,12,6,1) for the middle slices.  So a different set of inequalities arise.  It is possible to run through the same procedure as described above for n=3, and the inequalities that arise are &amp;lt;math&amp;gt;2a+b+2c+2d+4e \le 24&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;4a+b+2c+2d+4e \le 32&amp;lt;/math&amp;gt; within the 3D cube, which when averaged becomes &amp;lt;math&amp;gt;4a+b+2c+4d+16e \le 96&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;8a+b+2c+4d+16e \le 128&amp;lt;/math&amp;gt; for the 4D cube.  A spreadsheet containing these statistics can be [http://spreadsheets.google.com/ccc?key=p5T0SktZY9DuKZ2DyzO9EOg&amp;amp;hl=en# found here] on sheet 2.  Other sheets of this spreadsheet contain results for a 3D cube sitting diagonally in a 5D, 6D or 7D cube.  Notice the similarity of the equations that arise for the xxxyz, xxyyz and xxxxyz diagonals.  Also notice the xxxxyyz diagonals have the same Pareto sets and linear inequalities as the cube&#039;s c-statistics&lt;br /&gt;
&lt;br /&gt;
== n=5 ==&lt;br /&gt;
&lt;br /&gt;
Let (A,B,C,D,E,F) be the statistics of a five-dimensional Moser set, thus (A,B,C,D,E,F) varies between (0,0,0,0,0,0) and (32,80,80,40,10,1).&lt;br /&gt;
&lt;br /&gt;
There are several Moser sets with the statistics (4,40,80,0,0,0), which thus have 124 points.  Indeed, one can take&lt;br /&gt;
&lt;br /&gt;
* all points with two 2s;&lt;br /&gt;
* all points with one 2 and an even number of 1s; and&lt;br /&gt;
* (13111),(13113),(31311),(13333). Any two of these four points differ in three places, except for one pair of points that differ in one place.&lt;br /&gt;
&lt;br /&gt;
For the rest of this section, we assume that the Moser set &amp;lt;math&amp;gt;{\mathcal A}&amp;lt;/math&amp;gt; is a 125-point set.&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 1&#039;&#039;&#039;: F=0.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; If F is non-zero, then the Moser set contains 22222, then each of the 121 antipodal pairs can have at most one point in the set, leading to only 122 points. &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 2&#039;&#039;&#039;: Every middle slice of &amp;lt;math&amp;gt;{\mathcal A}&amp;lt;/math&amp;gt; has at most 41 points.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039;  Without loss of generality we may consider the 2**** slice.  There are two cases, depending on the value of c(2****).&lt;br /&gt;
&lt;br /&gt;
Suppose first that c is at least 17; thus there are at least 17 points of the form 222xy, 22xy2, 2xy22, or 2x22y, where the x, y denote 1 or 3.  This gives 36 &amp;quot;xy&amp;quot; wildcards in all in four coordinate slots; by the pigeonhole principle one of the slots sees at least 9 of the wildcards.  By symmetry, we may assume that the second coordinate slot sees at least 9 of these wildcards, thus there are at least 9 points of the form 2x22y, 2x2y2, 2xy22.  The x=1, x=3 cases can absorb at most six of these, thus each of these cases must absorb at least three points, with at least one absorbing at least five.  Let&#039;s say that it&#039;s the x=3 case that absorbs 5; thus &amp;lt;math&amp;gt;d(*1***) \geq 3&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;d(*3***) \geq 5&amp;lt;/math&amp;gt;.  From the n=4 theory this means that the *1*** slice has at most 41 points, and the *3*** slice has at most 40.  Meanwhile, the middle slice has at most 43, leading to 41+41+42=124 points in all.&lt;br /&gt;
&lt;br /&gt;
Now suppose c is less than 16; then by the n=4 theory the middle slice is one of the eight (6,24,12,0,0) sets.  Without loss of generality we may take it to be &amp;lt;math&amp;gt;\Gamma_{220}+\Gamma_{202}+\Gamma_{022}+\Gamma_{112}+\Gamma_{211}&amp;lt;/math&amp;gt;; in particular, the middle slice contains the points 21122 21212 21221 23322 23232 23223.  In particular, the *1*** and *3*** slices have a &amp;quot;d&amp;quot; value of at least three, and so have at most 41 points.  If the *2*** slice has at most 42 points, then we are at 41+42+41=124 points as needed, but if we have 43 or more, then we are back in the first case (as &amp;lt;math&amp;gt;c(*2***) \geq 17&amp;lt;/math&amp;gt;) after permuting the indices.&lt;br /&gt;
&amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Since 125=41+41+43, we thus have&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Corollary 1&#039;&#039;&#039;: Every side slice of &amp;lt;math&amp;gt;{\mathcal A}&amp;lt;/math&amp;gt; has at least 41 points.  If one side slice does have 41 points, then the other has 43.&lt;br /&gt;
&lt;br /&gt;
Combining this with the n=4 statistics, we conclude&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Corollary 2&#039;&#039;&#039;: Every side slice of &amp;lt;math&amp;gt;{\mathcal A}&amp;lt;/math&amp;gt; has e=0, and &amp;lt;math&amp;gt;d \leq 3&amp;lt;/math&amp;gt;.  Given two opposite side slices, e.g. 1**** and 3****, we have &amp;lt;math&amp;gt;d(1****)+d(3****) \leq 4&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Corollary 3&#039;&#039;&#039;: E=0.&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Corollary 4&#039;&#039;&#039;: Any middle slice has a &amp;quot;c&amp;quot; value of at most 8.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; Let&#039;s work with the 2**** slice.  By Corollary 2, there are at most four contributions to c(2****) of the form 21*** or 23***, and similarly for the other three positions.  Double counting then gives the claim. &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 3&#039;&#039;&#039;: &amp;lt;math&amp;gt;2B+C \leq 160&amp;lt;/math&amp;gt;.   &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039;: There are 160 lines connecting one &amp;quot;C&amp;quot; point to two &amp;quot;B&amp;quot; points (e.g. 11112, 11122, 11132); each &amp;quot;C&amp;quot; point lies in two of these, and each &amp;quot;B&amp;quot; point lies on four.  A Moser set can have at most two points out of each of these lines.  Double counting then gives the claim.  &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 4&#039;&#039;&#039; Given m A-points with &amp;lt;math&amp;gt;m \geq 5&amp;lt;/math&amp;gt;, there exists at least m-4 pairs (a,b) of such A-points with Hamming distance exactly two (i.e. b differs from a in exactly two places).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; It suffices to check this for m=5, since the case of larger m then follows by locating a pair, removing a point that contributes to that pair, and using the induction hypothesis.  Given 5 A-points, we may assume by the pigeonhole principle and symmetry that at least three of them have an odd number of 1s.  Suppose 11111 is one of the points, and that no pair has Hamming distance 2. All points with two 3s are excluded, so the only points allowed with an odd number of 1s are those with four 3s. But all those points differ from each other in two positions, so at most one of them is allowed.  &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Corollary 5&#039;&#039;&#039; &amp;lt;math&amp;gt;C \leq 79&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039;: Suppose for contradiction that C=80, then D=0 and &amp;lt;math&amp;gt;B \leq 40&amp;lt;/math&amp;gt;.  From Lemma 4 we also see that A cannot exceed 5, leading to the contradiction.&lt;br /&gt;
&amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Define the &#039;&#039;&#039;score&#039;&#039;&#039; of a Moser set in &amp;lt;math&amp;gt;[3]^4&amp;lt;/math&amp;gt; to be the quantity &amp;lt;math&amp;gt;a + 5b/4 + 5c/3 + 5d/2 + 5e&amp;lt;/math&amp;gt;.  Double-counting (and Lemma 2) gives&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 5&#039;&#039;&#039;  The total score of all the ten side-slices of &amp;lt;math&amp;gt;{\mathcal A}&amp;lt;/math&amp;gt; is equal to &amp;lt;math&amp;gt;5|{\mathcal A}| = 5 \times 125&amp;lt;/math&amp;gt;.  In particular, there exists a pair of opposite side-slices whose scores add up to at least 125.&lt;br /&gt;
&lt;br /&gt;
By Lemma 5 and symmetry, we may assume that the 1**** and 3**** slices have score adding up to at least 125.  By Lemma 2, the 2**** slice has at most 41 points, which imply that the 1**** and 3**** have 41, 42, or 43 points.  From the [http://spreadsheets.google.com/ccc?key=p5T0SktZY9DuqNcxJ171Bbw&amp;amp;hl=en n=4 statistics] we know that all 41-point, 42-point, 43-point slices have score less than 62, with the following exceptions:&lt;br /&gt;
&lt;br /&gt;
# (2,16,24,0,0) [42 points, score: 62]&lt;br /&gt;
# (4,16,23,0,0) [43 points, score: 62 1/3]&lt;br /&gt;
# (4,15,24,0,0) [43 points, score: 62 3/4]&lt;br /&gt;
# (3,16,24,0,0) [43 points, score: 63]&lt;br /&gt;
&lt;br /&gt;
Thus the 1**** and 3**** slices must from the above list.  Furthermore, if one of the slices is of type 1, then the other must be of type 4, and if one slice is of type 2, then the other must be of type 3 or 4.&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 6&#039;&#039;&#039; There exists one cut in which the side slices have total score strictly greater than 125 (i.e. they thus involve only Type 2, Type 3, and Type 4 slices, with at least one side slice not equal to Type 2, and the cut here is of the form 43+39+43).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; If not, then all cuts have side slices exactly equal to 125, which by the above table implies that one is Type 1 and one is Type 4, in particular all side slices have c=24.  But this forces C=80, contradicting Corollary 5. &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Adding up the corners we conclude&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Corollary 6&#039;&#039;&#039; &amp;lt;math&amp;gt;6 \leq A \leq 8&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 7&#039;&#039;&#039; &amp;lt;math&amp;gt;D=0&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; Firstly, from Lemma 6 we have a cut in which the two side slices are omitting at most one C-point between them (and have no D-point), which forces the middle slice to have at most one D-point; thus D is at most 1.&lt;br /&gt;
&lt;br /&gt;
Now suppose instead that D=1 (e.g. if 11222 was in the set); then there would be two choices of coordinates in which one of the side slices would have d=1 (e.g. 1**** and *1****). But the [http://spreadsheets.google.com/ccc?key=p5T0SktZY9DuqNcxJ171Bbw&amp;amp;hl=en n=4 statistics] show that such slices have a score of at most 59 7/12, so that the total score from those two coordinates is at most 63 + 59 7/12 = 122 7/12. On the other hand, the other three slices have a net score of at most 63+63 = 126. This averages out to at most 124.633... &amp;lt; 125, a contradiction.  &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Corollary 7&#039;&#039;&#039; Every middle slice has at most 40 points.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; From Lemma 7 we see that the middle slice must have c=0, but from the n=4 statistics this is not possible for any slice of size 41 or higher (alternatively, one can use the inequalities &amp;lt;math&amp;gt;4a+b \leq 64&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;b \leq 32&amp;lt;/math&amp;gt;). &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Each middle slice now has 39 or 40 points, with c=d=e=0, and so from the inequalities &amp;lt;math&amp;gt;4a+b \leq 64&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;b \leq 32&amp;lt;/math&amp;gt; must have statistics (8,32,0,0,0),(7,32,0,0,0), or (8,31,0,0,0).  In particular the &amp;quot;a&amp;quot; index of the middle slices is at most 8.  Summing over all middle slices we conclude&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 9&#039;&#039;&#039; B is at most 40.&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 10&#039;&#039;&#039; C is equal to 78 or 79.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; By Corollary 5, it suffices to show that &amp;lt;math&amp;gt;C \geq 78&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
As 125=43+39+43, we see that every center slice must have at least 39 points. By Lemma 2 and Lemma 7 the center slice has c=d=e=0, thus the center slice has a+b &amp;gt;= 39.  On the other hand, from the n=4 theory we have 4a+b &amp;lt;= 64, which forces b &amp;gt;= 31.&lt;br /&gt;
&lt;br /&gt;
By double counting, we see that 2C is equal to the sum of the b&#039;s of all the five center slices.  Thus C &amp;gt;= 5*31/2 = 77.5 and the claim follows.  &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
From Lemmas 9 and 10 we see that &amp;lt;math&amp;gt;B+C \leq 119&amp;lt;/math&amp;gt;, and thus &amp;lt;math&amp;gt;A \geq 6&amp;lt;/math&amp;gt;.  Also, if &amp;lt;math&amp;gt;A \geq 7&amp;lt;/math&amp;gt;, then by Lemma 4 we have at least three pairs of A points with Hamming distance 2.  At most two of these pairs eliminate the same C point, so we would have C=78 in that case.  &lt;br /&gt;
&lt;br /&gt;
Putting all the above facts together, we see that (A,B,C,D,E,F) must be one of the following triples:&lt;br /&gt;
&lt;br /&gt;
* (6,40,79,0,0,0)&lt;br /&gt;
* (7,40,78,0,0,0)&lt;br /&gt;
* (8,39,78,0,0,0)&lt;br /&gt;
&lt;br /&gt;
All three cases can be eliminated, giving &amp;lt;math&amp;gt;c&#039;_5=124&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== Elimination of (6,40,79,0,0,0) ===&lt;br /&gt;
&lt;br /&gt;
Look at the 6 A points.  From Lemma 4 we have at least two pairs (a,b), (c,d) of A-points that have Hamming separation 2.&lt;br /&gt;
&lt;br /&gt;
Now look at the midpoints of these two pairs; these midpoints are C-points cannot lie in the set.  But we have exactly one C-point missing from the set, thus the midpoints must be the same.  By symmetry, we may thus assume that the two pairs are (11111,11133) and (11113,11131).  Thus 11111,11133, 11113, 11131 are in the set, and so every C-point other than 11122 is in the set.  On the other hand, the B-points 11121, 11123, 11112, 11132 lie outside the set.&lt;br /&gt;
&lt;br /&gt;
At most one of 11312, 11332 lie in the set (since 11322 lies in the set).   Suppose that 11312 lies outside the set, then we have a pair (xy1z2, xy3z2) with x,y,z = 1,3 that is totally omitted from the set, namely (11112,11312).  On the other hand, every other pair of this form can have at most point in the set, thus there are at most seven points in the set of the form (xyzw2) with x,y,z,w = 1,3.  Similarly there are at most 8 points of the form xyz2w, or of xy2zw, x2yzw, 2xyzw, leading to at most 39 B-points in all, contradiction.&lt;br /&gt;
&lt;br /&gt;
=== Elimination of (7,40,78,0,0,0) ===&lt;br /&gt;
&lt;br /&gt;
By Lemma 4, we have at least three pairs of A-points of distance two apart that lie in the set.&lt;br /&gt;
The midpoints of these pairs are C-points that do not lie in the set; but there are only two such C-points, thus two pairs must have the same midpoint, so we may assume as before that 111xy lies in the set for x,y=1,3, which implies that 1112* and 111*2 lie outside the set.&lt;br /&gt;
&lt;br /&gt;
Now consider the 160 lines between 2 B points and one C point (cf. Lemma 3).  The sum of all the points in each such line (counting multiplicity) is 4B+2C = 316.  On the other hand, every one of the 160 lines can have at most two points, and four of these lines (namely 1112*, 111*2) have no points.  Thus all the other lines must have exactly two points.  &lt;br /&gt;
&lt;br /&gt;
We know that the C-point 11122 is missing from the set; there is one other missing C-point.  Since 1112x, 111x2 lie outside the set, we conclude from the previous paragraph that 1132x, 113x2 and 1312x, 131x2 lie in the set.  Taking midpoints we conclude that 11322 and 13122 lie outside the set.  But this is now three C-points missing (together with 11122), a contradiction.&lt;br /&gt;
&lt;br /&gt;
=== Elimination of (8,39,78,0,0,0) ===&lt;br /&gt;
&lt;br /&gt;
By Lemma 4 we have at least four pairs of A-points of distance two apart that lie in the set. The midpoints of these pairs are C-points that do not lie in the set; but there are only two such C-points, thus two pairs (a,b), (c,d) must have the same midpoint p, and the other two pairs (a&#039;,b&#039;), (c&#039;,d&#039;) must also have the same midpoint p&#039;.  (Note that every C-point is the midpoint of at most two such pairs.)&lt;br /&gt;
&lt;br /&gt;
Now consider the 160 lines between 2 B points and one C point (cf. Lemma 3).  The sum of all the points in each such line (counting multiplicity) is 4B+2C = 312.  Every one of the 160 lines can have at most two points, and four of these (those in the plane of (a,b,c,d) or of (a&#039;,b&#039;,c&#039;,d&#039;) have no points.  Thus all other lines must have exactly two points.&lt;br /&gt;
&lt;br /&gt;
Without loss of generality we have (a,b)=(11111,11133), (c,d) = (11113,11131), thus p = 11122.  By permuting the first three indices, we may assume that p&#039; is not of the form x2y2z, x2yz2, xy22z, xy2z2.  Then 1112x lies outside the set and 1122x lies in the set, so by the above paragraph 1132x lies in the set; similarly for 113x2, 1312x, 131x2.  This implies that 13122, 11322 lie outside the set, but this (together with 11122) shows that at least three C-points are missing, a contradiction.&lt;br /&gt;
&lt;br /&gt;
== General n ==&lt;br /&gt;
&lt;br /&gt;
General solution for &amp;lt;math&amp;gt;c&#039;_N&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* q 2s, all points from A(N-q,1)&lt;br /&gt;
* q-1 2s, points from A(N-q+1,2)&lt;br /&gt;
* q-2 2s, points from A(N-q+2,3)&lt;br /&gt;
* etc.&lt;br /&gt;
&lt;br /&gt;
where A(m,d) is a subset of &amp;lt;math&amp;gt;[1,3]^m&amp;lt;/math&amp;gt; for which any two points differ from each other in at least d places.&lt;br /&gt;
&lt;br /&gt;
Mathworld’s entry on error-correcting codes suggests it might be NP-complete to find the size of A(m,d) in general.&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;math&amp;gt;|A(m,1)| = 2^m&amp;lt;/math&amp;gt; because it includes all points in &amp;lt;math&amp;gt;[1,3]^m&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;|A(m,2)| = 2^{m-1}&amp;lt;/math&amp;gt; because it can include all points in &amp;lt;math&amp;gt;[1,3]^m&amp;lt;/math&amp;gt; with an odd number of 1s&lt;br /&gt;
&lt;br /&gt;
The integer programming routine from Maple 12 was used to obtain upper bounds for &amp;lt;math&amp;gt;c&#039;_6&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;c&#039;_7&amp;lt;/math&amp;gt;.  A large number of linear inequalities, described above in sections (n=3) and (n=4), were combined.  The details are in [[Maple calculations]].  The results were that &amp;lt;math&amp;gt;c&#039;_6 \le 361&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;c&#039;_7 \le 1071&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
A [[genetic algorithm]] has provided the following examples:&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;math&amp;gt;c&#039;_6 \geq 353&amp;lt;/math&amp;gt; (26 examples; [http://twofoldgaze.wordpress.com/2009/03/10/353-element-solution/ here is one])&lt;br /&gt;
* &amp;lt;math&amp;gt;c&#039;_7 \geq 988&amp;lt;/math&amp;gt; [http://twofoldgaze.wordpress.com/2009/03/10/978-element-solution/ Here is the example]&lt;br /&gt;
&lt;br /&gt;
== Larger sides (k&amp;gt;3) ==&lt;br /&gt;
&lt;br /&gt;
The following set gives a lower bound for Moser’s cube &amp;lt;math&amp;gt;[4]^n&amp;lt;/math&amp;gt; (values 1,2,3,4):  Pick all points where q entries are 2 or 3; and also pick those where q-1 entries are 2 or 3 and an odd number of entries are 1.  This is maximized when q is near n/2, giving a lower bound of&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\binom{n}{n/2} 2^n + \binom{n}{n/2-1} 2^{n-1}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
which is comparable to &amp;lt;math&amp;gt;4^n/\sqrt{n}&amp;lt;/math&amp;gt; by [[Stirling&#039;s formula]].&lt;br /&gt;
&lt;br /&gt;
For k=5 (values 1,2,3,4,5) If A, B, C, D, and E denote the numbers of 1-s, 2-s, 3-s, 4-s and 5-s then the first three points of a geometric line form a 3-term arithmetic progression in A+E+2(B+D)+3C. So, for k=5 we have a similar lower bound for the Moser’s problem as for DHJ k=3, i.e. &amp;lt;math&amp;gt;5^{n - O(\sqrt{\log n})}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
The k=6 version of Moser implies DHJ(3).  Indeed, any k=3 combinatorial line-free set can be &amp;quot;doubled up&amp;quot; into a k=6 geometric line-free set of the same density by pulling back the set from the map &amp;lt;math&amp;gt;\phi: [6]^n \to [3]^n&amp;lt;/math&amp;gt; that maps 1, 2, 3, 4, 5, 6 to 1, 2, 3, 3, 2, 1 respectively; note that this map sends k=6 geometric lines to k=3 combinatorial lines.&lt;/div&gt;</summary>
		<author><name>121.220.134.232</name></author>
	</entry>
	<entry>
		<id>https://michaelnielsen.org/polymath/index.php?title=Moser%27s_cube_problem&amp;diff=1025</id>
		<title>Moser&#039;s cube problem</title>
		<link rel="alternate" type="text/html" href="https://michaelnielsen.org/polymath/index.php?title=Moser%27s_cube_problem&amp;diff=1025"/>
		<updated>2009-03-21T04:03:45Z</updated>

		<summary type="html">&lt;p&gt;121.220.134.232: /* Larger sides */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Define a &#039;&#039;Moser set&#039;&#039; to be a subset of &amp;lt;math&amp;gt;[3]^n&amp;lt;/math&amp;gt; which does not contain any [[geometric line]], and let &amp;lt;math&amp;gt;c&#039;_n&amp;lt;/math&amp;gt; denote the size of the largest Moser set in &amp;lt;math&amp;gt;[3]^n&amp;lt;/math&amp;gt;.  The first few values are (see [http://www.research.att.com/~njas/sequences/A003142 OEIS A003142]):&lt;br /&gt;
&lt;br /&gt;
: &amp;lt;math&amp;gt;c&#039;_0 = 1; c&#039;_1 = 2; c&#039;_2 = 6; c&#039;_3 = 16; c&#039;_4 = 43; c&#039;_5 = 124.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Beyond this point, we only have some upper and lower bounds, in particular &amp;lt;math&amp;gt;353 \leq c&#039;_6 \leq 361&amp;lt;/math&amp;gt;; see [http://spreadsheets.google.com/ccc?key=p5T0SktZY9DsU-uZ1tK7VEg this spreadsheet] for the latest bounds.&lt;br /&gt;
&lt;br /&gt;
The best known asymptotic lower bound for &amp;lt;math&amp;gt;c&#039;_n&amp;lt;/math&amp;gt; is&lt;br /&gt;
&lt;br /&gt;
: &amp;lt;math&amp;gt;c&#039;_n \gg 3^n/\sqrt{n}&amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
formed by fixing the number of 2s to a single value near n/3.  Compare this to the DHJ(2) or Sperner limit of &amp;lt;math&amp;gt;2^n/\sqrt{n}&amp;lt;/math&amp;gt;.  Is it possible to do any better?  Note that we have a [[Upper_and_lower_bounds#Asymptotics|significantly better bound]] for the DHJ(3) &amp;lt;math&amp;gt;c_n&amp;lt;/math&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
: &amp;lt;math&amp;gt;c_n \geq 3^{n-O(\sqrt{\log n})}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
A more precise lower bound is&lt;br /&gt;
&lt;br /&gt;
: &amp;lt;math&amp;gt;c&#039;_n \geq \binom{n+1}{q} 2^{n-q}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where q is the nearest integer to &amp;lt;math&amp;gt;n/3&amp;lt;/math&amp;gt;, formed by taking all strings with q 2s, together with all strings with q-1 2s and an odd number of 1s.  This for instance gives the lower bound &amp;lt;math&amp;gt;c&#039;_5 \geq 120&amp;lt;/math&amp;gt;, which compares with the upper bound &amp;lt;math&amp;gt;c&#039;_5 \leq 3 c&#039;_4 = 129&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Using [[DHJ(3)]], we have the upper bound&lt;br /&gt;
&lt;br /&gt;
: &amp;lt;math&amp;gt;c&#039;_n = o(3^n)&amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
but no effective decay rate is known. It would be good to have a combinatorial proof of this fact (which is weaker than [[DHJ(3)]], but implies [[Roth&#039;s theorem]]).&lt;br /&gt;
&lt;br /&gt;
== Notation ==&lt;br /&gt;
&lt;br /&gt;
Given a Moser set A in &amp;lt;math&amp;gt;[3]^n&amp;lt;/math&amp;gt;, we let a be the number of points in A with no 2s, b be the number of points in A with one 2, c the number of points with two 2s, etc.  We call (a,b,c,...) the &#039;&#039;statistics&#039;&#039; of A.  Given a slice S of &amp;lt;math&amp;gt;[3]^n&amp;lt;/math&amp;gt;, we let a(S), b(S), etc. denote the statistics of that slice (dropping the fixed coordinates).  Thus for instance if A = {11, 12, 22, 32}, then (a,b,c) = (1,2,1), and (a(1*),b(1*)) = (1,1).&lt;br /&gt;
&lt;br /&gt;
We call a statistic (a,b,c,...) &#039;&#039;attainable&#039;&#039; if it is attained by a Moser set.  We say that an attainable statistic is &#039;&#039;Pareto-optimal&#039;&#039; if it cannot be pointwise dominated by any other attainable statistic (a&#039;,b&#039;,c&#039;,...) (thus &amp;lt;math&amp;gt;a&#039; \geq a&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;b&#039; \geq b&amp;lt;/math&amp;gt;, etc.)  We say that it is &#039;&#039;extremal&#039;&#039; if it is not a convex combination of any other attainable statistic (this is a stronger property than Pareto-optimal).  For the purposes of maximising linear scores of attainable statistics, it suffices to check extremal statistics.&lt;br /&gt;
&lt;br /&gt;
We let &amp;lt;math&amp;gt;(\alpha_0,\alpha_1,\ldots)&amp;lt;/math&amp;gt; be the normalized version of &amp;lt;math&amp;gt;(a,b,\ldots)&amp;lt;/math&amp;gt;, in which one divides the number of points of a certain type in the set by the total number of points in the set.  Thus for instance &amp;lt;math&amp;gt;\alpha_0 = a/2^n, \alpha_1 = b/(n 2^{n-1}), \alpha_3 = c/(\binom{n}{2} 2^{n-2})&amp;lt;/math&amp;gt;, etc., and the &amp;lt;math&amp;gt;\alpha_i&amp;lt;/math&amp;gt; range between 0 and 1.  Averaging arguments show that any linear inequality obeyed by the &amp;lt;math&amp;gt;\alpha_i&amp;lt;/math&amp;gt; at one dimension is automatically inherited by higher dimensions, as are shifted versions of this inequality (in which &amp;lt;math&amp;gt;\alpha_i&amp;lt;/math&amp;gt; is replaced by &amp;lt;math&amp;gt;\alpha_{i+1}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
The idea in &#039;c-statistics&#039; is to identify 1s and 3s but leave the 2s intact. Let’s use x to denote letters that are either 1 or 3, then the 81 points get split up into 16 groups: 2222 (1 point), 222x, 22×2, 2×22, x222 (two points each), 22xx, 2×2x, x22x, 2xx2, x2×2, xx22 (four points each), 2xxx, x2xx, xx2x, xxx2 (eight points each), xxxx (sixteen points). Let c(w) denote the number of points inside a group w, e.g. c(xx22) is the number of points of the form xx22 inside the set, and is thus an integer from 0 to 4.&lt;br /&gt;
&lt;br /&gt;
== n=0 ==&lt;br /&gt;
&lt;br /&gt;
We trivially have &amp;lt;math&amp;gt;c&#039;_0=1.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== n=1 ==&lt;br /&gt;
&lt;br /&gt;
We trivially have &amp;lt;math&amp;gt;c&#039;_1=2.&amp;lt;/math&amp;gt;  The Pareto-optimal values of the statistics (a,b) are (1,1) and (2,0); these are also the extremals.  We thus have the inequality &amp;lt;math&amp;gt;a+b \leq 2&amp;lt;/math&amp;gt;, or in normalized notation&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;2\alpha_0 + \alpha_1 \leq 2&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== n=2 ==&lt;br /&gt;
&lt;br /&gt;
We have &amp;lt;math&amp;gt;c&#039;_2 = 6&amp;lt;/math&amp;gt;; the upper bound follows since &amp;lt;math&amp;gt;c&#039;_2 \leq 3 c&#039;_1&amp;lt;/math&amp;gt;, and the lower bound follows by deleting one of the two diagonals from &amp;lt;math&amp;gt;[3]^2&amp;lt;/math&amp;gt; (these are the only extremisers).&lt;br /&gt;
&lt;br /&gt;
The extremiser has statistics (a,b,c) = (2,4,0), which are of course Pareto-optimal.  If c=1 then we must have a, b at most 2 (look at the lines through 22).  This is attainable (e.g. {11, 12, 22, 23, 31}, and so (2,2,1) is another Pareto-optimal statistic.  If a=4, then b and c must be 0, so we get another Pareto-optimal statistic (4,0,0) (attainable by {11, 13, 31, 33} of course).  If a=3, then c=0 and b is at most 2, giving another Pareto-optimal statistic (3,2,0); but this is a convex combination of (4,0,0) and (2,4,0) and is thus not extremal.  Thus the complete set of extremal statistics are&lt;br /&gt;
&lt;br /&gt;
(4,0,0), (2,4,0), (2,2,1).&lt;br /&gt;
&lt;br /&gt;
The sharp linear inequalities obeyed by a,b,c (other than the trivial ones &amp;lt;math&amp;gt;a,b,c \geq 0&amp;lt;/math&amp;gt;) are then&lt;br /&gt;
&lt;br /&gt;
*&amp;lt;math&amp;gt;2a+b+2c \leq 8&amp;lt;/math&amp;gt;&lt;br /&gt;
*&amp;lt;math&amp;gt;b+2c \leq 4&amp;lt;/math&amp;gt;&lt;br /&gt;
*&amp;lt;math&amp;gt;a+2c \leq 4&amp;lt;/math&amp;gt;&lt;br /&gt;
*&amp;lt;math&amp;gt;c \leq 1&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
In normalized notation, we have&lt;br /&gt;
*&amp;lt;math&amp;gt;4\alpha_0 + 2\alpha_1 + \alpha_2 \leq 4&amp;lt;/math&amp;gt;&lt;br /&gt;
*&amp;lt;math&amp;gt;2\alpha_1 + \alpha_2 \leq 2&amp;lt;/math&amp;gt;&lt;br /&gt;
*&amp;lt;math&amp;gt;2\alpha_0 + \alpha_2 \leq 2&amp;lt;/math&amp;gt;&lt;br /&gt;
*&amp;lt;math&amp;gt;\alpha_2 \leq 1&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== n=3 ==&lt;br /&gt;
&lt;br /&gt;
We have &amp;lt;math&amp;gt;c&#039;_3 = 16&amp;lt;/math&amp;gt;.  The lower bound can be seen for instance by taking all the strings with one 2, and half the strings with no 2 (e.g. the strings with an odd number of 1s).  The upper bound can be deduced from the corresponding [[upper and lower bounds]] for &amp;lt;math&amp;gt;c_3 = 18&amp;lt;/math&amp;gt;; the 17-point and 18-point line-free sets each contain a geometric line.&lt;br /&gt;
&lt;br /&gt;
If a Moser set in &amp;lt;math&amp;gt;[3]^3&amp;lt;/math&amp;gt; contains 222, then it can have at most 14 points, since the remaining 26 points in the cube split into 13 antipodal pairs, and at most one of each pair can lie in the set.  By exhausting over the &amp;lt;math&amp;gt;2^{13} = 8192&amp;lt;/math&amp;gt; possibilities, it can be shown that it is impossible for a 14-point set to exist; any Moser set containing 222 must in fact omit at least one antipodal pair completely and thus have only 13 points.  (A human proof of this fact can be [http://www.ma.rhul.ac.uk/~elsholtz/WWW/blog/mosertablogv01.pdf found here].)&lt;br /&gt;
&lt;br /&gt;
The Pareto-optimal statistics are&lt;br /&gt;
&lt;br /&gt;
(3,6,3,1),(4,4,3,1),(4,6,2,1),(2,6,6,0),(3,6,5,0),(4,4,5,0),(3,7,4,0),(4,6,4,0), (3,9,3,0),(4,7,3,0),(5,4,3,0),(4,9,2,0),(5,6,2,0),(6,3,2,0),(3,10,1,0),(5,7,1,0), (6,4,1,0),(4,12,0,0),(5,9,0,0),(6,6,0,0),(7,3,0,0),(8,0,0,0).&lt;br /&gt;
&lt;br /&gt;
These were found from a search of the &amp;lt;math&amp;gt;2^{27}&amp;lt;/math&amp;gt; subsets of the cube.&lt;br /&gt;
A spreadsheet containing these statistics can be [http://spreadsheets.google.com/ccc?key=p5T0SktZY9DuKZ2DyzO9EOg&amp;amp;hl=en# found here].&lt;br /&gt;
&lt;br /&gt;
The extremal statistics are&lt;br /&gt;
&lt;br /&gt;
(3,6,3,1),(4,4,3,1),(4,6,2,1),(2,6,6,0),(4,4,5,0),(4,6,4,0),(4,12,0,0),(8,0,0,0)&lt;br /&gt;
&lt;br /&gt;
The sharp linear bounds are :&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;math&amp;gt;2a+b+2c+4d \leq 22&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;3a+2b+3c+6d \leq 36&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;7a+2b+4c+8d \leq 56&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;6a+2b+3c+6d \leq 48&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;b+c+3d \leq 12&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;a+2c+4d \leq 14&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;5a+4c+8d \leq 40&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;a+4d \leq 8&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;b+6d \leq 12&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;c+3d \leq 6&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;d \leq 1&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In normalized notation,&lt;br /&gt;
* &amp;lt;math&amp;gt;8\alpha_0+ 6\alpha_1 + 6\alpha_2 + 2\alpha_3 \leq 11&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;4\alpha_0+4\alpha_1+3\alpha_2+\alpha_3 \leq 6&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;7\alpha_0+3\alpha_1+3\alpha_2+\alpha_3 \leq 7&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;8\alpha_0+3\alpha_1+3\alpha_2+\alpha_3 \leq 8&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;4\alpha_1+2\alpha_2+\alpha_3 \leq 4&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;4\alpha_0+6\alpha_2+2\alpha_3 \leq 7&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;5\alpha_0+3\alpha_2+\alpha_3 \leq 5&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;2\alpha_0+\alpha_3 \leq 2&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;2\alpha_1+\alpha_3 \leq 2&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;2\alpha_2+\alpha_3 \leq 2&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;\alpha_3 \leq 1&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The c-statistics can also be found from an exhaustive search of Moser sets.  The resulting Pareto sets and linear inequalities can be found on Sheet 8 of [http://spreadsheets.google.com/ccc?key=p5T0SktZY9DuKZ2DyzO9EOg&amp;amp;hl=en# this spreadsheet]&lt;br /&gt;
&lt;br /&gt;
== n=4 ==&lt;br /&gt;
&lt;br /&gt;
A [http://abel.math.umu.se/~klasm/extremal-moser-n=5-t=3 computer search] has obtained all extremisers to &amp;lt;math&amp;gt;c&#039;_4=43&amp;lt;/math&amp;gt;.  The 42-point solutions can be found [http://abel.math.umu.se/~klasm/moser-n=4-t=3-p=42.gz here].&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof that &amp;lt;math&amp;gt;c&#039;_4 \leq 43&amp;lt;/math&amp;gt;&#039;&#039;&#039;: &lt;br /&gt;
When e=1 (i.e. the 4D set contains 2222) then we have at most 41 points (in fact at most 39) by counting antipodal points, so assume e=0.&lt;br /&gt;
&lt;br /&gt;
Define the score of a 3D slice to be a/4+b/3+c/2+d.  Observe from double counting that the size of a 4D set is the sum of the scores of its eight side slices.&lt;br /&gt;
&lt;br /&gt;
But by [http://spreadsheets.google.com/ccc?key=p5T0SktZY9DuKZ2DyzO9EOg&amp;amp;hl=en looking at the extremals] we see that the largest score is 44/8, attained at only one point, namely when (a,b,c,d) = (2,6,6,0).  So the only way one can have a 44-point set is if all side slices are (2,6,6,0), or equivalently if the whole set has statistics (a,b,c,d,e) = (4,16,24,0,0).  But then we have all the points with two 2s, which means that the four &amp;quot;a&amp;quot; points cannot be separated by Hamming distance 2.  We conclude that we must have an antipodal pair among the &amp;quot;a&amp;quot; points with an odd number of 1s, and an antipodal pair among the &amp;quot;a&amp;quot; points with an even number of 1s.    By the symmetries of the cube, we may take the a-set to then be 1111, 3333, 1113, 3331.  But then the &amp;quot;b&amp;quot; set must exclude both 1112 and 3332, and so can have at most three points in the eight-point set xyz2 (with x,y,z=1,3) rather than four (to get four points one must alternate in a checkerboard pattern).  Adding this to the at most four points of the form xy2z, x2yz, 2xyz we see that b is at most 16, a contradiction. &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Given a subset of &amp;lt;math&amp;gt;[3]^4&amp;lt;/math&amp;gt;, let a be the number of points with no 2s, b be the number of points with 1 2, and so forth.  The quintuple (a,b,c,d,e) thus lies between (0,0,0,0,0) and (16,32,24,8,1).&lt;br /&gt;
&lt;br /&gt;
The 43-point solutions have distributions (a,b,c,d,e) as follows:&lt;br /&gt;
&lt;br /&gt;
* (5,20,18,0,0) [16 solutions]&lt;br /&gt;
* (4,16,23,0,0) [768 solutions]&lt;br /&gt;
* (3,16,24,0,0) [512 solutions]&lt;br /&gt;
* (4,15,24,0,0) [256 solutions]&lt;br /&gt;
&lt;br /&gt;
The 42-point solutions are [http://abel.math.umu.se/~klasm/Moser-42-stat.pdf distributed as follows]:&lt;br /&gt;
&lt;br /&gt;
* (6,24,12,0,0) [[http://abel.math.umu.se/~klasm/moser-n=4-42-12 8 solutions]] &lt;br /&gt;
* (5,20,17,0,0) [576 solutions]&lt;br /&gt;
* (5,19,18,0,0) [384 solutions]&lt;br /&gt;
* (6,16,18,2,0) [[http://abel.math.umu.se/~klasm/moser-n=4-42-e=2 192 solutions]]&lt;br /&gt;
* (4,20,18,0,0) [272 solutions]&lt;br /&gt;
* (5,17,20,0,0) [192 solutions]&lt;br /&gt;
* (5,16,21,0,0) [3584 solutions]&lt;br /&gt;
* (4,17,21,0,0) [768 solutions]&lt;br /&gt;
* (4,16,22,0,0) [26880 solutions]&lt;br /&gt;
* (5,15,22,0,0) [1536 solutions]&lt;br /&gt;
* (4,15,23,0,0) [22272 solutions]&lt;br /&gt;
* (3,16,23,0,0) [15744 solutions]&lt;br /&gt;
* (4,14,24,0,0) [4224 solutions]&lt;br /&gt;
* (3,15,24,0,0) [8704 solutions]&lt;br /&gt;
* (2,16,24,0,0) [896 solutions]&lt;br /&gt;
&lt;br /&gt;
Note how c is usually quite large, and d quite low.&lt;br /&gt;
&lt;br /&gt;
One of the (6,24,12,0,0) solutions is &amp;lt;math&amp;gt;\Gamma_{220}+\Gamma_{202}+\Gamma_{022}+\Gamma_{112}+\Gamma_{211}&amp;lt;/math&amp;gt; (i.e. the set of points containing exactly two 1s, and/or exactly two 3s).  The other seven are reflections of this set.&lt;br /&gt;
&lt;br /&gt;
There are 2,765,200 41-point solutions, [http://abel.math.umu.se/~klasm/solutions-4-t=3-41-moser.gz listed here].  The statistics for such points can be [http://abel.math.umu.se/~klasm/Moser-41-stat.pdf found here].  Noteworthy features of the statistics:&lt;br /&gt;
&lt;br /&gt;
* d is at most 3 (and, except for [http://abel.math.umu.se/~klasm/moser-n=3-t=3-41-d=3.gz 256 exceptional solutions] of the shape (5,15,18,3,0), have d at most 2; here are the [http://abel.math.umu.se/~klasm/moser-n=3-t=3-41-d=2.gz d=2 solutions] and [http://abel.math.umu.se/~klasm/moser-n=3-t=3-41-d=1.gz d=1 solutions])&lt;br /&gt;
* c is at least 6 (and, except for [http://abel.math.umu.se/~klasm/moser-n=3-t=3-41-c=6.gz 16 exceptional solutions] of the shape (7,28,6,0,0), have c at least 11).&lt;br /&gt;
&lt;br /&gt;
Statistics for the 41-point, 42-point, and 43-point solutions can be found [http://spreadsheets.google.com/ccc?key=p5T0SktZY9DuqNcxJ171Bbw&amp;amp;hl=en here].&lt;br /&gt;
&lt;br /&gt;
If a Moser set in &amp;lt;math&amp;gt;[3]^4&amp;lt;/math&amp;gt; contains 2222, then by the n=3 theory, any middle slice (i.e. 2***, *2**, **2*, or ***2) is missing at least one antipodal pair.  But each antipodal pair belongs to at most three middle slices, thus two of the 40 antipodal pairs must be completely missing.  As a consequence, any Moser set containing 2222 can have at most 39 points.&lt;br /&gt;
(A more refined analysis can be found at [http://www.ma.rhul.ac.uk/~elsholtz/WWW/blog/mosertablogv01.pdf found here].)&lt;br /&gt;
&lt;br /&gt;
We have the following inequalities connecting a,b,c,d,e:&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;math&amp;gt;4a+b \leq 64&amp;lt;/math&amp;gt;:  There are 32 lines connecting two &amp;quot;a&amp;quot; points with a &amp;quot;b&amp;quot; point; each &amp;quot;a&amp;quot; point belongs to four of these lines, and each &amp;quot;b&amp;quot; point belongs to one.  But each such line can have at most two points in the set, and the claim follows.&lt;br /&gt;
* This can be refined to &amp;lt;math&amp;gt;4a+b+\frac{2}{3} c \leq 64&amp;lt;/math&amp;gt;: There are 24 planes connecting four &amp;quot;a&amp;quot; points, four &amp;quot;b&amp;quot; points, and one &amp;quot;c&amp;quot; point; each &amp;quot;a&amp;quot; point belongs to six of these, each &amp;quot;b&amp;quot; point belongs to three, and each &amp;quot;c&amp;quot; point belongs to one.  For each of these planes, we have &amp;lt;math&amp;gt;2a + b + 2c \leq 8&amp;lt;/math&amp;gt; from the n=2 theory, and the claim follows.&lt;br /&gt;
* &amp;lt;math&amp;gt;6a+2c \leq 96&amp;lt;/math&amp;gt;:  There are 96 lines connecting two &amp;quot;a&amp;quot; points with a &amp;quot;c&amp;quot; point; each &amp;quot;a&amp;quot; point belongs to six of these lines, and each &amp;quot;c&amp;quot; point belongs to two.  But each such line can have at most two points in the set, and the claim follows.&lt;br /&gt;
* &amp;lt;math&amp;gt;3b+2c \leq 96&amp;lt;/math&amp;gt;:  There are 48 lines connecting two &amp;quot;b&amp;quot; points to a &amp;quot;c&amp;quot; point; each &amp;quot;b&amp;quot; point belongs to three of these points, and each &amp;quot;c&amp;quot; point belongs to two.  But each such line can have at most two points in the set, and the claim follows.&lt;br /&gt;
&lt;br /&gt;
The inequalities for n=3 imply inequalities for n=4.  Indeed, there are eight side slices of &amp;lt;math&amp;gt;[3]^4&amp;lt;/math&amp;gt;; each &amp;quot;a&amp;quot; point belongs to four of these, each &amp;quot;b&amp;quot; point belongs to three, each &amp;quot;c&amp;quot; point belongs to two, and each &amp;quot;d&amp;quot; point belongs to one.  Thus, any inequality of the form&lt;br /&gt;
:&amp;lt;math&amp;gt; \alpha a + \beta b + \gamma c + \delta d \leq M&amp;lt;/math&amp;gt;&lt;br /&gt;
in three dimensions implies the inequality&lt;br /&gt;
:&amp;lt;math&amp;gt; 4 \alpha a + 3 \beta b + 2 \gamma c + \delta d \leq 8M&amp;lt;/math&amp;gt;&lt;br /&gt;
in four dimensions.  Thus we have&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;math&amp;gt;8a+3b+4c+4d \leq 176&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;2a+b+c+d \leq 48&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;14a+3b+4c+4d \leq 244&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;4a+b+c+d \leq 64&amp;lt;/math&amp;gt; &lt;br /&gt;
* &amp;lt;math&amp;gt;3b+2c+3d \leq 96&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;a+c+d \leq 28&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;5a+2c+2d \leq 80&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;a+d \leq 16&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;b+2d \leq 32&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;2c+3d \leq 48&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Cubes also sit diagonally in the 4-dimensional cube.  They may have coordinates xxyz, where xx runs over (11,22,33) or (13,22,31), while y and z run over (1,2,3).  These cubes have a different distribution of 2s than the ordinary slices: (a,b,c,d,e) = (8,8,6,4,1) instead of (8,12,6,1,0) for the side slices and (0,8,12,6,1) for the middle slices.  So a different set of inequalities arise.  It is possible to run through the same procedure as described above for n=3, and the inequalities that arise are &amp;lt;math&amp;gt;2a+b+2c+2d+4e \le 24&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;4a+b+2c+2d+4e \le 32&amp;lt;/math&amp;gt; within the 3D cube, which when averaged becomes &amp;lt;math&amp;gt;4a+b+2c+4d+16e \le 96&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;8a+b+2c+4d+16e \le 128&amp;lt;/math&amp;gt; for the 4D cube.  A spreadsheet containing these statistics can be [http://spreadsheets.google.com/ccc?key=p5T0SktZY9DuKZ2DyzO9EOg&amp;amp;hl=en# found here] on sheet 2.  Other sheets of this spreadsheet contain results for a 3D cube sitting diagonally in a 5D, 6D or 7D cube.  Notice the similarity of the equations that arise for the xxxyz, xxyyz and xxxxyz diagonals.  Also notice the xxxxyyz diagonals have the same Pareto sets and linear inequalities as the cube&#039;s c-statistics&lt;br /&gt;
&lt;br /&gt;
== n=5 ==&lt;br /&gt;
&lt;br /&gt;
Let (A,B,C,D,E,F) be the statistics of a five-dimensional Moser set, thus (A,B,C,D,E,F) varies between (0,0,0,0,0,0) and (32,80,80,40,10,1).&lt;br /&gt;
&lt;br /&gt;
There are several Moser sets with the statistics (4,40,80,0,0,0), which thus have 124 points.  Indeed, one can take&lt;br /&gt;
&lt;br /&gt;
* all points with two 2s;&lt;br /&gt;
* all points with one 2 and an even number of 1s; and&lt;br /&gt;
* (13111),(13113),(31311),(13333). Any two of these four points differ in three places, except for one pair of points that differ in one place.&lt;br /&gt;
&lt;br /&gt;
For the rest of this section, we assume that the Moser set &amp;lt;math&amp;gt;{\mathcal A}&amp;lt;/math&amp;gt; is a 125-point set.&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 1&#039;&#039;&#039;: F=0.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; If F is non-zero, then the Moser set contains 22222, then each of the 121 antipodal pairs can have at most one point in the set, leading to only 122 points. &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 2&#039;&#039;&#039;: Every middle slice of &amp;lt;math&amp;gt;{\mathcal A}&amp;lt;/math&amp;gt; has at most 41 points.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039;  Without loss of generality we may consider the 2**** slice.  There are two cases, depending on the value of c(2****).&lt;br /&gt;
&lt;br /&gt;
Suppose first that c is at least 17; thus there are at least 17 points of the form 222xy, 22xy2, 2xy22, or 2x22y, where the x, y denote 1 or 3.  This gives 36 &amp;quot;xy&amp;quot; wildcards in all in four coordinate slots; by the pigeonhole principle one of the slots sees at least 9 of the wildcards.  By symmetry, we may assume that the second coordinate slot sees at least 9 of these wildcards, thus there are at least 9 points of the form 2x22y, 2x2y2, 2xy22.  The x=1, x=3 cases can absorb at most six of these, thus each of these cases must absorb at least three points, with at least one absorbing at least five.  Let&#039;s say that it&#039;s the x=3 case that absorbs 5; thus &amp;lt;math&amp;gt;d(*1***) \geq 3&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;d(*3***) \geq 5&amp;lt;/math&amp;gt;.  From the n=4 theory this means that the *1*** slice has at most 41 points, and the *3*** slice has at most 40.  Meanwhile, the middle slice has at most 43, leading to 41+41+42=124 points in all.&lt;br /&gt;
&lt;br /&gt;
Now suppose c is less than 16; then by the n=4 theory the middle slice is one of the eight (6,24,12,0,0) sets.  Without loss of generality we may take it to be &amp;lt;math&amp;gt;\Gamma_{220}+\Gamma_{202}+\Gamma_{022}+\Gamma_{112}+\Gamma_{211}&amp;lt;/math&amp;gt;; in particular, the middle slice contains the points 21122 21212 21221 23322 23232 23223.  In particular, the *1*** and *3*** slices have a &amp;quot;d&amp;quot; value of at least three, and so have at most 41 points.  If the *2*** slice has at most 42 points, then we are at 41+42+41=124 points as needed, but if we have 43 or more, then we are back in the first case (as &amp;lt;math&amp;gt;c(*2***) \geq 17&amp;lt;/math&amp;gt;) after permuting the indices.&lt;br /&gt;
&amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Since 125=41+41+43, we thus have&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Corollary 1&#039;&#039;&#039;: Every side slice of &amp;lt;math&amp;gt;{\mathcal A}&amp;lt;/math&amp;gt; has at least 41 points.  If one side slice does have 41 points, then the other has 43.&lt;br /&gt;
&lt;br /&gt;
Combining this with the n=4 statistics, we conclude&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Corollary 2&#039;&#039;&#039;: Every side slice of &amp;lt;math&amp;gt;{\mathcal A}&amp;lt;/math&amp;gt; has e=0, and &amp;lt;math&amp;gt;d \leq 3&amp;lt;/math&amp;gt;.  Given two opposite side slices, e.g. 1**** and 3****, we have &amp;lt;math&amp;gt;d(1****)+d(3****) \leq 4&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Corollary 3&#039;&#039;&#039;: E=0.&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Corollary 4&#039;&#039;&#039;: Any middle slice has a &amp;quot;c&amp;quot; value of at most 8.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; Let&#039;s work with the 2**** slice.  By Corollary 2, there are at most four contributions to c(2****) of the form 21*** or 23***, and similarly for the other three positions.  Double counting then gives the claim. &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 3&#039;&#039;&#039;: &amp;lt;math&amp;gt;2B+C \leq 160&amp;lt;/math&amp;gt;.   &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039;: There are 160 lines connecting one &amp;quot;C&amp;quot; point to two &amp;quot;B&amp;quot; points (e.g. 11112, 11122, 11132); each &amp;quot;C&amp;quot; point lies in two of these, and each &amp;quot;B&amp;quot; point lies on four.  A Moser set can have at most two points out of each of these lines.  Double counting then gives the claim.  &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 4&#039;&#039;&#039; Given m A-points with &amp;lt;math&amp;gt;m \geq 5&amp;lt;/math&amp;gt;, there exists at least m-4 pairs (a,b) of such A-points with Hamming distance exactly two (i.e. b differs from a in exactly two places).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; It suffices to check this for m=5, since the case of larger m then follows by locating a pair, removing a point that contributes to that pair, and using the induction hypothesis.  Given 5 A-points, we may assume by the pigeonhole principle and symmetry that at least three of them have an odd number of 1s.  Suppose 11111 is one of the points, and that no pair has Hamming distance 2. All points with two 3s are excluded, so the only points allowed with an odd number of 1s are those with four 3s. But all those points differ from each other in two positions, so at most one of them is allowed.  &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Corollary 5&#039;&#039;&#039; &amp;lt;math&amp;gt;C \leq 79&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039;: Suppose for contradiction that C=80, then D=0 and &amp;lt;math&amp;gt;B \leq 40&amp;lt;/math&amp;gt;.  From Lemma 4 we also see that A cannot exceed 5, leading to the contradiction.&lt;br /&gt;
&amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Define the &#039;&#039;&#039;score&#039;&#039;&#039; of a Moser set in &amp;lt;math&amp;gt;[3]^4&amp;lt;/math&amp;gt; to be the quantity &amp;lt;math&amp;gt;a + 5b/4 + 5c/3 + 5d/2 + 5e&amp;lt;/math&amp;gt;.  Double-counting (and Lemma 2) gives&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 5&#039;&#039;&#039;  The total score of all the ten side-slices of &amp;lt;math&amp;gt;{\mathcal A}&amp;lt;/math&amp;gt; is equal to &amp;lt;math&amp;gt;5|{\mathcal A}| = 5 \times 125&amp;lt;/math&amp;gt;.  In particular, there exists a pair of opposite side-slices whose scores add up to at least 125.&lt;br /&gt;
&lt;br /&gt;
By Lemma 5 and symmetry, we may assume that the 1**** and 3**** slices have score adding up to at least 125.  By Lemma 2, the 2**** slice has at most 41 points, which imply that the 1**** and 3**** have 41, 42, or 43 points.  From the [http://spreadsheets.google.com/ccc?key=p5T0SktZY9DuqNcxJ171Bbw&amp;amp;hl=en n=4 statistics] we know that all 41-point, 42-point, 43-point slices have score less than 62, with the following exceptions:&lt;br /&gt;
&lt;br /&gt;
# (2,16,24,0,0) [42 points, score: 62]&lt;br /&gt;
# (4,16,23,0,0) [43 points, score: 62 1/3]&lt;br /&gt;
# (4,15,24,0,0) [43 points, score: 62 3/4]&lt;br /&gt;
# (3,16,24,0,0) [43 points, score: 63]&lt;br /&gt;
&lt;br /&gt;
Thus the 1**** and 3**** slices must from the above list.  Furthermore, if one of the slices is of type 1, then the other must be of type 4, and if one slice is of type 2, then the other must be of type 3 or 4.&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 6&#039;&#039;&#039; There exists one cut in which the side slices have total score strictly greater than 125 (i.e. they thus involve only Type 2, Type 3, and Type 4 slices, with at least one side slice not equal to Type 2, and the cut here is of the form 43+39+43).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; If not, then all cuts have side slices exactly equal to 125, which by the above table implies that one is Type 1 and one is Type 4, in particular all side slices have c=24.  But this forces C=80, contradicting Corollary 5. &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Adding up the corners we conclude&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Corollary 6&#039;&#039;&#039; &amp;lt;math&amp;gt;6 \leq A \leq 8&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 7&#039;&#039;&#039; &amp;lt;math&amp;gt;D=0&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; Firstly, from Lemma 6 we have a cut in which the two side slices are omitting at most one C-point between them (and have no D-point), which forces the middle slice to have at most one D-point; thus D is at most 1.&lt;br /&gt;
&lt;br /&gt;
Now suppose instead that D=1 (e.g. if 11222 was in the set); then there would be two choices of coordinates in which one of the side slices would have d=1 (e.g. 1**** and *1****). But the [http://spreadsheets.google.com/ccc?key=p5T0SktZY9DuqNcxJ171Bbw&amp;amp;hl=en n=4 statistics] show that such slices have a score of at most 59 7/12, so that the total score from those two coordinates is at most 63 + 59 7/12 = 122 7/12. On the other hand, the other three slices have a net score of at most 63+63 = 126. This averages out to at most 124.633... &amp;lt; 125, a contradiction.  &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Corollary 7&#039;&#039;&#039; Every middle slice has at most 40 points.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; From Lemma 7 we see that the middle slice must have c=0, but from the n=4 statistics this is not possible for any slice of size 41 or higher (alternatively, one can use the inequalities &amp;lt;math&amp;gt;4a+b \leq 64&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;b \leq 32&amp;lt;/math&amp;gt;). &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Each middle slice now has 39 or 40 points, with c=d=e=0, and so from the inequalities &amp;lt;math&amp;gt;4a+b \leq 64&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;b \leq 32&amp;lt;/math&amp;gt; must have statistics (8,32,0,0,0),(7,32,0,0,0), or (8,31,0,0,0).  In particular the &amp;quot;a&amp;quot; index of the middle slices is at most 8.  Summing over all middle slices we conclude&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 9&#039;&#039;&#039; B is at most 40.&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 10&#039;&#039;&#039; C is equal to 78 or 79.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; By Corollary 5, it suffices to show that &amp;lt;math&amp;gt;C \geq 78&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
As 125=43+39+43, we see that every center slice must have at least 39 points. By Lemma 2 and Lemma 7 the center slice has c=d=e=0, thus the center slice has a+b &amp;gt;= 39.  On the other hand, from the n=4 theory we have 4a+b &amp;lt;= 64, which forces b &amp;gt;= 31.&lt;br /&gt;
&lt;br /&gt;
By double counting, we see that 2C is equal to the sum of the b&#039;s of all the five center slices.  Thus C &amp;gt;= 5*31/2 = 77.5 and the claim follows.  &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
From Lemmas 9 and 10 we see that &amp;lt;math&amp;gt;B+C \leq 119&amp;lt;/math&amp;gt;, and thus &amp;lt;math&amp;gt;A \geq 6&amp;lt;/math&amp;gt;.  Also, if &amp;lt;math&amp;gt;A \geq 7&amp;lt;/math&amp;gt;, then by Lemma 4 we have at least three pairs of A points with Hamming distance 2.  At most two of these pairs eliminate the same C point, so we would have C=78 in that case.  &lt;br /&gt;
&lt;br /&gt;
Putting all the above facts together, we see that (A,B,C,D,E,F) must be one of the following triples:&lt;br /&gt;
&lt;br /&gt;
* (6,40,79,0,0,0)&lt;br /&gt;
* (7,40,78,0,0,0)&lt;br /&gt;
* (8,39,78,0,0,0)&lt;br /&gt;
&lt;br /&gt;
All three cases can be eliminated, giving &amp;lt;math&amp;gt;c&#039;_5=124&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== Elimination of (6,40,79,0,0,0) ===&lt;br /&gt;
&lt;br /&gt;
Look at the 6 A points.  From Lemma 4 we have at least two pairs (a,b), (c,d) of A-points that have Hamming separation 2.&lt;br /&gt;
&lt;br /&gt;
Now look at the midpoints of these two pairs; these midpoints are C-points cannot lie in the set.  But we have exactly one C-point missing from the set, thus the midpoints must be the same.  By symmetry, we may thus assume that the two pairs are (11111,11133) and (11113,11131).  Thus 11111,11133, 11113, 11131 are in the set, and so every C-point other than 11122 is in the set.  On the other hand, the B-points 11121, 11123, 11112, 11132 lie outside the set.&lt;br /&gt;
&lt;br /&gt;
At most one of 11312, 11332 lie in the set (since 11322 lies in the set).   Suppose that 11312 lies outside the set, then we have a pair (xy1z2, xy3z2) with x,y,z = 1,3 that is totally omitted from the set, namely (11112,11312).  On the other hand, every other pair of this form can have at most point in the set, thus there are at most seven points in the set of the form (xyzw2) with x,y,z,w = 1,3.  Similarly there are at most 8 points of the form xyz2w, or of xy2zw, x2yzw, 2xyzw, leading to at most 39 B-points in all, contradiction.&lt;br /&gt;
&lt;br /&gt;
=== Elimination of (7,40,78,0,0,0) ===&lt;br /&gt;
&lt;br /&gt;
By Lemma 4, we have at least three pairs of A-points of distance two apart that lie in the set.&lt;br /&gt;
The midpoints of these pairs are C-points that do not lie in the set; but there are only two such C-points, thus two pairs must have the same midpoint, so we may assume as before that 111xy lies in the set for x,y=1,3, which implies that 1112* and 111*2 lie outside the set.&lt;br /&gt;
&lt;br /&gt;
Now consider the 160 lines between 2 B points and one C point (cf. Lemma 3).  The sum of all the points in each such line (counting multiplicity) is 4B+2C = 316.  On the other hand, every one of the 160 lines can have at most two points, and four of these lines (namely 1112*, 111*2) have no points.  Thus all the other lines must have exactly two points.  &lt;br /&gt;
&lt;br /&gt;
We know that the C-point 11122 is missing from the set; there is one other missing C-point.  Since 1112x, 111x2 lie outside the set, we conclude from the previous paragraph that 1132x, 113x2 and 1312x, 131x2 lie in the set.  Taking midpoints we conclude that 11322 and 13122 lie outside the set.  But this is now three C-points missing (together with 11122), a contradiction.&lt;br /&gt;
&lt;br /&gt;
=== Elimination of (8,39,78,0,0,0) ===&lt;br /&gt;
&lt;br /&gt;
By Lemma 4 we have at least four pairs of A-points of distance two apart that lie in the set. The midpoints of these pairs are C-points that do not lie in the set; but there are only two such C-points, thus two pairs (a,b), (c,d) must have the same midpoint p, and the other two pairs (a&#039;,b&#039;), (c&#039;,d&#039;) must also have the same midpoint p&#039;.  (Note that every C-point is the midpoint of at most two such pairs.)&lt;br /&gt;
&lt;br /&gt;
Now consider the 160 lines between 2 B points and one C point (cf. Lemma 3).  The sum of all the points in each such line (counting multiplicity) is 4B+2C = 312.  Every one of the 160 lines can have at most two points, and four of these (those in the plane of (a,b,c,d) or of (a&#039;,b&#039;,c&#039;,d&#039;) have no points.  Thus all other lines must have exactly two points.&lt;br /&gt;
&lt;br /&gt;
Without loss of generality we have (a,b)=(11111,11133), (c,d) = (11113,11131), thus p = 11122.  By permuting the first three indices, we may assume that p&#039; is not of the form x2y2z, x2yz2, xy22z, xy2z2.  Then 1112x lies outside the set and 1122x lies in the set, so by the above paragraph 1132x lies in the set; similarly for 113x2, 1312x, 131x2.  This implies that 13122, 11322 lie outside the set, but this (together with 11122) shows that at least three C-points are missing, a contradiction.&lt;br /&gt;
&lt;br /&gt;
== General n ==&lt;br /&gt;
&lt;br /&gt;
General solution for &amp;lt;math&amp;gt;c&#039;_N&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* q 2s, all points from A(N-q,1)&lt;br /&gt;
* q-1 2s, points from A(N-q+1,2)&lt;br /&gt;
* q-2 2s, points from A(N-q+2,3)&lt;br /&gt;
* etc.&lt;br /&gt;
&lt;br /&gt;
where A(m,d) is a subset of &amp;lt;math&amp;gt;[1,3]^m&amp;lt;/math&amp;gt; for which any two points differ from each other in at least d places.&lt;br /&gt;
&lt;br /&gt;
Mathworld’s entry on error-correcting codes suggests it might be NP-complete to find the size of A(m,d) in general.&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;math&amp;gt;|A(m,1)| = 2^m&amp;lt;/math&amp;gt; because it includes all points in &amp;lt;math&amp;gt;[1,3]^m&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;|A(m,2)| = 2^{m-1}&amp;lt;/math&amp;gt; because it can include all points in &amp;lt;math&amp;gt;[1,3]^m&amp;lt;/math&amp;gt; with an odd number of 1s&lt;br /&gt;
&lt;br /&gt;
The integer programming routine from Maple 12 was used to obtain upper bounds for &amp;lt;math&amp;gt;c&#039;_6&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;c&#039;_7&amp;lt;/math&amp;gt;.  A large number of linear inequalities, described above in sections (n=3) and (n=4), were combined.  The details are in [[Maple calculations]].  The results were that &amp;lt;math&amp;gt;c&#039;_6 \le 361&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;c&#039;_7 \le 1071&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
A [[genetic algorithm]] has provided the following examples:&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;math&amp;gt;c&#039;_6 \geq 353&amp;lt;/math&amp;gt; (26 examples; [http://twofoldgaze.wordpress.com/2009/03/10/353-element-solution/ here is one])&lt;br /&gt;
* &amp;lt;math&amp;gt;c&#039;_7 \geq 988&amp;lt;/math&amp;gt; [http://twofoldgaze.wordpress.com/2009/03/10/978-element-solution/ Here is the example]&lt;br /&gt;
&lt;br /&gt;
== Larger sides (k&amp;gt;3) ==&lt;br /&gt;
&lt;br /&gt;
The following set gives a lower bound for Moser’s cube &amp;lt;math&amp;gt;[4]^n&amp;lt;/math&amp;gt; (values 1,2,3,4):  Pick all points where q entries are 2 or 3; and also pick those where q-1 entries are 2 or 3 and an odd number of entries are 1.  This is maximized when q is near n/2, giving a lower bound of&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\binom{n}{n/2} 2^n + \binom{n}{n/2-1} 2^{n-1}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
which is comparable to &amp;lt;math&amp;gt;4^n/\sqrt{n}&amp;lt;/math&amp;gt; by [[Stirling&#039;s formula]].&lt;br /&gt;
&lt;br /&gt;
For k=5 (values 1,2,3,4,5) If A, B, C, D, and E denote the numbers of 1-s, 2-s, 3-s, 4-s and 5-s then the first three points of a geometric line form a 3-term arithmetic progression in A+E+2(B+D)+3C. So, for k=5 we have a similar lower bound for the Moser’s problem as for DHJ k=3, i.e. &amp;lt;math&amp;gt;5^{n - O(\sqrt{\log n})}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
The k=6 version of Moser implies DHJ(3).  Indeed, any k=3 combinatorial line-free set can be &amp;quot;doubled up&amp;quot; into a k=6 geometric line-free set of the same density by pulling back the set from the map &amp;lt;math&amp;gt;\phi: [6]^n \to [3]^n&amp;lt;/math&amp;gt; that maps 1, 2, 3, 4, 5, 6 to 1, 2, 3, 3, 2, 1 respectively; note that this map sends k=6 geometric lines to k=3 combinatorial lines.&lt;/div&gt;</summary>
		<author><name>121.220.134.232</name></author>
	</entry>
	<entry>
		<id>https://michaelnielsen.org/polymath/index.php?title=Moser%27s_cube_problem&amp;diff=1024</id>
		<title>Moser&#039;s cube problem</title>
		<link rel="alternate" type="text/html" href="https://michaelnielsen.org/polymath/index.php?title=Moser%27s_cube_problem&amp;diff=1024"/>
		<updated>2009-03-21T04:02:55Z</updated>

		<summary type="html">&lt;p&gt;121.220.134.232: /* Variants */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Define a &#039;&#039;Moser set&#039;&#039; to be a subset of &amp;lt;math&amp;gt;[3]^n&amp;lt;/math&amp;gt; which does not contain any [[geometric line]], and let &amp;lt;math&amp;gt;c&#039;_n&amp;lt;/math&amp;gt; denote the size of the largest Moser set in &amp;lt;math&amp;gt;[3]^n&amp;lt;/math&amp;gt;.  The first few values are (see [http://www.research.att.com/~njas/sequences/A003142 OEIS A003142]):&lt;br /&gt;
&lt;br /&gt;
: &amp;lt;math&amp;gt;c&#039;_0 = 1; c&#039;_1 = 2; c&#039;_2 = 6; c&#039;_3 = 16; c&#039;_4 = 43; c&#039;_5 = 124.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Beyond this point, we only have some upper and lower bounds, in particular &amp;lt;math&amp;gt;353 \leq c&#039;_6 \leq 361&amp;lt;/math&amp;gt;; see [http://spreadsheets.google.com/ccc?key=p5T0SktZY9DsU-uZ1tK7VEg this spreadsheet] for the latest bounds.&lt;br /&gt;
&lt;br /&gt;
The best known asymptotic lower bound for &amp;lt;math&amp;gt;c&#039;_n&amp;lt;/math&amp;gt; is&lt;br /&gt;
&lt;br /&gt;
: &amp;lt;math&amp;gt;c&#039;_n \gg 3^n/\sqrt{n}&amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
formed by fixing the number of 2s to a single value near n/3.  Compare this to the DHJ(2) or Sperner limit of &amp;lt;math&amp;gt;2^n/\sqrt{n}&amp;lt;/math&amp;gt;.  Is it possible to do any better?  Note that we have a [[Upper_and_lower_bounds#Asymptotics|significantly better bound]] for the DHJ(3) &amp;lt;math&amp;gt;c_n&amp;lt;/math&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
: &amp;lt;math&amp;gt;c_n \geq 3^{n-O(\sqrt{\log n})}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
A more precise lower bound is&lt;br /&gt;
&lt;br /&gt;
: &amp;lt;math&amp;gt;c&#039;_n \geq \binom{n+1}{q} 2^{n-q}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where q is the nearest integer to &amp;lt;math&amp;gt;n/3&amp;lt;/math&amp;gt;, formed by taking all strings with q 2s, together with all strings with q-1 2s and an odd number of 1s.  This for instance gives the lower bound &amp;lt;math&amp;gt;c&#039;_5 \geq 120&amp;lt;/math&amp;gt;, which compares with the upper bound &amp;lt;math&amp;gt;c&#039;_5 \leq 3 c&#039;_4 = 129&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Using [[DHJ(3)]], we have the upper bound&lt;br /&gt;
&lt;br /&gt;
: &amp;lt;math&amp;gt;c&#039;_n = o(3^n)&amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
but no effective decay rate is known. It would be good to have a combinatorial proof of this fact (which is weaker than [[DHJ(3)]], but implies [[Roth&#039;s theorem]]).&lt;br /&gt;
&lt;br /&gt;
== Notation ==&lt;br /&gt;
&lt;br /&gt;
Given a Moser set A in &amp;lt;math&amp;gt;[3]^n&amp;lt;/math&amp;gt;, we let a be the number of points in A with no 2s, b be the number of points in A with one 2, c the number of points with two 2s, etc.  We call (a,b,c,...) the &#039;&#039;statistics&#039;&#039; of A.  Given a slice S of &amp;lt;math&amp;gt;[3]^n&amp;lt;/math&amp;gt;, we let a(S), b(S), etc. denote the statistics of that slice (dropping the fixed coordinates).  Thus for instance if A = {11, 12, 22, 32}, then (a,b,c) = (1,2,1), and (a(1*),b(1*)) = (1,1).&lt;br /&gt;
&lt;br /&gt;
We call a statistic (a,b,c,...) &#039;&#039;attainable&#039;&#039; if it is attained by a Moser set.  We say that an attainable statistic is &#039;&#039;Pareto-optimal&#039;&#039; if it cannot be pointwise dominated by any other attainable statistic (a&#039;,b&#039;,c&#039;,...) (thus &amp;lt;math&amp;gt;a&#039; \geq a&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;b&#039; \geq b&amp;lt;/math&amp;gt;, etc.)  We say that it is &#039;&#039;extremal&#039;&#039; if it is not a convex combination of any other attainable statistic (this is a stronger property than Pareto-optimal).  For the purposes of maximising linear scores of attainable statistics, it suffices to check extremal statistics.&lt;br /&gt;
&lt;br /&gt;
We let &amp;lt;math&amp;gt;(\alpha_0,\alpha_1,\ldots)&amp;lt;/math&amp;gt; be the normalized version of &amp;lt;math&amp;gt;(a,b,\ldots)&amp;lt;/math&amp;gt;, in which one divides the number of points of a certain type in the set by the total number of points in the set.  Thus for instance &amp;lt;math&amp;gt;\alpha_0 = a/2^n, \alpha_1 = b/(n 2^{n-1}), \alpha_3 = c/(\binom{n}{2} 2^{n-2})&amp;lt;/math&amp;gt;, etc., and the &amp;lt;math&amp;gt;\alpha_i&amp;lt;/math&amp;gt; range between 0 and 1.  Averaging arguments show that any linear inequality obeyed by the &amp;lt;math&amp;gt;\alpha_i&amp;lt;/math&amp;gt; at one dimension is automatically inherited by higher dimensions, as are shifted versions of this inequality (in which &amp;lt;math&amp;gt;\alpha_i&amp;lt;/math&amp;gt; is replaced by &amp;lt;math&amp;gt;\alpha_{i+1}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
The idea in &#039;c-statistics&#039; is to identify 1s and 3s but leave the 2s intact. Let’s use x to denote letters that are either 1 or 3, then the 81 points get split up into 16 groups: 2222 (1 point), 222x, 22×2, 2×22, x222 (two points each), 22xx, 2×2x, x22x, 2xx2, x2×2, xx22 (four points each), 2xxx, x2xx, xx2x, xxx2 (eight points each), xxxx (sixteen points). Let c(w) denote the number of points inside a group w, e.g. c(xx22) is the number of points of the form xx22 inside the set, and is thus an integer from 0 to 4.&lt;br /&gt;
&lt;br /&gt;
== n=0 ==&lt;br /&gt;
&lt;br /&gt;
We trivially have &amp;lt;math&amp;gt;c&#039;_0=1.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== n=1 ==&lt;br /&gt;
&lt;br /&gt;
We trivially have &amp;lt;math&amp;gt;c&#039;_1=2.&amp;lt;/math&amp;gt;  The Pareto-optimal values of the statistics (a,b) are (1,1) and (2,0); these are also the extremals.  We thus have the inequality &amp;lt;math&amp;gt;a+b \leq 2&amp;lt;/math&amp;gt;, or in normalized notation&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;2\alpha_0 + \alpha_1 \leq 2&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== n=2 ==&lt;br /&gt;
&lt;br /&gt;
We have &amp;lt;math&amp;gt;c&#039;_2 = 6&amp;lt;/math&amp;gt;; the upper bound follows since &amp;lt;math&amp;gt;c&#039;_2 \leq 3 c&#039;_1&amp;lt;/math&amp;gt;, and the lower bound follows by deleting one of the two diagonals from &amp;lt;math&amp;gt;[3]^2&amp;lt;/math&amp;gt; (these are the only extremisers).&lt;br /&gt;
&lt;br /&gt;
The extremiser has statistics (a,b,c) = (2,4,0), which are of course Pareto-optimal.  If c=1 then we must have a, b at most 2 (look at the lines through 22).  This is attainable (e.g. {11, 12, 22, 23, 31}, and so (2,2,1) is another Pareto-optimal statistic.  If a=4, then b and c must be 0, so we get another Pareto-optimal statistic (4,0,0) (attainable by {11, 13, 31, 33} of course).  If a=3, then c=0 and b is at most 2, giving another Pareto-optimal statistic (3,2,0); but this is a convex combination of (4,0,0) and (2,4,0) and is thus not extremal.  Thus the complete set of extremal statistics are&lt;br /&gt;
&lt;br /&gt;
(4,0,0), (2,4,0), (2,2,1).&lt;br /&gt;
&lt;br /&gt;
The sharp linear inequalities obeyed by a,b,c (other than the trivial ones &amp;lt;math&amp;gt;a,b,c \geq 0&amp;lt;/math&amp;gt;) are then&lt;br /&gt;
&lt;br /&gt;
*&amp;lt;math&amp;gt;2a+b+2c \leq 8&amp;lt;/math&amp;gt;&lt;br /&gt;
*&amp;lt;math&amp;gt;b+2c \leq 4&amp;lt;/math&amp;gt;&lt;br /&gt;
*&amp;lt;math&amp;gt;a+2c \leq 4&amp;lt;/math&amp;gt;&lt;br /&gt;
*&amp;lt;math&amp;gt;c \leq 1&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
In normalized notation, we have&lt;br /&gt;
*&amp;lt;math&amp;gt;4\alpha_0 + 2\alpha_1 + \alpha_2 \leq 4&amp;lt;/math&amp;gt;&lt;br /&gt;
*&amp;lt;math&amp;gt;2\alpha_1 + \alpha_2 \leq 2&amp;lt;/math&amp;gt;&lt;br /&gt;
*&amp;lt;math&amp;gt;2\alpha_0 + \alpha_2 \leq 2&amp;lt;/math&amp;gt;&lt;br /&gt;
*&amp;lt;math&amp;gt;\alpha_2 \leq 1&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== n=3 ==&lt;br /&gt;
&lt;br /&gt;
We have &amp;lt;math&amp;gt;c&#039;_3 = 16&amp;lt;/math&amp;gt;.  The lower bound can be seen for instance by taking all the strings with one 2, and half the strings with no 2 (e.g. the strings with an odd number of 1s).  The upper bound can be deduced from the corresponding [[upper and lower bounds]] for &amp;lt;math&amp;gt;c_3 = 18&amp;lt;/math&amp;gt;; the 17-point and 18-point line-free sets each contain a geometric line.&lt;br /&gt;
&lt;br /&gt;
If a Moser set in &amp;lt;math&amp;gt;[3]^3&amp;lt;/math&amp;gt; contains 222, then it can have at most 14 points, since the remaining 26 points in the cube split into 13 antipodal pairs, and at most one of each pair can lie in the set.  By exhausting over the &amp;lt;math&amp;gt;2^{13} = 8192&amp;lt;/math&amp;gt; possibilities, it can be shown that it is impossible for a 14-point set to exist; any Moser set containing 222 must in fact omit at least one antipodal pair completely and thus have only 13 points.  (A human proof of this fact can be [http://www.ma.rhul.ac.uk/~elsholtz/WWW/blog/mosertablogv01.pdf found here].)&lt;br /&gt;
&lt;br /&gt;
The Pareto-optimal statistics are&lt;br /&gt;
&lt;br /&gt;
(3,6,3,1),(4,4,3,1),(4,6,2,1),(2,6,6,0),(3,6,5,0),(4,4,5,0),(3,7,4,0),(4,6,4,0), (3,9,3,0),(4,7,3,0),(5,4,3,0),(4,9,2,0),(5,6,2,0),(6,3,2,0),(3,10,1,0),(5,7,1,0), (6,4,1,0),(4,12,0,0),(5,9,0,0),(6,6,0,0),(7,3,0,0),(8,0,0,0).&lt;br /&gt;
&lt;br /&gt;
These were found from a search of the &amp;lt;math&amp;gt;2^{27}&amp;lt;/math&amp;gt; subsets of the cube.&lt;br /&gt;
A spreadsheet containing these statistics can be [http://spreadsheets.google.com/ccc?key=p5T0SktZY9DuKZ2DyzO9EOg&amp;amp;hl=en# found here].&lt;br /&gt;
&lt;br /&gt;
The extremal statistics are&lt;br /&gt;
&lt;br /&gt;
(3,6,3,1),(4,4,3,1),(4,6,2,1),(2,6,6,0),(4,4,5,0),(4,6,4,0),(4,12,0,0),(8,0,0,0)&lt;br /&gt;
&lt;br /&gt;
The sharp linear bounds are :&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;math&amp;gt;2a+b+2c+4d \leq 22&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;3a+2b+3c+6d \leq 36&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;7a+2b+4c+8d \leq 56&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;6a+2b+3c+6d \leq 48&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;b+c+3d \leq 12&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;a+2c+4d \leq 14&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;5a+4c+8d \leq 40&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;a+4d \leq 8&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;b+6d \leq 12&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;c+3d \leq 6&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;d \leq 1&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In normalized notation,&lt;br /&gt;
* &amp;lt;math&amp;gt;8\alpha_0+ 6\alpha_1 + 6\alpha_2 + 2\alpha_3 \leq 11&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;4\alpha_0+4\alpha_1+3\alpha_2+\alpha_3 \leq 6&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;7\alpha_0+3\alpha_1+3\alpha_2+\alpha_3 \leq 7&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;8\alpha_0+3\alpha_1+3\alpha_2+\alpha_3 \leq 8&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;4\alpha_1+2\alpha_2+\alpha_3 \leq 4&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;4\alpha_0+6\alpha_2+2\alpha_3 \leq 7&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;5\alpha_0+3\alpha_2+\alpha_3 \leq 5&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;2\alpha_0+\alpha_3 \leq 2&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;2\alpha_1+\alpha_3 \leq 2&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;2\alpha_2+\alpha_3 \leq 2&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;\alpha_3 \leq 1&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The c-statistics can also be found from an exhaustive search of Moser sets.  The resulting Pareto sets and linear inequalities can be found on Sheet 8 of [http://spreadsheets.google.com/ccc?key=p5T0SktZY9DuKZ2DyzO9EOg&amp;amp;hl=en# this spreadsheet]&lt;br /&gt;
&lt;br /&gt;
== n=4 ==&lt;br /&gt;
&lt;br /&gt;
A [http://abel.math.umu.se/~klasm/extremal-moser-n=5-t=3 computer search] has obtained all extremisers to &amp;lt;math&amp;gt;c&#039;_4=43&amp;lt;/math&amp;gt;.  The 42-point solutions can be found [http://abel.math.umu.se/~klasm/moser-n=4-t=3-p=42.gz here].&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof that &amp;lt;math&amp;gt;c&#039;_4 \leq 43&amp;lt;/math&amp;gt;&#039;&#039;&#039;: &lt;br /&gt;
When e=1 (i.e. the 4D set contains 2222) then we have at most 41 points (in fact at most 39) by counting antipodal points, so assume e=0.&lt;br /&gt;
&lt;br /&gt;
Define the score of a 3D slice to be a/4+b/3+c/2+d.  Observe from double counting that the size of a 4D set is the sum of the scores of its eight side slices.&lt;br /&gt;
&lt;br /&gt;
But by [http://spreadsheets.google.com/ccc?key=p5T0SktZY9DuKZ2DyzO9EOg&amp;amp;hl=en looking at the extremals] we see that the largest score is 44/8, attained at only one point, namely when (a,b,c,d) = (2,6,6,0).  So the only way one can have a 44-point set is if all side slices are (2,6,6,0), or equivalently if the whole set has statistics (a,b,c,d,e) = (4,16,24,0,0).  But then we have all the points with two 2s, which means that the four &amp;quot;a&amp;quot; points cannot be separated by Hamming distance 2.  We conclude that we must have an antipodal pair among the &amp;quot;a&amp;quot; points with an odd number of 1s, and an antipodal pair among the &amp;quot;a&amp;quot; points with an even number of 1s.    By the symmetries of the cube, we may take the a-set to then be 1111, 3333, 1113, 3331.  But then the &amp;quot;b&amp;quot; set must exclude both 1112 and 3332, and so can have at most three points in the eight-point set xyz2 (with x,y,z=1,3) rather than four (to get four points one must alternate in a checkerboard pattern).  Adding this to the at most four points of the form xy2z, x2yz, 2xyz we see that b is at most 16, a contradiction. &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Given a subset of &amp;lt;math&amp;gt;[3]^4&amp;lt;/math&amp;gt;, let a be the number of points with no 2s, b be the number of points with 1 2, and so forth.  The quintuple (a,b,c,d,e) thus lies between (0,0,0,0,0) and (16,32,24,8,1).&lt;br /&gt;
&lt;br /&gt;
The 43-point solutions have distributions (a,b,c,d,e) as follows:&lt;br /&gt;
&lt;br /&gt;
* (5,20,18,0,0) [16 solutions]&lt;br /&gt;
* (4,16,23,0,0) [768 solutions]&lt;br /&gt;
* (3,16,24,0,0) [512 solutions]&lt;br /&gt;
* (4,15,24,0,0) [256 solutions]&lt;br /&gt;
&lt;br /&gt;
The 42-point solutions are [http://abel.math.umu.se/~klasm/Moser-42-stat.pdf distributed as follows]:&lt;br /&gt;
&lt;br /&gt;
* (6,24,12,0,0) [[http://abel.math.umu.se/~klasm/moser-n=4-42-12 8 solutions]] &lt;br /&gt;
* (5,20,17,0,0) [576 solutions]&lt;br /&gt;
* (5,19,18,0,0) [384 solutions]&lt;br /&gt;
* (6,16,18,2,0) [[http://abel.math.umu.se/~klasm/moser-n=4-42-e=2 192 solutions]]&lt;br /&gt;
* (4,20,18,0,0) [272 solutions]&lt;br /&gt;
* (5,17,20,0,0) [192 solutions]&lt;br /&gt;
* (5,16,21,0,0) [3584 solutions]&lt;br /&gt;
* (4,17,21,0,0) [768 solutions]&lt;br /&gt;
* (4,16,22,0,0) [26880 solutions]&lt;br /&gt;
* (5,15,22,0,0) [1536 solutions]&lt;br /&gt;
* (4,15,23,0,0) [22272 solutions]&lt;br /&gt;
* (3,16,23,0,0) [15744 solutions]&lt;br /&gt;
* (4,14,24,0,0) [4224 solutions]&lt;br /&gt;
* (3,15,24,0,0) [8704 solutions]&lt;br /&gt;
* (2,16,24,0,0) [896 solutions]&lt;br /&gt;
&lt;br /&gt;
Note how c is usually quite large, and d quite low.&lt;br /&gt;
&lt;br /&gt;
One of the (6,24,12,0,0) solutions is &amp;lt;math&amp;gt;\Gamma_{220}+\Gamma_{202}+\Gamma_{022}+\Gamma_{112}+\Gamma_{211}&amp;lt;/math&amp;gt; (i.e. the set of points containing exactly two 1s, and/or exactly two 3s).  The other seven are reflections of this set.&lt;br /&gt;
&lt;br /&gt;
There are 2,765,200 41-point solutions, [http://abel.math.umu.se/~klasm/solutions-4-t=3-41-moser.gz listed here].  The statistics for such points can be [http://abel.math.umu.se/~klasm/Moser-41-stat.pdf found here].  Noteworthy features of the statistics:&lt;br /&gt;
&lt;br /&gt;
* d is at most 3 (and, except for [http://abel.math.umu.se/~klasm/moser-n=3-t=3-41-d=3.gz 256 exceptional solutions] of the shape (5,15,18,3,0), have d at most 2; here are the [http://abel.math.umu.se/~klasm/moser-n=3-t=3-41-d=2.gz d=2 solutions] and [http://abel.math.umu.se/~klasm/moser-n=3-t=3-41-d=1.gz d=1 solutions])&lt;br /&gt;
* c is at least 6 (and, except for [http://abel.math.umu.se/~klasm/moser-n=3-t=3-41-c=6.gz 16 exceptional solutions] of the shape (7,28,6,0,0), have c at least 11).&lt;br /&gt;
&lt;br /&gt;
Statistics for the 41-point, 42-point, and 43-point solutions can be found [http://spreadsheets.google.com/ccc?key=p5T0SktZY9DuqNcxJ171Bbw&amp;amp;hl=en here].&lt;br /&gt;
&lt;br /&gt;
If a Moser set in &amp;lt;math&amp;gt;[3]^4&amp;lt;/math&amp;gt; contains 2222, then by the n=3 theory, any middle slice (i.e. 2***, *2**, **2*, or ***2) is missing at least one antipodal pair.  But each antipodal pair belongs to at most three middle slices, thus two of the 40 antipodal pairs must be completely missing.  As a consequence, any Moser set containing 2222 can have at most 39 points.&lt;br /&gt;
(A more refined analysis can be found at [http://www.ma.rhul.ac.uk/~elsholtz/WWW/blog/mosertablogv01.pdf found here].)&lt;br /&gt;
&lt;br /&gt;
We have the following inequalities connecting a,b,c,d,e:&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;math&amp;gt;4a+b \leq 64&amp;lt;/math&amp;gt;:  There are 32 lines connecting two &amp;quot;a&amp;quot; points with a &amp;quot;b&amp;quot; point; each &amp;quot;a&amp;quot; point belongs to four of these lines, and each &amp;quot;b&amp;quot; point belongs to one.  But each such line can have at most two points in the set, and the claim follows.&lt;br /&gt;
* This can be refined to &amp;lt;math&amp;gt;4a+b+\frac{2}{3} c \leq 64&amp;lt;/math&amp;gt;: There are 24 planes connecting four &amp;quot;a&amp;quot; points, four &amp;quot;b&amp;quot; points, and one &amp;quot;c&amp;quot; point; each &amp;quot;a&amp;quot; point belongs to six of these, each &amp;quot;b&amp;quot; point belongs to three, and each &amp;quot;c&amp;quot; point belongs to one.  For each of these planes, we have &amp;lt;math&amp;gt;2a + b + 2c \leq 8&amp;lt;/math&amp;gt; from the n=2 theory, and the claim follows.&lt;br /&gt;
* &amp;lt;math&amp;gt;6a+2c \leq 96&amp;lt;/math&amp;gt;:  There are 96 lines connecting two &amp;quot;a&amp;quot; points with a &amp;quot;c&amp;quot; point; each &amp;quot;a&amp;quot; point belongs to six of these lines, and each &amp;quot;c&amp;quot; point belongs to two.  But each such line can have at most two points in the set, and the claim follows.&lt;br /&gt;
* &amp;lt;math&amp;gt;3b+2c \leq 96&amp;lt;/math&amp;gt;:  There are 48 lines connecting two &amp;quot;b&amp;quot; points to a &amp;quot;c&amp;quot; point; each &amp;quot;b&amp;quot; point belongs to three of these points, and each &amp;quot;c&amp;quot; point belongs to two.  But each such line can have at most two points in the set, and the claim follows.&lt;br /&gt;
&lt;br /&gt;
The inequalities for n=3 imply inequalities for n=4.  Indeed, there are eight side slices of &amp;lt;math&amp;gt;[3]^4&amp;lt;/math&amp;gt;; each &amp;quot;a&amp;quot; point belongs to four of these, each &amp;quot;b&amp;quot; point belongs to three, each &amp;quot;c&amp;quot; point belongs to two, and each &amp;quot;d&amp;quot; point belongs to one.  Thus, any inequality of the form&lt;br /&gt;
:&amp;lt;math&amp;gt; \alpha a + \beta b + \gamma c + \delta d \leq M&amp;lt;/math&amp;gt;&lt;br /&gt;
in three dimensions implies the inequality&lt;br /&gt;
:&amp;lt;math&amp;gt; 4 \alpha a + 3 \beta b + 2 \gamma c + \delta d \leq 8M&amp;lt;/math&amp;gt;&lt;br /&gt;
in four dimensions.  Thus we have&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;math&amp;gt;8a+3b+4c+4d \leq 176&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;2a+b+c+d \leq 48&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;14a+3b+4c+4d \leq 244&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;4a+b+c+d \leq 64&amp;lt;/math&amp;gt; &lt;br /&gt;
* &amp;lt;math&amp;gt;3b+2c+3d \leq 96&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;a+c+d \leq 28&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;5a+2c+2d \leq 80&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;a+d \leq 16&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;b+2d \leq 32&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;2c+3d \leq 48&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Cubes also sit diagonally in the 4-dimensional cube.  They may have coordinates xxyz, where xx runs over (11,22,33) or (13,22,31), while y and z run over (1,2,3).  These cubes have a different distribution of 2s than the ordinary slices: (a,b,c,d,e) = (8,8,6,4,1) instead of (8,12,6,1,0) for the side slices and (0,8,12,6,1) for the middle slices.  So a different set of inequalities arise.  It is possible to run through the same procedure as described above for n=3, and the inequalities that arise are &amp;lt;math&amp;gt;2a+b+2c+2d+4e \le 24&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;4a+b+2c+2d+4e \le 32&amp;lt;/math&amp;gt; within the 3D cube, which when averaged becomes &amp;lt;math&amp;gt;4a+b+2c+4d+16e \le 96&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;8a+b+2c+4d+16e \le 128&amp;lt;/math&amp;gt; for the 4D cube.  A spreadsheet containing these statistics can be [http://spreadsheets.google.com/ccc?key=p5T0SktZY9DuKZ2DyzO9EOg&amp;amp;hl=en# found here] on sheet 2.  Other sheets of this spreadsheet contain results for a 3D cube sitting diagonally in a 5D, 6D or 7D cube.  Notice the similarity of the equations that arise for the xxxyz, xxyyz and xxxxyz diagonals.  Also notice the xxxxyyz diagonals have the same Pareto sets and linear inequalities as the cube&#039;s c-statistics&lt;br /&gt;
&lt;br /&gt;
== n=5 ==&lt;br /&gt;
&lt;br /&gt;
Let (A,B,C,D,E,F) be the statistics of a five-dimensional Moser set, thus (A,B,C,D,E,F) varies between (0,0,0,0,0,0) and (32,80,80,40,10,1).&lt;br /&gt;
&lt;br /&gt;
There are several Moser sets with the statistics (4,40,80,0,0,0), which thus have 124 points.  Indeed, one can take&lt;br /&gt;
&lt;br /&gt;
* all points with two 2s;&lt;br /&gt;
* all points with one 2 and an even number of 1s; and&lt;br /&gt;
* (13111),(13113),(31311),(13333). Any two of these four points differ in three places, except for one pair of points that differ in one place.&lt;br /&gt;
&lt;br /&gt;
For the rest of this section, we assume that the Moser set &amp;lt;math&amp;gt;{\mathcal A}&amp;lt;/math&amp;gt; is a 125-point set.&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 1&#039;&#039;&#039;: F=0.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; If F is non-zero, then the Moser set contains 22222, then each of the 121 antipodal pairs can have at most one point in the set, leading to only 122 points. &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 2&#039;&#039;&#039;: Every middle slice of &amp;lt;math&amp;gt;{\mathcal A}&amp;lt;/math&amp;gt; has at most 41 points.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039;  Without loss of generality we may consider the 2**** slice.  There are two cases, depending on the value of c(2****).&lt;br /&gt;
&lt;br /&gt;
Suppose first that c is at least 17; thus there are at least 17 points of the form 222xy, 22xy2, 2xy22, or 2x22y, where the x, y denote 1 or 3.  This gives 36 &amp;quot;xy&amp;quot; wildcards in all in four coordinate slots; by the pigeonhole principle one of the slots sees at least 9 of the wildcards.  By symmetry, we may assume that the second coordinate slot sees at least 9 of these wildcards, thus there are at least 9 points of the form 2x22y, 2x2y2, 2xy22.  The x=1, x=3 cases can absorb at most six of these, thus each of these cases must absorb at least three points, with at least one absorbing at least five.  Let&#039;s say that it&#039;s the x=3 case that absorbs 5; thus &amp;lt;math&amp;gt;d(*1***) \geq 3&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;d(*3***) \geq 5&amp;lt;/math&amp;gt;.  From the n=4 theory this means that the *1*** slice has at most 41 points, and the *3*** slice has at most 40.  Meanwhile, the middle slice has at most 43, leading to 41+41+42=124 points in all.&lt;br /&gt;
&lt;br /&gt;
Now suppose c is less than 16; then by the n=4 theory the middle slice is one of the eight (6,24,12,0,0) sets.  Without loss of generality we may take it to be &amp;lt;math&amp;gt;\Gamma_{220}+\Gamma_{202}+\Gamma_{022}+\Gamma_{112}+\Gamma_{211}&amp;lt;/math&amp;gt;; in particular, the middle slice contains the points 21122 21212 21221 23322 23232 23223.  In particular, the *1*** and *3*** slices have a &amp;quot;d&amp;quot; value of at least three, and so have at most 41 points.  If the *2*** slice has at most 42 points, then we are at 41+42+41=124 points as needed, but if we have 43 or more, then we are back in the first case (as &amp;lt;math&amp;gt;c(*2***) \geq 17&amp;lt;/math&amp;gt;) after permuting the indices.&lt;br /&gt;
&amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Since 125=41+41+43, we thus have&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Corollary 1&#039;&#039;&#039;: Every side slice of &amp;lt;math&amp;gt;{\mathcal A}&amp;lt;/math&amp;gt; has at least 41 points.  If one side slice does have 41 points, then the other has 43.&lt;br /&gt;
&lt;br /&gt;
Combining this with the n=4 statistics, we conclude&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Corollary 2&#039;&#039;&#039;: Every side slice of &amp;lt;math&amp;gt;{\mathcal A}&amp;lt;/math&amp;gt; has e=0, and &amp;lt;math&amp;gt;d \leq 3&amp;lt;/math&amp;gt;.  Given two opposite side slices, e.g. 1**** and 3****, we have &amp;lt;math&amp;gt;d(1****)+d(3****) \leq 4&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Corollary 3&#039;&#039;&#039;: E=0.&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Corollary 4&#039;&#039;&#039;: Any middle slice has a &amp;quot;c&amp;quot; value of at most 8.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; Let&#039;s work with the 2**** slice.  By Corollary 2, there are at most four contributions to c(2****) of the form 21*** or 23***, and similarly for the other three positions.  Double counting then gives the claim. &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 3&#039;&#039;&#039;: &amp;lt;math&amp;gt;2B+C \leq 160&amp;lt;/math&amp;gt;.   &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039;: There are 160 lines connecting one &amp;quot;C&amp;quot; point to two &amp;quot;B&amp;quot; points (e.g. 11112, 11122, 11132); each &amp;quot;C&amp;quot; point lies in two of these, and each &amp;quot;B&amp;quot; point lies on four.  A Moser set can have at most two points out of each of these lines.  Double counting then gives the claim.  &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 4&#039;&#039;&#039; Given m A-points with &amp;lt;math&amp;gt;m \geq 5&amp;lt;/math&amp;gt;, there exists at least m-4 pairs (a,b) of such A-points with Hamming distance exactly two (i.e. b differs from a in exactly two places).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; It suffices to check this for m=5, since the case of larger m then follows by locating a pair, removing a point that contributes to that pair, and using the induction hypothesis.  Given 5 A-points, we may assume by the pigeonhole principle and symmetry that at least three of them have an odd number of 1s.  Suppose 11111 is one of the points, and that no pair has Hamming distance 2. All points with two 3s are excluded, so the only points allowed with an odd number of 1s are those with four 3s. But all those points differ from each other in two positions, so at most one of them is allowed.  &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Corollary 5&#039;&#039;&#039; &amp;lt;math&amp;gt;C \leq 79&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039;: Suppose for contradiction that C=80, then D=0 and &amp;lt;math&amp;gt;B \leq 40&amp;lt;/math&amp;gt;.  From Lemma 4 we also see that A cannot exceed 5, leading to the contradiction.&lt;br /&gt;
&amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Define the &#039;&#039;&#039;score&#039;&#039;&#039; of a Moser set in &amp;lt;math&amp;gt;[3]^4&amp;lt;/math&amp;gt; to be the quantity &amp;lt;math&amp;gt;a + 5b/4 + 5c/3 + 5d/2 + 5e&amp;lt;/math&amp;gt;.  Double-counting (and Lemma 2) gives&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 5&#039;&#039;&#039;  The total score of all the ten side-slices of &amp;lt;math&amp;gt;{\mathcal A}&amp;lt;/math&amp;gt; is equal to &amp;lt;math&amp;gt;5|{\mathcal A}| = 5 \times 125&amp;lt;/math&amp;gt;.  In particular, there exists a pair of opposite side-slices whose scores add up to at least 125.&lt;br /&gt;
&lt;br /&gt;
By Lemma 5 and symmetry, we may assume that the 1**** and 3**** slices have score adding up to at least 125.  By Lemma 2, the 2**** slice has at most 41 points, which imply that the 1**** and 3**** have 41, 42, or 43 points.  From the [http://spreadsheets.google.com/ccc?key=p5T0SktZY9DuqNcxJ171Bbw&amp;amp;hl=en n=4 statistics] we know that all 41-point, 42-point, 43-point slices have score less than 62, with the following exceptions:&lt;br /&gt;
&lt;br /&gt;
# (2,16,24,0,0) [42 points, score: 62]&lt;br /&gt;
# (4,16,23,0,0) [43 points, score: 62 1/3]&lt;br /&gt;
# (4,15,24,0,0) [43 points, score: 62 3/4]&lt;br /&gt;
# (3,16,24,0,0) [43 points, score: 63]&lt;br /&gt;
&lt;br /&gt;
Thus the 1**** and 3**** slices must from the above list.  Furthermore, if one of the slices is of type 1, then the other must be of type 4, and if one slice is of type 2, then the other must be of type 3 or 4.&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 6&#039;&#039;&#039; There exists one cut in which the side slices have total score strictly greater than 125 (i.e. they thus involve only Type 2, Type 3, and Type 4 slices, with at least one side slice not equal to Type 2, and the cut here is of the form 43+39+43).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; If not, then all cuts have side slices exactly equal to 125, which by the above table implies that one is Type 1 and one is Type 4, in particular all side slices have c=24.  But this forces C=80, contradicting Corollary 5. &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Adding up the corners we conclude&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Corollary 6&#039;&#039;&#039; &amp;lt;math&amp;gt;6 \leq A \leq 8&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 7&#039;&#039;&#039; &amp;lt;math&amp;gt;D=0&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; Firstly, from Lemma 6 we have a cut in which the two side slices are omitting at most one C-point between them (and have no D-point), which forces the middle slice to have at most one D-point; thus D is at most 1.&lt;br /&gt;
&lt;br /&gt;
Now suppose instead that D=1 (e.g. if 11222 was in the set); then there would be two choices of coordinates in which one of the side slices would have d=1 (e.g. 1**** and *1****). But the [http://spreadsheets.google.com/ccc?key=p5T0SktZY9DuqNcxJ171Bbw&amp;amp;hl=en n=4 statistics] show that such slices have a score of at most 59 7/12, so that the total score from those two coordinates is at most 63 + 59 7/12 = 122 7/12. On the other hand, the other three slices have a net score of at most 63+63 = 126. This averages out to at most 124.633... &amp;lt; 125, a contradiction.  &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Corollary 7&#039;&#039;&#039; Every middle slice has at most 40 points.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; From Lemma 7 we see that the middle slice must have c=0, but from the n=4 statistics this is not possible for any slice of size 41 or higher (alternatively, one can use the inequalities &amp;lt;math&amp;gt;4a+b \leq 64&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;b \leq 32&amp;lt;/math&amp;gt;). &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Each middle slice now has 39 or 40 points, with c=d=e=0, and so from the inequalities &amp;lt;math&amp;gt;4a+b \leq 64&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;b \leq 32&amp;lt;/math&amp;gt; must have statistics (8,32,0,0,0),(7,32,0,0,0), or (8,31,0,0,0).  In particular the &amp;quot;a&amp;quot; index of the middle slices is at most 8.  Summing over all middle slices we conclude&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 9&#039;&#039;&#039; B is at most 40.&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 10&#039;&#039;&#039; C is equal to 78 or 79.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; By Corollary 5, it suffices to show that &amp;lt;math&amp;gt;C \geq 78&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
As 125=43+39+43, we see that every center slice must have at least 39 points. By Lemma 2 and Lemma 7 the center slice has c=d=e=0, thus the center slice has a+b &amp;gt;= 39.  On the other hand, from the n=4 theory we have 4a+b &amp;lt;= 64, which forces b &amp;gt;= 31.&lt;br /&gt;
&lt;br /&gt;
By double counting, we see that 2C is equal to the sum of the b&#039;s of all the five center slices.  Thus C &amp;gt;= 5*31/2 = 77.5 and the claim follows.  &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
From Lemmas 9 and 10 we see that &amp;lt;math&amp;gt;B+C \leq 119&amp;lt;/math&amp;gt;, and thus &amp;lt;math&amp;gt;A \geq 6&amp;lt;/math&amp;gt;.  Also, if &amp;lt;math&amp;gt;A \geq 7&amp;lt;/math&amp;gt;, then by Lemma 4 we have at least three pairs of A points with Hamming distance 2.  At most two of these pairs eliminate the same C point, so we would have C=78 in that case.  &lt;br /&gt;
&lt;br /&gt;
Putting all the above facts together, we see that (A,B,C,D,E,F) must be one of the following triples:&lt;br /&gt;
&lt;br /&gt;
* (6,40,79,0,0,0)&lt;br /&gt;
* (7,40,78,0,0,0)&lt;br /&gt;
* (8,39,78,0,0,0)&lt;br /&gt;
&lt;br /&gt;
All three cases can be eliminated, giving &amp;lt;math&amp;gt;c&#039;_5=124&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== Elimination of (6,40,79,0,0,0) ===&lt;br /&gt;
&lt;br /&gt;
Look at the 6 A points.  From Lemma 4 we have at least two pairs (a,b), (c,d) of A-points that have Hamming separation 2.&lt;br /&gt;
&lt;br /&gt;
Now look at the midpoints of these two pairs; these midpoints are C-points cannot lie in the set.  But we have exactly one C-point missing from the set, thus the midpoints must be the same.  By symmetry, we may thus assume that the two pairs are (11111,11133) and (11113,11131).  Thus 11111,11133, 11113, 11131 are in the set, and so every C-point other than 11122 is in the set.  On the other hand, the B-points 11121, 11123, 11112, 11132 lie outside the set.&lt;br /&gt;
&lt;br /&gt;
At most one of 11312, 11332 lie in the set (since 11322 lies in the set).   Suppose that 11312 lies outside the set, then we have a pair (xy1z2, xy3z2) with x,y,z = 1,3 that is totally omitted from the set, namely (11112,11312).  On the other hand, every other pair of this form can have at most point in the set, thus there are at most seven points in the set of the form (xyzw2) with x,y,z,w = 1,3.  Similarly there are at most 8 points of the form xyz2w, or of xy2zw, x2yzw, 2xyzw, leading to at most 39 B-points in all, contradiction.&lt;br /&gt;
&lt;br /&gt;
=== Elimination of (7,40,78,0,0,0) ===&lt;br /&gt;
&lt;br /&gt;
By Lemma 4, we have at least three pairs of A-points of distance two apart that lie in the set.&lt;br /&gt;
The midpoints of these pairs are C-points that do not lie in the set; but there are only two such C-points, thus two pairs must have the same midpoint, so we may assume as before that 111xy lies in the set for x,y=1,3, which implies that 1112* and 111*2 lie outside the set.&lt;br /&gt;
&lt;br /&gt;
Now consider the 160 lines between 2 B points and one C point (cf. Lemma 3).  The sum of all the points in each such line (counting multiplicity) is 4B+2C = 316.  On the other hand, every one of the 160 lines can have at most two points, and four of these lines (namely 1112*, 111*2) have no points.  Thus all the other lines must have exactly two points.  &lt;br /&gt;
&lt;br /&gt;
We know that the C-point 11122 is missing from the set; there is one other missing C-point.  Since 1112x, 111x2 lie outside the set, we conclude from the previous paragraph that 1132x, 113x2 and 1312x, 131x2 lie in the set.  Taking midpoints we conclude that 11322 and 13122 lie outside the set.  But this is now three C-points missing (together with 11122), a contradiction.&lt;br /&gt;
&lt;br /&gt;
=== Elimination of (8,39,78,0,0,0) ===&lt;br /&gt;
&lt;br /&gt;
By Lemma 4 we have at least four pairs of A-points of distance two apart that lie in the set. The midpoints of these pairs are C-points that do not lie in the set; but there are only two such C-points, thus two pairs (a,b), (c,d) must have the same midpoint p, and the other two pairs (a&#039;,b&#039;), (c&#039;,d&#039;) must also have the same midpoint p&#039;.  (Note that every C-point is the midpoint of at most two such pairs.)&lt;br /&gt;
&lt;br /&gt;
Now consider the 160 lines between 2 B points and one C point (cf. Lemma 3).  The sum of all the points in each such line (counting multiplicity) is 4B+2C = 312.  Every one of the 160 lines can have at most two points, and four of these (those in the plane of (a,b,c,d) or of (a&#039;,b&#039;,c&#039;,d&#039;) have no points.  Thus all other lines must have exactly two points.&lt;br /&gt;
&lt;br /&gt;
Without loss of generality we have (a,b)=(11111,11133), (c,d) = (11113,11131), thus p = 11122.  By permuting the first three indices, we may assume that p&#039; is not of the form x2y2z, x2yz2, xy22z, xy2z2.  Then 1112x lies outside the set and 1122x lies in the set, so by the above paragraph 1132x lies in the set; similarly for 113x2, 1312x, 131x2.  This implies that 13122, 11322 lie outside the set, but this (together with 11122) shows that at least three C-points are missing, a contradiction.&lt;br /&gt;
&lt;br /&gt;
== General n ==&lt;br /&gt;
&lt;br /&gt;
General solution for &amp;lt;math&amp;gt;c&#039;_N&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* q 2s, all points from A(N-q,1)&lt;br /&gt;
* q-1 2s, points from A(N-q+1,2)&lt;br /&gt;
* q-2 2s, points from A(N-q+2,3)&lt;br /&gt;
* etc.&lt;br /&gt;
&lt;br /&gt;
where A(m,d) is a subset of &amp;lt;math&amp;gt;[1,3]^m&amp;lt;/math&amp;gt; for which any two points differ from each other in at least d places.&lt;br /&gt;
&lt;br /&gt;
Mathworld’s entry on error-correcting codes suggests it might be NP-complete to find the size of A(m,d) in general.&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;math&amp;gt;|A(m,1)| = 2^m&amp;lt;/math&amp;gt; because it includes all points in &amp;lt;math&amp;gt;[1,3]^m&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;|A(m,2)| = 2^{m-1}&amp;lt;/math&amp;gt; because it can include all points in &amp;lt;math&amp;gt;[1,3]^m&amp;lt;/math&amp;gt; with an odd number of 1s&lt;br /&gt;
&lt;br /&gt;
The integer programming routine from Maple 12 was used to obtain upper bounds for &amp;lt;math&amp;gt;c&#039;_6&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;c&#039;_7&amp;lt;/math&amp;gt;.  A large number of linear inequalities, described above in sections (n=3) and (n=4), were combined.  The details are in [[Maple calculations]].  The results were that &amp;lt;math&amp;gt;c&#039;_6 \le 361&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;c&#039;_7 \le 1071&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
A [[genetic algorithm]] has provided the following examples:&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;math&amp;gt;c&#039;_6 \geq 353&amp;lt;/math&amp;gt; (26 examples; [http://twofoldgaze.wordpress.com/2009/03/10/353-element-solution/ here is one])&lt;br /&gt;
* &amp;lt;math&amp;gt;c&#039;_7 \geq 988&amp;lt;/math&amp;gt; [http://twofoldgaze.wordpress.com/2009/03/10/978-element-solution/ Here is the example]&lt;br /&gt;
&lt;br /&gt;
== Larger sides ==&lt;br /&gt;
&lt;br /&gt;
The following set gives a lower bound for Moser’s cube &amp;lt;math&amp;gt;[4]^n&amp;lt;/math&amp;gt; (values 1,2,3,4):  Pick all points where q entries are 2 or 3; and also pick those where q-1 entries are 2 or 3 and an odd number of entries are 1.  This is maximized when q is near n/2, giving a lower bound of&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\binom{n}{n/2} 2^n + \binom{n}{n/2-1} 2^{n-1}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
which is comparable to &amp;lt;math&amp;gt;4^n/\sqrt{n}&amp;lt;/math&amp;gt; by [[Stirling&#039;s formula]].&lt;br /&gt;
&lt;br /&gt;
For k=5 (values 1,2,3,4,5) If A, B, C, D, and E denote the numbers of 1-s, 2-s, 3-s, 4-s and 5-s then the first three points of a geometric line form a 3-term arithmetic progression in A+E+2(B+D)+3C. So, for k=5 we have a similar lower bound for the Moser’s problem as for DHJ k=3, i.e. &amp;lt;math&amp;gt;5^{n - O(\sqrt{\log n})}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
The k=6 version of Moser implies DHJ(3).  Indeed, any k=3 combinatorial line-free set can be &amp;quot;doubled up&amp;quot; into a k=6 geometric line-free set of the same density by pulling back the set from the map &amp;lt;math&amp;gt;\phi: [6]^n \to [3]^n&amp;lt;/math&amp;gt; that maps 1, 2, 3, 4, 5, 6 to 1, 2, 3, 3, 2, 1 respectively; note that this map sends k=6 geometric lines to k=3 combinatorial lines.&lt;/div&gt;</summary>
		<author><name>121.220.134.232</name></author>
	</entry>
	<entry>
		<id>https://michaelnielsen.org/polymath/index.php?title=Moser%27s_cube_problem&amp;diff=1023</id>
		<title>Moser&#039;s cube problem</title>
		<link rel="alternate" type="text/html" href="https://michaelnielsen.org/polymath/index.php?title=Moser%27s_cube_problem&amp;diff=1023"/>
		<updated>2009-03-21T01:58:21Z</updated>

		<summary type="html">&lt;p&gt;121.220.134.232: /* n=4 */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Define a &#039;&#039;Moser set&#039;&#039; to be a subset of &amp;lt;math&amp;gt;[3]^n&amp;lt;/math&amp;gt; which does not contain any [[geometric line]], and let &amp;lt;math&amp;gt;c&#039;_n&amp;lt;/math&amp;gt; denote the size of the largest Moser set in &amp;lt;math&amp;gt;[3]^n&amp;lt;/math&amp;gt;.  The first few values are (see [http://www.research.att.com/~njas/sequences/A003142 OEIS A003142]):&lt;br /&gt;
&lt;br /&gt;
: &amp;lt;math&amp;gt;c&#039;_0 = 1; c&#039;_1 = 2; c&#039;_2 = 6; c&#039;_3 = 16; c&#039;_4 = 43; c&#039;_5 = 124.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Beyond this point, we only have some upper and lower bounds, in particular &amp;lt;math&amp;gt;353 \leq c&#039;_6 \leq 361&amp;lt;/math&amp;gt;; see [http://spreadsheets.google.com/ccc?key=p5T0SktZY9DsU-uZ1tK7VEg this spreadsheet] for the latest bounds.&lt;br /&gt;
&lt;br /&gt;
The best known asymptotic lower bound for &amp;lt;math&amp;gt;c&#039;_n&amp;lt;/math&amp;gt; is&lt;br /&gt;
&lt;br /&gt;
: &amp;lt;math&amp;gt;c&#039;_n \gg 3^n/\sqrt{n}&amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
formed by fixing the number of 2s to a single value near n/3.  Compare this to the DHJ(2) or Sperner limit of &amp;lt;math&amp;gt;2^n/\sqrt{n}&amp;lt;/math&amp;gt;.  Is it possible to do any better?  Note that we have a [[Upper_and_lower_bounds#Asymptotics|significantly better bound]] for the DHJ(3) &amp;lt;math&amp;gt;c_n&amp;lt;/math&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
: &amp;lt;math&amp;gt;c_n \geq 3^{n-O(\sqrt{\log n})}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
A more precise lower bound is&lt;br /&gt;
&lt;br /&gt;
: &amp;lt;math&amp;gt;c&#039;_n \geq \binom{n+1}{q} 2^{n-q}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where q is the nearest integer to &amp;lt;math&amp;gt;n/3&amp;lt;/math&amp;gt;, formed by taking all strings with q 2s, together with all strings with q-1 2s and an odd number of 1s.  This for instance gives the lower bound &amp;lt;math&amp;gt;c&#039;_5 \geq 120&amp;lt;/math&amp;gt;, which compares with the upper bound &amp;lt;math&amp;gt;c&#039;_5 \leq 3 c&#039;_4 = 129&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Using [[DHJ(3)]], we have the upper bound&lt;br /&gt;
&lt;br /&gt;
: &amp;lt;math&amp;gt;c&#039;_n = o(3^n)&amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
but no effective decay rate is known. It would be good to have a combinatorial proof of this fact (which is weaker than [[DHJ(3)]], but implies [[Roth&#039;s theorem]]).&lt;br /&gt;
&lt;br /&gt;
== Notation ==&lt;br /&gt;
&lt;br /&gt;
Given a Moser set A in &amp;lt;math&amp;gt;[3]^n&amp;lt;/math&amp;gt;, we let a be the number of points in A with no 2s, b be the number of points in A with one 2, c the number of points with two 2s, etc.  We call (a,b,c,...) the &#039;&#039;statistics&#039;&#039; of A.  Given a slice S of &amp;lt;math&amp;gt;[3]^n&amp;lt;/math&amp;gt;, we let a(S), b(S), etc. denote the statistics of that slice (dropping the fixed coordinates).  Thus for instance if A = {11, 12, 22, 32}, then (a,b,c) = (1,2,1), and (a(1*),b(1*)) = (1,1).&lt;br /&gt;
&lt;br /&gt;
We call a statistic (a,b,c,...) &#039;&#039;attainable&#039;&#039; if it is attained by a Moser set.  We say that an attainable statistic is &#039;&#039;Pareto-optimal&#039;&#039; if it cannot be pointwise dominated by any other attainable statistic (a&#039;,b&#039;,c&#039;,...) (thus &amp;lt;math&amp;gt;a&#039; \geq a&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;b&#039; \geq b&amp;lt;/math&amp;gt;, etc.)  We say that it is &#039;&#039;extremal&#039;&#039; if it is not a convex combination of any other attainable statistic (this is a stronger property than Pareto-optimal).  For the purposes of maximising linear scores of attainable statistics, it suffices to check extremal statistics.&lt;br /&gt;
&lt;br /&gt;
We let &amp;lt;math&amp;gt;(\alpha_0,\alpha_1,\ldots)&amp;lt;/math&amp;gt; be the normalized version of &amp;lt;math&amp;gt;(a,b,\ldots)&amp;lt;/math&amp;gt;, in which one divides the number of points of a certain type in the set by the total number of points in the set.  Thus for instance &amp;lt;math&amp;gt;\alpha_0 = a/2^n, \alpha_1 = b/(n 2^{n-1}), \alpha_3 = c/(\binom{n}{2} 2^{n-2})&amp;lt;/math&amp;gt;, etc., and the &amp;lt;math&amp;gt;\alpha_i&amp;lt;/math&amp;gt; range between 0 and 1.  Averaging arguments show that any linear inequality obeyed by the &amp;lt;math&amp;gt;\alpha_i&amp;lt;/math&amp;gt; at one dimension is automatically inherited by higher dimensions, as are shifted versions of this inequality (in which &amp;lt;math&amp;gt;\alpha_i&amp;lt;/math&amp;gt; is replaced by &amp;lt;math&amp;gt;\alpha_{i+1}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
The idea in &#039;c-statistics&#039; is to identify 1s and 3s but leave the 2s intact. Let’s use x to denote letters that are either 1 or 3, then the 81 points get split up into 16 groups: 2222 (1 point), 222x, 22×2, 2×22, x222 (two points each), 22xx, 2×2x, x22x, 2xx2, x2×2, xx22 (four points each), 2xxx, x2xx, xx2x, xxx2 (eight points each), xxxx (sixteen points). Let c(w) denote the number of points inside a group w, e.g. c(xx22) is the number of points of the form xx22 inside the set, and is thus an integer from 0 to 4.&lt;br /&gt;
&lt;br /&gt;
== n=0 ==&lt;br /&gt;
&lt;br /&gt;
We trivially have &amp;lt;math&amp;gt;c&#039;_0=1.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== n=1 ==&lt;br /&gt;
&lt;br /&gt;
We trivially have &amp;lt;math&amp;gt;c&#039;_1=2.&amp;lt;/math&amp;gt;  The Pareto-optimal values of the statistics (a,b) are (1,1) and (2,0); these are also the extremals.  We thus have the inequality &amp;lt;math&amp;gt;a+b \leq 2&amp;lt;/math&amp;gt;, or in normalized notation&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;2\alpha_0 + \alpha_1 \leq 2&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== n=2 ==&lt;br /&gt;
&lt;br /&gt;
We have &amp;lt;math&amp;gt;c&#039;_2 = 6&amp;lt;/math&amp;gt;; the upper bound follows since &amp;lt;math&amp;gt;c&#039;_2 \leq 3 c&#039;_1&amp;lt;/math&amp;gt;, and the lower bound follows by deleting one of the two diagonals from &amp;lt;math&amp;gt;[3]^2&amp;lt;/math&amp;gt; (these are the only extremisers).&lt;br /&gt;
&lt;br /&gt;
The extremiser has statistics (a,b,c) = (2,4,0), which are of course Pareto-optimal.  If c=1 then we must have a, b at most 2 (look at the lines through 22).  This is attainable (e.g. {11, 12, 22, 23, 31}, and so (2,2,1) is another Pareto-optimal statistic.  If a=4, then b and c must be 0, so we get another Pareto-optimal statistic (4,0,0) (attainable by {11, 13, 31, 33} of course).  If a=3, then c=0 and b is at most 2, giving another Pareto-optimal statistic (3,2,0); but this is a convex combination of (4,0,0) and (2,4,0) and is thus not extremal.  Thus the complete set of extremal statistics are&lt;br /&gt;
&lt;br /&gt;
(4,0,0), (2,4,0), (2,2,1).&lt;br /&gt;
&lt;br /&gt;
The sharp linear inequalities obeyed by a,b,c (other than the trivial ones &amp;lt;math&amp;gt;a,b,c \geq 0&amp;lt;/math&amp;gt;) are then&lt;br /&gt;
&lt;br /&gt;
*&amp;lt;math&amp;gt;2a+b+2c \leq 8&amp;lt;/math&amp;gt;&lt;br /&gt;
*&amp;lt;math&amp;gt;b+2c \leq 4&amp;lt;/math&amp;gt;&lt;br /&gt;
*&amp;lt;math&amp;gt;a+2c \leq 4&amp;lt;/math&amp;gt;&lt;br /&gt;
*&amp;lt;math&amp;gt;c \leq 1&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
In normalized notation, we have&lt;br /&gt;
*&amp;lt;math&amp;gt;4\alpha_0 + 2\alpha_1 + \alpha_2 \leq 4&amp;lt;/math&amp;gt;&lt;br /&gt;
*&amp;lt;math&amp;gt;2\alpha_1 + \alpha_2 \leq 2&amp;lt;/math&amp;gt;&lt;br /&gt;
*&amp;lt;math&amp;gt;2\alpha_0 + \alpha_2 \leq 2&amp;lt;/math&amp;gt;&lt;br /&gt;
*&amp;lt;math&amp;gt;\alpha_2 \leq 1&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== n=3 ==&lt;br /&gt;
&lt;br /&gt;
We have &amp;lt;math&amp;gt;c&#039;_3 = 16&amp;lt;/math&amp;gt;.  The lower bound can be seen for instance by taking all the strings with one 2, and half the strings with no 2 (e.g. the strings with an odd number of 1s).  The upper bound can be deduced from the corresponding [[upper and lower bounds]] for &amp;lt;math&amp;gt;c_3 = 18&amp;lt;/math&amp;gt;; the 17-point and 18-point line-free sets each contain a geometric line.&lt;br /&gt;
&lt;br /&gt;
If a Moser set in &amp;lt;math&amp;gt;[3]^3&amp;lt;/math&amp;gt; contains 222, then it can have at most 14 points, since the remaining 26 points in the cube split into 13 antipodal pairs, and at most one of each pair can lie in the set.  By exhausting over the &amp;lt;math&amp;gt;2^{13} = 8192&amp;lt;/math&amp;gt; possibilities, it can be shown that it is impossible for a 14-point set to exist; any Moser set containing 222 must in fact omit at least one antipodal pair completely and thus have only 13 points.  (A human proof of this fact can be [http://www.ma.rhul.ac.uk/~elsholtz/WWW/blog/mosertablogv01.pdf found here].)&lt;br /&gt;
&lt;br /&gt;
The Pareto-optimal statistics are&lt;br /&gt;
&lt;br /&gt;
(3,6,3,1),(4,4,3,1),(4,6,2,1),(2,6,6,0),(3,6,5,0),(4,4,5,0),(3,7,4,0),(4,6,4,0), (3,9,3,0),(4,7,3,0),(5,4,3,0),(4,9,2,0),(5,6,2,0),(6,3,2,0),(3,10,1,0),(5,7,1,0), (6,4,1,0),(4,12,0,0),(5,9,0,0),(6,6,0,0),(7,3,0,0),(8,0,0,0).&lt;br /&gt;
&lt;br /&gt;
These were found from a search of the &amp;lt;math&amp;gt;2^{27}&amp;lt;/math&amp;gt; subsets of the cube.&lt;br /&gt;
A spreadsheet containing these statistics can be [http://spreadsheets.google.com/ccc?key=p5T0SktZY9DuKZ2DyzO9EOg&amp;amp;hl=en# found here].&lt;br /&gt;
&lt;br /&gt;
The extremal statistics are&lt;br /&gt;
&lt;br /&gt;
(3,6,3,1),(4,4,3,1),(4,6,2,1),(2,6,6,0),(4,4,5,0),(4,6,4,0),(4,12,0,0),(8,0,0,0)&lt;br /&gt;
&lt;br /&gt;
The sharp linear bounds are :&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;math&amp;gt;2a+b+2c+4d \leq 22&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;3a+2b+3c+6d \leq 36&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;7a+2b+4c+8d \leq 56&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;6a+2b+3c+6d \leq 48&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;b+c+3d \leq 12&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;a+2c+4d \leq 14&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;5a+4c+8d \leq 40&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;a+4d \leq 8&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;b+6d \leq 12&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;c+3d \leq 6&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;d \leq 1&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In normalized notation,&lt;br /&gt;
* &amp;lt;math&amp;gt;8\alpha_0+ 6\alpha_1 + 6\alpha_2 + 2\alpha_3 \leq 11&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;4\alpha_0+4\alpha_1+3\alpha_2+\alpha_3 \leq 6&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;7\alpha_0+3\alpha_1+3\alpha_2+\alpha_3 \leq 7&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;8\alpha_0+3\alpha_1+3\alpha_2+\alpha_3 \leq 8&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;4\alpha_1+2\alpha_2+\alpha_3 \leq 4&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;4\alpha_0+6\alpha_2+2\alpha_3 \leq 7&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;5\alpha_0+3\alpha_2+\alpha_3 \leq 5&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;2\alpha_0+\alpha_3 \leq 2&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;2\alpha_1+\alpha_3 \leq 2&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;2\alpha_2+\alpha_3 \leq 2&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;\alpha_3 \leq 1&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The c-statistics can also be found from an exhaustive search of Moser sets.  The resulting Pareto sets and linear inequalities can be found on Sheet 8 of [http://spreadsheets.google.com/ccc?key=p5T0SktZY9DuKZ2DyzO9EOg&amp;amp;hl=en# this spreadsheet]&lt;br /&gt;
&lt;br /&gt;
== n=4 ==&lt;br /&gt;
&lt;br /&gt;
A [http://abel.math.umu.se/~klasm/extremal-moser-n=5-t=3 computer search] has obtained all extremisers to &amp;lt;math&amp;gt;c&#039;_4=43&amp;lt;/math&amp;gt;.  The 42-point solutions can be found [http://abel.math.umu.se/~klasm/moser-n=4-t=3-p=42.gz here].&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof that &amp;lt;math&amp;gt;c&#039;_4 \leq 43&amp;lt;/math&amp;gt;&#039;&#039;&#039;: &lt;br /&gt;
When e=1 (i.e. the 4D set contains 2222) then we have at most 41 points (in fact at most 39) by counting antipodal points, so assume e=0.&lt;br /&gt;
&lt;br /&gt;
Define the score of a 3D slice to be a/4+b/3+c/2+d.  Observe from double counting that the size of a 4D set is the sum of the scores of its eight side slices.&lt;br /&gt;
&lt;br /&gt;
But by [http://spreadsheets.google.com/ccc?key=p5T0SktZY9DuKZ2DyzO9EOg&amp;amp;hl=en looking at the extremals] we see that the largest score is 44/8, attained at only one point, namely when (a,b,c,d) = (2,6,6,0).  So the only way one can have a 44-point set is if all side slices are (2,6,6,0), or equivalently if the whole set has statistics (a,b,c,d,e) = (4,16,24,0,0).  But then we have all the points with two 2s, which means that the four &amp;quot;a&amp;quot; points cannot be separated by Hamming distance 2.  We conclude that we must have an antipodal pair among the &amp;quot;a&amp;quot; points with an odd number of 1s, and an antipodal pair among the &amp;quot;a&amp;quot; points with an even number of 1s.    By the symmetries of the cube, we may take the a-set to then be 1111, 3333, 1113, 3331.  But then the &amp;quot;b&amp;quot; set must exclude both 1112 and 3332, and so can have at most three points in the eight-point set xyz2 (with x,y,z=1,3) rather than four (to get four points one must alternate in a checkerboard pattern).  Adding this to the at most four points of the form xy2z, x2yz, 2xyz we see that b is at most 16, a contradiction. &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Given a subset of &amp;lt;math&amp;gt;[3]^4&amp;lt;/math&amp;gt;, let a be the number of points with no 2s, b be the number of points with 1 2, and so forth.  The quintuple (a,b,c,d,e) thus lies between (0,0,0,0,0) and (16,32,24,8,1).&lt;br /&gt;
&lt;br /&gt;
The 43-point solutions have distributions (a,b,c,d,e) as follows:&lt;br /&gt;
&lt;br /&gt;
* (5,20,18,0,0) [16 solutions]&lt;br /&gt;
* (4,16,23,0,0) [768 solutions]&lt;br /&gt;
* (3,16,24,0,0) [512 solutions]&lt;br /&gt;
* (4,15,24,0,0) [256 solutions]&lt;br /&gt;
&lt;br /&gt;
The 42-point solutions are [http://abel.math.umu.se/~klasm/Moser-42-stat.pdf distributed as follows]:&lt;br /&gt;
&lt;br /&gt;
* (6,24,12,0,0) [[http://abel.math.umu.se/~klasm/moser-n=4-42-12 8 solutions]] &lt;br /&gt;
* (5,20,17,0,0) [576 solutions]&lt;br /&gt;
* (5,19,18,0,0) [384 solutions]&lt;br /&gt;
* (6,16,18,2,0) [[http://abel.math.umu.se/~klasm/moser-n=4-42-e=2 192 solutions]]&lt;br /&gt;
* (4,20,18,0,0) [272 solutions]&lt;br /&gt;
* (5,17,20,0,0) [192 solutions]&lt;br /&gt;
* (5,16,21,0,0) [3584 solutions]&lt;br /&gt;
* (4,17,21,0,0) [768 solutions]&lt;br /&gt;
* (4,16,22,0,0) [26880 solutions]&lt;br /&gt;
* (5,15,22,0,0) [1536 solutions]&lt;br /&gt;
* (4,15,23,0,0) [22272 solutions]&lt;br /&gt;
* (3,16,23,0,0) [15744 solutions]&lt;br /&gt;
* (4,14,24,0,0) [4224 solutions]&lt;br /&gt;
* (3,15,24,0,0) [8704 solutions]&lt;br /&gt;
* (2,16,24,0,0) [896 solutions]&lt;br /&gt;
&lt;br /&gt;
Note how c is usually quite large, and d quite low.&lt;br /&gt;
&lt;br /&gt;
One of the (6,24,12,0,0) solutions is &amp;lt;math&amp;gt;\Gamma_{220}+\Gamma_{202}+\Gamma_{022}+\Gamma_{112}+\Gamma_{211}&amp;lt;/math&amp;gt; (i.e. the set of points containing exactly two 1s, and/or exactly two 3s).  The other seven are reflections of this set.&lt;br /&gt;
&lt;br /&gt;
There are 2,765,200 41-point solutions, [http://abel.math.umu.se/~klasm/solutions-4-t=3-41-moser.gz listed here].  The statistics for such points can be [http://abel.math.umu.se/~klasm/Moser-41-stat.pdf found here].  Noteworthy features of the statistics:&lt;br /&gt;
&lt;br /&gt;
* d is at most 3 (and, except for [http://abel.math.umu.se/~klasm/moser-n=3-t=3-41-d=3.gz 256 exceptional solutions] of the shape (5,15,18,3,0), have d at most 2; here are the [http://abel.math.umu.se/~klasm/moser-n=3-t=3-41-d=2.gz d=2 solutions] and [http://abel.math.umu.se/~klasm/moser-n=3-t=3-41-d=1.gz d=1 solutions])&lt;br /&gt;
* c is at least 6 (and, except for [http://abel.math.umu.se/~klasm/moser-n=3-t=3-41-c=6.gz 16 exceptional solutions] of the shape (7,28,6,0,0), have c at least 11).&lt;br /&gt;
&lt;br /&gt;
Statistics for the 41-point, 42-point, and 43-point solutions can be found [http://spreadsheets.google.com/ccc?key=p5T0SktZY9DuqNcxJ171Bbw&amp;amp;hl=en here].&lt;br /&gt;
&lt;br /&gt;
If a Moser set in &amp;lt;math&amp;gt;[3]^4&amp;lt;/math&amp;gt; contains 2222, then by the n=3 theory, any middle slice (i.e. 2***, *2**, **2*, or ***2) is missing at least one antipodal pair.  But each antipodal pair belongs to at most three middle slices, thus two of the 40 antipodal pairs must be completely missing.  As a consequence, any Moser set containing 2222 can have at most 39 points.&lt;br /&gt;
(A more refined analysis can be found at [http://www.ma.rhul.ac.uk/~elsholtz/WWW/blog/mosertablogv01.pdf found here].)&lt;br /&gt;
&lt;br /&gt;
We have the following inequalities connecting a,b,c,d,e:&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;math&amp;gt;4a+b \leq 64&amp;lt;/math&amp;gt;:  There are 32 lines connecting two &amp;quot;a&amp;quot; points with a &amp;quot;b&amp;quot; point; each &amp;quot;a&amp;quot; point belongs to four of these lines, and each &amp;quot;b&amp;quot; point belongs to one.  But each such line can have at most two points in the set, and the claim follows.&lt;br /&gt;
* This can be refined to &amp;lt;math&amp;gt;4a+b+\frac{2}{3} c \leq 64&amp;lt;/math&amp;gt;: There are 24 planes connecting four &amp;quot;a&amp;quot; points, four &amp;quot;b&amp;quot; points, and one &amp;quot;c&amp;quot; point; each &amp;quot;a&amp;quot; point belongs to six of these, each &amp;quot;b&amp;quot; point belongs to three, and each &amp;quot;c&amp;quot; point belongs to one.  For each of these planes, we have &amp;lt;math&amp;gt;2a + b + 2c \leq 8&amp;lt;/math&amp;gt; from the n=2 theory, and the claim follows.&lt;br /&gt;
* &amp;lt;math&amp;gt;6a+2c \leq 96&amp;lt;/math&amp;gt;:  There are 96 lines connecting two &amp;quot;a&amp;quot; points with a &amp;quot;c&amp;quot; point; each &amp;quot;a&amp;quot; point belongs to six of these lines, and each &amp;quot;c&amp;quot; point belongs to two.  But each such line can have at most two points in the set, and the claim follows.&lt;br /&gt;
* &amp;lt;math&amp;gt;3b+2c \leq 96&amp;lt;/math&amp;gt;:  There are 48 lines connecting two &amp;quot;b&amp;quot; points to a &amp;quot;c&amp;quot; point; each &amp;quot;b&amp;quot; point belongs to three of these points, and each &amp;quot;c&amp;quot; point belongs to two.  But each such line can have at most two points in the set, and the claim follows.&lt;br /&gt;
&lt;br /&gt;
The inequalities for n=3 imply inequalities for n=4.  Indeed, there are eight side slices of &amp;lt;math&amp;gt;[3]^4&amp;lt;/math&amp;gt;; each &amp;quot;a&amp;quot; point belongs to four of these, each &amp;quot;b&amp;quot; point belongs to three, each &amp;quot;c&amp;quot; point belongs to two, and each &amp;quot;d&amp;quot; point belongs to one.  Thus, any inequality of the form&lt;br /&gt;
:&amp;lt;math&amp;gt; \alpha a + \beta b + \gamma c + \delta d \leq M&amp;lt;/math&amp;gt;&lt;br /&gt;
in three dimensions implies the inequality&lt;br /&gt;
:&amp;lt;math&amp;gt; 4 \alpha a + 3 \beta b + 2 \gamma c + \delta d \leq 8M&amp;lt;/math&amp;gt;&lt;br /&gt;
in four dimensions.  Thus we have&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;math&amp;gt;8a+3b+4c+4d \leq 176&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;2a+b+c+d \leq 48&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;14a+3b+4c+4d \leq 244&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;4a+b+c+d \leq 64&amp;lt;/math&amp;gt; &lt;br /&gt;
* &amp;lt;math&amp;gt;3b+2c+3d \leq 96&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;a+c+d \leq 28&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;5a+2c+2d \leq 80&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;a+d \leq 16&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;b+2d \leq 32&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;2c+3d \leq 48&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Cubes also sit diagonally in the 4-dimensional cube.  They may have coordinates xxyz, where xx runs over (11,22,33) or (13,22,31), while y and z run over (1,2,3).  These cubes have a different distribution of 2s than the ordinary slices: (a,b,c,d,e) = (8,8,6,4,1) instead of (8,12,6,1,0) for the side slices and (0,8,12,6,1) for the middle slices.  So a different set of inequalities arise.  It is possible to run through the same procedure as described above for n=3, and the inequalities that arise are &amp;lt;math&amp;gt;2a+b+2c+2d+4e \le 24&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;4a+b+2c+2d+4e \le 32&amp;lt;/math&amp;gt; within the 3D cube, which when averaged becomes &amp;lt;math&amp;gt;4a+b+2c+4d+16e \le 96&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;8a+b+2c+4d+16e \le 128&amp;lt;/math&amp;gt; for the 4D cube.  A spreadsheet containing these statistics can be [http://spreadsheets.google.com/ccc?key=p5T0SktZY9DuKZ2DyzO9EOg&amp;amp;hl=en# found here] on sheet 2.  Other sheets of this spreadsheet contain results for a 3D cube sitting diagonally in a 5D, 6D or 7D cube.  Notice the similarity of the equations that arise for the xxxyz, xxyyz and xxxxyz diagonals.  Also notice the xxxxyyz diagonals have the same Pareto sets and linear inequalities as the cube&#039;s c-statistics&lt;br /&gt;
&lt;br /&gt;
== n=5 ==&lt;br /&gt;
&lt;br /&gt;
Let (A,B,C,D,E,F) be the statistics of a five-dimensional Moser set, thus (A,B,C,D,E,F) varies between (0,0,0,0,0,0) and (32,80,80,40,10,1).&lt;br /&gt;
&lt;br /&gt;
There are several Moser sets with the statistics (4,40,80,0,0,0), which thus have 124 points.  Indeed, one can take&lt;br /&gt;
&lt;br /&gt;
* all points with two 2s;&lt;br /&gt;
* all points with one 2 and an even number of 1s; and&lt;br /&gt;
* (13111),(13113),(31311),(13333). Any two of these four points differ in three places, except for one pair of points that differ in one place.&lt;br /&gt;
&lt;br /&gt;
For the rest of this section, we assume that the Moser set &amp;lt;math&amp;gt;{\mathcal A}&amp;lt;/math&amp;gt; is a 125-point set.&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 1&#039;&#039;&#039;: F=0.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; If F is non-zero, then the Moser set contains 22222, then each of the 121 antipodal pairs can have at most one point in the set, leading to only 122 points. &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 2&#039;&#039;&#039;: Every middle slice of &amp;lt;math&amp;gt;{\mathcal A}&amp;lt;/math&amp;gt; has at most 41 points.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039;  Without loss of generality we may consider the 2**** slice.  There are two cases, depending on the value of c(2****).&lt;br /&gt;
&lt;br /&gt;
Suppose first that c is at least 17; thus there are at least 17 points of the form 222xy, 22xy2, 2xy22, or 2x22y, where the x, y denote 1 or 3.  This gives 36 &amp;quot;xy&amp;quot; wildcards in all in four coordinate slots; by the pigeonhole principle one of the slots sees at least 9 of the wildcards.  By symmetry, we may assume that the second coordinate slot sees at least 9 of these wildcards, thus there are at least 9 points of the form 2x22y, 2x2y2, 2xy22.  The x=1, x=3 cases can absorb at most six of these, thus each of these cases must absorb at least three points, with at least one absorbing at least five.  Let&#039;s say that it&#039;s the x=3 case that absorbs 5; thus &amp;lt;math&amp;gt;d(*1***) \geq 3&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;d(*3***) \geq 5&amp;lt;/math&amp;gt;.  From the n=4 theory this means that the *1*** slice has at most 41 points, and the *3*** slice has at most 40.  Meanwhile, the middle slice has at most 43, leading to 41+41+42=124 points in all.&lt;br /&gt;
&lt;br /&gt;
Now suppose c is less than 16; then by the n=4 theory the middle slice is one of the eight (6,24,12,0,0) sets.  Without loss of generality we may take it to be &amp;lt;math&amp;gt;\Gamma_{220}+\Gamma_{202}+\Gamma_{022}+\Gamma_{112}+\Gamma_{211}&amp;lt;/math&amp;gt;; in particular, the middle slice contains the points 21122 21212 21221 23322 23232 23223.  In particular, the *1*** and *3*** slices have a &amp;quot;d&amp;quot; value of at least three, and so have at most 41 points.  If the *2*** slice has at most 42 points, then we are at 41+42+41=124 points as needed, but if we have 43 or more, then we are back in the first case (as &amp;lt;math&amp;gt;c(*2***) \geq 17&amp;lt;/math&amp;gt;) after permuting the indices.&lt;br /&gt;
&amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Since 125=41+41+43, we thus have&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Corollary 1&#039;&#039;&#039;: Every side slice of &amp;lt;math&amp;gt;{\mathcal A}&amp;lt;/math&amp;gt; has at least 41 points.  If one side slice does have 41 points, then the other has 43.&lt;br /&gt;
&lt;br /&gt;
Combining this with the n=4 statistics, we conclude&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Corollary 2&#039;&#039;&#039;: Every side slice of &amp;lt;math&amp;gt;{\mathcal A}&amp;lt;/math&amp;gt; has e=0, and &amp;lt;math&amp;gt;d \leq 3&amp;lt;/math&amp;gt;.  Given two opposite side slices, e.g. 1**** and 3****, we have &amp;lt;math&amp;gt;d(1****)+d(3****) \leq 4&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Corollary 3&#039;&#039;&#039;: E=0.&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Corollary 4&#039;&#039;&#039;: Any middle slice has a &amp;quot;c&amp;quot; value of at most 8.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; Let&#039;s work with the 2**** slice.  By Corollary 2, there are at most four contributions to c(2****) of the form 21*** or 23***, and similarly for the other three positions.  Double counting then gives the claim. &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 3&#039;&#039;&#039;: &amp;lt;math&amp;gt;2B+C \leq 160&amp;lt;/math&amp;gt;.   &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039;: There are 160 lines connecting one &amp;quot;C&amp;quot; point to two &amp;quot;B&amp;quot; points (e.g. 11112, 11122, 11132); each &amp;quot;C&amp;quot; point lies in two of these, and each &amp;quot;B&amp;quot; point lies on four.  A Moser set can have at most two points out of each of these lines.  Double counting then gives the claim.  &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 4&#039;&#039;&#039; Given m A-points with &amp;lt;math&amp;gt;m \geq 5&amp;lt;/math&amp;gt;, there exists at least m-4 pairs (a,b) of such A-points with Hamming distance exactly two (i.e. b differs from a in exactly two places).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; It suffices to check this for m=5, since the case of larger m then follows by locating a pair, removing a point that contributes to that pair, and using the induction hypothesis.  Given 5 A-points, we may assume by the pigeonhole principle and symmetry that at least three of them have an odd number of 1s.  Suppose 11111 is one of the points, and that no pair has Hamming distance 2. All points with two 3s are excluded, so the only points allowed with an odd number of 1s are those with four 3s. But all those points differ from each other in two positions, so at most one of them is allowed.  &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Corollary 5&#039;&#039;&#039; &amp;lt;math&amp;gt;C \leq 79&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039;: Suppose for contradiction that C=80, then D=0 and &amp;lt;math&amp;gt;B \leq 40&amp;lt;/math&amp;gt;.  From Lemma 4 we also see that A cannot exceed 5, leading to the contradiction.&lt;br /&gt;
&amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Define the &#039;&#039;&#039;score&#039;&#039;&#039; of a Moser set in &amp;lt;math&amp;gt;[3]^4&amp;lt;/math&amp;gt; to be the quantity &amp;lt;math&amp;gt;a + 5b/4 + 5c/3 + 5d/2 + 5e&amp;lt;/math&amp;gt;.  Double-counting (and Lemma 2) gives&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 5&#039;&#039;&#039;  The total score of all the ten side-slices of &amp;lt;math&amp;gt;{\mathcal A}&amp;lt;/math&amp;gt; is equal to &amp;lt;math&amp;gt;5|{\mathcal A}| = 5 \times 125&amp;lt;/math&amp;gt;.  In particular, there exists a pair of opposite side-slices whose scores add up to at least 125.&lt;br /&gt;
&lt;br /&gt;
By Lemma 5 and symmetry, we may assume that the 1**** and 3**** slices have score adding up to at least 125.  By Lemma 2, the 2**** slice has at most 41 points, which imply that the 1**** and 3**** have 41, 42, or 43 points.  From the [http://spreadsheets.google.com/ccc?key=p5T0SktZY9DuqNcxJ171Bbw&amp;amp;hl=en n=4 statistics] we know that all 41-point, 42-point, 43-point slices have score less than 62, with the following exceptions:&lt;br /&gt;
&lt;br /&gt;
# (2,16,24,0,0) [42 points, score: 62]&lt;br /&gt;
# (4,16,23,0,0) [43 points, score: 62 1/3]&lt;br /&gt;
# (4,15,24,0,0) [43 points, score: 62 3/4]&lt;br /&gt;
# (3,16,24,0,0) [43 points, score: 63]&lt;br /&gt;
&lt;br /&gt;
Thus the 1**** and 3**** slices must from the above list.  Furthermore, if one of the slices is of type 1, then the other must be of type 4, and if one slice is of type 2, then the other must be of type 3 or 4.&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 6&#039;&#039;&#039; There exists one cut in which the side slices have total score strictly greater than 125 (i.e. they thus involve only Type 2, Type 3, and Type 4 slices, with at least one side slice not equal to Type 2, and the cut here is of the form 43+39+43).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; If not, then all cuts have side slices exactly equal to 125, which by the above table implies that one is Type 1 and one is Type 4, in particular all side slices have c=24.  But this forces C=80, contradicting Corollary 5. &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Adding up the corners we conclude&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Corollary 6&#039;&#039;&#039; &amp;lt;math&amp;gt;6 \leq A \leq 8&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 7&#039;&#039;&#039; &amp;lt;math&amp;gt;D=0&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; Firstly, from Lemma 6 we have a cut in which the two side slices are omitting at most one C-point between them (and have no D-point), which forces the middle slice to have at most one D-point; thus D is at most 1.&lt;br /&gt;
&lt;br /&gt;
Now suppose instead that D=1 (e.g. if 11222 was in the set); then there would be two choices of coordinates in which one of the side slices would have d=1 (e.g. 1**** and *1****). But the [http://spreadsheets.google.com/ccc?key=p5T0SktZY9DuqNcxJ171Bbw&amp;amp;hl=en n=4 statistics] show that such slices have a score of at most 59 7/12, so that the total score from those two coordinates is at most 63 + 59 7/12 = 122 7/12. On the other hand, the other three slices have a net score of at most 63+63 = 126. This averages out to at most 124.633... &amp;lt; 125, a contradiction.  &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Corollary 7&#039;&#039;&#039; Every middle slice has at most 40 points.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; From Lemma 7 we see that the middle slice must have c=0, but from the n=4 statistics this is not possible for any slice of size 41 or higher (alternatively, one can use the inequalities &amp;lt;math&amp;gt;4a+b \leq 64&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;b \leq 32&amp;lt;/math&amp;gt;). &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Each middle slice now has 39 or 40 points, with c=d=e=0, and so from the inequalities &amp;lt;math&amp;gt;4a+b \leq 64&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;b \leq 32&amp;lt;/math&amp;gt; must have statistics (8,32,0,0,0),(7,32,0,0,0), or (8,31,0,0,0).  In particular the &amp;quot;a&amp;quot; index of the middle slices is at most 8.  Summing over all middle slices we conclude&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 9&#039;&#039;&#039; B is at most 40.&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 10&#039;&#039;&#039; C is equal to 78 or 79.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; By Corollary 5, it suffices to show that &amp;lt;math&amp;gt;C \geq 78&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
As 125=43+39+43, we see that every center slice must have at least 39 points. By Lemma 2 and Lemma 7 the center slice has c=d=e=0, thus the center slice has a+b &amp;gt;= 39.  On the other hand, from the n=4 theory we have 4a+b &amp;lt;= 64, which forces b &amp;gt;= 31.&lt;br /&gt;
&lt;br /&gt;
By double counting, we see that 2C is equal to the sum of the b&#039;s of all the five center slices.  Thus C &amp;gt;= 5*31/2 = 77.5 and the claim follows.  &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
From Lemmas 9 and 10 we see that &amp;lt;math&amp;gt;B+C \leq 119&amp;lt;/math&amp;gt;, and thus &amp;lt;math&amp;gt;A \geq 6&amp;lt;/math&amp;gt;.  Also, if &amp;lt;math&amp;gt;A \geq 7&amp;lt;/math&amp;gt;, then by Lemma 4 we have at least three pairs of A points with Hamming distance 2.  At most two of these pairs eliminate the same C point, so we would have C=78 in that case.  &lt;br /&gt;
&lt;br /&gt;
Putting all the above facts together, we see that (A,B,C,D,E,F) must be one of the following triples:&lt;br /&gt;
&lt;br /&gt;
* (6,40,79,0,0,0)&lt;br /&gt;
* (7,40,78,0,0,0)&lt;br /&gt;
* (8,39,78,0,0,0)&lt;br /&gt;
&lt;br /&gt;
All three cases can be eliminated, giving &amp;lt;math&amp;gt;c&#039;_5=124&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== Elimination of (6,40,79,0,0,0) ===&lt;br /&gt;
&lt;br /&gt;
Look at the 6 A points.  From Lemma 4 we have at least two pairs (a,b), (c,d) of A-points that have Hamming separation 2.&lt;br /&gt;
&lt;br /&gt;
Now look at the midpoints of these two pairs; these midpoints are C-points cannot lie in the set.  But we have exactly one C-point missing from the set, thus the midpoints must be the same.  By symmetry, we may thus assume that the two pairs are (11111,11133) and (11113,11131).  Thus 11111,11133, 11113, 11131 are in the set, and so every C-point other than 11122 is in the set.  On the other hand, the B-points 11121, 11123, 11112, 11132 lie outside the set.&lt;br /&gt;
&lt;br /&gt;
At most one of 11312, 11332 lie in the set (since 11322 lies in the set).   Suppose that 11312 lies outside the set, then we have a pair (xy1z2, xy3z2) with x,y,z = 1,3 that is totally omitted from the set, namely (11112,11312).  On the other hand, every other pair of this form can have at most point in the set, thus there are at most seven points in the set of the form (xyzw2) with x,y,z,w = 1,3.  Similarly there are at most 8 points of the form xyz2w, or of xy2zw, x2yzw, 2xyzw, leading to at most 39 B-points in all, contradiction.&lt;br /&gt;
&lt;br /&gt;
=== Elimination of (7,40,78,0,0,0) ===&lt;br /&gt;
&lt;br /&gt;
By Lemma 4, we have at least three pairs of A-points of distance two apart that lie in the set.&lt;br /&gt;
The midpoints of these pairs are C-points that do not lie in the set; but there are only two such C-points, thus two pairs must have the same midpoint, so we may assume as before that 111xy lies in the set for x,y=1,3, which implies that 1112* and 111*2 lie outside the set.&lt;br /&gt;
&lt;br /&gt;
Now consider the 160 lines between 2 B points and one C point (cf. Lemma 3).  The sum of all the points in each such line (counting multiplicity) is 4B+2C = 316.  On the other hand, every one of the 160 lines can have at most two points, and four of these lines (namely 1112*, 111*2) have no points.  Thus all the other lines must have exactly two points.  &lt;br /&gt;
&lt;br /&gt;
We know that the C-point 11122 is missing from the set; there is one other missing C-point.  Since 1112x, 111x2 lie outside the set, we conclude from the previous paragraph that 1132x, 113x2 and 1312x, 131x2 lie in the set.  Taking midpoints we conclude that 11322 and 13122 lie outside the set.  But this is now three C-points missing (together with 11122), a contradiction.&lt;br /&gt;
&lt;br /&gt;
=== Elimination of (8,39,78,0,0,0) ===&lt;br /&gt;
&lt;br /&gt;
By Lemma 4 we have at least four pairs of A-points of distance two apart that lie in the set. The midpoints of these pairs are C-points that do not lie in the set; but there are only two such C-points, thus two pairs (a,b), (c,d) must have the same midpoint p, and the other two pairs (a&#039;,b&#039;), (c&#039;,d&#039;) must also have the same midpoint p&#039;.  (Note that every C-point is the midpoint of at most two such pairs.)&lt;br /&gt;
&lt;br /&gt;
Now consider the 160 lines between 2 B points and one C point (cf. Lemma 3).  The sum of all the points in each such line (counting multiplicity) is 4B+2C = 312.  Every one of the 160 lines can have at most two points, and four of these (those in the plane of (a,b,c,d) or of (a&#039;,b&#039;,c&#039;,d&#039;) have no points.  Thus all other lines must have exactly two points.&lt;br /&gt;
&lt;br /&gt;
Without loss of generality we have (a,b)=(11111,11133), (c,d) = (11113,11131), thus p = 11122.  By permuting the first three indices, we may assume that p&#039; is not of the form x2y2z, x2yz2, xy22z, xy2z2.  Then 1112x lies outside the set and 1122x lies in the set, so by the above paragraph 1132x lies in the set; similarly for 113x2, 1312x, 131x2.  This implies that 13122, 11322 lie outside the set, but this (together with 11122) shows that at least three C-points are missing, a contradiction.&lt;br /&gt;
&lt;br /&gt;
== General n ==&lt;br /&gt;
&lt;br /&gt;
General solution for &amp;lt;math&amp;gt;c&#039;_N&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* q 2s, all points from A(N-q,1)&lt;br /&gt;
* q-1 2s, points from A(N-q+1,2)&lt;br /&gt;
* q-2 2s, points from A(N-q+2,3)&lt;br /&gt;
* etc.&lt;br /&gt;
&lt;br /&gt;
where A(m,d) is a subset of &amp;lt;math&amp;gt;[1,3]^m&amp;lt;/math&amp;gt; for which any two points differ from each other in at least d places.&lt;br /&gt;
&lt;br /&gt;
Mathworld’s entry on error-correcting codes suggests it might be NP-complete to find the size of A(m,d) in general.&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;math&amp;gt;|A(m,1)| = 2^m&amp;lt;/math&amp;gt; because it includes all points in &amp;lt;math&amp;gt;[1,3]^m&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;|A(m,2)| = 2^{m-1}&amp;lt;/math&amp;gt; because it can include all points in &amp;lt;math&amp;gt;[1,3]^m&amp;lt;/math&amp;gt; with an odd number of 1s&lt;br /&gt;
&lt;br /&gt;
The integer programming routine from Maple 12 was used to obtain upper bounds for &amp;lt;math&amp;gt;c&#039;_6&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;c&#039;_7&amp;lt;/math&amp;gt;.  A large number of linear inequalities, described above in sections (n=3) and (n=4), were combined.  The details are in [[Maple calculations]].  The results were that &amp;lt;math&amp;gt;c&#039;_6 \le 361&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;c&#039;_7 \le 1071&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
A [[genetic algorithm]] has provided the following examples:&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;math&amp;gt;c&#039;_6 \geq 353&amp;lt;/math&amp;gt; (26 examples; [http://twofoldgaze.wordpress.com/2009/03/10/353-element-solution/ here is one])&lt;br /&gt;
* &amp;lt;math&amp;gt;c&#039;_7 \geq 988&amp;lt;/math&amp;gt; [http://twofoldgaze.wordpress.com/2009/03/10/978-element-solution/ Here is the example]&lt;br /&gt;
&lt;br /&gt;
== Variants ==&lt;br /&gt;
&lt;br /&gt;
A lower bound for Moser’s cube &amp;lt;math&amp;gt;[4]^n&amp;lt;/math&amp;gt; (values 1,2,3,4) comes from the following set:  Pick all points where q entries are 2 or 3; and also pick those where q-1 entries are 2 or 3 and an odd number of entries are 1.  This is maximized when q is near n/2, giving a lower bound of&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\binom{n}{n/2} 2^n + \binom{n}{n/2-1} 2^{n-1}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
which is comparable to &amp;lt;math&amp;gt;4^n/\sqrt{n}&amp;lt;/math&amp;gt; by [[Stirling&#039;s formula]].&lt;br /&gt;
&lt;br /&gt;
For k=5 (values 1,2,3,4,5) If A, B, C, D, and E denote the numbers of 1-s, 2-s, 3-s, 4-s and 5-s then the first three points of a geometric line form a 3-term arithmetic progression in A+E+2(B+D)+3C. So, for k=5 we have a similar lower bound for the Moser’s problem as for DHJ k=3, i.e. &amp;lt;math&amp;gt;5^{n - O(\sqrt{\log n})}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
The k=6 version of Moser implies DHJ(3).  Indeed, any k=3 combinatorial line-free set can be &amp;quot;doubled up&amp;quot; into a k=6 geometric line-free set of the same density by pulling back the set from the map &amp;lt;math&amp;gt;\phi: [6]^n \to [3]^n&amp;lt;/math&amp;gt; that maps 1, 2, 3, 4, 5, 6 to 1, 2, 3, 3, 2, 1 respectively; note that this map sends k=6 geometric lines to k=3 combinatorial lines.&lt;/div&gt;</summary>
		<author><name>121.220.134.232</name></author>
	</entry>
	<entry>
		<id>https://michaelnielsen.org/polymath/index.php?title=Moser%27s_cube_problem&amp;diff=1022</id>
		<title>Moser&#039;s cube problem</title>
		<link rel="alternate" type="text/html" href="https://michaelnielsen.org/polymath/index.php?title=Moser%27s_cube_problem&amp;diff=1022"/>
		<updated>2009-03-21T01:56:13Z</updated>

		<summary type="html">&lt;p&gt;121.220.134.232: /* n=3 */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Define a &#039;&#039;Moser set&#039;&#039; to be a subset of &amp;lt;math&amp;gt;[3]^n&amp;lt;/math&amp;gt; which does not contain any [[geometric line]], and let &amp;lt;math&amp;gt;c&#039;_n&amp;lt;/math&amp;gt; denote the size of the largest Moser set in &amp;lt;math&amp;gt;[3]^n&amp;lt;/math&amp;gt;.  The first few values are (see [http://www.research.att.com/~njas/sequences/A003142 OEIS A003142]):&lt;br /&gt;
&lt;br /&gt;
: &amp;lt;math&amp;gt;c&#039;_0 = 1; c&#039;_1 = 2; c&#039;_2 = 6; c&#039;_3 = 16; c&#039;_4 = 43; c&#039;_5 = 124.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Beyond this point, we only have some upper and lower bounds, in particular &amp;lt;math&amp;gt;353 \leq c&#039;_6 \leq 361&amp;lt;/math&amp;gt;; see [http://spreadsheets.google.com/ccc?key=p5T0SktZY9DsU-uZ1tK7VEg this spreadsheet] for the latest bounds.&lt;br /&gt;
&lt;br /&gt;
The best known asymptotic lower bound for &amp;lt;math&amp;gt;c&#039;_n&amp;lt;/math&amp;gt; is&lt;br /&gt;
&lt;br /&gt;
: &amp;lt;math&amp;gt;c&#039;_n \gg 3^n/\sqrt{n}&amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
formed by fixing the number of 2s to a single value near n/3.  Compare this to the DHJ(2) or Sperner limit of &amp;lt;math&amp;gt;2^n/\sqrt{n}&amp;lt;/math&amp;gt;.  Is it possible to do any better?  Note that we have a [[Upper_and_lower_bounds#Asymptotics|significantly better bound]] for the DHJ(3) &amp;lt;math&amp;gt;c_n&amp;lt;/math&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
: &amp;lt;math&amp;gt;c_n \geq 3^{n-O(\sqrt{\log n})}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
A more precise lower bound is&lt;br /&gt;
&lt;br /&gt;
: &amp;lt;math&amp;gt;c&#039;_n \geq \binom{n+1}{q} 2^{n-q}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where q is the nearest integer to &amp;lt;math&amp;gt;n/3&amp;lt;/math&amp;gt;, formed by taking all strings with q 2s, together with all strings with q-1 2s and an odd number of 1s.  This for instance gives the lower bound &amp;lt;math&amp;gt;c&#039;_5 \geq 120&amp;lt;/math&amp;gt;, which compares with the upper bound &amp;lt;math&amp;gt;c&#039;_5 \leq 3 c&#039;_4 = 129&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Using [[DHJ(3)]], we have the upper bound&lt;br /&gt;
&lt;br /&gt;
: &amp;lt;math&amp;gt;c&#039;_n = o(3^n)&amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
but no effective decay rate is known. It would be good to have a combinatorial proof of this fact (which is weaker than [[DHJ(3)]], but implies [[Roth&#039;s theorem]]).&lt;br /&gt;
&lt;br /&gt;
== Notation ==&lt;br /&gt;
&lt;br /&gt;
Given a Moser set A in &amp;lt;math&amp;gt;[3]^n&amp;lt;/math&amp;gt;, we let a be the number of points in A with no 2s, b be the number of points in A with one 2, c the number of points with two 2s, etc.  We call (a,b,c,...) the &#039;&#039;statistics&#039;&#039; of A.  Given a slice S of &amp;lt;math&amp;gt;[3]^n&amp;lt;/math&amp;gt;, we let a(S), b(S), etc. denote the statistics of that slice (dropping the fixed coordinates).  Thus for instance if A = {11, 12, 22, 32}, then (a,b,c) = (1,2,1), and (a(1*),b(1*)) = (1,1).&lt;br /&gt;
&lt;br /&gt;
We call a statistic (a,b,c,...) &#039;&#039;attainable&#039;&#039; if it is attained by a Moser set.  We say that an attainable statistic is &#039;&#039;Pareto-optimal&#039;&#039; if it cannot be pointwise dominated by any other attainable statistic (a&#039;,b&#039;,c&#039;,...) (thus &amp;lt;math&amp;gt;a&#039; \geq a&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;b&#039; \geq b&amp;lt;/math&amp;gt;, etc.)  We say that it is &#039;&#039;extremal&#039;&#039; if it is not a convex combination of any other attainable statistic (this is a stronger property than Pareto-optimal).  For the purposes of maximising linear scores of attainable statistics, it suffices to check extremal statistics.&lt;br /&gt;
&lt;br /&gt;
We let &amp;lt;math&amp;gt;(\alpha_0,\alpha_1,\ldots)&amp;lt;/math&amp;gt; be the normalized version of &amp;lt;math&amp;gt;(a,b,\ldots)&amp;lt;/math&amp;gt;, in which one divides the number of points of a certain type in the set by the total number of points in the set.  Thus for instance &amp;lt;math&amp;gt;\alpha_0 = a/2^n, \alpha_1 = b/(n 2^{n-1}), \alpha_3 = c/(\binom{n}{2} 2^{n-2})&amp;lt;/math&amp;gt;, etc., and the &amp;lt;math&amp;gt;\alpha_i&amp;lt;/math&amp;gt; range between 0 and 1.  Averaging arguments show that any linear inequality obeyed by the &amp;lt;math&amp;gt;\alpha_i&amp;lt;/math&amp;gt; at one dimension is automatically inherited by higher dimensions, as are shifted versions of this inequality (in which &amp;lt;math&amp;gt;\alpha_i&amp;lt;/math&amp;gt; is replaced by &amp;lt;math&amp;gt;\alpha_{i+1}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
The idea in &#039;c-statistics&#039; is to identify 1s and 3s but leave the 2s intact. Let’s use x to denote letters that are either 1 or 3, then the 81 points get split up into 16 groups: 2222 (1 point), 222x, 22×2, 2×22, x222 (two points each), 22xx, 2×2x, x22x, 2xx2, x2×2, xx22 (four points each), 2xxx, x2xx, xx2x, xxx2 (eight points each), xxxx (sixteen points). Let c(w) denote the number of points inside a group w, e.g. c(xx22) is the number of points of the form xx22 inside the set, and is thus an integer from 0 to 4.&lt;br /&gt;
&lt;br /&gt;
== n=0 ==&lt;br /&gt;
&lt;br /&gt;
We trivially have &amp;lt;math&amp;gt;c&#039;_0=1.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== n=1 ==&lt;br /&gt;
&lt;br /&gt;
We trivially have &amp;lt;math&amp;gt;c&#039;_1=2.&amp;lt;/math&amp;gt;  The Pareto-optimal values of the statistics (a,b) are (1,1) and (2,0); these are also the extremals.  We thus have the inequality &amp;lt;math&amp;gt;a+b \leq 2&amp;lt;/math&amp;gt;, or in normalized notation&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;2\alpha_0 + \alpha_1 \leq 2&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== n=2 ==&lt;br /&gt;
&lt;br /&gt;
We have &amp;lt;math&amp;gt;c&#039;_2 = 6&amp;lt;/math&amp;gt;; the upper bound follows since &amp;lt;math&amp;gt;c&#039;_2 \leq 3 c&#039;_1&amp;lt;/math&amp;gt;, and the lower bound follows by deleting one of the two diagonals from &amp;lt;math&amp;gt;[3]^2&amp;lt;/math&amp;gt; (these are the only extremisers).&lt;br /&gt;
&lt;br /&gt;
The extremiser has statistics (a,b,c) = (2,4,0), which are of course Pareto-optimal.  If c=1 then we must have a, b at most 2 (look at the lines through 22).  This is attainable (e.g. {11, 12, 22, 23, 31}, and so (2,2,1) is another Pareto-optimal statistic.  If a=4, then b and c must be 0, so we get another Pareto-optimal statistic (4,0,0) (attainable by {11, 13, 31, 33} of course).  If a=3, then c=0 and b is at most 2, giving another Pareto-optimal statistic (3,2,0); but this is a convex combination of (4,0,0) and (2,4,0) and is thus not extremal.  Thus the complete set of extremal statistics are&lt;br /&gt;
&lt;br /&gt;
(4,0,0), (2,4,0), (2,2,1).&lt;br /&gt;
&lt;br /&gt;
The sharp linear inequalities obeyed by a,b,c (other than the trivial ones &amp;lt;math&amp;gt;a,b,c \geq 0&amp;lt;/math&amp;gt;) are then&lt;br /&gt;
&lt;br /&gt;
*&amp;lt;math&amp;gt;2a+b+2c \leq 8&amp;lt;/math&amp;gt;&lt;br /&gt;
*&amp;lt;math&amp;gt;b+2c \leq 4&amp;lt;/math&amp;gt;&lt;br /&gt;
*&amp;lt;math&amp;gt;a+2c \leq 4&amp;lt;/math&amp;gt;&lt;br /&gt;
*&amp;lt;math&amp;gt;c \leq 1&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
In normalized notation, we have&lt;br /&gt;
*&amp;lt;math&amp;gt;4\alpha_0 + 2\alpha_1 + \alpha_2 \leq 4&amp;lt;/math&amp;gt;&lt;br /&gt;
*&amp;lt;math&amp;gt;2\alpha_1 + \alpha_2 \leq 2&amp;lt;/math&amp;gt;&lt;br /&gt;
*&amp;lt;math&amp;gt;2\alpha_0 + \alpha_2 \leq 2&amp;lt;/math&amp;gt;&lt;br /&gt;
*&amp;lt;math&amp;gt;\alpha_2 \leq 1&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== n=3 ==&lt;br /&gt;
&lt;br /&gt;
We have &amp;lt;math&amp;gt;c&#039;_3 = 16&amp;lt;/math&amp;gt;.  The lower bound can be seen for instance by taking all the strings with one 2, and half the strings with no 2 (e.g. the strings with an odd number of 1s).  The upper bound can be deduced from the corresponding [[upper and lower bounds]] for &amp;lt;math&amp;gt;c_3 = 18&amp;lt;/math&amp;gt;; the 17-point and 18-point line-free sets each contain a geometric line.&lt;br /&gt;
&lt;br /&gt;
If a Moser set in &amp;lt;math&amp;gt;[3]^3&amp;lt;/math&amp;gt; contains 222, then it can have at most 14 points, since the remaining 26 points in the cube split into 13 antipodal pairs, and at most one of each pair can lie in the set.  By exhausting over the &amp;lt;math&amp;gt;2^{13} = 8192&amp;lt;/math&amp;gt; possibilities, it can be shown that it is impossible for a 14-point set to exist; any Moser set containing 222 must in fact omit at least one antipodal pair completely and thus have only 13 points.  (A human proof of this fact can be [http://www.ma.rhul.ac.uk/~elsholtz/WWW/blog/mosertablogv01.pdf found here].)&lt;br /&gt;
&lt;br /&gt;
The Pareto-optimal statistics are&lt;br /&gt;
&lt;br /&gt;
(3,6,3,1),(4,4,3,1),(4,6,2,1),(2,6,6,0),(3,6,5,0),(4,4,5,0),(3,7,4,0),(4,6,4,0), (3,9,3,0),(4,7,3,0),(5,4,3,0),(4,9,2,0),(5,6,2,0),(6,3,2,0),(3,10,1,0),(5,7,1,0), (6,4,1,0),(4,12,0,0),(5,9,0,0),(6,6,0,0),(7,3,0,0),(8,0,0,0).&lt;br /&gt;
&lt;br /&gt;
These were found from a search of the &amp;lt;math&amp;gt;2^{27}&amp;lt;/math&amp;gt; subsets of the cube.&lt;br /&gt;
A spreadsheet containing these statistics can be [http://spreadsheets.google.com/ccc?key=p5T0SktZY9DuKZ2DyzO9EOg&amp;amp;hl=en# found here].&lt;br /&gt;
&lt;br /&gt;
The extremal statistics are&lt;br /&gt;
&lt;br /&gt;
(3,6,3,1),(4,4,3,1),(4,6,2,1),(2,6,6,0),(4,4,5,0),(4,6,4,0),(4,12,0,0),(8,0,0,0)&lt;br /&gt;
&lt;br /&gt;
The sharp linear bounds are :&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;math&amp;gt;2a+b+2c+4d \leq 22&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;3a+2b+3c+6d \leq 36&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;7a+2b+4c+8d \leq 56&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;6a+2b+3c+6d \leq 48&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;b+c+3d \leq 12&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;a+2c+4d \leq 14&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;5a+4c+8d \leq 40&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;a+4d \leq 8&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;b+6d \leq 12&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;c+3d \leq 6&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;d \leq 1&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In normalized notation,&lt;br /&gt;
* &amp;lt;math&amp;gt;8\alpha_0+ 6\alpha_1 + 6\alpha_2 + 2\alpha_3 \leq 11&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;4\alpha_0+4\alpha_1+3\alpha_2+\alpha_3 \leq 6&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;7\alpha_0+3\alpha_1+3\alpha_2+\alpha_3 \leq 7&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;8\alpha_0+3\alpha_1+3\alpha_2+\alpha_3 \leq 8&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;4\alpha_1+2\alpha_2+\alpha_3 \leq 4&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;4\alpha_0+6\alpha_2+2\alpha_3 \leq 7&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;5\alpha_0+3\alpha_2+\alpha_3 \leq 5&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;2\alpha_0+\alpha_3 \leq 2&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;2\alpha_1+\alpha_3 \leq 2&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;2\alpha_2+\alpha_3 \leq 2&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;\alpha_3 \leq 1&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The c-statistics can also be found from an exhaustive search of Moser sets.  The resulting Pareto sets and linear inequalities can be found on Sheet 8 of [http://spreadsheets.google.com/ccc?key=p5T0SktZY9DuKZ2DyzO9EOg&amp;amp;hl=en# this spreadsheet]&lt;br /&gt;
&lt;br /&gt;
== n=4 ==&lt;br /&gt;
&lt;br /&gt;
A [http://abel.math.umu.se/~klasm/extremal-moser-n=5-t=3 computer search] has obtained all extremisers to &amp;lt;math&amp;gt;c&#039;_4=43&amp;lt;/math&amp;gt;.  The 42-point solutions can be found [http://abel.math.umu.se/~klasm/moser-n=4-t=3-p=42.gz here].&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof that &amp;lt;math&amp;gt;c&#039;_4 \leq 43&amp;lt;/math&amp;gt;&#039;&#039;&#039;: &lt;br /&gt;
When e=1 (i.e. the 4D set contains 2222) then we have at most 41 points (in fact at most 39) by counting antipodal points, so assume e=0.&lt;br /&gt;
&lt;br /&gt;
Define the score of a 3D slice to be a/4+b/3+c/2+d.  Observe from double counting that the size of a 4D set is the sum of the scores of its eight side slices.&lt;br /&gt;
&lt;br /&gt;
But by [http://spreadsheets.google.com/ccc?key=p5T0SktZY9DuKZ2DyzO9EOg&amp;amp;hl=en looking at the extremals] we see that the largest score is 44/8, attained at only one point, namely when (a,b,c,d) = (2,6,6,0).  So the only way one can have a 44-point set is if all side slices are (2,6,6,0), or equivalently if the whole set has statistics (a,b,c,d,e) = (4,16,24,0,0).  But then we have all the points with two 2s, which means that the four &amp;quot;a&amp;quot; points cannot be separated by Hamming distance 2.  We conclude that we must have an antipodal pair among the &amp;quot;a&amp;quot; points with an odd number of 1s, and an antipodal pair among the &amp;quot;a&amp;quot; points with an even number of 1s.    By the symmetries of the cube, we may take the a-set to then be 1111, 3333, 1113, 3331.  But then the &amp;quot;b&amp;quot; set must exclude both 1112 and 3332, and so can have at most three points in the eight-point set xyz2 (with x,y,z=1,3) rather than four (to get four points one must alternate in a checkerboard pattern).  Adding this to the at most four points of the form xy2z, x2yz, 2xyz we see that b is at most 16, a contradiction. &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Given a subset of &amp;lt;math&amp;gt;[3]^4&amp;lt;/math&amp;gt;, let a be the number of points with no 2s, b be the number of points with 1 2, and so forth.  The quintuple (a,b,c,d,e) thus lies between (0,0,0,0,0) and (16,32,24,8,1).&lt;br /&gt;
&lt;br /&gt;
The 43-point solutions have distributions (a,b,c,d,e) as follows:&lt;br /&gt;
&lt;br /&gt;
* (5,20,18,0,0) [16 solutions]&lt;br /&gt;
* (4,16,23,0,0) [768 solutions]&lt;br /&gt;
* (3,16,24,0,0) [512 solutions]&lt;br /&gt;
* (4,15,24,0,0) [256 solutions]&lt;br /&gt;
&lt;br /&gt;
The 42-point solutions are [http://abel.math.umu.se/~klasm/Moser-42-stat.pdf distributed as follows]:&lt;br /&gt;
&lt;br /&gt;
* (6,24,12,0,0) [[http://abel.math.umu.se/~klasm/moser-n=4-42-12 8 solutions]] &lt;br /&gt;
* (5,20,17,0,0) [576 solutions]&lt;br /&gt;
* (5,19,18,0,0) [384 solutions]&lt;br /&gt;
* (6,16,18,2,0) [[http://abel.math.umu.se/~klasm/moser-n=4-42-e=2 192 solutions]]&lt;br /&gt;
* (4,20,18,0,0) [272 solutions]&lt;br /&gt;
* (5,17,20,0,0) [192 solutions]&lt;br /&gt;
* (5,16,21,0,0) [3584 solutions]&lt;br /&gt;
* (4,17,21,0,0) [768 solutions]&lt;br /&gt;
* (4,16,22,0,0) [26880 solutions]&lt;br /&gt;
* (5,15,22,0,0) [1536 solutions]&lt;br /&gt;
* (4,15,23,0,0) [22272 solutions]&lt;br /&gt;
* (3,16,23,0,0) [15744 solutions]&lt;br /&gt;
* (4,14,24,0,0) [4224 solutions]&lt;br /&gt;
* (3,15,24,0,0) [8704 solutions]&lt;br /&gt;
* (2,16,24,0,0) [896 solutions]&lt;br /&gt;
&lt;br /&gt;
Note how c is usually quite large, and d quite low.&lt;br /&gt;
&lt;br /&gt;
One of the (6,24,12,0,0) solutions is &amp;lt;math&amp;gt;\Gamma_{220}+\Gamma_{202}+\Gamma_{022}+\Gamma_{112}+\Gamma_{211}&amp;lt;/math&amp;gt; (i.e. the set of points containing exactly two 1s, and/or exactly two 3s).  The other seven are reflections of this set.&lt;br /&gt;
&lt;br /&gt;
There are 2,765,200 41-point solutions, [http://abel.math.umu.se/~klasm/solutions-4-t=3-41-moser.gz listed here].  The statistics for such points can be [http://abel.math.umu.se/~klasm/Moser-41-stat.pdf found here].  Noteworthy features of the statistics:&lt;br /&gt;
&lt;br /&gt;
* d is at most 3 (and, except for [http://abel.math.umu.se/~klasm/moser-n=3-t=3-41-d=3.gz 256 exceptional solutions] of the shape (5,15,18,3,0), have d at most 2; here are the [http://abel.math.umu.se/~klasm/moser-n=3-t=3-41-d=2.gz d=2 solutions] and [http://abel.math.umu.se/~klasm/moser-n=3-t=3-41-d=1.gz d=1 solutions])&lt;br /&gt;
* c is at least 6 (and, except for [http://abel.math.umu.se/~klasm/moser-n=3-t=3-41-c=6.gz 16 exceptional solutions] of the shape (7,28,6,0,0), have c at least 11).&lt;br /&gt;
&lt;br /&gt;
Statistics for the 41-point, 42-point, and 43-point solutions can be found [http://spreadsheets.google.com/ccc?key=p5T0SktZY9DuqNcxJ171Bbw&amp;amp;hl=en here].&lt;br /&gt;
&lt;br /&gt;
If a Moser set in &amp;lt;math&amp;gt;[3]^4&amp;lt;/math&amp;gt; contains 2222, then by the n=3 theory, any middle slice (i.e. 2***, *2**, **2*, or ***2) is missing at least one antipodal pair.  But each antipodal pair belongs to at most three middle slices, thus two of the 40 antipodal pairs must be completely missing.  As a consequence, any Moser set containing 2222 can have at most 39 points.&lt;br /&gt;
(A more refined analysis can be found at [http://www.ma.rhul.ac.uk/~elsholtz/WWW/blog/mosertablogv01.pdf found here].)&lt;br /&gt;
&lt;br /&gt;
We have the following inequalities connecting a,b,c,d,e:&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;math&amp;gt;4a+b \leq 64&amp;lt;/math&amp;gt;:  There are 32 lines connecting two &amp;quot;a&amp;quot; points with a &amp;quot;b&amp;quot; point; each &amp;quot;a&amp;quot; point belongs to four of these lines, and each &amp;quot;b&amp;quot; point belongs to one.  But each such line can have at most two points in the set, and the claim follows.&lt;br /&gt;
* This can be refined to &amp;lt;math&amp;gt;4a+b+\frac{2}{3} c \leq 64&amp;lt;/math&amp;gt;: There are 24 planes connecting four &amp;quot;a&amp;quot; points, four &amp;quot;b&amp;quot; points, and one &amp;quot;c&amp;quot; point; each &amp;quot;a&amp;quot; point belongs to six of these, each &amp;quot;b&amp;quot; point belongs to three, and each &amp;quot;c&amp;quot; point belongs to one.  For each of these planes, we have &amp;lt;math&amp;gt;2a + b + 2c \leq 8&amp;lt;/math&amp;gt; from the n=2 theory, and the claim follows.&lt;br /&gt;
* &amp;lt;math&amp;gt;6a+2c \leq 96&amp;lt;/math&amp;gt;:  There are 96 lines connecting two &amp;quot;a&amp;quot; points with a &amp;quot;c&amp;quot; point; each &amp;quot;a&amp;quot; point belongs to six of these lines, and each &amp;quot;c&amp;quot; point belongs to two.  But each such line can have at most two points in the set, and the claim follows.&lt;br /&gt;
* &amp;lt;math&amp;gt;3b+2c \leq 96&amp;lt;/math&amp;gt;:  There are 48 lines connecting two &amp;quot;b&amp;quot; points to a &amp;quot;c&amp;quot; point; each &amp;quot;b&amp;quot; point belongs to three of these points, and each &amp;quot;c&amp;quot; point belongs to two.  But each such line can have at most two points in the set, and the claim follows.&lt;br /&gt;
&lt;br /&gt;
The inequalities for n=3 imply inequalities for n=4.  Indeed, there are eight side slices of &amp;lt;math&amp;gt;[3]^4&amp;lt;/math&amp;gt;; each &amp;quot;a&amp;quot; point belongs to four of these, each &amp;quot;b&amp;quot; point belongs to three, each &amp;quot;c&amp;quot; point belongs to two, and each &amp;quot;d&amp;quot; point belongs to one.  Thus, any inequality of the form&lt;br /&gt;
:&amp;lt;math&amp;gt; \alpha a + \beta b + \gamma c + \delta d \leq M&amp;lt;/math&amp;gt;&lt;br /&gt;
in three dimensions implies the inequality&lt;br /&gt;
:&amp;lt;math&amp;gt; 4 \alpha a + 3 \beta b + 2 \gamma c + \delta d \leq 8M&amp;lt;/math&amp;gt;&lt;br /&gt;
in four dimensions.  Thus we have&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;math&amp;gt;8a+3b+4c+4d \leq 176&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;2a+b+c+d \leq 48&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;14a+3b+4c+4d \leq 244&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;4a+b+c+d \leq 64&amp;lt;/math&amp;gt; &lt;br /&gt;
* &amp;lt;math&amp;gt;3b+2c+3d \leq 96&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;a+c+d \leq 28&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;5a+2c+2d \leq 80&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;a+d \leq 16&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;b+2d \leq 32&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;2c+3d \leq 48&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Cubes also sit diagonally in the 4-dimensional cube.  They may have coordinates xxyz, where xx runs over (11,22,33) or (13,22,31), while y and z run over (1,2,3).  These cubes have a different distribution of 2s than the ordinary slices: (a,b,c,d,e) = (8,8,6,4,1) instead of (8,12,6,1,0) for the side slices and (0,8,12,6,1) for the middle slices.  So a different set of inequalities arise.  It is possible to run through the same procedure as described above for n=3, and the inequalities that arise are &amp;lt;math&amp;gt;2a+b+2c+2d+4e \le 24&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;4a+b+2c+2d+4e \le 32&amp;lt;/math&amp;gt; within the 3D cube, which when averaged becomes &amp;lt;math&amp;gt;4a+b+2c+4d+16e \le 96&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;8a+b+2c+4d+16e \le 128&amp;lt;/math&amp;gt; for the 4D cube.  A spreadsheet containing these statistics can be [http://spreadsheets.google.com/ccc?key=p5T0SktZY9DuKZ2DyzO9EOg&amp;amp;hl=en# found here] on sheet 2.  Other sheets of this spreadsheet contain results for a 3D cube sitting diagonally in a 5D or 6D cube.  Notice the similarity of the equations that arise for the xxxyz, xxyyz and xxxxyz diagonals.&lt;br /&gt;
&lt;br /&gt;
== n=5 ==&lt;br /&gt;
&lt;br /&gt;
Let (A,B,C,D,E,F) be the statistics of a five-dimensional Moser set, thus (A,B,C,D,E,F) varies between (0,0,0,0,0,0) and (32,80,80,40,10,1).&lt;br /&gt;
&lt;br /&gt;
There are several Moser sets with the statistics (4,40,80,0,0,0), which thus have 124 points.  Indeed, one can take&lt;br /&gt;
&lt;br /&gt;
* all points with two 2s;&lt;br /&gt;
* all points with one 2 and an even number of 1s; and&lt;br /&gt;
* (13111),(13113),(31311),(13333). Any two of these four points differ in three places, except for one pair of points that differ in one place.&lt;br /&gt;
&lt;br /&gt;
For the rest of this section, we assume that the Moser set &amp;lt;math&amp;gt;{\mathcal A}&amp;lt;/math&amp;gt; is a 125-point set.&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 1&#039;&#039;&#039;: F=0.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; If F is non-zero, then the Moser set contains 22222, then each of the 121 antipodal pairs can have at most one point in the set, leading to only 122 points. &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 2&#039;&#039;&#039;: Every middle slice of &amp;lt;math&amp;gt;{\mathcal A}&amp;lt;/math&amp;gt; has at most 41 points.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039;  Without loss of generality we may consider the 2**** slice.  There are two cases, depending on the value of c(2****).&lt;br /&gt;
&lt;br /&gt;
Suppose first that c is at least 17; thus there are at least 17 points of the form 222xy, 22xy2, 2xy22, or 2x22y, where the x, y denote 1 or 3.  This gives 36 &amp;quot;xy&amp;quot; wildcards in all in four coordinate slots; by the pigeonhole principle one of the slots sees at least 9 of the wildcards.  By symmetry, we may assume that the second coordinate slot sees at least 9 of these wildcards, thus there are at least 9 points of the form 2x22y, 2x2y2, 2xy22.  The x=1, x=3 cases can absorb at most six of these, thus each of these cases must absorb at least three points, with at least one absorbing at least five.  Let&#039;s say that it&#039;s the x=3 case that absorbs 5; thus &amp;lt;math&amp;gt;d(*1***) \geq 3&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;d(*3***) \geq 5&amp;lt;/math&amp;gt;.  From the n=4 theory this means that the *1*** slice has at most 41 points, and the *3*** slice has at most 40.  Meanwhile, the middle slice has at most 43, leading to 41+41+42=124 points in all.&lt;br /&gt;
&lt;br /&gt;
Now suppose c is less than 16; then by the n=4 theory the middle slice is one of the eight (6,24,12,0,0) sets.  Without loss of generality we may take it to be &amp;lt;math&amp;gt;\Gamma_{220}+\Gamma_{202}+\Gamma_{022}+\Gamma_{112}+\Gamma_{211}&amp;lt;/math&amp;gt;; in particular, the middle slice contains the points 21122 21212 21221 23322 23232 23223.  In particular, the *1*** and *3*** slices have a &amp;quot;d&amp;quot; value of at least three, and so have at most 41 points.  If the *2*** slice has at most 42 points, then we are at 41+42+41=124 points as needed, but if we have 43 or more, then we are back in the first case (as &amp;lt;math&amp;gt;c(*2***) \geq 17&amp;lt;/math&amp;gt;) after permuting the indices.&lt;br /&gt;
&amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Since 125=41+41+43, we thus have&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Corollary 1&#039;&#039;&#039;: Every side slice of &amp;lt;math&amp;gt;{\mathcal A}&amp;lt;/math&amp;gt; has at least 41 points.  If one side slice does have 41 points, then the other has 43.&lt;br /&gt;
&lt;br /&gt;
Combining this with the n=4 statistics, we conclude&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Corollary 2&#039;&#039;&#039;: Every side slice of &amp;lt;math&amp;gt;{\mathcal A}&amp;lt;/math&amp;gt; has e=0, and &amp;lt;math&amp;gt;d \leq 3&amp;lt;/math&amp;gt;.  Given two opposite side slices, e.g. 1**** and 3****, we have &amp;lt;math&amp;gt;d(1****)+d(3****) \leq 4&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Corollary 3&#039;&#039;&#039;: E=0.&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Corollary 4&#039;&#039;&#039;: Any middle slice has a &amp;quot;c&amp;quot; value of at most 8.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; Let&#039;s work with the 2**** slice.  By Corollary 2, there are at most four contributions to c(2****) of the form 21*** or 23***, and similarly for the other three positions.  Double counting then gives the claim. &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 3&#039;&#039;&#039;: &amp;lt;math&amp;gt;2B+C \leq 160&amp;lt;/math&amp;gt;.   &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039;: There are 160 lines connecting one &amp;quot;C&amp;quot; point to two &amp;quot;B&amp;quot; points (e.g. 11112, 11122, 11132); each &amp;quot;C&amp;quot; point lies in two of these, and each &amp;quot;B&amp;quot; point lies on four.  A Moser set can have at most two points out of each of these lines.  Double counting then gives the claim.  &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 4&#039;&#039;&#039; Given m A-points with &amp;lt;math&amp;gt;m \geq 5&amp;lt;/math&amp;gt;, there exists at least m-4 pairs (a,b) of such A-points with Hamming distance exactly two (i.e. b differs from a in exactly two places).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; It suffices to check this for m=5, since the case of larger m then follows by locating a pair, removing a point that contributes to that pair, and using the induction hypothesis.  Given 5 A-points, we may assume by the pigeonhole principle and symmetry that at least three of them have an odd number of 1s.  Suppose 11111 is one of the points, and that no pair has Hamming distance 2. All points with two 3s are excluded, so the only points allowed with an odd number of 1s are those with four 3s. But all those points differ from each other in two positions, so at most one of them is allowed.  &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Corollary 5&#039;&#039;&#039; &amp;lt;math&amp;gt;C \leq 79&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039;: Suppose for contradiction that C=80, then D=0 and &amp;lt;math&amp;gt;B \leq 40&amp;lt;/math&amp;gt;.  From Lemma 4 we also see that A cannot exceed 5, leading to the contradiction.&lt;br /&gt;
&amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Define the &#039;&#039;&#039;score&#039;&#039;&#039; of a Moser set in &amp;lt;math&amp;gt;[3]^4&amp;lt;/math&amp;gt; to be the quantity &amp;lt;math&amp;gt;a + 5b/4 + 5c/3 + 5d/2 + 5e&amp;lt;/math&amp;gt;.  Double-counting (and Lemma 2) gives&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 5&#039;&#039;&#039;  The total score of all the ten side-slices of &amp;lt;math&amp;gt;{\mathcal A}&amp;lt;/math&amp;gt; is equal to &amp;lt;math&amp;gt;5|{\mathcal A}| = 5 \times 125&amp;lt;/math&amp;gt;.  In particular, there exists a pair of opposite side-slices whose scores add up to at least 125.&lt;br /&gt;
&lt;br /&gt;
By Lemma 5 and symmetry, we may assume that the 1**** and 3**** slices have score adding up to at least 125.  By Lemma 2, the 2**** slice has at most 41 points, which imply that the 1**** and 3**** have 41, 42, or 43 points.  From the [http://spreadsheets.google.com/ccc?key=p5T0SktZY9DuqNcxJ171Bbw&amp;amp;hl=en n=4 statistics] we know that all 41-point, 42-point, 43-point slices have score less than 62, with the following exceptions:&lt;br /&gt;
&lt;br /&gt;
# (2,16,24,0,0) [42 points, score: 62]&lt;br /&gt;
# (4,16,23,0,0) [43 points, score: 62 1/3]&lt;br /&gt;
# (4,15,24,0,0) [43 points, score: 62 3/4]&lt;br /&gt;
# (3,16,24,0,0) [43 points, score: 63]&lt;br /&gt;
&lt;br /&gt;
Thus the 1**** and 3**** slices must from the above list.  Furthermore, if one of the slices is of type 1, then the other must be of type 4, and if one slice is of type 2, then the other must be of type 3 or 4.&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 6&#039;&#039;&#039; There exists one cut in which the side slices have total score strictly greater than 125 (i.e. they thus involve only Type 2, Type 3, and Type 4 slices, with at least one side slice not equal to Type 2, and the cut here is of the form 43+39+43).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; If not, then all cuts have side slices exactly equal to 125, which by the above table implies that one is Type 1 and one is Type 4, in particular all side slices have c=24.  But this forces C=80, contradicting Corollary 5. &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Adding up the corners we conclude&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Corollary 6&#039;&#039;&#039; &amp;lt;math&amp;gt;6 \leq A \leq 8&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 7&#039;&#039;&#039; &amp;lt;math&amp;gt;D=0&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; Firstly, from Lemma 6 we have a cut in which the two side slices are omitting at most one C-point between them (and have no D-point), which forces the middle slice to have at most one D-point; thus D is at most 1.&lt;br /&gt;
&lt;br /&gt;
Now suppose instead that D=1 (e.g. if 11222 was in the set); then there would be two choices of coordinates in which one of the side slices would have d=1 (e.g. 1**** and *1****). But the [http://spreadsheets.google.com/ccc?key=p5T0SktZY9DuqNcxJ171Bbw&amp;amp;hl=en n=4 statistics] show that such slices have a score of at most 59 7/12, so that the total score from those two coordinates is at most 63 + 59 7/12 = 122 7/12. On the other hand, the other three slices have a net score of at most 63+63 = 126. This averages out to at most 124.633... &amp;lt; 125, a contradiction.  &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Corollary 7&#039;&#039;&#039; Every middle slice has at most 40 points.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; From Lemma 7 we see that the middle slice must have c=0, but from the n=4 statistics this is not possible for any slice of size 41 or higher (alternatively, one can use the inequalities &amp;lt;math&amp;gt;4a+b \leq 64&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;b \leq 32&amp;lt;/math&amp;gt;). &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Each middle slice now has 39 or 40 points, with c=d=e=0, and so from the inequalities &amp;lt;math&amp;gt;4a+b \leq 64&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;b \leq 32&amp;lt;/math&amp;gt; must have statistics (8,32,0,0,0),(7,32,0,0,0), or (8,31,0,0,0).  In particular the &amp;quot;a&amp;quot; index of the middle slices is at most 8.  Summing over all middle slices we conclude&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 9&#039;&#039;&#039; B is at most 40.&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 10&#039;&#039;&#039; C is equal to 78 or 79.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; By Corollary 5, it suffices to show that &amp;lt;math&amp;gt;C \geq 78&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
As 125=43+39+43, we see that every center slice must have at least 39 points. By Lemma 2 and Lemma 7 the center slice has c=d=e=0, thus the center slice has a+b &amp;gt;= 39.  On the other hand, from the n=4 theory we have 4a+b &amp;lt;= 64, which forces b &amp;gt;= 31.&lt;br /&gt;
&lt;br /&gt;
By double counting, we see that 2C is equal to the sum of the b&#039;s of all the five center slices.  Thus C &amp;gt;= 5*31/2 = 77.5 and the claim follows.  &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
From Lemmas 9 and 10 we see that &amp;lt;math&amp;gt;B+C \leq 119&amp;lt;/math&amp;gt;, and thus &amp;lt;math&amp;gt;A \geq 6&amp;lt;/math&amp;gt;.  Also, if &amp;lt;math&amp;gt;A \geq 7&amp;lt;/math&amp;gt;, then by Lemma 4 we have at least three pairs of A points with Hamming distance 2.  At most two of these pairs eliminate the same C point, so we would have C=78 in that case.  &lt;br /&gt;
&lt;br /&gt;
Putting all the above facts together, we see that (A,B,C,D,E,F) must be one of the following triples:&lt;br /&gt;
&lt;br /&gt;
* (6,40,79,0,0,0)&lt;br /&gt;
* (7,40,78,0,0,0)&lt;br /&gt;
* (8,39,78,0,0,0)&lt;br /&gt;
&lt;br /&gt;
All three cases can be eliminated, giving &amp;lt;math&amp;gt;c&#039;_5=124&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== Elimination of (6,40,79,0,0,0) ===&lt;br /&gt;
&lt;br /&gt;
Look at the 6 A points.  From Lemma 4 we have at least two pairs (a,b), (c,d) of A-points that have Hamming separation 2.&lt;br /&gt;
&lt;br /&gt;
Now look at the midpoints of these two pairs; these midpoints are C-points cannot lie in the set.  But we have exactly one C-point missing from the set, thus the midpoints must be the same.  By symmetry, we may thus assume that the two pairs are (11111,11133) and (11113,11131).  Thus 11111,11133, 11113, 11131 are in the set, and so every C-point other than 11122 is in the set.  On the other hand, the B-points 11121, 11123, 11112, 11132 lie outside the set.&lt;br /&gt;
&lt;br /&gt;
At most one of 11312, 11332 lie in the set (since 11322 lies in the set).   Suppose that 11312 lies outside the set, then we have a pair (xy1z2, xy3z2) with x,y,z = 1,3 that is totally omitted from the set, namely (11112,11312).  On the other hand, every other pair of this form can have at most point in the set, thus there are at most seven points in the set of the form (xyzw2) with x,y,z,w = 1,3.  Similarly there are at most 8 points of the form xyz2w, or of xy2zw, x2yzw, 2xyzw, leading to at most 39 B-points in all, contradiction.&lt;br /&gt;
&lt;br /&gt;
=== Elimination of (7,40,78,0,0,0) ===&lt;br /&gt;
&lt;br /&gt;
By Lemma 4, we have at least three pairs of A-points of distance two apart that lie in the set.&lt;br /&gt;
The midpoints of these pairs are C-points that do not lie in the set; but there are only two such C-points, thus two pairs must have the same midpoint, so we may assume as before that 111xy lies in the set for x,y=1,3, which implies that 1112* and 111*2 lie outside the set.&lt;br /&gt;
&lt;br /&gt;
Now consider the 160 lines between 2 B points and one C point (cf. Lemma 3).  The sum of all the points in each such line (counting multiplicity) is 4B+2C = 316.  On the other hand, every one of the 160 lines can have at most two points, and four of these lines (namely 1112*, 111*2) have no points.  Thus all the other lines must have exactly two points.  &lt;br /&gt;
&lt;br /&gt;
We know that the C-point 11122 is missing from the set; there is one other missing C-point.  Since 1112x, 111x2 lie outside the set, we conclude from the previous paragraph that 1132x, 113x2 and 1312x, 131x2 lie in the set.  Taking midpoints we conclude that 11322 and 13122 lie outside the set.  But this is now three C-points missing (together with 11122), a contradiction.&lt;br /&gt;
&lt;br /&gt;
=== Elimination of (8,39,78,0,0,0) ===&lt;br /&gt;
&lt;br /&gt;
By Lemma 4 we have at least four pairs of A-points of distance two apart that lie in the set. The midpoints of these pairs are C-points that do not lie in the set; but there are only two such C-points, thus two pairs (a,b), (c,d) must have the same midpoint p, and the other two pairs (a&#039;,b&#039;), (c&#039;,d&#039;) must also have the same midpoint p&#039;.  (Note that every C-point is the midpoint of at most two such pairs.)&lt;br /&gt;
&lt;br /&gt;
Now consider the 160 lines between 2 B points and one C point (cf. Lemma 3).  The sum of all the points in each such line (counting multiplicity) is 4B+2C = 312.  Every one of the 160 lines can have at most two points, and four of these (those in the plane of (a,b,c,d) or of (a&#039;,b&#039;,c&#039;,d&#039;) have no points.  Thus all other lines must have exactly two points.&lt;br /&gt;
&lt;br /&gt;
Without loss of generality we have (a,b)=(11111,11133), (c,d) = (11113,11131), thus p = 11122.  By permuting the first three indices, we may assume that p&#039; is not of the form x2y2z, x2yz2, xy22z, xy2z2.  Then 1112x lies outside the set and 1122x lies in the set, so by the above paragraph 1132x lies in the set; similarly for 113x2, 1312x, 131x2.  This implies that 13122, 11322 lie outside the set, but this (together with 11122) shows that at least three C-points are missing, a contradiction.&lt;br /&gt;
&lt;br /&gt;
== General n ==&lt;br /&gt;
&lt;br /&gt;
General solution for &amp;lt;math&amp;gt;c&#039;_N&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* q 2s, all points from A(N-q,1)&lt;br /&gt;
* q-1 2s, points from A(N-q+1,2)&lt;br /&gt;
* q-2 2s, points from A(N-q+2,3)&lt;br /&gt;
* etc.&lt;br /&gt;
&lt;br /&gt;
where A(m,d) is a subset of &amp;lt;math&amp;gt;[1,3]^m&amp;lt;/math&amp;gt; for which any two points differ from each other in at least d places.&lt;br /&gt;
&lt;br /&gt;
Mathworld’s entry on error-correcting codes suggests it might be NP-complete to find the size of A(m,d) in general.&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;math&amp;gt;|A(m,1)| = 2^m&amp;lt;/math&amp;gt; because it includes all points in &amp;lt;math&amp;gt;[1,3]^m&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;|A(m,2)| = 2^{m-1}&amp;lt;/math&amp;gt; because it can include all points in &amp;lt;math&amp;gt;[1,3]^m&amp;lt;/math&amp;gt; with an odd number of 1s&lt;br /&gt;
&lt;br /&gt;
The integer programming routine from Maple 12 was used to obtain upper bounds for &amp;lt;math&amp;gt;c&#039;_6&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;c&#039;_7&amp;lt;/math&amp;gt;.  A large number of linear inequalities, described above in sections (n=3) and (n=4), were combined.  The details are in [[Maple calculations]].  The results were that &amp;lt;math&amp;gt;c&#039;_6 \le 361&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;c&#039;_7 \le 1071&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
A [[genetic algorithm]] has provided the following examples:&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;math&amp;gt;c&#039;_6 \geq 353&amp;lt;/math&amp;gt; (26 examples; [http://twofoldgaze.wordpress.com/2009/03/10/353-element-solution/ here is one])&lt;br /&gt;
* &amp;lt;math&amp;gt;c&#039;_7 \geq 988&amp;lt;/math&amp;gt; [http://twofoldgaze.wordpress.com/2009/03/10/978-element-solution/ Here is the example]&lt;br /&gt;
&lt;br /&gt;
== Variants ==&lt;br /&gt;
&lt;br /&gt;
A lower bound for Moser’s cube &amp;lt;math&amp;gt;[4]^n&amp;lt;/math&amp;gt; (values 1,2,3,4) comes from the following set:  Pick all points where q entries are 2 or 3; and also pick those where q-1 entries are 2 or 3 and an odd number of entries are 1.  This is maximized when q is near n/2, giving a lower bound of&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\binom{n}{n/2} 2^n + \binom{n}{n/2-1} 2^{n-1}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
which is comparable to &amp;lt;math&amp;gt;4^n/\sqrt{n}&amp;lt;/math&amp;gt; by [[Stirling&#039;s formula]].&lt;br /&gt;
&lt;br /&gt;
For k=5 (values 1,2,3,4,5) If A, B, C, D, and E denote the numbers of 1-s, 2-s, 3-s, 4-s and 5-s then the first three points of a geometric line form a 3-term arithmetic progression in A+E+2(B+D)+3C. So, for k=5 we have a similar lower bound for the Moser’s problem as for DHJ k=3, i.e. &amp;lt;math&amp;gt;5^{n - O(\sqrt{\log n})}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
The k=6 version of Moser implies DHJ(3).  Indeed, any k=3 combinatorial line-free set can be &amp;quot;doubled up&amp;quot; into a k=6 geometric line-free set of the same density by pulling back the set from the map &amp;lt;math&amp;gt;\phi: [6]^n \to [3]^n&amp;lt;/math&amp;gt; that maps 1, 2, 3, 4, 5, 6 to 1, 2, 3, 3, 2, 1 respectively; note that this map sends k=6 geometric lines to k=3 combinatorial lines.&lt;/div&gt;</summary>
		<author><name>121.220.134.232</name></author>
	</entry>
	<entry>
		<id>https://michaelnielsen.org/polymath/index.php?title=Moser%27s_cube_problem&amp;diff=1021</id>
		<title>Moser&#039;s cube problem</title>
		<link rel="alternate" type="text/html" href="https://michaelnielsen.org/polymath/index.php?title=Moser%27s_cube_problem&amp;diff=1021"/>
		<updated>2009-03-21T01:21:01Z</updated>

		<summary type="html">&lt;p&gt;121.220.134.232: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Define a &#039;&#039;Moser set&#039;&#039; to be a subset of &amp;lt;math&amp;gt;[3]^n&amp;lt;/math&amp;gt; which does not contain any [[geometric line]], and let &amp;lt;math&amp;gt;c&#039;_n&amp;lt;/math&amp;gt; denote the size of the largest Moser set in &amp;lt;math&amp;gt;[3]^n&amp;lt;/math&amp;gt;.  The first few values are (see [http://www.research.att.com/~njas/sequences/A003142 OEIS A003142]):&lt;br /&gt;
&lt;br /&gt;
: &amp;lt;math&amp;gt;c&#039;_0 = 1; c&#039;_1 = 2; c&#039;_2 = 6; c&#039;_3 = 16; c&#039;_4 = 43; c&#039;_5 = 124.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Beyond this point, we only have some upper and lower bounds, in particular &amp;lt;math&amp;gt;353 \leq c&#039;_6 \leq 361&amp;lt;/math&amp;gt;; see [http://spreadsheets.google.com/ccc?key=p5T0SktZY9DsU-uZ1tK7VEg this spreadsheet] for the latest bounds.&lt;br /&gt;
&lt;br /&gt;
The best known asymptotic lower bound for &amp;lt;math&amp;gt;c&#039;_n&amp;lt;/math&amp;gt; is&lt;br /&gt;
&lt;br /&gt;
: &amp;lt;math&amp;gt;c&#039;_n \gg 3^n/\sqrt{n}&amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
formed by fixing the number of 2s to a single value near n/3.  Compare this to the DHJ(2) or Sperner limit of &amp;lt;math&amp;gt;2^n/\sqrt{n}&amp;lt;/math&amp;gt;.  Is it possible to do any better?  Note that we have a [[Upper_and_lower_bounds#Asymptotics|significantly better bound]] for the DHJ(3) &amp;lt;math&amp;gt;c_n&amp;lt;/math&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
: &amp;lt;math&amp;gt;c_n \geq 3^{n-O(\sqrt{\log n})}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
A more precise lower bound is&lt;br /&gt;
&lt;br /&gt;
: &amp;lt;math&amp;gt;c&#039;_n \geq \binom{n+1}{q} 2^{n-q}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where q is the nearest integer to &amp;lt;math&amp;gt;n/3&amp;lt;/math&amp;gt;, formed by taking all strings with q 2s, together with all strings with q-1 2s and an odd number of 1s.  This for instance gives the lower bound &amp;lt;math&amp;gt;c&#039;_5 \geq 120&amp;lt;/math&amp;gt;, which compares with the upper bound &amp;lt;math&amp;gt;c&#039;_5 \leq 3 c&#039;_4 = 129&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Using [[DHJ(3)]], we have the upper bound&lt;br /&gt;
&lt;br /&gt;
: &amp;lt;math&amp;gt;c&#039;_n = o(3^n)&amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
but no effective decay rate is known. It would be good to have a combinatorial proof of this fact (which is weaker than [[DHJ(3)]], but implies [[Roth&#039;s theorem]]).&lt;br /&gt;
&lt;br /&gt;
== Notation ==&lt;br /&gt;
&lt;br /&gt;
Given a Moser set A in &amp;lt;math&amp;gt;[3]^n&amp;lt;/math&amp;gt;, we let a be the number of points in A with no 2s, b be the number of points in A with one 2, c the number of points with two 2s, etc.  We call (a,b,c,...) the &#039;&#039;statistics&#039;&#039; of A.  Given a slice S of &amp;lt;math&amp;gt;[3]^n&amp;lt;/math&amp;gt;, we let a(S), b(S), etc. denote the statistics of that slice (dropping the fixed coordinates).  Thus for instance if A = {11, 12, 22, 32}, then (a,b,c) = (1,2,1), and (a(1*),b(1*)) = (1,1).&lt;br /&gt;
&lt;br /&gt;
We call a statistic (a,b,c,...) &#039;&#039;attainable&#039;&#039; if it is attained by a Moser set.  We say that an attainable statistic is &#039;&#039;Pareto-optimal&#039;&#039; if it cannot be pointwise dominated by any other attainable statistic (a&#039;,b&#039;,c&#039;,...) (thus &amp;lt;math&amp;gt;a&#039; \geq a&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;b&#039; \geq b&amp;lt;/math&amp;gt;, etc.)  We say that it is &#039;&#039;extremal&#039;&#039; if it is not a convex combination of any other attainable statistic (this is a stronger property than Pareto-optimal).  For the purposes of maximising linear scores of attainable statistics, it suffices to check extremal statistics.&lt;br /&gt;
&lt;br /&gt;
We let &amp;lt;math&amp;gt;(\alpha_0,\alpha_1,\ldots)&amp;lt;/math&amp;gt; be the normalized version of &amp;lt;math&amp;gt;(a,b,\ldots)&amp;lt;/math&amp;gt;, in which one divides the number of points of a certain type in the set by the total number of points in the set.  Thus for instance &amp;lt;math&amp;gt;\alpha_0 = a/2^n, \alpha_1 = b/(n 2^{n-1}), \alpha_3 = c/(\binom{n}{2} 2^{n-2})&amp;lt;/math&amp;gt;, etc., and the &amp;lt;math&amp;gt;\alpha_i&amp;lt;/math&amp;gt; range between 0 and 1.  Averaging arguments show that any linear inequality obeyed by the &amp;lt;math&amp;gt;\alpha_i&amp;lt;/math&amp;gt; at one dimension is automatically inherited by higher dimensions, as are shifted versions of this inequality (in which &amp;lt;math&amp;gt;\alpha_i&amp;lt;/math&amp;gt; is replaced by &amp;lt;math&amp;gt;\alpha_{i+1}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
The idea in &#039;c-statistics&#039; is to identify 1s and 3s but leave the 2s intact. Let’s use x to denote letters that are either 1 or 3, then the 81 points get split up into 16 groups: 2222 (1 point), 222x, 22×2, 2×22, x222 (two points each), 22xx, 2×2x, x22x, 2xx2, x2×2, xx22 (four points each), 2xxx, x2xx, xx2x, xxx2 (eight points each), xxxx (sixteen points). Let c(w) denote the number of points inside a group w, e.g. c(xx22) is the number of points of the form xx22 inside the set, and is thus an integer from 0 to 4.&lt;br /&gt;
&lt;br /&gt;
== n=0 ==&lt;br /&gt;
&lt;br /&gt;
We trivially have &amp;lt;math&amp;gt;c&#039;_0=1.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== n=1 ==&lt;br /&gt;
&lt;br /&gt;
We trivially have &amp;lt;math&amp;gt;c&#039;_1=2.&amp;lt;/math&amp;gt;  The Pareto-optimal values of the statistics (a,b) are (1,1) and (2,0); these are also the extremals.  We thus have the inequality &amp;lt;math&amp;gt;a+b \leq 2&amp;lt;/math&amp;gt;, or in normalized notation&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;2\alpha_0 + \alpha_1 \leq 2&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== n=2 ==&lt;br /&gt;
&lt;br /&gt;
We have &amp;lt;math&amp;gt;c&#039;_2 = 6&amp;lt;/math&amp;gt;; the upper bound follows since &amp;lt;math&amp;gt;c&#039;_2 \leq 3 c&#039;_1&amp;lt;/math&amp;gt;, and the lower bound follows by deleting one of the two diagonals from &amp;lt;math&amp;gt;[3]^2&amp;lt;/math&amp;gt; (these are the only extremisers).&lt;br /&gt;
&lt;br /&gt;
The extremiser has statistics (a,b,c) = (2,4,0), which are of course Pareto-optimal.  If c=1 then we must have a, b at most 2 (look at the lines through 22).  This is attainable (e.g. {11, 12, 22, 23, 31}, and so (2,2,1) is another Pareto-optimal statistic.  If a=4, then b and c must be 0, so we get another Pareto-optimal statistic (4,0,0) (attainable by {11, 13, 31, 33} of course).  If a=3, then c=0 and b is at most 2, giving another Pareto-optimal statistic (3,2,0); but this is a convex combination of (4,0,0) and (2,4,0) and is thus not extremal.  Thus the complete set of extremal statistics are&lt;br /&gt;
&lt;br /&gt;
(4,0,0), (2,4,0), (2,2,1).&lt;br /&gt;
&lt;br /&gt;
The sharp linear inequalities obeyed by a,b,c (other than the trivial ones &amp;lt;math&amp;gt;a,b,c \geq 0&amp;lt;/math&amp;gt;) are then&lt;br /&gt;
&lt;br /&gt;
*&amp;lt;math&amp;gt;2a+b+2c \leq 8&amp;lt;/math&amp;gt;&lt;br /&gt;
*&amp;lt;math&amp;gt;b+2c \leq 4&amp;lt;/math&amp;gt;&lt;br /&gt;
*&amp;lt;math&amp;gt;a+2c \leq 4&amp;lt;/math&amp;gt;&lt;br /&gt;
*&amp;lt;math&amp;gt;c \leq 1&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
In normalized notation, we have&lt;br /&gt;
*&amp;lt;math&amp;gt;4\alpha_0 + 2\alpha_1 + \alpha_2 \leq 4&amp;lt;/math&amp;gt;&lt;br /&gt;
*&amp;lt;math&amp;gt;2\alpha_1 + \alpha_2 \leq 2&amp;lt;/math&amp;gt;&lt;br /&gt;
*&amp;lt;math&amp;gt;2\alpha_0 + \alpha_2 \leq 2&amp;lt;/math&amp;gt;&lt;br /&gt;
*&amp;lt;math&amp;gt;\alpha_2 \leq 1&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== n=3 ==&lt;br /&gt;
&lt;br /&gt;
We have &amp;lt;math&amp;gt;c&#039;_3 = 16&amp;lt;/math&amp;gt;.  The lower bound can be seen for instance by taking all the strings with one 2, and half the strings with no 2 (e.g. the strings with an odd number of 1s).  The upper bound can be deduced from the corresponding [[upper and lower bounds]] for &amp;lt;math&amp;gt;c_3 = 18&amp;lt;/math&amp;gt;; the 17-point and 18-point line-free sets each contain a geometric line.&lt;br /&gt;
&lt;br /&gt;
If a Moser set in &amp;lt;math&amp;gt;[3]^3&amp;lt;/math&amp;gt; contains 222, then it can have at most 14 points, since the remaining 26 points in the cube split into 13 antipodal pairs, and at most one of each pair can lie in the set.  By exhausting over the &amp;lt;math&amp;gt;2^{13} = 8192&amp;lt;/math&amp;gt; possibilities, it can be shown that it is impossible for a 14-point set to exist; any Moser set containing 222 must in fact omit at least one antipodal pair completely and thus have only 13 points.  (A human proof of this fact can be [http://www.ma.rhul.ac.uk/~elsholtz/WWW/blog/mosertablogv01.pdf found here].)&lt;br /&gt;
&lt;br /&gt;
The Pareto-optimal statistics are&lt;br /&gt;
&lt;br /&gt;
(3,6,3,1),(4,4,3,1),(4,6,2,1),(2,6,6,0),(3,6,5,0),(4,4,5,0),(3,7,4,0),(4,6,4,0), (3,9,3,0),(4,7,3,0),(5,4,3,0),(4,9,2,0),(5,6,2,0),(6,3,2,0),(3,10,1,0),(5,7,1,0), (6,4,1,0),(4,12,0,0),(5,9,0,0),(6,6,0,0),(7,3,0,0),(8,0,0,0).&lt;br /&gt;
&lt;br /&gt;
These were found from a search of the &amp;lt;math&amp;gt;2^{27}&amp;lt;/math&amp;gt; subsets of the cube.&lt;br /&gt;
A spreadsheet containing these statistics can be [http://spreadsheets.google.com/ccc?key=p5T0SktZY9DuKZ2DyzO9EOg&amp;amp;hl=en# found here].&lt;br /&gt;
&lt;br /&gt;
The extremal statistics are&lt;br /&gt;
&lt;br /&gt;
(3,6,3,1),(4,4,3,1),(4,6,2,1),(2,6,6,0),(4,4,5,0),(4,6,4,0),(4,12,0,0),(8,0,0,0)&lt;br /&gt;
&lt;br /&gt;
The sharp linear bounds are :&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;math&amp;gt;2a+b+2c+4d \leq 22&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;3a+2b+3c+6d \leq 36&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;7a+2b+4c+8d \leq 56&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;6a+2b+3c+6d \leq 48&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;b+c+3d \leq 12&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;a+2c+4d \leq 14&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;5a+4c+8d \leq 40&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;a+4d \leq 8&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;b+6d \leq 12&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;c+3d \leq 6&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;d \leq 1&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In normalized notation,&lt;br /&gt;
* &amp;lt;math&amp;gt;8\alpha_0+ 6\alpha_1 + 6\alpha_2 + 2\alpha_3 \leq 11&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;4\alpha_0+4\alpha_1+3\alpha_2+\alpha_3 \leq 6&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;7\alpha_0+3\alpha_1+3\alpha_2+\alpha_3 \leq 7&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;8\alpha_0+3\alpha_1+3\alpha_2+\alpha_3 \leq 8&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;4\alpha_1+2\alpha_2+\alpha_3 \leq 4&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;4\alpha_0+6\alpha_2+2\alpha_3 \leq 7&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;5\alpha_0+3\alpha_2+\alpha_3 \leq 5&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;2\alpha_0+\alpha_3 \leq 2&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;2\alpha_1+\alpha_3 \leq 2&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;2\alpha_2+\alpha_3 \leq 2&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;\alpha_3 \leq 1&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== n=4 ==&lt;br /&gt;
&lt;br /&gt;
A [http://abel.math.umu.se/~klasm/extremal-moser-n=5-t=3 computer search] has obtained all extremisers to &amp;lt;math&amp;gt;c&#039;_4=43&amp;lt;/math&amp;gt;.  The 42-point solutions can be found [http://abel.math.umu.se/~klasm/moser-n=4-t=3-p=42.gz here].&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof that &amp;lt;math&amp;gt;c&#039;_4 \leq 43&amp;lt;/math&amp;gt;&#039;&#039;&#039;: &lt;br /&gt;
When e=1 (i.e. the 4D set contains 2222) then we have at most 41 points (in fact at most 39) by counting antipodal points, so assume e=0.&lt;br /&gt;
&lt;br /&gt;
Define the score of a 3D slice to be a/4+b/3+c/2+d.  Observe from double counting that the size of a 4D set is the sum of the scores of its eight side slices.&lt;br /&gt;
&lt;br /&gt;
But by [http://spreadsheets.google.com/ccc?key=p5T0SktZY9DuKZ2DyzO9EOg&amp;amp;hl=en looking at the extremals] we see that the largest score is 44/8, attained at only one point, namely when (a,b,c,d) = (2,6,6,0).  So the only way one can have a 44-point set is if all side slices are (2,6,6,0), or equivalently if the whole set has statistics (a,b,c,d,e) = (4,16,24,0,0).  But then we have all the points with two 2s, which means that the four &amp;quot;a&amp;quot; points cannot be separated by Hamming distance 2.  We conclude that we must have an antipodal pair among the &amp;quot;a&amp;quot; points with an odd number of 1s, and an antipodal pair among the &amp;quot;a&amp;quot; points with an even number of 1s.    By the symmetries of the cube, we may take the a-set to then be 1111, 3333, 1113, 3331.  But then the &amp;quot;b&amp;quot; set must exclude both 1112 and 3332, and so can have at most three points in the eight-point set xyz2 (with x,y,z=1,3) rather than four (to get four points one must alternate in a checkerboard pattern).  Adding this to the at most four points of the form xy2z, x2yz, 2xyz we see that b is at most 16, a contradiction. &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Given a subset of &amp;lt;math&amp;gt;[3]^4&amp;lt;/math&amp;gt;, let a be the number of points with no 2s, b be the number of points with 1 2, and so forth.  The quintuple (a,b,c,d,e) thus lies between (0,0,0,0,0) and (16,32,24,8,1).&lt;br /&gt;
&lt;br /&gt;
The 43-point solutions have distributions (a,b,c,d,e) as follows:&lt;br /&gt;
&lt;br /&gt;
* (5,20,18,0,0) [16 solutions]&lt;br /&gt;
* (4,16,23,0,0) [768 solutions]&lt;br /&gt;
* (3,16,24,0,0) [512 solutions]&lt;br /&gt;
* (4,15,24,0,0) [256 solutions]&lt;br /&gt;
&lt;br /&gt;
The 42-point solutions are [http://abel.math.umu.se/~klasm/Moser-42-stat.pdf distributed as follows]:&lt;br /&gt;
&lt;br /&gt;
* (6,24,12,0,0) [[http://abel.math.umu.se/~klasm/moser-n=4-42-12 8 solutions]] &lt;br /&gt;
* (5,20,17,0,0) [576 solutions]&lt;br /&gt;
* (5,19,18,0,0) [384 solutions]&lt;br /&gt;
* (6,16,18,2,0) [[http://abel.math.umu.se/~klasm/moser-n=4-42-e=2 192 solutions]]&lt;br /&gt;
* (4,20,18,0,0) [272 solutions]&lt;br /&gt;
* (5,17,20,0,0) [192 solutions]&lt;br /&gt;
* (5,16,21,0,0) [3584 solutions]&lt;br /&gt;
* (4,17,21,0,0) [768 solutions]&lt;br /&gt;
* (4,16,22,0,0) [26880 solutions]&lt;br /&gt;
* (5,15,22,0,0) [1536 solutions]&lt;br /&gt;
* (4,15,23,0,0) [22272 solutions]&lt;br /&gt;
* (3,16,23,0,0) [15744 solutions]&lt;br /&gt;
* (4,14,24,0,0) [4224 solutions]&lt;br /&gt;
* (3,15,24,0,0) [8704 solutions]&lt;br /&gt;
* (2,16,24,0,0) [896 solutions]&lt;br /&gt;
&lt;br /&gt;
Note how c is usually quite large, and d quite low.&lt;br /&gt;
&lt;br /&gt;
One of the (6,24,12,0,0) solutions is &amp;lt;math&amp;gt;\Gamma_{220}+\Gamma_{202}+\Gamma_{022}+\Gamma_{112}+\Gamma_{211}&amp;lt;/math&amp;gt; (i.e. the set of points containing exactly two 1s, and/or exactly two 3s).  The other seven are reflections of this set.&lt;br /&gt;
&lt;br /&gt;
There are 2,765,200 41-point solutions, [http://abel.math.umu.se/~klasm/solutions-4-t=3-41-moser.gz listed here].  The statistics for such points can be [http://abel.math.umu.se/~klasm/Moser-41-stat.pdf found here].  Noteworthy features of the statistics:&lt;br /&gt;
&lt;br /&gt;
* d is at most 3 (and, except for [http://abel.math.umu.se/~klasm/moser-n=3-t=3-41-d=3.gz 256 exceptional solutions] of the shape (5,15,18,3,0), have d at most 2; here are the [http://abel.math.umu.se/~klasm/moser-n=3-t=3-41-d=2.gz d=2 solutions] and [http://abel.math.umu.se/~klasm/moser-n=3-t=3-41-d=1.gz d=1 solutions])&lt;br /&gt;
* c is at least 6 (and, except for [http://abel.math.umu.se/~klasm/moser-n=3-t=3-41-c=6.gz 16 exceptional solutions] of the shape (7,28,6,0,0), have c at least 11).&lt;br /&gt;
&lt;br /&gt;
Statistics for the 41-point, 42-point, and 43-point solutions can be found [http://spreadsheets.google.com/ccc?key=p5T0SktZY9DuqNcxJ171Bbw&amp;amp;hl=en here].&lt;br /&gt;
&lt;br /&gt;
If a Moser set in &amp;lt;math&amp;gt;[3]^4&amp;lt;/math&amp;gt; contains 2222, then by the n=3 theory, any middle slice (i.e. 2***, *2**, **2*, or ***2) is missing at least one antipodal pair.  But each antipodal pair belongs to at most three middle slices, thus two of the 40 antipodal pairs must be completely missing.  As a consequence, any Moser set containing 2222 can have at most 39 points.&lt;br /&gt;
(A more refined analysis can be found at [http://www.ma.rhul.ac.uk/~elsholtz/WWW/blog/mosertablogv01.pdf found here].)&lt;br /&gt;
&lt;br /&gt;
We have the following inequalities connecting a,b,c,d,e:&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;math&amp;gt;4a+b \leq 64&amp;lt;/math&amp;gt;:  There are 32 lines connecting two &amp;quot;a&amp;quot; points with a &amp;quot;b&amp;quot; point; each &amp;quot;a&amp;quot; point belongs to four of these lines, and each &amp;quot;b&amp;quot; point belongs to one.  But each such line can have at most two points in the set, and the claim follows.&lt;br /&gt;
* This can be refined to &amp;lt;math&amp;gt;4a+b+\frac{2}{3} c \leq 64&amp;lt;/math&amp;gt;: There are 24 planes connecting four &amp;quot;a&amp;quot; points, four &amp;quot;b&amp;quot; points, and one &amp;quot;c&amp;quot; point; each &amp;quot;a&amp;quot; point belongs to six of these, each &amp;quot;b&amp;quot; point belongs to three, and each &amp;quot;c&amp;quot; point belongs to one.  For each of these planes, we have &amp;lt;math&amp;gt;2a + b + 2c \leq 8&amp;lt;/math&amp;gt; from the n=2 theory, and the claim follows.&lt;br /&gt;
* &amp;lt;math&amp;gt;6a+2c \leq 96&amp;lt;/math&amp;gt;:  There are 96 lines connecting two &amp;quot;a&amp;quot; points with a &amp;quot;c&amp;quot; point; each &amp;quot;a&amp;quot; point belongs to six of these lines, and each &amp;quot;c&amp;quot; point belongs to two.  But each such line can have at most two points in the set, and the claim follows.&lt;br /&gt;
* &amp;lt;math&amp;gt;3b+2c \leq 96&amp;lt;/math&amp;gt;:  There are 48 lines connecting two &amp;quot;b&amp;quot; points to a &amp;quot;c&amp;quot; point; each &amp;quot;b&amp;quot; point belongs to three of these points, and each &amp;quot;c&amp;quot; point belongs to two.  But each such line can have at most two points in the set, and the claim follows.&lt;br /&gt;
&lt;br /&gt;
The inequalities for n=3 imply inequalities for n=4.  Indeed, there are eight side slices of &amp;lt;math&amp;gt;[3]^4&amp;lt;/math&amp;gt;; each &amp;quot;a&amp;quot; point belongs to four of these, each &amp;quot;b&amp;quot; point belongs to three, each &amp;quot;c&amp;quot; point belongs to two, and each &amp;quot;d&amp;quot; point belongs to one.  Thus, any inequality of the form&lt;br /&gt;
:&amp;lt;math&amp;gt; \alpha a + \beta b + \gamma c + \delta d \leq M&amp;lt;/math&amp;gt;&lt;br /&gt;
in three dimensions implies the inequality&lt;br /&gt;
:&amp;lt;math&amp;gt; 4 \alpha a + 3 \beta b + 2 \gamma c + \delta d \leq 8M&amp;lt;/math&amp;gt;&lt;br /&gt;
in four dimensions.  Thus we have&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;math&amp;gt;8a+3b+4c+4d \leq 176&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;2a+b+c+d \leq 48&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;14a+3b+4c+4d \leq 244&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;4a+b+c+d \leq 64&amp;lt;/math&amp;gt; &lt;br /&gt;
* &amp;lt;math&amp;gt;3b+2c+3d \leq 96&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;a+c+d \leq 28&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;5a+2c+2d \leq 80&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;a+d \leq 16&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;b+2d \leq 32&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;2c+3d \leq 48&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Cubes also sit diagonally in the 4-dimensional cube.  They may have coordinates xxyz, where xx runs over (11,22,33) or (13,22,31), while y and z run over (1,2,3).  These cubes have a different distribution of 2s than the ordinary slices: (a,b,c,d,e) = (8,8,6,4,1) instead of (8,12,6,1,0) for the side slices and (0,8,12,6,1) for the middle slices.  So a different set of inequalities arise.  It is possible to run through the same procedure as described above for n=3, and the inequalities that arise are &amp;lt;math&amp;gt;2a+b+2c+2d+4e \le 24&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;4a+b+2c+2d+4e \le 32&amp;lt;/math&amp;gt; within the 3D cube, which when averaged becomes &amp;lt;math&amp;gt;4a+b+2c+4d+16e \le 96&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;8a+b+2c+4d+16e \le 128&amp;lt;/math&amp;gt; for the 4D cube.  A spreadsheet containing these statistics can be [http://spreadsheets.google.com/ccc?key=p5T0SktZY9DuKZ2DyzO9EOg&amp;amp;hl=en# found here] on sheet 2.  Other sheets of this spreadsheet contain results for a 3D cube sitting diagonally in a 5D or 6D cube.  Notice the similarity of the equations that arise for the xxxyz, xxyyz and xxxxyz diagonals.&lt;br /&gt;
&lt;br /&gt;
== n=5 ==&lt;br /&gt;
&lt;br /&gt;
Let (A,B,C,D,E,F) be the statistics of a five-dimensional Moser set, thus (A,B,C,D,E,F) varies between (0,0,0,0,0,0) and (32,80,80,40,10,1).&lt;br /&gt;
&lt;br /&gt;
There are several Moser sets with the statistics (4,40,80,0,0,0), which thus have 124 points.  Indeed, one can take&lt;br /&gt;
&lt;br /&gt;
* all points with two 2s;&lt;br /&gt;
* all points with one 2 and an even number of 1s; and&lt;br /&gt;
* (13111),(13113),(31311),(13333). Any two of these four points differ in three places, except for one pair of points that differ in one place.&lt;br /&gt;
&lt;br /&gt;
For the rest of this section, we assume that the Moser set &amp;lt;math&amp;gt;{\mathcal A}&amp;lt;/math&amp;gt; is a 125-point set.&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 1&#039;&#039;&#039;: F=0.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; If F is non-zero, then the Moser set contains 22222, then each of the 121 antipodal pairs can have at most one point in the set, leading to only 122 points. &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 2&#039;&#039;&#039;: Every middle slice of &amp;lt;math&amp;gt;{\mathcal A}&amp;lt;/math&amp;gt; has at most 41 points.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039;  Without loss of generality we may consider the 2**** slice.  There are two cases, depending on the value of c(2****).&lt;br /&gt;
&lt;br /&gt;
Suppose first that c is at least 17; thus there are at least 17 points of the form 222xy, 22xy2, 2xy22, or 2x22y, where the x, y denote 1 or 3.  This gives 36 &amp;quot;xy&amp;quot; wildcards in all in four coordinate slots; by the pigeonhole principle one of the slots sees at least 9 of the wildcards.  By symmetry, we may assume that the second coordinate slot sees at least 9 of these wildcards, thus there are at least 9 points of the form 2x22y, 2x2y2, 2xy22.  The x=1, x=3 cases can absorb at most six of these, thus each of these cases must absorb at least three points, with at least one absorbing at least five.  Let&#039;s say that it&#039;s the x=3 case that absorbs 5; thus &amp;lt;math&amp;gt;d(*1***) \geq 3&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;d(*3***) \geq 5&amp;lt;/math&amp;gt;.  From the n=4 theory this means that the *1*** slice has at most 41 points, and the *3*** slice has at most 40.  Meanwhile, the middle slice has at most 43, leading to 41+41+42=124 points in all.&lt;br /&gt;
&lt;br /&gt;
Now suppose c is less than 16; then by the n=4 theory the middle slice is one of the eight (6,24,12,0,0) sets.  Without loss of generality we may take it to be &amp;lt;math&amp;gt;\Gamma_{220}+\Gamma_{202}+\Gamma_{022}+\Gamma_{112}+\Gamma_{211}&amp;lt;/math&amp;gt;; in particular, the middle slice contains the points 21122 21212 21221 23322 23232 23223.  In particular, the *1*** and *3*** slices have a &amp;quot;d&amp;quot; value of at least three, and so have at most 41 points.  If the *2*** slice has at most 42 points, then we are at 41+42+41=124 points as needed, but if we have 43 or more, then we are back in the first case (as &amp;lt;math&amp;gt;c(*2***) \geq 17&amp;lt;/math&amp;gt;) after permuting the indices.&lt;br /&gt;
&amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Since 125=41+41+43, we thus have&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Corollary 1&#039;&#039;&#039;: Every side slice of &amp;lt;math&amp;gt;{\mathcal A}&amp;lt;/math&amp;gt; has at least 41 points.  If one side slice does have 41 points, then the other has 43.&lt;br /&gt;
&lt;br /&gt;
Combining this with the n=4 statistics, we conclude&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Corollary 2&#039;&#039;&#039;: Every side slice of &amp;lt;math&amp;gt;{\mathcal A}&amp;lt;/math&amp;gt; has e=0, and &amp;lt;math&amp;gt;d \leq 3&amp;lt;/math&amp;gt;.  Given two opposite side slices, e.g. 1**** and 3****, we have &amp;lt;math&amp;gt;d(1****)+d(3****) \leq 4&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Corollary 3&#039;&#039;&#039;: E=0.&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Corollary 4&#039;&#039;&#039;: Any middle slice has a &amp;quot;c&amp;quot; value of at most 8.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; Let&#039;s work with the 2**** slice.  By Corollary 2, there are at most four contributions to c(2****) of the form 21*** or 23***, and similarly for the other three positions.  Double counting then gives the claim. &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 3&#039;&#039;&#039;: &amp;lt;math&amp;gt;2B+C \leq 160&amp;lt;/math&amp;gt;.   &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039;: There are 160 lines connecting one &amp;quot;C&amp;quot; point to two &amp;quot;B&amp;quot; points (e.g. 11112, 11122, 11132); each &amp;quot;C&amp;quot; point lies in two of these, and each &amp;quot;B&amp;quot; point lies on four.  A Moser set can have at most two points out of each of these lines.  Double counting then gives the claim.  &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 4&#039;&#039;&#039; Given m A-points with &amp;lt;math&amp;gt;m \geq 5&amp;lt;/math&amp;gt;, there exists at least m-4 pairs (a,b) of such A-points with Hamming distance exactly two (i.e. b differs from a in exactly two places).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; It suffices to check this for m=5, since the case of larger m then follows by locating a pair, removing a point that contributes to that pair, and using the induction hypothesis.  Given 5 A-points, we may assume by the pigeonhole principle and symmetry that at least three of them have an odd number of 1s.  Suppose 11111 is one of the points, and that no pair has Hamming distance 2. All points with two 3s are excluded, so the only points allowed with an odd number of 1s are those with four 3s. But all those points differ from each other in two positions, so at most one of them is allowed.  &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Corollary 5&#039;&#039;&#039; &amp;lt;math&amp;gt;C \leq 79&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039;: Suppose for contradiction that C=80, then D=0 and &amp;lt;math&amp;gt;B \leq 40&amp;lt;/math&amp;gt;.  From Lemma 4 we also see that A cannot exceed 5, leading to the contradiction.&lt;br /&gt;
&amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Define the &#039;&#039;&#039;score&#039;&#039;&#039; of a Moser set in &amp;lt;math&amp;gt;[3]^4&amp;lt;/math&amp;gt; to be the quantity &amp;lt;math&amp;gt;a + 5b/4 + 5c/3 + 5d/2 + 5e&amp;lt;/math&amp;gt;.  Double-counting (and Lemma 2) gives&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 5&#039;&#039;&#039;  The total score of all the ten side-slices of &amp;lt;math&amp;gt;{\mathcal A}&amp;lt;/math&amp;gt; is equal to &amp;lt;math&amp;gt;5|{\mathcal A}| = 5 \times 125&amp;lt;/math&amp;gt;.  In particular, there exists a pair of opposite side-slices whose scores add up to at least 125.&lt;br /&gt;
&lt;br /&gt;
By Lemma 5 and symmetry, we may assume that the 1**** and 3**** slices have score adding up to at least 125.  By Lemma 2, the 2**** slice has at most 41 points, which imply that the 1**** and 3**** have 41, 42, or 43 points.  From the [http://spreadsheets.google.com/ccc?key=p5T0SktZY9DuqNcxJ171Bbw&amp;amp;hl=en n=4 statistics] we know that all 41-point, 42-point, 43-point slices have score less than 62, with the following exceptions:&lt;br /&gt;
&lt;br /&gt;
# (2,16,24,0,0) [42 points, score: 62]&lt;br /&gt;
# (4,16,23,0,0) [43 points, score: 62 1/3]&lt;br /&gt;
# (4,15,24,0,0) [43 points, score: 62 3/4]&lt;br /&gt;
# (3,16,24,0,0) [43 points, score: 63]&lt;br /&gt;
&lt;br /&gt;
Thus the 1**** and 3**** slices must from the above list.  Furthermore, if one of the slices is of type 1, then the other must be of type 4, and if one slice is of type 2, then the other must be of type 3 or 4.&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 6&#039;&#039;&#039; There exists one cut in which the side slices have total score strictly greater than 125 (i.e. they thus involve only Type 2, Type 3, and Type 4 slices, with at least one side slice not equal to Type 2, and the cut here is of the form 43+39+43).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; If not, then all cuts have side slices exactly equal to 125, which by the above table implies that one is Type 1 and one is Type 4, in particular all side slices have c=24.  But this forces C=80, contradicting Corollary 5. &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Adding up the corners we conclude&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Corollary 6&#039;&#039;&#039; &amp;lt;math&amp;gt;6 \leq A \leq 8&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 7&#039;&#039;&#039; &amp;lt;math&amp;gt;D=0&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; Firstly, from Lemma 6 we have a cut in which the two side slices are omitting at most one C-point between them (and have no D-point), which forces the middle slice to have at most one D-point; thus D is at most 1.&lt;br /&gt;
&lt;br /&gt;
Now suppose instead that D=1 (e.g. if 11222 was in the set); then there would be two choices of coordinates in which one of the side slices would have d=1 (e.g. 1**** and *1****). But the [http://spreadsheets.google.com/ccc?key=p5T0SktZY9DuqNcxJ171Bbw&amp;amp;hl=en n=4 statistics] show that such slices have a score of at most 59 7/12, so that the total score from those two coordinates is at most 63 + 59 7/12 = 122 7/12. On the other hand, the other three slices have a net score of at most 63+63 = 126. This averages out to at most 124.633... &amp;lt; 125, a contradiction.  &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Corollary 7&#039;&#039;&#039; Every middle slice has at most 40 points.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; From Lemma 7 we see that the middle slice must have c=0, but from the n=4 statistics this is not possible for any slice of size 41 or higher (alternatively, one can use the inequalities &amp;lt;math&amp;gt;4a+b \leq 64&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;b \leq 32&amp;lt;/math&amp;gt;). &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Each middle slice now has 39 or 40 points, with c=d=e=0, and so from the inequalities &amp;lt;math&amp;gt;4a+b \leq 64&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;b \leq 32&amp;lt;/math&amp;gt; must have statistics (8,32,0,0,0),(7,32,0,0,0), or (8,31,0,0,0).  In particular the &amp;quot;a&amp;quot; index of the middle slices is at most 8.  Summing over all middle slices we conclude&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 9&#039;&#039;&#039; B is at most 40.&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 10&#039;&#039;&#039; C is equal to 78 or 79.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; By Corollary 5, it suffices to show that &amp;lt;math&amp;gt;C \geq 78&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
As 125=43+39+43, we see that every center slice must have at least 39 points. By Lemma 2 and Lemma 7 the center slice has c=d=e=0, thus the center slice has a+b &amp;gt;= 39.  On the other hand, from the n=4 theory we have 4a+b &amp;lt;= 64, which forces b &amp;gt;= 31.&lt;br /&gt;
&lt;br /&gt;
By double counting, we see that 2C is equal to the sum of the b&#039;s of all the five center slices.  Thus C &amp;gt;= 5*31/2 = 77.5 and the claim follows.  &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
From Lemmas 9 and 10 we see that &amp;lt;math&amp;gt;B+C \leq 119&amp;lt;/math&amp;gt;, and thus &amp;lt;math&amp;gt;A \geq 6&amp;lt;/math&amp;gt;.  Also, if &amp;lt;math&amp;gt;A \geq 7&amp;lt;/math&amp;gt;, then by Lemma 4 we have at least three pairs of A points with Hamming distance 2.  At most two of these pairs eliminate the same C point, so we would have C=78 in that case.  &lt;br /&gt;
&lt;br /&gt;
Putting all the above facts together, we see that (A,B,C,D,E,F) must be one of the following triples:&lt;br /&gt;
&lt;br /&gt;
* (6,40,79,0,0,0)&lt;br /&gt;
* (7,40,78,0,0,0)&lt;br /&gt;
* (8,39,78,0,0,0)&lt;br /&gt;
&lt;br /&gt;
All three cases can be eliminated, giving &amp;lt;math&amp;gt;c&#039;_5=124&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== Elimination of (6,40,79,0,0,0) ===&lt;br /&gt;
&lt;br /&gt;
Look at the 6 A points.  From Lemma 4 we have at least two pairs (a,b), (c,d) of A-points that have Hamming separation 2.&lt;br /&gt;
&lt;br /&gt;
Now look at the midpoints of these two pairs; these midpoints are C-points cannot lie in the set.  But we have exactly one C-point missing from the set, thus the midpoints must be the same.  By symmetry, we may thus assume that the two pairs are (11111,11133) and (11113,11131).  Thus 11111,11133, 11113, 11131 are in the set, and so every C-point other than 11122 is in the set.  On the other hand, the B-points 11121, 11123, 11112, 11132 lie outside the set.&lt;br /&gt;
&lt;br /&gt;
At most one of 11312, 11332 lie in the set (since 11322 lies in the set).   Suppose that 11312 lies outside the set, then we have a pair (xy1z2, xy3z2) with x,y,z = 1,3 that is totally omitted from the set, namely (11112,11312).  On the other hand, every other pair of this form can have at most point in the set, thus there are at most seven points in the set of the form (xyzw2) with x,y,z,w = 1,3.  Similarly there are at most 8 points of the form xyz2w, or of xy2zw, x2yzw, 2xyzw, leading to at most 39 B-points in all, contradiction.&lt;br /&gt;
&lt;br /&gt;
=== Elimination of (7,40,78,0,0,0) ===&lt;br /&gt;
&lt;br /&gt;
By Lemma 4, we have at least three pairs of A-points of distance two apart that lie in the set.&lt;br /&gt;
The midpoints of these pairs are C-points that do not lie in the set; but there are only two such C-points, thus two pairs must have the same midpoint, so we may assume as before that 111xy lies in the set for x,y=1,3, which implies that 1112* and 111*2 lie outside the set.&lt;br /&gt;
&lt;br /&gt;
Now consider the 160 lines between 2 B points and one C point (cf. Lemma 3).  The sum of all the points in each such line (counting multiplicity) is 4B+2C = 316.  On the other hand, every one of the 160 lines can have at most two points, and four of these lines (namely 1112*, 111*2) have no points.  Thus all the other lines must have exactly two points.  &lt;br /&gt;
&lt;br /&gt;
We know that the C-point 11122 is missing from the set; there is one other missing C-point.  Since 1112x, 111x2 lie outside the set, we conclude from the previous paragraph that 1132x, 113x2 and 1312x, 131x2 lie in the set.  Taking midpoints we conclude that 11322 and 13122 lie outside the set.  But this is now three C-points missing (together with 11122), a contradiction.&lt;br /&gt;
&lt;br /&gt;
=== Elimination of (8,39,78,0,0,0) ===&lt;br /&gt;
&lt;br /&gt;
By Lemma 4 we have at least four pairs of A-points of distance two apart that lie in the set. The midpoints of these pairs are C-points that do not lie in the set; but there are only two such C-points, thus two pairs (a,b), (c,d) must have the same midpoint p, and the other two pairs (a&#039;,b&#039;), (c&#039;,d&#039;) must also have the same midpoint p&#039;.  (Note that every C-point is the midpoint of at most two such pairs.)&lt;br /&gt;
&lt;br /&gt;
Now consider the 160 lines between 2 B points and one C point (cf. Lemma 3).  The sum of all the points in each such line (counting multiplicity) is 4B+2C = 312.  Every one of the 160 lines can have at most two points, and four of these (those in the plane of (a,b,c,d) or of (a&#039;,b&#039;,c&#039;,d&#039;) have no points.  Thus all other lines must have exactly two points.&lt;br /&gt;
&lt;br /&gt;
Without loss of generality we have (a,b)=(11111,11133), (c,d) = (11113,11131), thus p = 11122.  By permuting the first three indices, we may assume that p&#039; is not of the form x2y2z, x2yz2, xy22z, xy2z2.  Then 1112x lies outside the set and 1122x lies in the set, so by the above paragraph 1132x lies in the set; similarly for 113x2, 1312x, 131x2.  This implies that 13122, 11322 lie outside the set, but this (together with 11122) shows that at least three C-points are missing, a contradiction.&lt;br /&gt;
&lt;br /&gt;
== General n ==&lt;br /&gt;
&lt;br /&gt;
General solution for &amp;lt;math&amp;gt;c&#039;_N&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* q 2s, all points from A(N-q,1)&lt;br /&gt;
* q-1 2s, points from A(N-q+1,2)&lt;br /&gt;
* q-2 2s, points from A(N-q+2,3)&lt;br /&gt;
* etc.&lt;br /&gt;
&lt;br /&gt;
where A(m,d) is a subset of &amp;lt;math&amp;gt;[1,3]^m&amp;lt;/math&amp;gt; for which any two points differ from each other in at least d places.&lt;br /&gt;
&lt;br /&gt;
Mathworld’s entry on error-correcting codes suggests it might be NP-complete to find the size of A(m,d) in general.&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;math&amp;gt;|A(m,1)| = 2^m&amp;lt;/math&amp;gt; because it includes all points in &amp;lt;math&amp;gt;[1,3]^m&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;|A(m,2)| = 2^{m-1}&amp;lt;/math&amp;gt; because it can include all points in &amp;lt;math&amp;gt;[1,3]^m&amp;lt;/math&amp;gt; with an odd number of 1s&lt;br /&gt;
&lt;br /&gt;
The integer programming routine from Maple 12 was used to obtain upper bounds for &amp;lt;math&amp;gt;c&#039;_6&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;c&#039;_7&amp;lt;/math&amp;gt;.  A large number of linear inequalities, described above in sections (n=3) and (n=4), were combined.  The details are in [[Maple calculations]].  The results were that &amp;lt;math&amp;gt;c&#039;_6 \le 361&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;c&#039;_7 \le 1071&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
A [[genetic algorithm]] has provided the following examples:&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;math&amp;gt;c&#039;_6 \geq 353&amp;lt;/math&amp;gt; (26 examples; [http://twofoldgaze.wordpress.com/2009/03/10/353-element-solution/ here is one])&lt;br /&gt;
* &amp;lt;math&amp;gt;c&#039;_7 \geq 988&amp;lt;/math&amp;gt; [http://twofoldgaze.wordpress.com/2009/03/10/978-element-solution/ Here is the example]&lt;br /&gt;
&lt;br /&gt;
== Variants ==&lt;br /&gt;
&lt;br /&gt;
A lower bound for Moser’s cube &amp;lt;math&amp;gt;[4]^n&amp;lt;/math&amp;gt; (values 1,2,3,4) comes from the following set:  Pick all points where q entries are 2 or 3; and also pick those where q-1 entries are 2 or 3 and an odd number of entries are 1.  This is maximized when q is near n/2, giving a lower bound of&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\binom{n}{n/2} 2^n + \binom{n}{n/2-1} 2^{n-1}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
which is comparable to &amp;lt;math&amp;gt;4^n/\sqrt{n}&amp;lt;/math&amp;gt; by [[Stirling&#039;s formula]].&lt;br /&gt;
&lt;br /&gt;
For k=5 (values 1,2,3,4,5) If A, B, C, D, and E denote the numbers of 1-s, 2-s, 3-s, 4-s and 5-s then the first three points of a geometric line form a 3-term arithmetic progression in A+E+2(B+D)+3C. So, for k=5 we have a similar lower bound for the Moser’s problem as for DHJ k=3, i.e. &amp;lt;math&amp;gt;5^{n - O(\sqrt{\log n})}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
The k=6 version of Moser implies DHJ(3).  Indeed, any k=3 combinatorial line-free set can be &amp;quot;doubled up&amp;quot; into a k=6 geometric line-free set of the same density by pulling back the set from the map &amp;lt;math&amp;gt;\phi: [6]^n \to [3]^n&amp;lt;/math&amp;gt; that maps 1, 2, 3, 4, 5, 6 to 1, 2, 3, 3, 2, 1 respectively; note that this map sends k=6 geometric lines to k=3 combinatorial lines.&lt;/div&gt;</summary>
		<author><name>121.220.134.232</name></author>
	</entry>
	<entry>
		<id>https://michaelnielsen.org/polymath/index.php?title=Moser%27s_cube_problem&amp;diff=943</id>
		<title>Moser&#039;s cube problem</title>
		<link rel="alternate" type="text/html" href="https://michaelnielsen.org/polymath/index.php?title=Moser%27s_cube_problem&amp;diff=943"/>
		<updated>2009-03-16T15:15:55Z</updated>

		<summary type="html">&lt;p&gt;121.220.134.232: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Define a &#039;&#039;Moser set&#039;&#039; to be a subset of &amp;lt;math&amp;gt;[3]^n&amp;lt;/math&amp;gt; which does not contain any [[geometric line]], and let &amp;lt;math&amp;gt;c&#039;_n&amp;lt;/math&amp;gt; denote the size of the largest Moser set in &amp;lt;math&amp;gt;[3]^n&amp;lt;/math&amp;gt;.  The first few values are (see [http://www.research.att.com/~njas/sequences/A003142 OEIS A003142]):&lt;br /&gt;
&lt;br /&gt;
: &amp;lt;math&amp;gt;c&#039;_0 = 1; c&#039;_1 = 2; c&#039;_2 = 6; c&#039;_3 = 16; c&#039;_4 = 43; c&#039;_5 = 124.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Beyond this point, we only have some upper and lower bounds, in particular &amp;lt;math&amp;gt;353 \leq c&#039;_6 \leq 361&amp;lt;/math&amp;gt;; see [http://spreadsheets.google.com/ccc?key=p5T0SktZY9DsU-uZ1tK7VEg this spreadsheet] for the latest bounds.&lt;br /&gt;
&lt;br /&gt;
The best known asymptotic lower bound for &amp;lt;math&amp;gt;c&#039;_n&amp;lt;/math&amp;gt; is&lt;br /&gt;
&lt;br /&gt;
: &amp;lt;math&amp;gt;c&#039;_n \gg 3^n/\sqrt{n}&amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
formed by fixing the number of 2s to a single value near n/3.  Compare this to the DHJ(2) or Sperner limit of &amp;lt;math&amp;gt;2^n/\sqrt{n}&amp;lt;/math&amp;gt;.  Is it possible to do any better?  Note that we have a [[Upper_and_lower_bounds#Asymptotics|significantly better bound]] for the DHJ(3) &amp;lt;math&amp;gt;c_n&amp;lt;/math&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
: &amp;lt;math&amp;gt;c_n \geq 3^{n-O(\sqrt{\log n})}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
A more precise lower bound is&lt;br /&gt;
&lt;br /&gt;
: &amp;lt;math&amp;gt;c&#039;_n \geq \binom{n+1}{q} 2^{n-q}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where q is the nearest integer to &amp;lt;math&amp;gt;n/3&amp;lt;/math&amp;gt;, formed by taking all strings with q 2s, together with all strings with q-1 2s and an odd number of 1s.  This for instance gives the lower bound &amp;lt;math&amp;gt;c&#039;_5 \geq 120&amp;lt;/math&amp;gt;, which compares with the upper bound &amp;lt;math&amp;gt;c&#039;_5 \leq 3 c&#039;_4 = 129&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Using [[DHJ(3)]], we have the upper bound&lt;br /&gt;
&lt;br /&gt;
: &amp;lt;math&amp;gt;c&#039;_n = o(3^n)&amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
but no effective decay rate is known. It would be good to have a combinatorial proof of this fact (which is weaker than [[DHJ(3)]], but implies [[Roth&#039;s theorem]]).&lt;br /&gt;
&lt;br /&gt;
Convenient notation: given a Moser set A in &amp;lt;math&amp;gt;[3]^n&amp;lt;/math&amp;gt;, we let a be the number of points in A with no 2s, b be the number of points in A with one 2, c the number of points with two 2s, etc.  We call (a,b,c,...) the &#039;&#039;statistics&#039;&#039; of A.  Given a slice S of &amp;lt;math&amp;gt;[3]^n&amp;lt;/math&amp;gt;, we let a(S), b(S), etc. denote the statistics of that slice (dropping the fixed coordinates).  Thus for instance if A = {11, 12, 22, 32}, then (a,b,c) = (1,2,1), and (a(1*),b(1*)) = (1,1).&lt;br /&gt;
&lt;br /&gt;
We call a statistic (a,b,c,...) &#039;&#039;attainable&#039;&#039; if it is attained by a Moser set.  We say that an attainable statistic is &#039;&#039;Pareto-optimal&#039;&#039; if it cannot be pointwise dominated by any other attainable statistic (a&#039;,b&#039;,c&#039;,...) (thus &amp;lt;math&amp;gt;a&#039; \geq a&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;b&#039; \geq b&amp;lt;/math&amp;gt;, etc.)  We say that it is &#039;&#039;extremal&#039;&#039; if it is not a convex combination of any other attainable statistic (this is a stronger property than Pareto-optimal).  For the purposes of maximising linear scores of attainable statistics, it suffices to check extremal statistics.&lt;br /&gt;
&lt;br /&gt;
We let &amp;lt;math&amp;gt;(\alpha_0,\alpha_1,\ldots)&amp;lt;/math&amp;gt; be the normalized version of &amp;lt;math&amp;gt;(a,b,\ldots)&amp;lt;/math&amp;gt;, in which one divides the number of points of a certain type in the set by the total number of points in the set.  Thus for instance &amp;lt;math&amp;gt;\alpha_0 = a/2^n, \alpha_1 = b/(n 2^{n-1}), \alpha_3 = c/(\binom{n}{2} 2^{n-2})&amp;lt;/math&amp;gt;, etc., and the &amp;lt;math&amp;gt;\alpha_i&amp;lt;/math&amp;gt; range between 0 and 1.  Averaging arguments show that any linear inequality obeyed by the &amp;lt;math&amp;gt;\alpha_i&amp;lt;/math&amp;gt; at one dimension is automatically inherited by higher dimensions, as are shifted versions of this inequality (in which &amp;lt;math&amp;gt;\alpha_i&amp;lt;/math&amp;gt; is replaced by &amp;lt;math&amp;gt;\alpha_{i+1}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== n=0 ==&lt;br /&gt;
&lt;br /&gt;
We trivially have &amp;lt;math&amp;gt;c&#039;_0=1.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== n=1 ==&lt;br /&gt;
&lt;br /&gt;
We trivially have &amp;lt;math&amp;gt;c&#039;_1=2.&amp;lt;/math&amp;gt;  The Pareto-optimal values of the statistics (a,b) are (1,1) and (2,0); these are also the extremals.  We thus have the inequality &amp;lt;math&amp;gt;a+b \leq 2&amp;lt;/math&amp;gt;, or in normalized notation&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;2\alpha_0 + \alpha_1 \leq 2&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== n=2 ==&lt;br /&gt;
&lt;br /&gt;
We have &amp;lt;math&amp;gt;c&#039;_2 = 6&amp;lt;/math&amp;gt;; the upper bound follows since &amp;lt;math&amp;gt;c&#039;_2 \leq 3 c&#039;_1&amp;lt;/math&amp;gt;, and the lower bound follows by deleting one of the two diagonals from &amp;lt;math&amp;gt;[3]^2&amp;lt;/math&amp;gt; (these are the only extremisers).&lt;br /&gt;
&lt;br /&gt;
The extremiser has statistics (a,b,c) = (2,4,0), which are of course Pareto-optimal.  If c=1 then we must have a, b at most 2 (look at the lines through 22).  This is attainable (e.g. {11, 12, 22, 23, 31}, and so (2,2,1) is another Pareto-optimal statistic.  If a=4, then b and c must be 0, so we get another Pareto-optimal statistic (4,0,0) (attainable by {11, 13, 31, 33} of course).  If a=3, then c=0 and b is at most 2, giving another Pareto-optimal statistic (3,2,0); but this is a convex combination of (4,0,0) and (2,4,0) and is thus not extremal.  Thus the complete set of extremal statistics are&lt;br /&gt;
&lt;br /&gt;
(4,0,0), (2,4,0), (2,2,1).&lt;br /&gt;
&lt;br /&gt;
The sharp linear inequalities obeyed by a,b,c (other than the trivial ones &amp;lt;math&amp;gt;a,b,c \geq 0&amp;lt;/math&amp;gt;) are then&lt;br /&gt;
&lt;br /&gt;
*&amp;lt;math&amp;gt;2a+b+2c \leq 8&amp;lt;/math&amp;gt;&lt;br /&gt;
*&amp;lt;math&amp;gt;b+2c \leq 4&amp;lt;/math&amp;gt;&lt;br /&gt;
*&amp;lt;math&amp;gt;a+2c \leq 4&amp;lt;/math&amp;gt;&lt;br /&gt;
*&amp;lt;math&amp;gt;c \leq 1&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
In normalized notation, we have&lt;br /&gt;
*&amp;lt;math&amp;gt;4\alpha_0 + 2\alpha_1 + \alpha_2 \leq 4&amp;lt;/math&amp;gt;&lt;br /&gt;
*&amp;lt;math&amp;gt;2\alpha_1 + \alpha_2 \leq 2&amp;lt;/math&amp;gt;&lt;br /&gt;
*&amp;lt;math&amp;gt;2\alpha_0 + \alpha_2 \leq 2&amp;lt;/math&amp;gt;&lt;br /&gt;
*&amp;lt;math&amp;gt;\alpha_2 \leq 1&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== n=3 ==&lt;br /&gt;
&lt;br /&gt;
We have &amp;lt;math&amp;gt;c&#039;_3 = 16&amp;lt;/math&amp;gt;.  The lower bound can be seen for instance by taking all the strings with one 2, and half the strings with no 2 (e.g. the strings with an odd number of 1s).  The upper bound can be deduced from the corresponding [[upper and lower bounds]] for &amp;lt;math&amp;gt;c_3 = 18&amp;lt;/math&amp;gt;; the 17-point and 18-point line-free sets each contain a geometric line.&lt;br /&gt;
&lt;br /&gt;
If a Moser set in &amp;lt;math&amp;gt;[3]^3&amp;lt;/math&amp;gt; contains 222, then it can have at most 14 points, since the remaining 26 points in the cube split into 13 antipodal pairs, and at most one of each pair can lie in the set.  By exhausting over the &amp;lt;math&amp;gt;2^{13} = 8192&amp;lt;/math&amp;gt; possibilities, it can be shown that it is impossible for a 14-point set to exist; any Moser set containing 222 must in fact omit at least one antipodal pair completely and thus have only 13 points.  (A human proof of this fact can be [http://www.ma.rhul.ac.uk/~elsholtz/WWW/blog/mosertablogv01.pdf found here].)&lt;br /&gt;
&lt;br /&gt;
The Pareto-optimal statistics are&lt;br /&gt;
&lt;br /&gt;
(3,6,3,1),(4,4,3,1),(4,6,2,1),(2,6,6,0),(3,6,5,0),(4,4,5,0),(3,7,4,0),(4,6,4,0), (3,9,3,0),(4,7,3,0),(5,4,3,0),(4,9,2,0),(5,6,2,0),(6,3,2,0),(3,10,1,0),(5,7,1,0), (6,4,1,0),(4,12,0,0),(5,9,0,0),(6,6,0,0),(7,3,0,0),(8,0,0,0).&lt;br /&gt;
&lt;br /&gt;
These were found from a search of the &amp;lt;math&amp;gt;2^{27}&amp;lt;/math&amp;gt; subsets of the cube.&lt;br /&gt;
A spreadsheet containing these statistics can be [http://spreadsheets.google.com/ccc?key=p5T0SktZY9DuKZ2DyzO9EOg&amp;amp;hl=en# found here].&lt;br /&gt;
&lt;br /&gt;
The extremal statistics are&lt;br /&gt;
&lt;br /&gt;
(3,6,3,1),(4,4,3,1),(4,6,2,1),(2,6,6,0),(4,4,5,0),(4,6,4,0),(4,12,0,0),(8,0,0,0)&lt;br /&gt;
&lt;br /&gt;
The sharp linear bounds are :&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;math&amp;gt;2a+b+2c+4d \leq 22&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;3a+2b+3c+6d \leq 36&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;7a+2b+4c+8d \leq 56&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;6a+2b+3c+6d \leq 48&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;b+c+3d \leq 12&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;a+2c+4d \leq 14&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;5a+4c+8d \leq 40&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;a+4d \leq 8&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;b+6d \leq 12&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;c+3d \leq 6&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;d \leq 1&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In normalized notation,&lt;br /&gt;
* &amp;lt;math&amp;gt;8\alpha_0+ 6\alpha_1 + 6\alpha_2 + 2\alpha_3 \leq 11&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;4\alpha_0+4\alpha_1+3\alpha_2+\alpha_3 \leq 6&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;7\alpha_0+3\alpha_1+3\alpha_2+\alpha_3 \leq 7&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;8\alpha_0+3\alpha_1+3\alpha_2+\alpha_3 \leq 8&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;4\alpha_1+2\alpha_2+\alpha_3 \leq 4&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;4\alpha_0+6\alpha_2+2\alpha_3 \leq 7&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;5\alpha_0+3\alpha_2+\alpha_3 \leq 5&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;2\alpha_0+\alpha_3 \leq 2&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;2\alpha_1+\alpha_3 \leq 2&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;2\alpha_2+\alpha_3 \leq 2&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;\alpha_3 \leq 1&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== n=4 ==&lt;br /&gt;
&lt;br /&gt;
A [http://abel.math.umu.se/~klasm/extremal-moser-n=5-t=3 computer search] has obtained all extremisers to &amp;lt;math&amp;gt;c&#039;_4=43&amp;lt;/math&amp;gt;.  The 42-point solutions can be found [http://abel.math.umu.se/~klasm/moser-n=4-t=3-p=42.gz here].&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof that &amp;lt;math&amp;gt;c&#039;_4 \leq 43&amp;lt;/math&amp;gt;&#039;&#039;&#039;: &lt;br /&gt;
When e=1 (i.e. the 4D set contains 2222) then we have at most 41 points (in fact at most 39) by counting antipodal points, so assume e=0.&lt;br /&gt;
&lt;br /&gt;
Define the score of a 3D slice to be a/4+b/3+c/2+d.  Observe from double counting that the size of a 4D set is the sum of the scores of its eight side slices.&lt;br /&gt;
&lt;br /&gt;
But by [http://spreadsheets.google.com/ccc?key=p5T0SktZY9DuKZ2DyzO9EOg&amp;amp;hl=en looking at the extremals] we see that the largest score is 44/8, attained at only one point, namely when (a,b,c,d) = (2,6,6,0).  So the only way one can have a 44-point set is if all side slices are (2,6,6,0), or equivalently if the whole set has statistics (a,b,c,d,e) = (4,16,24,0,0).  But then we have all the points with two 2s, which means that the four &amp;quot;a&amp;quot; points cannot be separated by Hamming distance 2.  We conclude that we must have an antipodal pair among the &amp;quot;a&amp;quot; points with an odd number of 1s, and an antipodal pair among the &amp;quot;a&amp;quot; points with an even number of 1s.    By the symmetries of the cube, we may take the a-set to then be 1111, 3333, 1113, 3331.  But then the &amp;quot;b&amp;quot; set must exclude both 1112 and 3332, and so can have at most three points in the eight-point set xyz2 (with x,y,z=1,3) rather than four (to get four points one must alternate in a checkerboard pattern).  Adding this to the at most four points of the form xy2z, x2yz, 2xyz we see that b is at most 16, a contradiction. &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Given a subset of &amp;lt;math&amp;gt;[3]^4&amp;lt;/math&amp;gt;, let a be the number of points with no 2s, b be the number of points with 1 2, and so forth.  The quintuple (a,b,c,d,e) thus lies between (0,0,0,0,0) and (16,32,24,8,1).&lt;br /&gt;
&lt;br /&gt;
The 43-point solutions have distributions (a,b,c,d,e) as follows:&lt;br /&gt;
&lt;br /&gt;
* (5,20,18,0,0) [16 solutions]&lt;br /&gt;
* (4,16,23,0,0) [768 solutions]&lt;br /&gt;
* (3,16,24,0,0) [512 solutions]&lt;br /&gt;
* (4,15,24,0,0) [256 solutions]&lt;br /&gt;
&lt;br /&gt;
The 42-point solutions are [http://abel.math.umu.se/~klasm/Moser-42-stat.pdf distributed as follows]:&lt;br /&gt;
&lt;br /&gt;
* (6,24,12,0,0) [[http://abel.math.umu.se/~klasm/moser-n=4-42-12 8 solutions]] &lt;br /&gt;
* (5,20,17,0,0) [576 solutions]&lt;br /&gt;
* (5,19,18,0,0) [384 solutions]&lt;br /&gt;
* (6,16,18,2,0) [[http://abel.math.umu.se/~klasm/moser-n=4-42-e=2 192 solutions]]&lt;br /&gt;
* (4,20,18,0,0) [272 solutions]&lt;br /&gt;
* (5,17,20,0,0) [192 solutions]&lt;br /&gt;
* (5,16,21,0,0) [3584 solutions]&lt;br /&gt;
* (4,17,21,0,0) [768 solutions]&lt;br /&gt;
* (4,16,22,0,0) [26880 solutions]&lt;br /&gt;
* (5,15,22,0,0) [1536 solutions]&lt;br /&gt;
* (4,15,23,0,0) [22272 solutions]&lt;br /&gt;
* (3,16,23,0,0) [15744 solutions]&lt;br /&gt;
* (4,14,24,0,0) [4224 solutions]&lt;br /&gt;
* (3,15,24,0,0) [8704 solutions]&lt;br /&gt;
* (2,16,24,0,0) [896 solutions]&lt;br /&gt;
&lt;br /&gt;
Note how c is usually quite large, and d quite low.&lt;br /&gt;
&lt;br /&gt;
One of the (6,24,12,0,0) solutions is &amp;lt;math&amp;gt;\Gamma_{220}+\Gamma_{202}+\Gamma_{022}+\Gamma_{112}+\Gamma_{211}&amp;lt;/math&amp;gt; (i.e. the set of points containing exactly two 1s, and/or exactly two 3s).  The other seven are reflections of this set.&lt;br /&gt;
&lt;br /&gt;
There are 2,765,200 41-point solutions, [http://abel.math.umu.se/~klasm/solutions-4-t=3-41-moser.gz listed here].  The statistics for such points can be [http://abel.math.umu.se/~klasm/Moser-41-stat.pdf found here].  Noteworthy features of the statistics:&lt;br /&gt;
&lt;br /&gt;
* d is at most 3 (and, except for [http://abel.math.umu.se/~klasm/moser-n=3-t=3-41-d=3.gz 256 exceptional solutions] of the shape (5,15,18,3,0), have d at most 2; here are the [http://abel.math.umu.se/~klasm/moser-n=3-t=3-41-d=2.gz d=2 solutions] and [http://abel.math.umu.se/~klasm/moser-n=3-t=3-41-d=1.gz d=1 solutions])&lt;br /&gt;
* c is at least 6 (and, except for [http://abel.math.umu.se/~klasm/moser-n=3-t=3-41-c=6.gz 16 exceptional solutions] of the shape (7,28,6,0,0), have c at least 11).&lt;br /&gt;
&lt;br /&gt;
Statistics for the 41-point, 42-point, and 43-point solutions can be found [http://spreadsheets.google.com/ccc?key=p5T0SktZY9DuqNcxJ171Bbw&amp;amp;hl=en here].&lt;br /&gt;
&lt;br /&gt;
If a Moser set in &amp;lt;math&amp;gt;[3]^4&amp;lt;/math&amp;gt; contains 2222, then by the n=3 theory, any middle slice (i.e. 2***, *2**, **2*, or ***2) is missing at least one antipodal pair.  But each antipodal pair belongs to at most three middle slices, thus two of the 40 antipodal pairs must be completely missing.  As a consequence, any Moser set containing 2222 can have at most 39 points.&lt;br /&gt;
(A more refined analysis can be found at [http://www.ma.rhul.ac.uk/~elsholtz/WWW/blog/mosertablogv01.pdf found here].)&lt;br /&gt;
&lt;br /&gt;
We have the following inequalities connecting a,b,c,d,e:&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;math&amp;gt;4a+b \leq 64&amp;lt;/math&amp;gt;:  There are 32 lines connecting two &amp;quot;a&amp;quot; points with a &amp;quot;b&amp;quot; point; each &amp;quot;a&amp;quot; point belongs to four of these lines, and each &amp;quot;b&amp;quot; point belongs to one.  But each such line can have at most two points in the set, and the claim follows.&lt;br /&gt;
* This can be refined to &amp;lt;math&amp;gt;4a+b+\frac{2}{3} c \leq 64&amp;lt;/math&amp;gt;: There are 24 planes connecting four &amp;quot;a&amp;quot; points, four &amp;quot;b&amp;quot; points, and one &amp;quot;c&amp;quot; point; each &amp;quot;a&amp;quot; point belongs to six of these, each &amp;quot;b&amp;quot; point belongs to three, and each &amp;quot;c&amp;quot; point belongs to one.  For each of these planes, we have &amp;lt;math&amp;gt;2a + b + 2c \leq 8&amp;lt;/math&amp;gt; from the n=2 theory, and the claim follows.&lt;br /&gt;
* &amp;lt;math&amp;gt;6a+2c \leq 96&amp;lt;/math&amp;gt;:  There are 96 lines connecting two &amp;quot;a&amp;quot; points with a &amp;quot;c&amp;quot; point; each &amp;quot;a&amp;quot; point belongs to six of these lines, and each &amp;quot;c&amp;quot; point belongs to two.  But each such line can have at most two points in the set, and the claim follows.&lt;br /&gt;
* &amp;lt;math&amp;gt;3b+2c \leq 96&amp;lt;/math&amp;gt;:  There are 48 lines connecting two &amp;quot;b&amp;quot; points to a &amp;quot;c&amp;quot; point; each &amp;quot;b&amp;quot; point belongs to three of these points, and each &amp;quot;c&amp;quot; point belongs to two.  But each such line can have at most two points in the set, and the claim follows.&lt;br /&gt;
&lt;br /&gt;
The inequalities for n=3 imply inequalities for n=4.  Indeed, there are eight side slices of &amp;lt;math&amp;gt;[3]^4&amp;lt;/math&amp;gt;; each &amp;quot;a&amp;quot; point belongs to four of these, each &amp;quot;b&amp;quot; point belongs to three, each &amp;quot;c&amp;quot; point belongs to two, and each &amp;quot;d&amp;quot; point belongs to one.  Thus, any inequality of the form&lt;br /&gt;
:&amp;lt;math&amp;gt; \alpha a + \beta b + \gamma c + \delta d \leq M&amp;lt;/math&amp;gt;&lt;br /&gt;
in three dimensions implies the inequality&lt;br /&gt;
:&amp;lt;math&amp;gt; 4 \alpha a + 3 \beta b + 2 \gamma c + \delta d \leq 8M&amp;lt;/math&amp;gt;&lt;br /&gt;
in four dimensions.  Thus we have&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;math&amp;gt;8a+3b+4c+4d \leq 176&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;2a+b+c+d \leq 48&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;14a+3b+4c+4d \leq 244&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;4a+b+c+d \leq 64&amp;lt;/math&amp;gt; &lt;br /&gt;
* &amp;lt;math&amp;gt;3b+2c+3d \leq 96&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;a+c+d \leq 28&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;5a+2c+2d \leq 80&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;a+d \leq 16&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;b+2d \leq 32&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;2c+3d \leq 48&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Cubes also sit diagonally in the 4-dimensional cube.  They may have coordinates xxyz, where xx runs over (11,22,33) or (13,22,31), while y and z run over (1,2,3).  These cubes have a different distribution of 2s than the ordinary slices: (a,b,c,d,e) = (8,8,6,4,1) instead of (8,12,6,1,0) for the side slices and (0,8,12,6,1) for the middle slices.  So a different set of inequalities arise.  It is possible to run through the same procedure as described above for n=3, and the inequalities that arise are &amp;lt;math&amp;gt;2a+b+2c+2d+4e \le 24&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;4a+b+2c+2d+4e \le 32&amp;lt;/math&amp;gt; within the 3D cube, which when averaged becomes &amp;lt;math&amp;gt;4a+b+2c+4d+16e \le 96&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;8a+b+2c+4d+16e \le 128&amp;lt;/math&amp;gt; for the 4D cube.  A spreadsheet containing these statistics can be [http://spreadsheets.google.com/ccc?key=p5T0SktZY9DuKZ2DyzO9EOg&amp;amp;hl=en# found here] on sheet 2.  Other sheets of this spreadsheet contain results for a 3D cube sitting diagonally in a 5D or 6D cube.  Notice the similarity of the equations that arise for the xxxyz, xxyyz and xxxxyz diagonals.&lt;br /&gt;
&lt;br /&gt;
== n=5 ==&lt;br /&gt;
&lt;br /&gt;
Let (A,B,C,D,E,F) be the statistics of a five-dimensional Moser set, thus (A,B,C,D,E,F) varies between (0,0,0,0,0,0) and (32,80,80,40,10,1).&lt;br /&gt;
&lt;br /&gt;
There are several Moser sets with the statistics (4,40,80,0,0,0), which thus have 124 points.  Indeed, one can take&lt;br /&gt;
&lt;br /&gt;
* all points with two 2s;&lt;br /&gt;
* all points with one 2 and an even number of 1s; and&lt;br /&gt;
* (13111),(13113),(31311),(13333). Any two of these four points differ in three places, except for one pair of points that differ in one place.&lt;br /&gt;
&lt;br /&gt;
For the rest of this section, we assume that the Moser set &amp;lt;math&amp;gt;{\mathcal A}&amp;lt;/math&amp;gt; is a 125-point set.&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 1&#039;&#039;&#039;: F=0.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; If F is non-zero, then the Moser set contains 22222, then each of the 121 antipodal pairs can have at most one point in the set, leading to only 122 points. &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 2&#039;&#039;&#039;: Every middle slice of &amp;lt;math&amp;gt;{\mathcal A}&amp;lt;/math&amp;gt; has at most 41 points.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039;  Without loss of generality we may consider the 2**** slice.  There are two cases, depending on the value of c(2****).&lt;br /&gt;
&lt;br /&gt;
Suppose first that c is at least 17; thus there are at least 17 points of the form 222xy, 22xy2, 2xy22, or 2x22y, where the x, y denote 1 or 3.  This gives 36 &amp;quot;xy&amp;quot; wildcards in all in four coordinate slots; by the pigeonhole principle one of the slots sees at least 9 of the wildcards.  By symmetry, we may assume that the second coordinate slot sees at least 9 of these wildcards, thus there are at least 9 points of the form 2x22y, 2x2y2, 2xy22.  The x=1, x=3 cases can absorb at most six of these, thus each of these cases must absorb at least three points, with at least one absorbing at least five.  Let&#039;s say that it&#039;s the x=3 case that absorbs 5; thus &amp;lt;math&amp;gt;d(*1***) \geq 3&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;d(*3***) \geq 5&amp;lt;/math&amp;gt;.  From the n=4 theory this means that the *1*** slice has at most 41 points, and the *3*** slice has at most 40.  Meanwhile, the middle slice has at most 43, leading to 41+41+42=124 points in all.&lt;br /&gt;
&lt;br /&gt;
Now suppose c is less than 16; then by the n=4 theory the middle slice is one of the eight (6,24,12,0,0) sets.  Without loss of generality we may take it to be &amp;lt;math&amp;gt;\Gamma_{220}+\Gamma_{202}+\Gamma_{022}+\Gamma_{112}+\Gamma_{211}&amp;lt;/math&amp;gt;; in particular, the middle slice contains the points 21122 21212 21221 23322 23232 23223.  In particular, the *1*** and *3*** slices have a &amp;quot;d&amp;quot; value of at least three, and so have at most 41 points.  If the *2*** slice has at most 42 points, then we are at 41+42+41=124 points as needed, but if we have 43 or more, then we are back in the first case (as &amp;lt;math&amp;gt;c(*2***) \geq 17&amp;lt;/math&amp;gt;) after permuting the indices.&lt;br /&gt;
&amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Since 125=41+41+43, we thus have&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Corollary 1&#039;&#039;&#039;: Every side slice of &amp;lt;math&amp;gt;{\mathcal A}&amp;lt;/math&amp;gt; has at least 41 points.  If one side slice does have 41 points, then the other has 43.&lt;br /&gt;
&lt;br /&gt;
Combining this with the n=4 statistics, we conclude&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Corollary 2&#039;&#039;&#039;: Every side slice of &amp;lt;math&amp;gt;{\mathcal A}&amp;lt;/math&amp;gt; has e=0, and &amp;lt;math&amp;gt;d \leq 3&amp;lt;/math&amp;gt;.  Given two opposite side slices, e.g. 1**** and 3****, we have &amp;lt;math&amp;gt;d(1****)+d(3****) \leq 4&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Corollary 3&#039;&#039;&#039;: E=0.&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Corollary 4&#039;&#039;&#039;: Any middle slice has a &amp;quot;c&amp;quot; value of at most 8.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; Let&#039;s work with the 2**** slice.  By Corollary 2, there are at most four contributions to c(2****) of the form 21*** or 23***, and similarly for the other three positions.  Double counting then gives the claim. &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 3&#039;&#039;&#039;: &amp;lt;math&amp;gt;2B+C \leq 160&amp;lt;/math&amp;gt;.   &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039;: There are 160 lines connecting one &amp;quot;C&amp;quot; point to two &amp;quot;B&amp;quot; points (e.g. 11112, 11122, 11132); each &amp;quot;C&amp;quot; point lies in two of these, and each &amp;quot;B&amp;quot; point lies on four.  A Moser set can have at most two points out of each of these lines.  Double counting then gives the claim.  &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 4&#039;&#039;&#039; Given m A-points with &amp;lt;math&amp;gt;m \geq 5&amp;lt;/math&amp;gt;, there exists at least m-4 pairs (a,b) of such A-points with Hamming distance exactly two (i.e. b differs from a in exactly two places).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; It suffices to check this for m=5, since the case of larger m then follows by locating a pair, removing a point that contributes to that pair, and using the induction hypothesis.  Given 5 A-points, we may assume by the pigeonhole principle and symmetry that at least three of them have an odd number of 1s.  Suppose 11111 is one of the points, and that no pair has Hamming distance 2. All points with two 3s are excluded, so the only points allowed with an odd number of 1s are those with four 3s. But all those points differ from each other in two positions, so at most one of them is allowed.  &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Corollary 5&#039;&#039;&#039; &amp;lt;math&amp;gt;C \leq 79&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039;: Suppose for contradiction that C=80, then D=0 and &amp;lt;math&amp;gt;B \leq 40&amp;lt;/math&amp;gt;.  From Lemma 4 we also see that A cannot exceed 5, leading to the contradiction.&lt;br /&gt;
&amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Define the &#039;&#039;&#039;score&#039;&#039;&#039; of a Moser set in &amp;lt;math&amp;gt;[3]^4&amp;lt;/math&amp;gt; to be the quantity &amp;lt;math&amp;gt;a + 5b/4 + 5c/3 + 5d/2 + 5e&amp;lt;/math&amp;gt;.  Double-counting (and Lemma 2) gives&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 5&#039;&#039;&#039;  The total score of all the ten side-slices of &amp;lt;math&amp;gt;{\mathcal A}&amp;lt;/math&amp;gt; is equal to &amp;lt;math&amp;gt;5|{\mathcal A}| = 5 \times 125&amp;lt;/math&amp;gt;.  In particular, there exists a pair of opposite side-slices whose scores add up to at least 125.&lt;br /&gt;
&lt;br /&gt;
By Lemma 5 and symmetry, we may assume that the 1**** and 3**** slices have score adding up to at least 125.  By Lemma 2, the 2**** slice has at most 41 points, which imply that the 1**** and 3**** have 41, 42, or 43 points.  From the [http://spreadsheets.google.com/ccc?key=p5T0SktZY9DuqNcxJ171Bbw&amp;amp;hl=en n=4 statistics] we know that all 41-point, 42-point, 43-point slices have score less than 62, with the following exceptions:&lt;br /&gt;
&lt;br /&gt;
# (2,16,24,0,0) [42 points, score: 62]&lt;br /&gt;
# (4,16,23,0,0) [43 points, score: 62 1/3]&lt;br /&gt;
# (4,15,24,0,0) [43 points, score: 62 3/4]&lt;br /&gt;
# (3,16,24,0,0) [43 points, score: 63]&lt;br /&gt;
&lt;br /&gt;
Thus the 1**** and 3**** slices must from the above list.  Furthermore, if one of the slices is of type 1, then the other must be of type 4, and if one slice is of type 2, then the other must be of type 3 or 4.&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 6&#039;&#039;&#039; There exists one cut in which the side slices have total score strictly greater than 125 (i.e. they thus involve only Type 2, Type 3, and Type 4 slices, with at least one side slice not equal to Type 2, and the cut here is of the form 43+39+43).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; If not, then all cuts have side slices exactly equal to 125, which by the above table implies that one is Type 1 and one is Type 4, in particular all side slices have c=24.  But this forces C=80, contradicting Corollary 5. &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Adding up the corners we conclude&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Corollary 6&#039;&#039;&#039; &amp;lt;math&amp;gt;6 \leq A \leq 8&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 7&#039;&#039;&#039; &amp;lt;math&amp;gt;D=0&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; Firstly, from Lemma 6 we have a cut in which the two side slices are omitting at most one C-point between them (and have no D-point), which forces the middle slice to have at most one D-point; thus D is at most 1.&lt;br /&gt;
&lt;br /&gt;
Now suppose instead that D=1 (e.g. if 11222 was in the set); then there would be two choices of coordinates in which one of the side slices would have d=1 (e.g. 1**** and *1****). But the [http://spreadsheets.google.com/ccc?key=p5T0SktZY9DuqNcxJ171Bbw&amp;amp;hl=en n=4 statistics] show that such slices have a score of at most 59 7/12, so that the total score from those two coordinates is at most 63 + 59 7/12 = 122 7/12. On the other hand, the other three slices have a net score of at most 63+63 = 126. This averages out to at most 124.633... &amp;lt; 125, a contradiction.  &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Corollary 7&#039;&#039;&#039; Every middle slice has at most 40 points.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; From Lemma 7 we see that the middle slice must have c=0, but from the n=4 statistics this is not possible for any slice of size 41 or higher (alternatively, one can use the inequalities &amp;lt;math&amp;gt;4a+b \leq 64&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;b \leq 32&amp;lt;/math&amp;gt;). &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Each middle slice now has 39 or 40 points, with c=d=e=0, and so from the inequalities &amp;lt;math&amp;gt;4a+b \leq 64&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;b \leq 32&amp;lt;/math&amp;gt; must have statistics (8,32,0,0,0),(7,32,0,0,0), or (8,31,0,0,0).  In particular the &amp;quot;a&amp;quot; index of the middle slices is at most 8.  Summing over all middle slices we conclude&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 9&#039;&#039;&#039; B is at most 40.&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 10&#039;&#039;&#039; C is equal to 78 or 79.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; By Corollary 5, it suffices to show that &amp;lt;math&amp;gt;C \geq 78&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
As 125=43+39+43, we see that every center slice must have at least 39 points. By Lemma 2 and Lemma 7 the center slice has c=d=e=0, thus the center slice has a+b &amp;gt;= 39.  On the other hand, from the n=4 theory we have 4a+b &amp;lt;= 64, which forces b &amp;gt;= 31.&lt;br /&gt;
&lt;br /&gt;
By double counting, we see that 2C is equal to the sum of the b&#039;s of all the five center slices.  Thus C &amp;gt;= 5*31/2 = 77.5 and the claim follows.  &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
From Lemmas 9 and 10 we see that &amp;lt;math&amp;gt;B+C \leq 119&amp;lt;/math&amp;gt;, and thus &amp;lt;math&amp;gt;A \geq 6&amp;lt;/math&amp;gt;.  Also, if &amp;lt;math&amp;gt;A \geq 7&amp;lt;/math&amp;gt;, then by Lemma 4 we have at least three pairs of A points with Hamming distance 2.  At most two of these pairs eliminate the same C point, so we would have C=78 in that case.  &lt;br /&gt;
&lt;br /&gt;
Putting all the above facts together, we see that (A,B,C,D,E,F) must be one of the following triples:&lt;br /&gt;
&lt;br /&gt;
* (6,40,79,0,0,0)&lt;br /&gt;
* (7,40,78,0,0,0)&lt;br /&gt;
* (8,39,78,0,0,0)&lt;br /&gt;
&lt;br /&gt;
All three cases can be eliminated, giving &amp;lt;math&amp;gt;c&#039;_5=124&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== Elimination of (6,40,79,0,0,0) ===&lt;br /&gt;
&lt;br /&gt;
Look at the 6 A points.  From Lemma 4 we have at least two pairs (a,b), (c,d) of A-points that have Hamming separation 2.&lt;br /&gt;
&lt;br /&gt;
Now look at the midpoints of these two pairs; these midpoints are C-points cannot lie in the set.  But we have exactly one C-point missing from the set, thus the midpoints must be the same.  By symmetry, we may thus assume that the two pairs are (11111,11133) and (11113,11131).  Thus 11111,11133, 11113, 11131 are in the set, and so every C-point other than 11122 is in the set.  On the other hand, the B-points 11121, 11123, 11112, 11132 lie outside the set.&lt;br /&gt;
&lt;br /&gt;
At most one of 11312, 11332 lie in the set (since 11322 lies in the set).   Suppose that 11312 lies outside the set, then we have a pair (xy1z2, xy3z2) with x,y,z = 1,3 that is totally omitted from the set, namely (11112,11312).  On the other hand, every other pair of this form can have at most point in the set, thus there are at most seven points in the set of the form (xyzw2) with x,y,z,w = 1,3.  Similarly there are at most 8 points of the form xyz2w, or of xy2zw, x2yzw, 2xyzw, leading to at most 39 B-points in all, contradiction.&lt;br /&gt;
&lt;br /&gt;
=== Elimination of (7,40,78,0,0,0) ===&lt;br /&gt;
&lt;br /&gt;
By Lemma 4, we have at least three pairs of A-points of distance two apart that lie in the set.&lt;br /&gt;
The midpoints of these pairs are C-points that do not lie in the set; but there are only two such C-points, thus two pairs must have the same midpoint, so we may assume as before that 111xy lies in the set for x,y=1,3, which implies that 1112* and 111*2 lie outside the set.&lt;br /&gt;
&lt;br /&gt;
Now consider the 160 lines between 2 B points and one C point (cf. Lemma 3).  The sum of all the points in each such line (counting multiplicity) is 4B+2C = 316.  On the other hand, every one of the 160 lines can have at most two points, and four of these lines (namely 1112*, 111*2) have no points.  Thus all the other lines must have exactly two points.  &lt;br /&gt;
&lt;br /&gt;
We know that the C-point 11122 is missing from the set; there is one other missing C-point.  Since 1112x, 111x2 lie outside the set, we conclude from the previous paragraph that 1132x, 113x2 and 1312x, 131x2 lie in the set.  Taking midpoints we conclude that 11322 and 13122 lie outside the set.  But this is now three C-points missing (together with 11122), a contradiction.&lt;br /&gt;
&lt;br /&gt;
=== Elimination of (8,39,78,0,0,0) ===&lt;br /&gt;
&lt;br /&gt;
By Lemma 4 we have at least four pairs of A-points of distance two apart that lie in the set. The midpoints of these pairs are C-points that do not lie in the set; but there are only two such C-points, thus two pairs (a,b), (c,d) must have the same midpoint p, and the other two pairs (a&#039;,b&#039;), (c&#039;,d&#039;) must also have the same midpoint p&#039;.  (Note that every C-point is the midpoint of at most two such pairs.)&lt;br /&gt;
&lt;br /&gt;
Now consider the 160 lines between 2 B points and one C point (cf. Lemma 3).  The sum of all the points in each such line (counting multiplicity) is 4B+2C = 312.  Every one of the 160 lines can have at most two points, and four of these (those in the plane of (a,b,c,d) or of (a&#039;,b&#039;,c&#039;,d&#039;) have no points.  Thus all other lines must have exactly two points.&lt;br /&gt;
&lt;br /&gt;
Without loss of generality we have (a,b)=(11111,11133), (c,d) = (11113,11131), thus p = 11122.  By permuting the first three indices, we may assume that p&#039; is not of the form x2y2z, x2yz2, xy22z, xy2z2.  Then 1112x lies outside the set and 1122x lies in the set, so by the above paragraph 1132x lies in the set; similarly for 113x2, 1312x, 131x2.  This implies that 13122, 11322 lie outside the set, but this (together with 11122) shows that at least three C-points are missing, a contradiction.&lt;br /&gt;
&lt;br /&gt;
== General n ==&lt;br /&gt;
&lt;br /&gt;
General solution for &amp;lt;math&amp;gt;c&#039;_N&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* q 2s, all points from A(N-q,1)&lt;br /&gt;
* q-1 2s, points from A(N-q+1,2)&lt;br /&gt;
* q-2 2s, points from A(N-q+2,3)&lt;br /&gt;
* etc.&lt;br /&gt;
&lt;br /&gt;
where A(m,d) is a subset of &amp;lt;math&amp;gt;[1,3]^m&amp;lt;/math&amp;gt; for which any two points differ from each other in at least d places.&lt;br /&gt;
&lt;br /&gt;
Mathworld’s entry on error-correcting codes suggests it might be NP-complete to find the size of A(m,d) in general.&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;math&amp;gt;|A(m,1)| = 2^m&amp;lt;/math&amp;gt; because it includes all points in &amp;lt;math&amp;gt;[1,3]^m&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;|A(m,2)| = 2^{m-1}&amp;lt;/math&amp;gt; because it can include all points in &amp;lt;math&amp;gt;[1,3]^m&amp;lt;/math&amp;gt; with an odd number of 1s&lt;br /&gt;
&lt;br /&gt;
The integer programming routine from Maple 12 was used to obtain upper bounds for &amp;lt;math&amp;gt;c&#039;_6&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;c&#039;_7&amp;lt;/math&amp;gt;.  A large number of linear inequalities, described above in sections (n=3) and (n=4), were combined.  The details are in [[Maple calculations]].  The results were that &amp;lt;math&amp;gt;c&#039;_6 \le 361&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;c&#039;_7 \le 1071&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
A [[genetic algorithm]] has provided the following examples:&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;math&amp;gt;c&#039;_6 \geq 353&amp;lt;/math&amp;gt; (26 examples; [http://twofoldgaze.wordpress.com/2009/03/10/353-element-solution/ here is one])&lt;br /&gt;
* &amp;lt;math&amp;gt;c&#039;_7 \geq 988&amp;lt;/math&amp;gt; [http://twofoldgaze.wordpress.com/2009/03/10/978-element-solution/ Here is the example]&lt;br /&gt;
&lt;br /&gt;
== Variants ==&lt;br /&gt;
&lt;br /&gt;
A lower bound for Moser’s cube &amp;lt;math&amp;gt;[4]^n&amp;lt;/math&amp;gt; (values 1,2,3,4) comes from the following set:  Pick all points where q entries are 2 or 3; and also pick those where q-1 entries are 2 or 3 and an odd number of entries are 1.  This is maximized when q is near n/2, giving a lower bound of&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\binom{n}{n/2} 2^n + \binom{n}{n/2-1} 2^{n-1}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
which is comparable to &amp;lt;math&amp;gt;4^n/\sqrt{n}&amp;lt;/math&amp;gt; by [[Stirling&#039;s formula]].&lt;br /&gt;
&lt;br /&gt;
For k=5 (values 1,2,3,4,5) If A, B, C, D, and E denote the numbers of 1-s, 2-s, 3-s, 4-s and 5-s then the first three points of a geometric line form a 3-term arithmetic progression in A+E+2(B+D)+3C. So, for k=5 we have a similar lower bound for the Moser’s problem as for DHJ k=3, i.e. &amp;lt;math&amp;gt;5^{n - O(\sqrt{\log n})}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
The k=6 version of Moser implies DHJ(3).  Indeed, any k=3 combinatorial line-free set can be &amp;quot;doubled up&amp;quot; into a k=6 geometric line-free set of the same density by pulling back the set from the map &amp;lt;math&amp;gt;\phi: [6]^n \to [3]^n&amp;lt;/math&amp;gt; that maps 1, 2, 3, 4, 5, 6 to 1, 2, 3, 3, 2, 1 respectively; note that this map sends k=6 geometric lines to k=3 combinatorial lines.&lt;/div&gt;</summary>
		<author><name>121.220.134.232</name></author>
	</entry>
	<entry>
		<id>https://michaelnielsen.org/polymath/index.php?title=Moser%27s_cube_problem&amp;diff=941</id>
		<title>Moser&#039;s cube problem</title>
		<link rel="alternate" type="text/html" href="https://michaelnielsen.org/polymath/index.php?title=Moser%27s_cube_problem&amp;diff=941"/>
		<updated>2009-03-16T15:05:34Z</updated>

		<summary type="html">&lt;p&gt;121.220.134.232: /* n=3 */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Define a &#039;&#039;Moser set&#039;&#039; to be a subset of &amp;lt;math&amp;gt;[3]^n&amp;lt;/math&amp;gt; which does not contain any [[geometric line]], and let &amp;lt;math&amp;gt;c&#039;_n&amp;lt;/math&amp;gt; denote the size of the largest Moser set in &amp;lt;math&amp;gt;[3]^n&amp;lt;/math&amp;gt;.  The first few values are (see [http://www.research.att.com/~njas/sequences/A003142 OEIS A003142]):&lt;br /&gt;
&lt;br /&gt;
: &amp;lt;math&amp;gt;c&#039;_0 = 1; c&#039;_1 = 2; c&#039;_2 = 6; c&#039;_3 = 16; c&#039;_4 = 43; c&#039;_5 = 124.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Beyond this point, we only have some upper and lower bounds, in particular &amp;lt;math&amp;gt;353 \leq c&#039;_6 \leq 360&amp;lt;/math&amp;gt;; see [http://spreadsheets.google.com/ccc?key=p5T0SktZY9DsU-uZ1tK7VEg this spreadsheet] for the latest bounds.&lt;br /&gt;
&lt;br /&gt;
The best known asymptotic lower bound for &amp;lt;math&amp;gt;c&#039;_n&amp;lt;/math&amp;gt; is&lt;br /&gt;
&lt;br /&gt;
: &amp;lt;math&amp;gt;c&#039;_n \gg 3^n/\sqrt{n}&amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
formed by fixing the number of 2s to a single value near n/3.  Compare this to the DHJ(2) or Sperner limit of &amp;lt;math&amp;gt;2^n/\sqrt{n}&amp;lt;/math&amp;gt;.  Is it possible to do any better?  Note that we have a [[Upper_and_lower_bounds#Asymptotics|significantly better bound]] for the DHJ(3) &amp;lt;math&amp;gt;c_n&amp;lt;/math&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
: &amp;lt;math&amp;gt;c_n \geq 3^{n-O(\sqrt{\log n})}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
A more precise lower bound is&lt;br /&gt;
&lt;br /&gt;
: &amp;lt;math&amp;gt;c&#039;_n \geq \binom{n+1}{q} 2^{n-q}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where q is the nearest integer to &amp;lt;math&amp;gt;n/3&amp;lt;/math&amp;gt;, formed by taking all strings with q 2s, together with all strings with q-1 2s and an odd number of 1s.  This for instance gives the lower bound &amp;lt;math&amp;gt;c&#039;_5 \geq 120&amp;lt;/math&amp;gt;, which compares with the upper bound &amp;lt;math&amp;gt;c&#039;_5 \leq 3 c&#039;_4 = 129&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Using [[DHJ(3)]], we have the upper bound&lt;br /&gt;
&lt;br /&gt;
: &amp;lt;math&amp;gt;c&#039;_n = o(3^n)&amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
but no effective decay rate is known. It would be good to have a combinatorial proof of this fact (which is weaker than [[DHJ(3)]], but implies [[Roth&#039;s theorem]]).&lt;br /&gt;
&lt;br /&gt;
Convenient notation: given a Moser set A in &amp;lt;math&amp;gt;[3]^n&amp;lt;/math&amp;gt;, we let a be the number of points in A with no 2s, b be the number of points in A with one 2, c the number of points with two 2s, etc.  We call (a,b,c,...) the &#039;&#039;statistics&#039;&#039; of A.  Given a slice S of &amp;lt;math&amp;gt;[3]^n&amp;lt;/math&amp;gt;, we let a(S), b(S), etc. denote the statistics of that slice (dropping the fixed coordinates).  Thus for instance if A = {11, 12, 22, 32}, then (a,b,c) = (1,2,1), and (a(1*),b(1*)) = (1,1).&lt;br /&gt;
&lt;br /&gt;
We call a statistic (a,b,c,...) &#039;&#039;attainable&#039;&#039; if it is attained by a Moser set.  We say that an attainable statistic is &#039;&#039;Pareto-optimal&#039;&#039; if it cannot be pointwise dominated by any other attainable statistic (a&#039;,b&#039;,c&#039;,...) (thus &amp;lt;math&amp;gt;a&#039; \geq a&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;b&#039; \geq b&amp;lt;/math&amp;gt;, etc.)  We say that it is &#039;&#039;extremal&#039;&#039; if it is not a convex combination of any other attainable statistic (this is a stronger property than Pareto-optimal).  For the purposes of maximising linear scores of attainable statistics, it suffices to check extremal statistics.&lt;br /&gt;
&lt;br /&gt;
We let &amp;lt;math&amp;gt;(\alpha_0,\alpha_1,\ldots)&amp;lt;/math&amp;gt; be the normalized version of &amp;lt;math&amp;gt;(a,b,\ldots)&amp;lt;/math&amp;gt;, in which one divides the number of points of a certain type in the set by the total number of points in the set.  Thus for instance &amp;lt;math&amp;gt;\alpha_0 = a/2^n, \alpha_1 = b/(n 2^{n-1}), \alpha_3 = c/(\binom{n}{2} 2^{n-2})&amp;lt;/math&amp;gt;, etc., and the &amp;lt;math&amp;gt;\alpha_i&amp;lt;/math&amp;gt; range between 0 and 1.  Averaging arguments show that any linear inequality obeyed by the &amp;lt;math&amp;gt;\alpha_i&amp;lt;/math&amp;gt; at one dimension is automatically inherited by higher dimensions, as are shifted versions of this inequality (in which &amp;lt;math&amp;gt;\alpha_i&amp;lt;/math&amp;gt; is replaced by &amp;lt;math&amp;gt;\alpha_{i+1}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== n=0 ==&lt;br /&gt;
&lt;br /&gt;
We trivially have &amp;lt;math&amp;gt;c&#039;_0=1.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== n=1 ==&lt;br /&gt;
&lt;br /&gt;
We trivially have &amp;lt;math&amp;gt;c&#039;_1=2.&amp;lt;/math&amp;gt;  The Pareto-optimal values of the statistics (a,b) are (1,1) and (2,0); these are also the extremals.  We thus have the inequality &amp;lt;math&amp;gt;a+b \leq 2&amp;lt;/math&amp;gt;, or in normalized notation&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;2\alpha_0 + \alpha_1 \leq 2&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== n=2 ==&lt;br /&gt;
&lt;br /&gt;
We have &amp;lt;math&amp;gt;c&#039;_2 = 6&amp;lt;/math&amp;gt;; the upper bound follows since &amp;lt;math&amp;gt;c&#039;_2 \leq 3 c&#039;_1&amp;lt;/math&amp;gt;, and the lower bound follows by deleting one of the two diagonals from &amp;lt;math&amp;gt;[3]^2&amp;lt;/math&amp;gt; (these are the only extremisers).&lt;br /&gt;
&lt;br /&gt;
The extremiser has statistics (a,b,c) = (2,4,0), which are of course Pareto-optimal.  If c=1 then we must have a, b at most 2 (look at the lines through 22).  This is attainable (e.g. {11, 12, 22, 23, 31}, and so (2,2,1) is another Pareto-optimal statistic.  If a=4, then b and c must be 0, so we get another Pareto-optimal statistic (4,0,0) (attainable by {11, 13, 31, 33} of course).  If a=3, then c=0 and b is at most 2, giving another Pareto-optimal statistic (3,2,0); but this is a convex combination of (4,0,0) and (2,4,0) and is thus not extremal.  Thus the complete set of extremal statistics are&lt;br /&gt;
&lt;br /&gt;
(4,0,0), (2,4,0), (2,2,1).&lt;br /&gt;
&lt;br /&gt;
The sharp linear inequalities obeyed by a,b,c (other than the trivial ones &amp;lt;math&amp;gt;a,b,c \geq 0&amp;lt;/math&amp;gt;) are then&lt;br /&gt;
&lt;br /&gt;
*&amp;lt;math&amp;gt;2a+b+2c \leq 8&amp;lt;/math&amp;gt;&lt;br /&gt;
*&amp;lt;math&amp;gt;b+2c \leq 4&amp;lt;/math&amp;gt;&lt;br /&gt;
*&amp;lt;math&amp;gt;a+2c \leq 4&amp;lt;/math&amp;gt;&lt;br /&gt;
*&amp;lt;math&amp;gt;c \leq 1&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
In normalized notation, we have&lt;br /&gt;
*&amp;lt;math&amp;gt;4\alpha_0 + 2\alpha_1 + \alpha_2 \leq 4&amp;lt;/math&amp;gt;&lt;br /&gt;
*&amp;lt;math&amp;gt;2\alpha_1 + \alpha_2 \leq 2&amp;lt;/math&amp;gt;&lt;br /&gt;
*&amp;lt;math&amp;gt;2\alpha_0 + \alpha_2 \leq 2&amp;lt;/math&amp;gt;&lt;br /&gt;
*&amp;lt;math&amp;gt;\alpha_2 \leq 1&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== n=3 ==&lt;br /&gt;
&lt;br /&gt;
We have &amp;lt;math&amp;gt;c&#039;_3 = 16&amp;lt;/math&amp;gt;.  The lower bound can be seen for instance by taking all the strings with one 2, and half the strings with no 2 (e.g. the strings with an odd number of 1s).  The upper bound can be deduced from the corresponding [[upper and lower bounds]] for &amp;lt;math&amp;gt;c_3 = 18&amp;lt;/math&amp;gt;; the 17-point and 18-point line-free sets each contain a geometric line.&lt;br /&gt;
&lt;br /&gt;
If a Moser set in &amp;lt;math&amp;gt;[3]^3&amp;lt;/math&amp;gt; contains 222, then it can have at most 14 points, since the remaining 26 points in the cube split into 13 antipodal pairs, and at most one of each pair can lie in the set.  By exhausting over the &amp;lt;math&amp;gt;2^{13} = 8192&amp;lt;/math&amp;gt; possibilities, it can be shown that it is impossible for a 14-point set to exist; any Moser set containing 222 must in fact omit at least one antipodal pair completely and thus have only 13 points.  (A human proof of this fact can be [http://www.ma.rhul.ac.uk/~elsholtz/WWW/blog/mosertablogv01.pdf found here].)&lt;br /&gt;
&lt;br /&gt;
The Pareto-optimal statistics are&lt;br /&gt;
&lt;br /&gt;
(3,6,3,1),(4,4,3,1),(4,6,2,1),(2,6,6,0),(3,6,5,0),(4,4,5,0),(3,7,4,0),(4,6,4,0), (3,9,3,0),(4,7,3,0),(5,4,3,0),(4,9,2,0),(5,6,2,0),(6,3,2,0),(3,10,1,0),(5,7,1,0), (6,4,1,0),(4,12,0,0),(5,9,0,0),(6,6,0,0),(7,3,0,0),(8,0,0,0).&lt;br /&gt;
&lt;br /&gt;
These were found from a search of the &amp;lt;math&amp;gt;2^{27}&amp;lt;/math&amp;gt; subsets of the cube.&lt;br /&gt;
A spreadsheet containing these statistics can be [http://spreadsheets.google.com/ccc?key=p5T0SktZY9DuKZ2DyzO9EOg&amp;amp;hl=en# found here].&lt;br /&gt;
&lt;br /&gt;
The extremal statistics are&lt;br /&gt;
&lt;br /&gt;
(3,6,3,1),(4,4,3,1),(4,6,2,1),(2,6,6,0),(4,4,5,0),(4,6,4,0),(4,12,0,0),(8,0,0,0)&lt;br /&gt;
&lt;br /&gt;
The sharp linear bounds are :&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;math&amp;gt;2a+b+2c+4d \leq 22&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;3a+2b+3c+6d \leq 36&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;7a+2b+4c+8d \leq 56&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;6a+2b+3c+6d \leq 48&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;b+c+3d \leq 12&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;a+2c+4d \leq 14&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;5a+4c+8d \leq 40&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;a+4d \leq 8&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;b+6d \leq 12&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;c+3d \leq 6&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;d \leq 1&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In normalized notation,&lt;br /&gt;
* &amp;lt;math&amp;gt;8\alpha_0+ 6\alpha_1 + 6\alpha_2 + 2\alpha_3 \leq 11&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;4\alpha_0+4\alpha_1+3\alpha_2+\alpha_3 \leq 6&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;7\alpha_0+3\alpha_1+3\alpha_2+\alpha_3 \leq 7&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;8\alpha_0+3\alpha_1+3\alpha_2+\alpha_3 \leq 8&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;4\alpha_1+2\alpha_2+\alpha_3 \leq 4&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;4\alpha_0+6\alpha_2+2\alpha_3 \leq 7&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;5\alpha_0+3\alpha_2+\alpha_3 \leq 5&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;2\alpha_0+\alpha_3 \leq 2&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;2\alpha_1+\alpha_3 \leq 2&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;2\alpha_2+\alpha_3 \leq 2&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;\alpha_3 \leq 1&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== n=4 ==&lt;br /&gt;
&lt;br /&gt;
A [http://abel.math.umu.se/~klasm/extremal-moser-n=5-t=3 computer search] has obtained all extremisers to &amp;lt;math&amp;gt;c&#039;_4=43&amp;lt;/math&amp;gt;.  The 42-point solutions can be found [http://abel.math.umu.se/~klasm/moser-n=4-t=3-p=42.gz here].&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof that &amp;lt;math&amp;gt;c&#039;_4 \leq 43&amp;lt;/math&amp;gt;&#039;&#039;&#039;: &lt;br /&gt;
When e=1 (i.e. the 4D set contains 2222) then we have at most 41 points (in fact at most 39) by counting antipodal points, so assume e=0.&lt;br /&gt;
&lt;br /&gt;
Define the score of a 3D slice to be a/4+b/3+c/2+d.  Observe from double counting that the size of a 4D set is the sum of the scores of its eight side slices.&lt;br /&gt;
&lt;br /&gt;
But by [http://spreadsheets.google.com/ccc?key=p5T0SktZY9DuKZ2DyzO9EOg&amp;amp;hl=en looking at the extremals] we see that the largest score is 44/8, attained at only one point, namely when (a,b,c,d) = (2,6,6,0).  So the only way one can have a 44-point set is if all side slices are (2,6,6,0), or equivalently if the whole set has statistics (a,b,c,d,e) = (4,16,24,0,0).  But then we have all the points with two 2s, which means that the four &amp;quot;a&amp;quot; points cannot be separated by Hamming distance 2.  We conclude that we must have an antipodal pair among the &amp;quot;a&amp;quot; points with an odd number of 1s, and an antipodal pair among the &amp;quot;a&amp;quot; points with an even number of 1s.    By the symmetries of the cube, we may take the a-set to then be 1111, 3333, 1113, 3331.  But then the &amp;quot;b&amp;quot; set must exclude both 1112 and 3332, and so can have at most three points in the eight-point set xyz2 (with x,y,z=1,3) rather than four (to get four points one must alternate in a checkerboard pattern).  Adding this to the at most four points of the form xy2z, x2yz, 2xyz we see that b is at most 16, a contradiction. &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Given a subset of &amp;lt;math&amp;gt;[3]^4&amp;lt;/math&amp;gt;, let a be the number of points with no 2s, b be the number of points with 1 2, and so forth.  The quintuple (a,b,c,d,e) thus lies between (0,0,0,0,0) and (16,32,24,8,1).&lt;br /&gt;
&lt;br /&gt;
The 43-point solutions have distributions (a,b,c,d,e) as follows:&lt;br /&gt;
&lt;br /&gt;
* (5,20,18,0,0) [16 solutions]&lt;br /&gt;
* (4,16,23,0,0) [768 solutions]&lt;br /&gt;
* (3,16,24,0,0) [512 solutions]&lt;br /&gt;
* (4,15,24,0,0) [256 solutions]&lt;br /&gt;
&lt;br /&gt;
The 42-point solutions are [http://abel.math.umu.se/~klasm/Moser-42-stat.pdf distributed as follows]:&lt;br /&gt;
&lt;br /&gt;
* (6,24,12,0,0) [[http://abel.math.umu.se/~klasm/moser-n=4-42-12 8 solutions]] &lt;br /&gt;
* (5,20,17,0,0) [576 solutions]&lt;br /&gt;
* (5,19,18,0,0) [384 solutions]&lt;br /&gt;
* (6,16,18,2,0) [[http://abel.math.umu.se/~klasm/moser-n=4-42-e=2 192 solutions]]&lt;br /&gt;
* (4,20,18,0,0) [272 solutions]&lt;br /&gt;
* (5,17,20,0,0) [192 solutions]&lt;br /&gt;
* (5,16,21,0,0) [3584 solutions]&lt;br /&gt;
* (4,17,21,0,0) [768 solutions]&lt;br /&gt;
* (4,16,22,0,0) [26880 solutions]&lt;br /&gt;
* (5,15,22,0,0) [1536 solutions]&lt;br /&gt;
* (4,15,23,0,0) [22272 solutions]&lt;br /&gt;
* (3,16,23,0,0) [15744 solutions]&lt;br /&gt;
* (4,14,24,0,0) [4224 solutions]&lt;br /&gt;
* (3,15,24,0,0) [8704 solutions]&lt;br /&gt;
* (2,16,24,0,0) [896 solutions]&lt;br /&gt;
&lt;br /&gt;
Note how c is usually quite large, and d quite low.&lt;br /&gt;
&lt;br /&gt;
One of the (6,24,12,0,0) solutions is &amp;lt;math&amp;gt;\Gamma_{220}+\Gamma_{202}+\Gamma_{022}+\Gamma_{112}+\Gamma_{211}&amp;lt;/math&amp;gt; (i.e. the set of points containing exactly two 1s, and/or exactly two 3s).  The other seven are reflections of this set.&lt;br /&gt;
&lt;br /&gt;
There are 2,765,200 41-point solutions, [http://abel.math.umu.se/~klasm/solutions-4-t=3-41-moser.gz listed here].  The statistics for such points can be [http://abel.math.umu.se/~klasm/Moser-41-stat.pdf found here].  Noteworthy features of the statistics:&lt;br /&gt;
&lt;br /&gt;
* d is at most 3 (and, except for [http://abel.math.umu.se/~klasm/moser-n=3-t=3-41-d=3.gz 256 exceptional solutions] of the shape (5,15,18,3,0), have d at most 2; here are the [http://abel.math.umu.se/~klasm/moser-n=3-t=3-41-d=2.gz d=2 solutions] and [http://abel.math.umu.se/~klasm/moser-n=3-t=3-41-d=1.gz d=1 solutions])&lt;br /&gt;
* c is at least 6 (and, except for [http://abel.math.umu.se/~klasm/moser-n=3-t=3-41-c=6.gz 16 exceptional solutions] of the shape (7,28,6,0,0), have c at least 11).&lt;br /&gt;
&lt;br /&gt;
Statistics for the 41-point, 42-point, and 43-point solutions can be found [http://spreadsheets.google.com/ccc?key=p5T0SktZY9DuqNcxJ171Bbw&amp;amp;hl=en here].&lt;br /&gt;
&lt;br /&gt;
If a Moser set in &amp;lt;math&amp;gt;[3]^4&amp;lt;/math&amp;gt; contains 2222, then by the n=3 theory, any middle slice (i.e. 2***, *2**, **2*, or ***2) is missing at least one antipodal pair.  But each antipodal pair belongs to at most three middle slices, thus two of the 40 antipodal pairs must be completely missing.  As a consequence, any Moser set containing 2222 can have at most 39 points.&lt;br /&gt;
(A more refined analysis can be found at [http://www.ma.rhul.ac.uk/~elsholtz/WWW/blog/mosertablogv01.pdf found here].)&lt;br /&gt;
&lt;br /&gt;
We have the following inequalities connecting a,b,c,d,e:&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;math&amp;gt;4a+b \leq 64&amp;lt;/math&amp;gt;:  There are 32 lines connecting two &amp;quot;a&amp;quot; points with a &amp;quot;b&amp;quot; point; each &amp;quot;a&amp;quot; point belongs to four of these lines, and each &amp;quot;b&amp;quot; point belongs to one.  But each such line can have at most two points in the set, and the claim follows.&lt;br /&gt;
* This can be refined to &amp;lt;math&amp;gt;4a+b+\frac{2}{3} c \leq 64&amp;lt;/math&amp;gt;: There are 24 planes connecting four &amp;quot;a&amp;quot; points, four &amp;quot;b&amp;quot; points, and one &amp;quot;c&amp;quot; point; each &amp;quot;a&amp;quot; point belongs to six of these, each &amp;quot;b&amp;quot; point belongs to three, and each &amp;quot;c&amp;quot; point belongs to one.  For each of these planes, we have &amp;lt;math&amp;gt;2a + b + 2c \leq 8&amp;lt;/math&amp;gt; from the n=2 theory, and the claim follows.&lt;br /&gt;
* &amp;lt;math&amp;gt;6a+2c \leq 96&amp;lt;/math&amp;gt;:  There are 96 lines connecting two &amp;quot;a&amp;quot; points with a &amp;quot;c&amp;quot; point; each &amp;quot;a&amp;quot; point belongs to six of these lines, and each &amp;quot;c&amp;quot; point belongs to two.  But each such line can have at most two points in the set, and the claim follows.&lt;br /&gt;
* &amp;lt;math&amp;gt;3b+2c \leq 96&amp;lt;/math&amp;gt;:  There are 48 lines connecting two &amp;quot;b&amp;quot; points to a &amp;quot;c&amp;quot; point; each &amp;quot;b&amp;quot; point belongs to three of these points, and each &amp;quot;c&amp;quot; point belongs to two.  But each such line can have at most two points in the set, and the claim follows.&lt;br /&gt;
&lt;br /&gt;
The inequalities for n=3 imply inequalities for n=4.  Indeed, there are eight side slices of &amp;lt;math&amp;gt;[3]^4&amp;lt;/math&amp;gt;; each &amp;quot;a&amp;quot; point belongs to four of these, each &amp;quot;b&amp;quot; point belongs to three, each &amp;quot;c&amp;quot; point belongs to two, and each &amp;quot;d&amp;quot; point belongs to one.  Thus, any inequality of the form&lt;br /&gt;
:&amp;lt;math&amp;gt; \alpha a + \beta b + \gamma c + \delta d \leq M&amp;lt;/math&amp;gt;&lt;br /&gt;
in three dimensions implies the inequality&lt;br /&gt;
:&amp;lt;math&amp;gt; 4 \alpha a + 3 \beta b + 2 \gamma c + \delta d \leq 8M&amp;lt;/math&amp;gt;&lt;br /&gt;
in four dimensions.  Thus we have&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;math&amp;gt;8a+3b+4c+4d \leq 176&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;2a+b+c+d \leq 48&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;14a+3b+4c+4d \leq 244&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;4a+b+c+d \leq 64&amp;lt;/math&amp;gt; &lt;br /&gt;
* &amp;lt;math&amp;gt;3b+2c+3d \leq 96&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;a+c+d \leq 28&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;5a+2c+2d \leq 80&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;a+d \leq 16&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;b+2d \leq 32&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;2c+3d \leq 48&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Cubes also sit diagonally in the 4-dimensional cube.  They may have coordinates xxyz, where xx runs over (11,22,33) or (13,22,31), while y and z run over (1,2,3).  These cubes have a different distribution of 2s than the ordinary slices: (a,b,c,d,e) = (8,8,6,4,1) instead of (8,12,6,1,0) for the side slices and (0,8,12,6,1) for the middle slices.  So a different set of inequalities arise.  It is possible to run through the same procedure as described above for n=3, and the inequalities that arise are &amp;lt;math&amp;gt;2a+b+2c+2d+4e \le 24&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;4a+b+2c+2d+4e \le 32&amp;lt;/math&amp;gt; within the 3D cube, which when averaged becomes &amp;lt;math&amp;gt;4a+b+2c+4d+16e \le 96&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;8a+b+2c+4d+16e \le 128&amp;lt;/math&amp;gt; for the 4D cube.  A spreadsheet containing these statistics can be [http://spreadsheets.google.com/ccc?key=p5T0SktZY9DuKZ2DyzO9EOg&amp;amp;hl=en# found here] on sheet 2.  Other sheets of this spreadsheet contain results for a 3D cube sitting diagonally in a 5D or 6D cube.  Notice the similarity of the equations that arise for the xxxyz, xxyyz and xxxxyz diagonals.&lt;br /&gt;
&lt;br /&gt;
== n=5 ==&lt;br /&gt;
&lt;br /&gt;
Let (A,B,C,D,E,F) be the statistics of a five-dimensional Moser set, thus (A,B,C,D,E,F) varies between (0,0,0,0,0,0) and (32,80,80,40,10,1).&lt;br /&gt;
&lt;br /&gt;
There are several Moser sets with the statistics (4,40,80,0,0,0), which thus have 124 points.  Indeed, one can take&lt;br /&gt;
&lt;br /&gt;
* all points with two 2s;&lt;br /&gt;
* all points with one 2 and an even number of 1s; and&lt;br /&gt;
* (13111),(13113),(31311),(13333). Any two of these four points differ in three places, except for one pair of points that differ in one place.&lt;br /&gt;
&lt;br /&gt;
For the rest of this section, we assume that the Moser set &amp;lt;math&amp;gt;{\mathcal A}&amp;lt;/math&amp;gt; is a 125-point set.&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 1&#039;&#039;&#039;: F=0.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; If F is non-zero, then the Moser set contains 22222, then each of the 121 antipodal pairs can have at most one point in the set, leading to only 122 points. &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 2&#039;&#039;&#039;: Every middle slice of &amp;lt;math&amp;gt;{\mathcal A}&amp;lt;/math&amp;gt; has at most 41 points.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039;  Without loss of generality we may consider the 2**** slice.  There are two cases, depending on the value of c(2****).&lt;br /&gt;
&lt;br /&gt;
Suppose first that c is at least 17; thus there are at least 17 points of the form 222xy, 22xy2, 2xy22, or 2x22y, where the x, y denote 1 or 3.  This gives 36 &amp;quot;xy&amp;quot; wildcards in all in four coordinate slots; by the pigeonhole principle one of the slots sees at least 9 of the wildcards.  By symmetry, we may assume that the second coordinate slot sees at least 9 of these wildcards, thus there are at least 9 points of the form 2x22y, 2x2y2, 2xy22.  The x=1, x=3 cases can absorb at most six of these, thus each of these cases must absorb at least three points, with at least one absorbing at least five.  Let&#039;s say that it&#039;s the x=3 case that absorbs 5; thus &amp;lt;math&amp;gt;d(*1***) \geq 3&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;d(*3***) \geq 5&amp;lt;/math&amp;gt;.  From the n=4 theory this means that the *1*** slice has at most 41 points, and the *3*** slice has at most 40.  Meanwhile, the middle slice has at most 43, leading to 41+41+42=124 points in all.&lt;br /&gt;
&lt;br /&gt;
Now suppose c is less than 16; then by the n=4 theory the middle slice is one of the eight (6,24,12,0,0) sets.  Without loss of generality we may take it to be &amp;lt;math&amp;gt;\Gamma_{220}+\Gamma_{202}+\Gamma_{022}+\Gamma_{112}+\Gamma_{211}&amp;lt;/math&amp;gt;; in particular, the middle slice contains the points 21122 21212 21221 23322 23232 23223.  In particular, the *1*** and *3*** slices have a &amp;quot;d&amp;quot; value of at least three, and so have at most 41 points.  If the *2*** slice has at most 42 points, then we are at 41+42+41=124 points as needed, but if we have 43 or more, then we are back in the first case (as &amp;lt;math&amp;gt;c(*2***) \geq 17&amp;lt;/math&amp;gt;) after permuting the indices.&lt;br /&gt;
&amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Since 125=41+41+43, we thus have&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Corollary 1&#039;&#039;&#039;: Every side slice of &amp;lt;math&amp;gt;{\mathcal A}&amp;lt;/math&amp;gt; has at least 41 points.  If one side slice does have 41 points, then the other has 43.&lt;br /&gt;
&lt;br /&gt;
Combining this with the n=4 statistics, we conclude&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Corollary 2&#039;&#039;&#039;: Every side slice of &amp;lt;math&amp;gt;{\mathcal A}&amp;lt;/math&amp;gt; has e=0, and &amp;lt;math&amp;gt;d \leq 3&amp;lt;/math&amp;gt;.  Given two opposite side slices, e.g. 1**** and 3****, we have &amp;lt;math&amp;gt;d(1****)+d(3****) \leq 4&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Corollary 3&#039;&#039;&#039;: E=0.&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Corollary 4&#039;&#039;&#039;: Any middle slice has a &amp;quot;c&amp;quot; value of at most 8.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; Let&#039;s work with the 2**** slice.  By Corollary 2, there are at most four contributions to c(2****) of the form 21*** or 23***, and similarly for the other three positions.  Double counting then gives the claim. &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 3&#039;&#039;&#039;: &amp;lt;math&amp;gt;2B+C \leq 160&amp;lt;/math&amp;gt;.   &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039;: There are 160 lines connecting one &amp;quot;C&amp;quot; point to two &amp;quot;B&amp;quot; points (e.g. 11112, 11122, 11132); each &amp;quot;C&amp;quot; point lies in two of these, and each &amp;quot;B&amp;quot; point lies on four.  A Moser set can have at most two points out of each of these lines.  Double counting then gives the claim.  &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 4&#039;&#039;&#039; Given m A-points with &amp;lt;math&amp;gt;m \geq 5&amp;lt;/math&amp;gt;, there exists at least m-4 pairs (a,b) of such A-points with Hamming distance exactly two (i.e. b differs from a in exactly two places).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; It suffices to check this for m=5, since the case of larger m then follows by locating a pair, removing a point that contributes to that pair, and using the induction hypothesis.  Given 5 A-points, we may assume by the pigeonhole principle and symmetry that at least three of them have an odd number of 1s.  Suppose 11111 is one of the points, and that no pair has Hamming distance 2. All points with two 3s are excluded, so the only points allowed with an odd number of 1s are those with four 3s. But all those points differ from each other in two positions, so at most one of them is allowed.  &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Corollary 5&#039;&#039;&#039; &amp;lt;math&amp;gt;C \leq 79&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039;: Suppose for contradiction that C=80, then D=0 and &amp;lt;math&amp;gt;B \leq 40&amp;lt;/math&amp;gt;.  From Lemma 4 we also see that A cannot exceed 5, leading to the contradiction.&lt;br /&gt;
&amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Define the &#039;&#039;&#039;score&#039;&#039;&#039; of a Moser set in &amp;lt;math&amp;gt;[3]^4&amp;lt;/math&amp;gt; to be the quantity &amp;lt;math&amp;gt;a + 5b/4 + 5c/3 + 5d/2 + 5e&amp;lt;/math&amp;gt;.  Double-counting (and Lemma 2) gives&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 5&#039;&#039;&#039;  The total score of all the ten side-slices of &amp;lt;math&amp;gt;{\mathcal A}&amp;lt;/math&amp;gt; is equal to &amp;lt;math&amp;gt;5|{\mathcal A}| = 5 \times 125&amp;lt;/math&amp;gt;.  In particular, there exists a pair of opposite side-slices whose scores add up to at least 125.&lt;br /&gt;
&lt;br /&gt;
By Lemma 5 and symmetry, we may assume that the 1**** and 3**** slices have score adding up to at least 125.  By Lemma 2, the 2**** slice has at most 41 points, which imply that the 1**** and 3**** have 41, 42, or 43 points.  From the [http://spreadsheets.google.com/ccc?key=p5T0SktZY9DuqNcxJ171Bbw&amp;amp;hl=en n=4 statistics] we know that all 41-point, 42-point, 43-point slices have score less than 62, with the following exceptions:&lt;br /&gt;
&lt;br /&gt;
# (2,16,24,0,0) [42 points, score: 62]&lt;br /&gt;
# (4,16,23,0,0) [43 points, score: 62 1/3]&lt;br /&gt;
# (4,15,24,0,0) [43 points, score: 62 3/4]&lt;br /&gt;
# (3,16,24,0,0) [43 points, score: 63]&lt;br /&gt;
&lt;br /&gt;
Thus the 1**** and 3**** slices must from the above list.  Furthermore, if one of the slices is of type 1, then the other must be of type 4, and if one slice is of type 2, then the other must be of type 3 or 4.&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 6&#039;&#039;&#039; There exists one cut in which the side slices have total score strictly greater than 125 (i.e. they thus involve only Type 2, Type 3, and Type 4 slices, with at least one side slice not equal to Type 2, and the cut here is of the form 43+39+43).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; If not, then all cuts have side slices exactly equal to 125, which by the above table implies that one is Type 1 and one is Type 4, in particular all side slices have c=24.  But this forces C=80, contradicting Corollary 5. &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Adding up the corners we conclude&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Corollary 6&#039;&#039;&#039; &amp;lt;math&amp;gt;6 \leq A \leq 8&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 7&#039;&#039;&#039; &amp;lt;math&amp;gt;D=0&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; Firstly, from Lemma 6 we have a cut in which the two side slices are omitting at most one C-point between them (and have no D-point), which forces the middle slice to have at most one D-point; thus D is at most 1.&lt;br /&gt;
&lt;br /&gt;
Now suppose instead that D=1 (e.g. if 11222 was in the set); then there would be two choices of coordinates in which one of the side slices would have d=1 (e.g. 1**** and *1****). But the [http://spreadsheets.google.com/ccc?key=p5T0SktZY9DuqNcxJ171Bbw&amp;amp;hl=en n=4 statistics] show that such slices have a score of at most 59 7/12, so that the total score from those two coordinates is at most 63 + 59 7/12 = 122 7/12. On the other hand, the other three slices have a net score of at most 63+63 = 126. This averages out to at most 124.633... &amp;lt; 125, a contradiction.  &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Corollary 7&#039;&#039;&#039; Every middle slice has at most 40 points.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; From Lemma 7 we see that the middle slice must have c=0, but from the n=4 statistics this is not possible for any slice of size 41 or higher (alternatively, one can use the inequalities &amp;lt;math&amp;gt;4a+b \leq 64&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;b \leq 32&amp;lt;/math&amp;gt;). &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Each middle slice now has 39 or 40 points, with c=d=e=0, and so from the inequalities &amp;lt;math&amp;gt;4a+b \leq 64&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;b \leq 32&amp;lt;/math&amp;gt; must have statistics (8,32,0,0,0),(7,32,0,0,0), or (8,31,0,0,0).  In particular the &amp;quot;a&amp;quot; index of the middle slices is at most 8.  Summing over all middle slices we conclude&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 9&#039;&#039;&#039; B is at most 40.&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 10&#039;&#039;&#039; C is equal to 78 or 79.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; By Corollary 5, it suffices to show that &amp;lt;math&amp;gt;C \geq 78&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
As 125=43+39+43, we see that every center slice must have at least 39 points. By Lemma 2 and Lemma 7 the center slice has c=d=e=0, thus the center slice has a+b &amp;gt;= 39.  On the other hand, from the n=4 theory we have 4a+b &amp;lt;= 64, which forces b &amp;gt;= 31.&lt;br /&gt;
&lt;br /&gt;
By double counting, we see that 2C is equal to the sum of the b&#039;s of all the five center slices.  Thus C &amp;gt;= 5*31/2 = 77.5 and the claim follows.  &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
From Lemmas 9 and 10 we see that &amp;lt;math&amp;gt;B+C \leq 119&amp;lt;/math&amp;gt;, and thus &amp;lt;math&amp;gt;A \geq 6&amp;lt;/math&amp;gt;.  Also, if &amp;lt;math&amp;gt;A \geq 7&amp;lt;/math&amp;gt;, then by Lemma 4 we have at least three pairs of A points with Hamming distance 2.  At most two of these pairs eliminate the same C point, so we would have C=78 in that case.  &lt;br /&gt;
&lt;br /&gt;
Putting all the above facts together, we see that (A,B,C,D,E,F) must be one of the following triples:&lt;br /&gt;
&lt;br /&gt;
* (6,40,79,0,0,0)&lt;br /&gt;
* (7,40,78,0,0,0)&lt;br /&gt;
* (8,39,78,0,0,0)&lt;br /&gt;
&lt;br /&gt;
All three cases can be eliminated, giving &amp;lt;math&amp;gt;c&#039;_5=124&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== Elimination of (6,40,79,0,0,0) ===&lt;br /&gt;
&lt;br /&gt;
Look at the 6 A points.  From Lemma 4 we have at least two pairs (a,b), (c,d) of A-points that have Hamming separation 2.&lt;br /&gt;
&lt;br /&gt;
Now look at the midpoints of these two pairs; these midpoints are C-points cannot lie in the set.  But we have exactly one C-point missing from the set, thus the midpoints must be the same.  By symmetry, we may thus assume that the two pairs are (11111,11133) and (11113,11131).  Thus 11111,11133, 11113, 11131 are in the set, and so every C-point other than 11122 is in the set.  On the other hand, the B-points 11121, 11123, 11112, 11132 lie outside the set.&lt;br /&gt;
&lt;br /&gt;
At most one of 11312, 11332 lie in the set (since 11322 lies in the set).   Suppose that 11312 lies outside the set, then we have a pair (xy1z2, xy3z2) with x,y,z = 1,3 that is totally omitted from the set, namely (11112,11312).  On the other hand, every other pair of this form can have at most point in the set, thus there are at most seven points in the set of the form (xyzw2) with x,y,z,w = 1,3.  Similarly there are at most 8 points of the form xyz2w, or of xy2zw, x2yzw, 2xyzw, leading to at most 39 B-points in all, contradiction.&lt;br /&gt;
&lt;br /&gt;
=== Elimination of (7,40,78,0,0,0) ===&lt;br /&gt;
&lt;br /&gt;
By Lemma 4, we have at least three pairs of A-points of distance two apart that lie in the set.&lt;br /&gt;
The midpoints of these pairs are C-points that do not lie in the set; but there are only two such C-points, thus two pairs must have the same midpoint, so we may assume as before that 111xy lies in the set for x,y=1,3, which implies that 1112* and 111*2 lie outside the set.&lt;br /&gt;
&lt;br /&gt;
Now consider the 160 lines between 2 B points and one C point (cf. Lemma 3).  The sum of all the points in each such line (counting multiplicity) is 4B+2C = 316.  On the other hand, every one of the 160 lines can have at most two points, and four of these lines (namely 1112*, 111*2) have no points.  Thus all the other lines must have exactly two points.  &lt;br /&gt;
&lt;br /&gt;
We know that the C-point 11122 is missing from the set; there is one other missing C-point.  Since 1112x, 111x2 lie outside the set, we conclude from the previous paragraph that 1132x, 113x2 and 1312x, 131x2 lie in the set.  Taking midpoints we conclude that 11322 and 13122 lie outside the set.  But this is now three C-points missing (together with 11122), a contradiction.&lt;br /&gt;
&lt;br /&gt;
=== Elimination of (8,39,78,0,0,0) ===&lt;br /&gt;
&lt;br /&gt;
By Lemma 4 we have at least four pairs of A-points of distance two apart that lie in the set. The midpoints of these pairs are C-points that do not lie in the set; but there are only two such C-points, thus two pairs (a,b), (c,d) must have the same midpoint p, and the other two pairs (a&#039;,b&#039;), (c&#039;,d&#039;) must also have the same midpoint p&#039;.  (Note that every C-point is the midpoint of at most two such pairs.)&lt;br /&gt;
&lt;br /&gt;
Now consider the 160 lines between 2 B points and one C point (cf. Lemma 3).  The sum of all the points in each such line (counting multiplicity) is 4B+2C = 312.  Every one of the 160 lines can have at most two points, and four of these (those in the plane of (a,b,c,d) or of (a&#039;,b&#039;,c&#039;,d&#039;) have no points.  Thus all other lines must have exactly two points.&lt;br /&gt;
&lt;br /&gt;
Without loss of generality we have (a,b)=(11111,11133), (c,d) = (11113,11131), thus p = 11122.  By permuting the first three indices, we may assume that p&#039; is not of the form x2y2z, x2yz2, xy22z, xy2z2.  Then 1112x lies outside the set and 1122x lies in the set, so by the above paragraph 1132x lies in the set; similarly for 113x2, 1312x, 131x2.  This implies that 13122, 11322 lie outside the set, but this (together with 11122) shows that at least three C-points are missing, a contradiction.&lt;br /&gt;
&lt;br /&gt;
== General n ==&lt;br /&gt;
&lt;br /&gt;
General solution for &amp;lt;math&amp;gt;c&#039;_N&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* q 2s, all points from A(N-q,1)&lt;br /&gt;
* q-1 2s, points from A(N-q+1,2)&lt;br /&gt;
* q-2 2s, points from A(N-q+2,3)&lt;br /&gt;
* etc.&lt;br /&gt;
&lt;br /&gt;
where A(m,d) is a subset of &amp;lt;math&amp;gt;[1,3]^m&amp;lt;/math&amp;gt; for which any two points differ from each other in at least d places.&lt;br /&gt;
&lt;br /&gt;
Mathworld’s entry on error-correcting codes suggests it might be NP-complete to find the size of A(m,d) in general.&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;math&amp;gt;|A(m,1)| = 2^m&amp;lt;/math&amp;gt; because it includes all points in &amp;lt;math&amp;gt;[1,3]^m&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;|A(m,2)| = 2^{m-1}&amp;lt;/math&amp;gt; because it can include all points in &amp;lt;math&amp;gt;[1,3]^m&amp;lt;/math&amp;gt; with an odd number of 1s&lt;br /&gt;
&lt;br /&gt;
The integer programming routine from Maple 12 was used to obtain upper bounds for &amp;lt;math&amp;gt;c&#039;_6&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;c&#039;_7&amp;lt;/math&amp;gt;.  A large number of linear inequalities, described above in sections (n=3) and (n=4), were combined.  The details are in [[Maple calculations]].  The results were that &amp;lt;math&amp;gt;c&#039;_6 \le 361&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;c&#039;_7 \le 1071&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
A [[genetic algorithm]] has provided the following examples:&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;math&amp;gt;c&#039;_6 \geq 353&amp;lt;/math&amp;gt; (26 examples; [http://twofoldgaze.wordpress.com/2009/03/10/353-element-solution/ here is one])&lt;br /&gt;
* &amp;lt;math&amp;gt;c&#039;_7 \geq 988&amp;lt;/math&amp;gt; [http://twofoldgaze.wordpress.com/2009/03/10/978-element-solution/ Here is the example]&lt;br /&gt;
&lt;br /&gt;
== Variants ==&lt;br /&gt;
&lt;br /&gt;
A lower bound for Moser’s cube &amp;lt;math&amp;gt;[4]^n&amp;lt;/math&amp;gt; (values 1,2,3,4) comes from the following set:  Pick all points where q entries are 2 or 3; and also pick those where q-1 entries are 2 or 3 and an odd number of entries are 1.  This is maximized when q is near n/2, giving a lower bound of&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\binom{n}{n/2} 2^n + \binom{n}{n/2-1} 2^{n-1}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
which is comparable to &amp;lt;math&amp;gt;4^n/\sqrt{n}&amp;lt;/math&amp;gt; by [[Stirling&#039;s formula]].&lt;br /&gt;
&lt;br /&gt;
For k=5 (values 1,2,3,4,5) If A, B, C, D, and E denote the numbers of 1-s, 2-s, 3-s, 4-s and 5-s then the first three points of a geometric line form a 3-term arithmetic progression in A+E+2(B+D)+3C. So, for k=5 we have a similar lower bound for the Moser’s problem as for DHJ k=3, i.e. &amp;lt;math&amp;gt;5^{n - O(\sqrt{\log n})}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
The k=6 version of Moser implies DHJ(3).  Indeed, any k=3 combinatorial line-free set can be &amp;quot;doubled up&amp;quot; into a k=6 geometric line-free set of the same density by pulling back the set from the map &amp;lt;math&amp;gt;\phi: [6]^n \to [3]^n&amp;lt;/math&amp;gt; that maps 1, 2, 3, 4, 5, 6 to 1, 2, 3, 3, 2, 1 respectively; note that this map sends k=6 geometric lines to k=3 combinatorial lines.&lt;/div&gt;</summary>
		<author><name>121.220.134.232</name></author>
	</entry>
	<entry>
		<id>https://michaelnielsen.org/polymath/index.php?title=Moser%27s_cube_problem&amp;diff=940</id>
		<title>Moser&#039;s cube problem</title>
		<link rel="alternate" type="text/html" href="https://michaelnielsen.org/polymath/index.php?title=Moser%27s_cube_problem&amp;diff=940"/>
		<updated>2009-03-16T15:03:49Z</updated>

		<summary type="html">&lt;p&gt;121.220.134.232: /* n=3 */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Define a &#039;&#039;Moser set&#039;&#039; to be a subset of &amp;lt;math&amp;gt;[3]^n&amp;lt;/math&amp;gt; which does not contain any [[geometric line]], and let &amp;lt;math&amp;gt;c&#039;_n&amp;lt;/math&amp;gt; denote the size of the largest Moser set in &amp;lt;math&amp;gt;[3]^n&amp;lt;/math&amp;gt;.  The first few values are (see [http://www.research.att.com/~njas/sequences/A003142 OEIS A003142]):&lt;br /&gt;
&lt;br /&gt;
: &amp;lt;math&amp;gt;c&#039;_0 = 1; c&#039;_1 = 2; c&#039;_2 = 6; c&#039;_3 = 16; c&#039;_4 = 43; c&#039;_5 = 124.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Beyond this point, we only have some upper and lower bounds, in particular &amp;lt;math&amp;gt;353 \leq c&#039;_6 \leq 360&amp;lt;/math&amp;gt;; see [http://spreadsheets.google.com/ccc?key=p5T0SktZY9DsU-uZ1tK7VEg this spreadsheet] for the latest bounds.&lt;br /&gt;
&lt;br /&gt;
The best known asymptotic lower bound for &amp;lt;math&amp;gt;c&#039;_n&amp;lt;/math&amp;gt; is&lt;br /&gt;
&lt;br /&gt;
: &amp;lt;math&amp;gt;c&#039;_n \gg 3^n/\sqrt{n}&amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
formed by fixing the number of 2s to a single value near n/3.  Compare this to the DHJ(2) or Sperner limit of &amp;lt;math&amp;gt;2^n/\sqrt{n}&amp;lt;/math&amp;gt;.  Is it possible to do any better?  Note that we have a [[Upper_and_lower_bounds#Asymptotics|significantly better bound]] for the DHJ(3) &amp;lt;math&amp;gt;c_n&amp;lt;/math&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
: &amp;lt;math&amp;gt;c_n \geq 3^{n-O(\sqrt{\log n})}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
A more precise lower bound is&lt;br /&gt;
&lt;br /&gt;
: &amp;lt;math&amp;gt;c&#039;_n \geq \binom{n+1}{q} 2^{n-q}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where q is the nearest integer to &amp;lt;math&amp;gt;n/3&amp;lt;/math&amp;gt;, formed by taking all strings with q 2s, together with all strings with q-1 2s and an odd number of 1s.  This for instance gives the lower bound &amp;lt;math&amp;gt;c&#039;_5 \geq 120&amp;lt;/math&amp;gt;, which compares with the upper bound &amp;lt;math&amp;gt;c&#039;_5 \leq 3 c&#039;_4 = 129&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Using [[DHJ(3)]], we have the upper bound&lt;br /&gt;
&lt;br /&gt;
: &amp;lt;math&amp;gt;c&#039;_n = o(3^n)&amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
but no effective decay rate is known. It would be good to have a combinatorial proof of this fact (which is weaker than [[DHJ(3)]], but implies [[Roth&#039;s theorem]]).&lt;br /&gt;
&lt;br /&gt;
Convenient notation: given a Moser set A in &amp;lt;math&amp;gt;[3]^n&amp;lt;/math&amp;gt;, we let a be the number of points in A with no 2s, b be the number of points in A with one 2, c the number of points with two 2s, etc.  We call (a,b,c,...) the &#039;&#039;statistics&#039;&#039; of A.  Given a slice S of &amp;lt;math&amp;gt;[3]^n&amp;lt;/math&amp;gt;, we let a(S), b(S), etc. denote the statistics of that slice (dropping the fixed coordinates).  Thus for instance if A = {11, 12, 22, 32}, then (a,b,c) = (1,2,1), and (a(1*),b(1*)) = (1,1).&lt;br /&gt;
&lt;br /&gt;
We call a statistic (a,b,c,...) &#039;&#039;attainable&#039;&#039; if it is attained by a Moser set.  We say that an attainable statistic is &#039;&#039;Pareto-optimal&#039;&#039; if it cannot be pointwise dominated by any other attainable statistic (a&#039;,b&#039;,c&#039;,...) (thus &amp;lt;math&amp;gt;a&#039; \geq a&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;b&#039; \geq b&amp;lt;/math&amp;gt;, etc.)  We say that it is &#039;&#039;extremal&#039;&#039; if it is not a convex combination of any other attainable statistic (this is a stronger property than Pareto-optimal).  For the purposes of maximising linear scores of attainable statistics, it suffices to check extremal statistics.&lt;br /&gt;
&lt;br /&gt;
We let &amp;lt;math&amp;gt;(\alpha_0,\alpha_1,\ldots)&amp;lt;/math&amp;gt; be the normalized version of &amp;lt;math&amp;gt;(a,b,\ldots)&amp;lt;/math&amp;gt;, in which one divides the number of points of a certain type in the set by the total number of points in the set.  Thus for instance &amp;lt;math&amp;gt;\alpha_0 = a/2^n, \alpha_1 = b/(n 2^{n-1}), \alpha_3 = c/(\binom{n}{2} 2^{n-2})&amp;lt;/math&amp;gt;, etc., and the &amp;lt;math&amp;gt;\alpha_i&amp;lt;/math&amp;gt; range between 0 and 1.  Averaging arguments show that any linear inequality obeyed by the &amp;lt;math&amp;gt;\alpha_i&amp;lt;/math&amp;gt; at one dimension is automatically inherited by higher dimensions, as are shifted versions of this inequality (in which &amp;lt;math&amp;gt;\alpha_i&amp;lt;/math&amp;gt; is replaced by &amp;lt;math&amp;gt;\alpha_{i+1}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== n=0 ==&lt;br /&gt;
&lt;br /&gt;
We trivially have &amp;lt;math&amp;gt;c&#039;_0=1.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== n=1 ==&lt;br /&gt;
&lt;br /&gt;
We trivially have &amp;lt;math&amp;gt;c&#039;_1=2.&amp;lt;/math&amp;gt;  The Pareto-optimal values of the statistics (a,b) are (1,1) and (2,0); these are also the extremals.  We thus have the inequality &amp;lt;math&amp;gt;a+b \leq 2&amp;lt;/math&amp;gt;, or in normalized notation&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;2\alpha_0 + \alpha_1 \leq 2&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== n=2 ==&lt;br /&gt;
&lt;br /&gt;
We have &amp;lt;math&amp;gt;c&#039;_2 = 6&amp;lt;/math&amp;gt;; the upper bound follows since &amp;lt;math&amp;gt;c&#039;_2 \leq 3 c&#039;_1&amp;lt;/math&amp;gt;, and the lower bound follows by deleting one of the two diagonals from &amp;lt;math&amp;gt;[3]^2&amp;lt;/math&amp;gt; (these are the only extremisers).&lt;br /&gt;
&lt;br /&gt;
The extremiser has statistics (a,b,c) = (2,4,0), which are of course Pareto-optimal.  If c=1 then we must have a, b at most 2 (look at the lines through 22).  This is attainable (e.g. {11, 12, 22, 23, 31}, and so (2,2,1) is another Pareto-optimal statistic.  If a=4, then b and c must be 0, so we get another Pareto-optimal statistic (4,0,0) (attainable by {11, 13, 31, 33} of course).  If a=3, then c=0 and b is at most 2, giving another Pareto-optimal statistic (3,2,0); but this is a convex combination of (4,0,0) and (2,4,0) and is thus not extremal.  Thus the complete set of extremal statistics are&lt;br /&gt;
&lt;br /&gt;
(4,0,0), (2,4,0), (2,2,1).&lt;br /&gt;
&lt;br /&gt;
The sharp linear inequalities obeyed by a,b,c (other than the trivial ones &amp;lt;math&amp;gt;a,b,c \geq 0&amp;lt;/math&amp;gt;) are then&lt;br /&gt;
&lt;br /&gt;
*&amp;lt;math&amp;gt;2a+b+2c \leq 8&amp;lt;/math&amp;gt;&lt;br /&gt;
*&amp;lt;math&amp;gt;b+2c \leq 4&amp;lt;/math&amp;gt;&lt;br /&gt;
*&amp;lt;math&amp;gt;a+2c \leq 4&amp;lt;/math&amp;gt;&lt;br /&gt;
*&amp;lt;math&amp;gt;c \leq 1&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
In normalized notation, we have&lt;br /&gt;
*&amp;lt;math&amp;gt;4\alpha_0 + 2\alpha_1 + \alpha_2 \leq 4&amp;lt;/math&amp;gt;&lt;br /&gt;
*&amp;lt;math&amp;gt;2\alpha_1 + \alpha_2 \leq 2&amp;lt;/math&amp;gt;&lt;br /&gt;
*&amp;lt;math&amp;gt;2\alpha_0 + \alpha_2 \leq 2&amp;lt;/math&amp;gt;&lt;br /&gt;
*&amp;lt;math&amp;gt;\alpha_2 \leq 1&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== n=3 ==&lt;br /&gt;
&lt;br /&gt;
We have &amp;lt;math&amp;gt;c&#039;_3 = 16&amp;lt;/math&amp;gt;.  The lower bound can be seen for instance by taking all the strings with one 2, and half the strings with no 2 (e.g. the strings with an odd number of 1s).  The upper bound can be deduced from the corresponding [[upper and lower bounds]] for &amp;lt;math&amp;gt;c_3 = 18&amp;lt;/math&amp;gt;; the 17-point and 18-point line-free sets each contain a geometric line.&lt;br /&gt;
&lt;br /&gt;
If a Moser set in &amp;lt;math&amp;gt;[3]^3&amp;lt;/math&amp;gt; contains 222, then it can have at most 14 points, since the remaining 26 points in the cube split into 13 antipodal pairs, and at most one of each pair can lie in the set.  By exhausting over the &amp;lt;math&amp;gt;2^{13} = 8192&amp;lt;/math&amp;gt; possibilities, it can be shown that it is impossible for a 14-point set to exist; any Moser set containing 222 must in fact omit at least one antipodal pair completely and thus have only 13 points.  (A human proof of this fact can be [http://www.ma.rhul.ac.uk/~elsholtz/WWW/blog/mosertablogv01.pdf found here].)&lt;br /&gt;
&lt;br /&gt;
The Pareto-optimal statistics are&lt;br /&gt;
&lt;br /&gt;
(3,6,3,1),(4,4,3,1),(4,6,2,1),(2,6,6,0),(3,6,5,0),(4,4,5,0),(3,7,4,0),(4,6,4,0), (3,9,3,0),(4,7,3,0),(5,4,3,0),(4,9,2,0),(5,6,2,0),(6,3,2,0),(3,10,1,0),(5,7,1,0), (6,4,1,0),(4,12,0,0),(5,9,0,0),(6,6,0,0),(7,3,0,0),(8,0,0,0).&lt;br /&gt;
&lt;br /&gt;
These were found from a search of the &amp;lt;math&amp;gt;2^27&amp;lt;/math&amp;gt; subsets of the cube.&lt;br /&gt;
A spreadsheet containing these statistics can be [http://spreadsheets.google.com/ccc?key=p5T0SktZY9DuKZ2DyzO9EOg&amp;amp;hl=en# found here].&lt;br /&gt;
&lt;br /&gt;
The extremal statistics are&lt;br /&gt;
&lt;br /&gt;
(3,6,3,1),(4,4,3,1),(4,6,2,1),(2,6,6,0),(4,4,5,0),(4,6,4,0),(4,12,0,0),(8,0,0,0)&lt;br /&gt;
&lt;br /&gt;
The sharp linear bounds are :&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;math&amp;gt;2a+b+2c+4d \leq 22&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;3a+2b+3c+6d \leq 36&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;7a+2b+4c+8d \leq 56&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;6a+2b+3c+6d \leq 48&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;b+c+3d \leq 12&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;a+2c+4d \leq 14&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;5a+4c+8d \leq 40&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;a+4d \leq 8&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;b+6d \leq 12&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;c+3d \leq 6&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;d \leq 1&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In normalized notation,&lt;br /&gt;
* &amp;lt;math&amp;gt;8\alpha_0+ 6\alpha_1 + 6\alpha_2 + 2\alpha_3 \leq 11&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;4\alpha_0+4\alpha_1+3\alpha_2+\alpha_3 \leq 6&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;7\alpha_0+3\alpha_1+3\alpha_2+\alpha_3 \leq 7&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;8\alpha_0+3\alpha_1+3\alpha_2+\alpha_3 \leq 8&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;4\alpha_1+2\alpha_2+\alpha_3 \leq 4&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;4\alpha_0+6\alpha_2+2\alpha_3 \leq 7&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;5\alpha_0+3\alpha_2+\alpha_3 \leq 5&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;2\alpha_0+\alpha_3 \leq 2&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;2\alpha_1+\alpha_3 \leq 2&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;2\alpha_2+\alpha_3 \leq 2&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;\alpha_3 \leq 1&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== n=4 ==&lt;br /&gt;
&lt;br /&gt;
A [http://abel.math.umu.se/~klasm/extremal-moser-n=5-t=3 computer search] has obtained all extremisers to &amp;lt;math&amp;gt;c&#039;_4=43&amp;lt;/math&amp;gt;.  The 42-point solutions can be found [http://abel.math.umu.se/~klasm/moser-n=4-t=3-p=42.gz here].&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof that &amp;lt;math&amp;gt;c&#039;_4 \leq 43&amp;lt;/math&amp;gt;&#039;&#039;&#039;: &lt;br /&gt;
When e=1 (i.e. the 4D set contains 2222) then we have at most 41 points (in fact at most 39) by counting antipodal points, so assume e=0.&lt;br /&gt;
&lt;br /&gt;
Define the score of a 3D slice to be a/4+b/3+c/2+d.  Observe from double counting that the size of a 4D set is the sum of the scores of its eight side slices.&lt;br /&gt;
&lt;br /&gt;
But by [http://spreadsheets.google.com/ccc?key=p5T0SktZY9DuKZ2DyzO9EOg&amp;amp;hl=en looking at the extremals] we see that the largest score is 44/8, attained at only one point, namely when (a,b,c,d) = (2,6,6,0).  So the only way one can have a 44-point set is if all side slices are (2,6,6,0), or equivalently if the whole set has statistics (a,b,c,d,e) = (4,16,24,0,0).  But then we have all the points with two 2s, which means that the four &amp;quot;a&amp;quot; points cannot be separated by Hamming distance 2.  We conclude that we must have an antipodal pair among the &amp;quot;a&amp;quot; points with an odd number of 1s, and an antipodal pair among the &amp;quot;a&amp;quot; points with an even number of 1s.    By the symmetries of the cube, we may take the a-set to then be 1111, 3333, 1113, 3331.  But then the &amp;quot;b&amp;quot; set must exclude both 1112 and 3332, and so can have at most three points in the eight-point set xyz2 (with x,y,z=1,3) rather than four (to get four points one must alternate in a checkerboard pattern).  Adding this to the at most four points of the form xy2z, x2yz, 2xyz we see that b is at most 16, a contradiction. &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Given a subset of &amp;lt;math&amp;gt;[3]^4&amp;lt;/math&amp;gt;, let a be the number of points with no 2s, b be the number of points with 1 2, and so forth.  The quintuple (a,b,c,d,e) thus lies between (0,0,0,0,0) and (16,32,24,8,1).&lt;br /&gt;
&lt;br /&gt;
The 43-point solutions have distributions (a,b,c,d,e) as follows:&lt;br /&gt;
&lt;br /&gt;
* (5,20,18,0,0) [16 solutions]&lt;br /&gt;
* (4,16,23,0,0) [768 solutions]&lt;br /&gt;
* (3,16,24,0,0) [512 solutions]&lt;br /&gt;
* (4,15,24,0,0) [256 solutions]&lt;br /&gt;
&lt;br /&gt;
The 42-point solutions are [http://abel.math.umu.se/~klasm/Moser-42-stat.pdf distributed as follows]:&lt;br /&gt;
&lt;br /&gt;
* (6,24,12,0,0) [[http://abel.math.umu.se/~klasm/moser-n=4-42-12 8 solutions]] &lt;br /&gt;
* (5,20,17,0,0) [576 solutions]&lt;br /&gt;
* (5,19,18,0,0) [384 solutions]&lt;br /&gt;
* (6,16,18,2,0) [[http://abel.math.umu.se/~klasm/moser-n=4-42-e=2 192 solutions]]&lt;br /&gt;
* (4,20,18,0,0) [272 solutions]&lt;br /&gt;
* (5,17,20,0,0) [192 solutions]&lt;br /&gt;
* (5,16,21,0,0) [3584 solutions]&lt;br /&gt;
* (4,17,21,0,0) [768 solutions]&lt;br /&gt;
* (4,16,22,0,0) [26880 solutions]&lt;br /&gt;
* (5,15,22,0,0) [1536 solutions]&lt;br /&gt;
* (4,15,23,0,0) [22272 solutions]&lt;br /&gt;
* (3,16,23,0,0) [15744 solutions]&lt;br /&gt;
* (4,14,24,0,0) [4224 solutions]&lt;br /&gt;
* (3,15,24,0,0) [8704 solutions]&lt;br /&gt;
* (2,16,24,0,0) [896 solutions]&lt;br /&gt;
&lt;br /&gt;
Note how c is usually quite large, and d quite low.&lt;br /&gt;
&lt;br /&gt;
One of the (6,24,12,0,0) solutions is &amp;lt;math&amp;gt;\Gamma_{220}+\Gamma_{202}+\Gamma_{022}+\Gamma_{112}+\Gamma_{211}&amp;lt;/math&amp;gt; (i.e. the set of points containing exactly two 1s, and/or exactly two 3s).  The other seven are reflections of this set.&lt;br /&gt;
&lt;br /&gt;
There are 2,765,200 41-point solutions, [http://abel.math.umu.se/~klasm/solutions-4-t=3-41-moser.gz listed here].  The statistics for such points can be [http://abel.math.umu.se/~klasm/Moser-41-stat.pdf found here].  Noteworthy features of the statistics:&lt;br /&gt;
&lt;br /&gt;
* d is at most 3 (and, except for [http://abel.math.umu.se/~klasm/moser-n=3-t=3-41-d=3.gz 256 exceptional solutions] of the shape (5,15,18,3,0), have d at most 2; here are the [http://abel.math.umu.se/~klasm/moser-n=3-t=3-41-d=2.gz d=2 solutions] and [http://abel.math.umu.se/~klasm/moser-n=3-t=3-41-d=1.gz d=1 solutions])&lt;br /&gt;
* c is at least 6 (and, except for [http://abel.math.umu.se/~klasm/moser-n=3-t=3-41-c=6.gz 16 exceptional solutions] of the shape (7,28,6,0,0), have c at least 11).&lt;br /&gt;
&lt;br /&gt;
Statistics for the 41-point, 42-point, and 43-point solutions can be found [http://spreadsheets.google.com/ccc?key=p5T0SktZY9DuqNcxJ171Bbw&amp;amp;hl=en here].&lt;br /&gt;
&lt;br /&gt;
If a Moser set in &amp;lt;math&amp;gt;[3]^4&amp;lt;/math&amp;gt; contains 2222, then by the n=3 theory, any middle slice (i.e. 2***, *2**, **2*, or ***2) is missing at least one antipodal pair.  But each antipodal pair belongs to at most three middle slices, thus two of the 40 antipodal pairs must be completely missing.  As a consequence, any Moser set containing 2222 can have at most 39 points.&lt;br /&gt;
(A more refined analysis can be found at [http://www.ma.rhul.ac.uk/~elsholtz/WWW/blog/mosertablogv01.pdf found here].)&lt;br /&gt;
&lt;br /&gt;
We have the following inequalities connecting a,b,c,d,e:&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;math&amp;gt;4a+b \leq 64&amp;lt;/math&amp;gt;:  There are 32 lines connecting two &amp;quot;a&amp;quot; points with a &amp;quot;b&amp;quot; point; each &amp;quot;a&amp;quot; point belongs to four of these lines, and each &amp;quot;b&amp;quot; point belongs to one.  But each such line can have at most two points in the set, and the claim follows.&lt;br /&gt;
* This can be refined to &amp;lt;math&amp;gt;4a+b+\frac{2}{3} c \leq 64&amp;lt;/math&amp;gt;: There are 24 planes connecting four &amp;quot;a&amp;quot; points, four &amp;quot;b&amp;quot; points, and one &amp;quot;c&amp;quot; point; each &amp;quot;a&amp;quot; point belongs to six of these, each &amp;quot;b&amp;quot; point belongs to three, and each &amp;quot;c&amp;quot; point belongs to one.  For each of these planes, we have &amp;lt;math&amp;gt;2a + b + 2c \leq 8&amp;lt;/math&amp;gt; from the n=2 theory, and the claim follows.&lt;br /&gt;
* &amp;lt;math&amp;gt;6a+2c \leq 96&amp;lt;/math&amp;gt;:  There are 96 lines connecting two &amp;quot;a&amp;quot; points with a &amp;quot;c&amp;quot; point; each &amp;quot;a&amp;quot; point belongs to six of these lines, and each &amp;quot;c&amp;quot; point belongs to two.  But each such line can have at most two points in the set, and the claim follows.&lt;br /&gt;
* &amp;lt;math&amp;gt;3b+2c \leq 96&amp;lt;/math&amp;gt;:  There are 48 lines connecting two &amp;quot;b&amp;quot; points to a &amp;quot;c&amp;quot; point; each &amp;quot;b&amp;quot; point belongs to three of these points, and each &amp;quot;c&amp;quot; point belongs to two.  But each such line can have at most two points in the set, and the claim follows.&lt;br /&gt;
&lt;br /&gt;
The inequalities for n=3 imply inequalities for n=4.  Indeed, there are eight side slices of &amp;lt;math&amp;gt;[3]^4&amp;lt;/math&amp;gt;; each &amp;quot;a&amp;quot; point belongs to four of these, each &amp;quot;b&amp;quot; point belongs to three, each &amp;quot;c&amp;quot; point belongs to two, and each &amp;quot;d&amp;quot; point belongs to one.  Thus, any inequality of the form&lt;br /&gt;
:&amp;lt;math&amp;gt; \alpha a + \beta b + \gamma c + \delta d \leq M&amp;lt;/math&amp;gt;&lt;br /&gt;
in three dimensions implies the inequality&lt;br /&gt;
:&amp;lt;math&amp;gt; 4 \alpha a + 3 \beta b + 2 \gamma c + \delta d \leq 8M&amp;lt;/math&amp;gt;&lt;br /&gt;
in four dimensions.  Thus we have&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;math&amp;gt;8a+3b+4c+4d \leq 176&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;2a+b+c+d \leq 48&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;14a+3b+4c+4d \leq 244&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;4a+b+c+d \leq 64&amp;lt;/math&amp;gt; &lt;br /&gt;
* &amp;lt;math&amp;gt;3b+2c+3d \leq 96&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;a+c+d \leq 28&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;5a+2c+2d \leq 80&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;a+d \leq 16&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;b+2d \leq 32&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;2c+3d \leq 48&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Cubes also sit diagonally in the 4-dimensional cube.  They may have coordinates xxyz, where xx runs over (11,22,33) or (13,22,31), while y and z run over (1,2,3).  These cubes have a different distribution of 2s than the ordinary slices: (a,b,c,d,e) = (8,8,6,4,1) instead of (8,12,6,1,0) for the side slices and (0,8,12,6,1) for the middle slices.  So a different set of inequalities arise.  It is possible to run through the same procedure as described above for n=3, and the inequalities that arise are &amp;lt;math&amp;gt;2a+b+2c+2d+4e \le 24&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;4a+b+2c+2d+4e \le 32&amp;lt;/math&amp;gt; within the 3D cube, which when averaged becomes &amp;lt;math&amp;gt;4a+b+2c+4d+16e \le 96&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;8a+b+2c+4d+16e \le 128&amp;lt;/math&amp;gt; for the 4D cube.  A spreadsheet containing these statistics can be [http://spreadsheets.google.com/ccc?key=p5T0SktZY9DuKZ2DyzO9EOg&amp;amp;hl=en# found here] on sheet 2.  Other sheets of this spreadsheet contain results for a 3D cube sitting diagonally in a 5D or 6D cube.  Notice the similarity of the equations that arise for the xxxyz, xxyyz and xxxxyz diagonals.&lt;br /&gt;
&lt;br /&gt;
== n=5 ==&lt;br /&gt;
&lt;br /&gt;
Let (A,B,C,D,E,F) be the statistics of a five-dimensional Moser set, thus (A,B,C,D,E,F) varies between (0,0,0,0,0,0) and (32,80,80,40,10,1).&lt;br /&gt;
&lt;br /&gt;
There are several Moser sets with the statistics (4,40,80,0,0,0), which thus have 124 points.  Indeed, one can take&lt;br /&gt;
&lt;br /&gt;
* all points with two 2s;&lt;br /&gt;
* all points with one 2 and an even number of 1s; and&lt;br /&gt;
* (13111),(13113),(31311),(13333). Any two of these four points differ in three places, except for one pair of points that differ in one place.&lt;br /&gt;
&lt;br /&gt;
For the rest of this section, we assume that the Moser set &amp;lt;math&amp;gt;{\mathcal A}&amp;lt;/math&amp;gt; is a 125-point set.&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 1&#039;&#039;&#039;: F=0.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; If F is non-zero, then the Moser set contains 22222, then each of the 121 antipodal pairs can have at most one point in the set, leading to only 122 points. &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 2&#039;&#039;&#039;: Every middle slice of &amp;lt;math&amp;gt;{\mathcal A}&amp;lt;/math&amp;gt; has at most 41 points.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039;  Without loss of generality we may consider the 2**** slice.  There are two cases, depending on the value of c(2****).&lt;br /&gt;
&lt;br /&gt;
Suppose first that c is at least 17; thus there are at least 17 points of the form 222xy, 22xy2, 2xy22, or 2x22y, where the x, y denote 1 or 3.  This gives 36 &amp;quot;xy&amp;quot; wildcards in all in four coordinate slots; by the pigeonhole principle one of the slots sees at least 9 of the wildcards.  By symmetry, we may assume that the second coordinate slot sees at least 9 of these wildcards, thus there are at least 9 points of the form 2x22y, 2x2y2, 2xy22.  The x=1, x=3 cases can absorb at most six of these, thus each of these cases must absorb at least three points, with at least one absorbing at least five.  Let&#039;s say that it&#039;s the x=3 case that absorbs 5; thus &amp;lt;math&amp;gt;d(*1***) \geq 3&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;d(*3***) \geq 5&amp;lt;/math&amp;gt;.  From the n=4 theory this means that the *1*** slice has at most 41 points, and the *3*** slice has at most 40.  Meanwhile, the middle slice has at most 43, leading to 41+41+42=124 points in all.&lt;br /&gt;
&lt;br /&gt;
Now suppose c is less than 16; then by the n=4 theory the middle slice is one of the eight (6,24,12,0,0) sets.  Without loss of generality we may take it to be &amp;lt;math&amp;gt;\Gamma_{220}+\Gamma_{202}+\Gamma_{022}+\Gamma_{112}+\Gamma_{211}&amp;lt;/math&amp;gt;; in particular, the middle slice contains the points 21122 21212 21221 23322 23232 23223.  In particular, the *1*** and *3*** slices have a &amp;quot;d&amp;quot; value of at least three, and so have at most 41 points.  If the *2*** slice has at most 42 points, then we are at 41+42+41=124 points as needed, but if we have 43 or more, then we are back in the first case (as &amp;lt;math&amp;gt;c(*2***) \geq 17&amp;lt;/math&amp;gt;) after permuting the indices.&lt;br /&gt;
&amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Since 125=41+41+43, we thus have&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Corollary 1&#039;&#039;&#039;: Every side slice of &amp;lt;math&amp;gt;{\mathcal A}&amp;lt;/math&amp;gt; has at least 41 points.  If one side slice does have 41 points, then the other has 43.&lt;br /&gt;
&lt;br /&gt;
Combining this with the n=4 statistics, we conclude&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Corollary 2&#039;&#039;&#039;: Every side slice of &amp;lt;math&amp;gt;{\mathcal A}&amp;lt;/math&amp;gt; has e=0, and &amp;lt;math&amp;gt;d \leq 3&amp;lt;/math&amp;gt;.  Given two opposite side slices, e.g. 1**** and 3****, we have &amp;lt;math&amp;gt;d(1****)+d(3****) \leq 4&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Corollary 3&#039;&#039;&#039;: E=0.&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Corollary 4&#039;&#039;&#039;: Any middle slice has a &amp;quot;c&amp;quot; value of at most 8.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; Let&#039;s work with the 2**** slice.  By Corollary 2, there are at most four contributions to c(2****) of the form 21*** or 23***, and similarly for the other three positions.  Double counting then gives the claim. &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 3&#039;&#039;&#039;: &amp;lt;math&amp;gt;2B+C \leq 160&amp;lt;/math&amp;gt;.   &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039;: There are 160 lines connecting one &amp;quot;C&amp;quot; point to two &amp;quot;B&amp;quot; points (e.g. 11112, 11122, 11132); each &amp;quot;C&amp;quot; point lies in two of these, and each &amp;quot;B&amp;quot; point lies on four.  A Moser set can have at most two points out of each of these lines.  Double counting then gives the claim.  &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 4&#039;&#039;&#039; Given m A-points with &amp;lt;math&amp;gt;m \geq 5&amp;lt;/math&amp;gt;, there exists at least m-4 pairs (a,b) of such A-points with Hamming distance exactly two (i.e. b differs from a in exactly two places).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; It suffices to check this for m=5, since the case of larger m then follows by locating a pair, removing a point that contributes to that pair, and using the induction hypothesis.  Given 5 A-points, we may assume by the pigeonhole principle and symmetry that at least three of them have an odd number of 1s.  Suppose 11111 is one of the points, and that no pair has Hamming distance 2. All points with two 3s are excluded, so the only points allowed with an odd number of 1s are those with four 3s. But all those points differ from each other in two positions, so at most one of them is allowed.  &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Corollary 5&#039;&#039;&#039; &amp;lt;math&amp;gt;C \leq 79&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039;: Suppose for contradiction that C=80, then D=0 and &amp;lt;math&amp;gt;B \leq 40&amp;lt;/math&amp;gt;.  From Lemma 4 we also see that A cannot exceed 5, leading to the contradiction.&lt;br /&gt;
&amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Define the &#039;&#039;&#039;score&#039;&#039;&#039; of a Moser set in &amp;lt;math&amp;gt;[3]^4&amp;lt;/math&amp;gt; to be the quantity &amp;lt;math&amp;gt;a + 5b/4 + 5c/3 + 5d/2 + 5e&amp;lt;/math&amp;gt;.  Double-counting (and Lemma 2) gives&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 5&#039;&#039;&#039;  The total score of all the ten side-slices of &amp;lt;math&amp;gt;{\mathcal A}&amp;lt;/math&amp;gt; is equal to &amp;lt;math&amp;gt;5|{\mathcal A}| = 5 \times 125&amp;lt;/math&amp;gt;.  In particular, there exists a pair of opposite side-slices whose scores add up to at least 125.&lt;br /&gt;
&lt;br /&gt;
By Lemma 5 and symmetry, we may assume that the 1**** and 3**** slices have score adding up to at least 125.  By Lemma 2, the 2**** slice has at most 41 points, which imply that the 1**** and 3**** have 41, 42, or 43 points.  From the [http://spreadsheets.google.com/ccc?key=p5T0SktZY9DuqNcxJ171Bbw&amp;amp;hl=en n=4 statistics] we know that all 41-point, 42-point, 43-point slices have score less than 62, with the following exceptions:&lt;br /&gt;
&lt;br /&gt;
# (2,16,24,0,0) [42 points, score: 62]&lt;br /&gt;
# (4,16,23,0,0) [43 points, score: 62 1/3]&lt;br /&gt;
# (4,15,24,0,0) [43 points, score: 62 3/4]&lt;br /&gt;
# (3,16,24,0,0) [43 points, score: 63]&lt;br /&gt;
&lt;br /&gt;
Thus the 1**** and 3**** slices must from the above list.  Furthermore, if one of the slices is of type 1, then the other must be of type 4, and if one slice is of type 2, then the other must be of type 3 or 4.&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 6&#039;&#039;&#039; There exists one cut in which the side slices have total score strictly greater than 125 (i.e. they thus involve only Type 2, Type 3, and Type 4 slices, with at least one side slice not equal to Type 2, and the cut here is of the form 43+39+43).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; If not, then all cuts have side slices exactly equal to 125, which by the above table implies that one is Type 1 and one is Type 4, in particular all side slices have c=24.  But this forces C=80, contradicting Corollary 5. &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Adding up the corners we conclude&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Corollary 6&#039;&#039;&#039; &amp;lt;math&amp;gt;6 \leq A \leq 8&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 7&#039;&#039;&#039; &amp;lt;math&amp;gt;D=0&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; Firstly, from Lemma 6 we have a cut in which the two side slices are omitting at most one C-point between them (and have no D-point), which forces the middle slice to have at most one D-point; thus D is at most 1.&lt;br /&gt;
&lt;br /&gt;
Now suppose instead that D=1 (e.g. if 11222 was in the set); then there would be two choices of coordinates in which one of the side slices would have d=1 (e.g. 1**** and *1****). But the [http://spreadsheets.google.com/ccc?key=p5T0SktZY9DuqNcxJ171Bbw&amp;amp;hl=en n=4 statistics] show that such slices have a score of at most 59 7/12, so that the total score from those two coordinates is at most 63 + 59 7/12 = 122 7/12. On the other hand, the other three slices have a net score of at most 63+63 = 126. This averages out to at most 124.633... &amp;lt; 125, a contradiction.  &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Corollary 7&#039;&#039;&#039; Every middle slice has at most 40 points.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; From Lemma 7 we see that the middle slice must have c=0, but from the n=4 statistics this is not possible for any slice of size 41 or higher (alternatively, one can use the inequalities &amp;lt;math&amp;gt;4a+b \leq 64&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;b \leq 32&amp;lt;/math&amp;gt;). &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Each middle slice now has 39 or 40 points, with c=d=e=0, and so from the inequalities &amp;lt;math&amp;gt;4a+b \leq 64&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;b \leq 32&amp;lt;/math&amp;gt; must have statistics (8,32,0,0,0),(7,32,0,0,0), or (8,31,0,0,0).  In particular the &amp;quot;a&amp;quot; index of the middle slices is at most 8.  Summing over all middle slices we conclude&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 9&#039;&#039;&#039; B is at most 40.&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 10&#039;&#039;&#039; C is equal to 78 or 79.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; By Corollary 5, it suffices to show that &amp;lt;math&amp;gt;C \geq 78&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
As 125=43+39+43, we see that every center slice must have at least 39 points. By Lemma 2 and Lemma 7 the center slice has c=d=e=0, thus the center slice has a+b &amp;gt;= 39.  On the other hand, from the n=4 theory we have 4a+b &amp;lt;= 64, which forces b &amp;gt;= 31.&lt;br /&gt;
&lt;br /&gt;
By double counting, we see that 2C is equal to the sum of the b&#039;s of all the five center slices.  Thus C &amp;gt;= 5*31/2 = 77.5 and the claim follows.  &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
From Lemmas 9 and 10 we see that &amp;lt;math&amp;gt;B+C \leq 119&amp;lt;/math&amp;gt;, and thus &amp;lt;math&amp;gt;A \geq 6&amp;lt;/math&amp;gt;.  Also, if &amp;lt;math&amp;gt;A \geq 7&amp;lt;/math&amp;gt;, then by Lemma 4 we have at least three pairs of A points with Hamming distance 2.  At most two of these pairs eliminate the same C point, so we would have C=78 in that case.  &lt;br /&gt;
&lt;br /&gt;
Putting all the above facts together, we see that (A,B,C,D,E,F) must be one of the following triples:&lt;br /&gt;
&lt;br /&gt;
* (6,40,79,0,0,0)&lt;br /&gt;
* (7,40,78,0,0,0)&lt;br /&gt;
* (8,39,78,0,0,0)&lt;br /&gt;
&lt;br /&gt;
All three cases can be eliminated, giving &amp;lt;math&amp;gt;c&#039;_5=124&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== Elimination of (6,40,79,0,0,0) ===&lt;br /&gt;
&lt;br /&gt;
Look at the 6 A points.  From Lemma 4 we have at least two pairs (a,b), (c,d) of A-points that have Hamming separation 2.&lt;br /&gt;
&lt;br /&gt;
Now look at the midpoints of these two pairs; these midpoints are C-points cannot lie in the set.  But we have exactly one C-point missing from the set, thus the midpoints must be the same.  By symmetry, we may thus assume that the two pairs are (11111,11133) and (11113,11131).  Thus 11111,11133, 11113, 11131 are in the set, and so every C-point other than 11122 is in the set.  On the other hand, the B-points 11121, 11123, 11112, 11132 lie outside the set.&lt;br /&gt;
&lt;br /&gt;
At most one of 11312, 11332 lie in the set (since 11322 lies in the set).   Suppose that 11312 lies outside the set, then we have a pair (xy1z2, xy3z2) with x,y,z = 1,3 that is totally omitted from the set, namely (11112,11312).  On the other hand, every other pair of this form can have at most point in the set, thus there are at most seven points in the set of the form (xyzw2) with x,y,z,w = 1,3.  Similarly there are at most 8 points of the form xyz2w, or of xy2zw, x2yzw, 2xyzw, leading to at most 39 B-points in all, contradiction.&lt;br /&gt;
&lt;br /&gt;
=== Elimination of (7,40,78,0,0,0) ===&lt;br /&gt;
&lt;br /&gt;
By Lemma 4, we have at least three pairs of A-points of distance two apart that lie in the set.&lt;br /&gt;
The midpoints of these pairs are C-points that do not lie in the set; but there are only two such C-points, thus two pairs must have the same midpoint, so we may assume as before that 111xy lies in the set for x,y=1,3, which implies that 1112* and 111*2 lie outside the set.&lt;br /&gt;
&lt;br /&gt;
Now consider the 160 lines between 2 B points and one C point (cf. Lemma 3).  The sum of all the points in each such line (counting multiplicity) is 4B+2C = 316.  On the other hand, every one of the 160 lines can have at most two points, and four of these lines (namely 1112*, 111*2) have no points.  Thus all the other lines must have exactly two points.  &lt;br /&gt;
&lt;br /&gt;
We know that the C-point 11122 is missing from the set; there is one other missing C-point.  Since 1112x, 111x2 lie outside the set, we conclude from the previous paragraph that 1132x, 113x2 and 1312x, 131x2 lie in the set.  Taking midpoints we conclude that 11322 and 13122 lie outside the set.  But this is now three C-points missing (together with 11122), a contradiction.&lt;br /&gt;
&lt;br /&gt;
=== Elimination of (8,39,78,0,0,0) ===&lt;br /&gt;
&lt;br /&gt;
By Lemma 4 we have at least four pairs of A-points of distance two apart that lie in the set. The midpoints of these pairs are C-points that do not lie in the set; but there are only two such C-points, thus two pairs (a,b), (c,d) must have the same midpoint p, and the other two pairs (a&#039;,b&#039;), (c&#039;,d&#039;) must also have the same midpoint p&#039;.  (Note that every C-point is the midpoint of at most two such pairs.)&lt;br /&gt;
&lt;br /&gt;
Now consider the 160 lines between 2 B points and one C point (cf. Lemma 3).  The sum of all the points in each such line (counting multiplicity) is 4B+2C = 312.  Every one of the 160 lines can have at most two points, and four of these (those in the plane of (a,b,c,d) or of (a&#039;,b&#039;,c&#039;,d&#039;) have no points.  Thus all other lines must have exactly two points.&lt;br /&gt;
&lt;br /&gt;
Without loss of generality we have (a,b)=(11111,11133), (c,d) = (11113,11131), thus p = 11122.  By permuting the first three indices, we may assume that p&#039; is not of the form x2y2z, x2yz2, xy22z, xy2z2.  Then 1112x lies outside the set and 1122x lies in the set, so by the above paragraph 1132x lies in the set; similarly for 113x2, 1312x, 131x2.  This implies that 13122, 11322 lie outside the set, but this (together with 11122) shows that at least three C-points are missing, a contradiction.&lt;br /&gt;
&lt;br /&gt;
== General n ==&lt;br /&gt;
&lt;br /&gt;
General solution for &amp;lt;math&amp;gt;c&#039;_N&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* q 2s, all points from A(N-q,1)&lt;br /&gt;
* q-1 2s, points from A(N-q+1,2)&lt;br /&gt;
* q-2 2s, points from A(N-q+2,3)&lt;br /&gt;
* etc.&lt;br /&gt;
&lt;br /&gt;
where A(m,d) is a subset of &amp;lt;math&amp;gt;[1,3]^m&amp;lt;/math&amp;gt; for which any two points differ from each other in at least d places.&lt;br /&gt;
&lt;br /&gt;
Mathworld’s entry on error-correcting codes suggests it might be NP-complete to find the size of A(m,d) in general.&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;math&amp;gt;|A(m,1)| = 2^m&amp;lt;/math&amp;gt; because it includes all points in &amp;lt;math&amp;gt;[1,3]^m&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;|A(m,2)| = 2^{m-1}&amp;lt;/math&amp;gt; because it can include all points in &amp;lt;math&amp;gt;[1,3]^m&amp;lt;/math&amp;gt; with an odd number of 1s&lt;br /&gt;
&lt;br /&gt;
The integer programming routine from Maple 12 was used to obtain upper bounds for &amp;lt;math&amp;gt;c&#039;_6&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;c&#039;_7&amp;lt;/math&amp;gt;.  A large number of linear inequalities, described above in sections (n=3) and (n=4), were combined.  The details are in [[Maple calculations]].  The results were that &amp;lt;math&amp;gt;c&#039;_6 \le 361&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;c&#039;_7 \le 1071&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
A [[genetic algorithm]] has provided the following examples:&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;math&amp;gt;c&#039;_6 \geq 353&amp;lt;/math&amp;gt; (26 examples; [http://twofoldgaze.wordpress.com/2009/03/10/353-element-solution/ here is one])&lt;br /&gt;
* &amp;lt;math&amp;gt;c&#039;_7 \geq 988&amp;lt;/math&amp;gt; [http://twofoldgaze.wordpress.com/2009/03/10/978-element-solution/ Here is the example]&lt;br /&gt;
&lt;br /&gt;
== Variants ==&lt;br /&gt;
&lt;br /&gt;
A lower bound for Moser’s cube &amp;lt;math&amp;gt;[4]^n&amp;lt;/math&amp;gt; (values 1,2,3,4) comes from the following set:  Pick all points where q entries are 2 or 3; and also pick those where q-1 entries are 2 or 3 and an odd number of entries are 1.  This is maximized when q is near n/2, giving a lower bound of&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\binom{n}{n/2} 2^n + \binom{n}{n/2-1} 2^{n-1}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
which is comparable to &amp;lt;math&amp;gt;4^n/\sqrt{n}&amp;lt;/math&amp;gt; by [[Stirling&#039;s formula]].&lt;br /&gt;
&lt;br /&gt;
For k=5 (values 1,2,3,4,5) If A, B, C, D, and E denote the numbers of 1-s, 2-s, 3-s, 4-s and 5-s then the first three points of a geometric line form a 3-term arithmetic progression in A+E+2(B+D)+3C. So, for k=5 we have a similar lower bound for the Moser’s problem as for DHJ k=3, i.e. &amp;lt;math&amp;gt;5^{n - O(\sqrt{\log n})}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
The k=6 version of Moser implies DHJ(3).  Indeed, any k=3 combinatorial line-free set can be &amp;quot;doubled up&amp;quot; into a k=6 geometric line-free set of the same density by pulling back the set from the map &amp;lt;math&amp;gt;\phi: [6]^n \to [3]^n&amp;lt;/math&amp;gt; that maps 1, 2, 3, 4, 5, 6 to 1, 2, 3, 3, 2, 1 respectively; note that this map sends k=6 geometric lines to k=3 combinatorial lines.&lt;/div&gt;</summary>
		<author><name>121.220.134.232</name></author>
	</entry>
	<entry>
		<id>https://michaelnielsen.org/polymath/index.php?title=Moser%27s_cube_problem&amp;diff=939</id>
		<title>Moser&#039;s cube problem</title>
		<link rel="alternate" type="text/html" href="https://michaelnielsen.org/polymath/index.php?title=Moser%27s_cube_problem&amp;diff=939"/>
		<updated>2009-03-16T14:55:19Z</updated>

		<summary type="html">&lt;p&gt;121.220.134.232: /* General n */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Define a &#039;&#039;Moser set&#039;&#039; to be a subset of &amp;lt;math&amp;gt;[3]^n&amp;lt;/math&amp;gt; which does not contain any [[geometric line]], and let &amp;lt;math&amp;gt;c&#039;_n&amp;lt;/math&amp;gt; denote the size of the largest Moser set in &amp;lt;math&amp;gt;[3]^n&amp;lt;/math&amp;gt;.  The first few values are (see [http://www.research.att.com/~njas/sequences/A003142 OEIS A003142]):&lt;br /&gt;
&lt;br /&gt;
: &amp;lt;math&amp;gt;c&#039;_0 = 1; c&#039;_1 = 2; c&#039;_2 = 6; c&#039;_3 = 16; c&#039;_4 = 43; c&#039;_5 = 124.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Beyond this point, we only have some upper and lower bounds, in particular &amp;lt;math&amp;gt;353 \leq c&#039;_6 \leq 360&amp;lt;/math&amp;gt;; see [http://spreadsheets.google.com/ccc?key=p5T0SktZY9DsU-uZ1tK7VEg this spreadsheet] for the latest bounds.&lt;br /&gt;
&lt;br /&gt;
The best known asymptotic lower bound for &amp;lt;math&amp;gt;c&#039;_n&amp;lt;/math&amp;gt; is&lt;br /&gt;
&lt;br /&gt;
: &amp;lt;math&amp;gt;c&#039;_n \gg 3^n/\sqrt{n}&amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
formed by fixing the number of 2s to a single value near n/3.  Compare this to the DHJ(2) or Sperner limit of &amp;lt;math&amp;gt;2^n/\sqrt{n}&amp;lt;/math&amp;gt;.  Is it possible to do any better?  Note that we have a [[Upper_and_lower_bounds#Asymptotics|significantly better bound]] for the DHJ(3) &amp;lt;math&amp;gt;c_n&amp;lt;/math&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
: &amp;lt;math&amp;gt;c_n \geq 3^{n-O(\sqrt{\log n})}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
A more precise lower bound is&lt;br /&gt;
&lt;br /&gt;
: &amp;lt;math&amp;gt;c&#039;_n \geq \binom{n+1}{q} 2^{n-q}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where q is the nearest integer to &amp;lt;math&amp;gt;n/3&amp;lt;/math&amp;gt;, formed by taking all strings with q 2s, together with all strings with q-1 2s and an odd number of 1s.  This for instance gives the lower bound &amp;lt;math&amp;gt;c&#039;_5 \geq 120&amp;lt;/math&amp;gt;, which compares with the upper bound &amp;lt;math&amp;gt;c&#039;_5 \leq 3 c&#039;_4 = 129&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Using [[DHJ(3)]], we have the upper bound&lt;br /&gt;
&lt;br /&gt;
: &amp;lt;math&amp;gt;c&#039;_n = o(3^n)&amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
but no effective decay rate is known. It would be good to have a combinatorial proof of this fact (which is weaker than [[DHJ(3)]], but implies [[Roth&#039;s theorem]]).&lt;br /&gt;
&lt;br /&gt;
Convenient notation: given a Moser set A in &amp;lt;math&amp;gt;[3]^n&amp;lt;/math&amp;gt;, we let a be the number of points in A with no 2s, b be the number of points in A with one 2, c the number of points with two 2s, etc.  We call (a,b,c,...) the &#039;&#039;statistics&#039;&#039; of A.  Given a slice S of &amp;lt;math&amp;gt;[3]^n&amp;lt;/math&amp;gt;, we let a(S), b(S), etc. denote the statistics of that slice (dropping the fixed coordinates).  Thus for instance if A = {11, 12, 22, 32}, then (a,b,c) = (1,2,1), and (a(1*),b(1*)) = (1,1).&lt;br /&gt;
&lt;br /&gt;
We call a statistic (a,b,c,...) &#039;&#039;attainable&#039;&#039; if it is attained by a Moser set.  We say that an attainable statistic is &#039;&#039;Pareto-optimal&#039;&#039; if it cannot be pointwise dominated by any other attainable statistic (a&#039;,b&#039;,c&#039;,...) (thus &amp;lt;math&amp;gt;a&#039; \geq a&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;b&#039; \geq b&amp;lt;/math&amp;gt;, etc.)  We say that it is &#039;&#039;extremal&#039;&#039; if it is not a convex combination of any other attainable statistic (this is a stronger property than Pareto-optimal).  For the purposes of maximising linear scores of attainable statistics, it suffices to check extremal statistics.&lt;br /&gt;
&lt;br /&gt;
We let &amp;lt;math&amp;gt;(\alpha_0,\alpha_1,\ldots)&amp;lt;/math&amp;gt; be the normalized version of &amp;lt;math&amp;gt;(a,b,\ldots)&amp;lt;/math&amp;gt;, in which one divides the number of points of a certain type in the set by the total number of points in the set.  Thus for instance &amp;lt;math&amp;gt;\alpha_0 = a/2^n, \alpha_1 = b/(n 2^{n-1}), \alpha_3 = c/(\binom{n}{2} 2^{n-2})&amp;lt;/math&amp;gt;, etc., and the &amp;lt;math&amp;gt;\alpha_i&amp;lt;/math&amp;gt; range between 0 and 1.  Averaging arguments show that any linear inequality obeyed by the &amp;lt;math&amp;gt;\alpha_i&amp;lt;/math&amp;gt; at one dimension is automatically inherited by higher dimensions, as are shifted versions of this inequality (in which &amp;lt;math&amp;gt;\alpha_i&amp;lt;/math&amp;gt; is replaced by &amp;lt;math&amp;gt;\alpha_{i+1}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== n=0 ==&lt;br /&gt;
&lt;br /&gt;
We trivially have &amp;lt;math&amp;gt;c&#039;_0=1.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== n=1 ==&lt;br /&gt;
&lt;br /&gt;
We trivially have &amp;lt;math&amp;gt;c&#039;_1=2.&amp;lt;/math&amp;gt;  The Pareto-optimal values of the statistics (a,b) are (1,1) and (2,0); these are also the extremals.  We thus have the inequality &amp;lt;math&amp;gt;a+b \leq 2&amp;lt;/math&amp;gt;, or in normalized notation&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;2\alpha_0 + \alpha_1 \leq 2&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== n=2 ==&lt;br /&gt;
&lt;br /&gt;
We have &amp;lt;math&amp;gt;c&#039;_2 = 6&amp;lt;/math&amp;gt;; the upper bound follows since &amp;lt;math&amp;gt;c&#039;_2 \leq 3 c&#039;_1&amp;lt;/math&amp;gt;, and the lower bound follows by deleting one of the two diagonals from &amp;lt;math&amp;gt;[3]^2&amp;lt;/math&amp;gt; (these are the only extremisers).&lt;br /&gt;
&lt;br /&gt;
The extremiser has statistics (a,b,c) = (2,4,0), which are of course Pareto-optimal.  If c=1 then we must have a, b at most 2 (look at the lines through 22).  This is attainable (e.g. {11, 12, 22, 23, 31}, and so (2,2,1) is another Pareto-optimal statistic.  If a=4, then b and c must be 0, so we get another Pareto-optimal statistic (4,0,0) (attainable by {11, 13, 31, 33} of course).  If a=3, then c=0 and b is at most 2, giving another Pareto-optimal statistic (3,2,0); but this is a convex combination of (4,0,0) and (2,4,0) and is thus not extremal.  Thus the complete set of extremal statistics are&lt;br /&gt;
&lt;br /&gt;
(4,0,0), (2,4,0), (2,2,1).&lt;br /&gt;
&lt;br /&gt;
The sharp linear inequalities obeyed by a,b,c (other than the trivial ones &amp;lt;math&amp;gt;a,b,c \geq 0&amp;lt;/math&amp;gt;) are then&lt;br /&gt;
&lt;br /&gt;
*&amp;lt;math&amp;gt;2a+b+2c \leq 8&amp;lt;/math&amp;gt;&lt;br /&gt;
*&amp;lt;math&amp;gt;b+2c \leq 4&amp;lt;/math&amp;gt;&lt;br /&gt;
*&amp;lt;math&amp;gt;a+2c \leq 4&amp;lt;/math&amp;gt;&lt;br /&gt;
*&amp;lt;math&amp;gt;c \leq 1&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
In normalized notation, we have&lt;br /&gt;
*&amp;lt;math&amp;gt;4\alpha_0 + 2\alpha_1 + \alpha_2 \leq 4&amp;lt;/math&amp;gt;&lt;br /&gt;
*&amp;lt;math&amp;gt;2\alpha_1 + \alpha_2 \leq 2&amp;lt;/math&amp;gt;&lt;br /&gt;
*&amp;lt;math&amp;gt;2\alpha_0 + \alpha_2 \leq 2&amp;lt;/math&amp;gt;&lt;br /&gt;
*&amp;lt;math&amp;gt;\alpha_2 \leq 1&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== n=3 ==&lt;br /&gt;
&lt;br /&gt;
We have &amp;lt;math&amp;gt;c&#039;_3 = 16&amp;lt;/math&amp;gt;.  The lower bound can be seen for instance by taking all the strings with one 2, and half the strings with no 2 (e.g. the strings with an odd number of 1s).  The upper bound can be deduced from the corresponding [[upper and lower bounds]] for &amp;lt;math&amp;gt;c_3 = 18&amp;lt;/math&amp;gt;; the 17-point and 18-point line-free sets each contain a geometric line.&lt;br /&gt;
&lt;br /&gt;
If a Moser set in &amp;lt;math&amp;gt;[3]^3&amp;lt;/math&amp;gt; contains 222, then it can have at most 14 points, since the remaining 26 points in the cube split into 13 antipodal pairs, and at most one of each pair can lie in the set.  By exhausting over the &amp;lt;math&amp;gt;2^{13} = 8192&amp;lt;/math&amp;gt; possibilities, it can be shown that it is impossible for a 14-point set to exist; any Moser set containing 222 must in fact omit at least one antipodal pair completely and thus have only 13 points.  (A human proof of this fact can be [http://www.ma.rhul.ac.uk/~elsholtz/WWW/blog/mosertablogv01.pdf found here].)&lt;br /&gt;
&lt;br /&gt;
The Pareto-optimal statistics are&lt;br /&gt;
&lt;br /&gt;
(3,6,3,1),(4,4,3,1),(4,6,2,1),(2,6,6,0),(3,6,5,0),(4,4,5,0),(3,7,4,0),(4,6,4,0), (3,9,3,0),(4,7,3,0),(5,4,3,0),(4,9,2,0),(5,6,2,0),(6,3,2,0),(3,10,1,0),(5,7,1,0), (6,4,1,0),(4,12,0,0),(5,9,0,0),(6,6,0,0),(7,3,0,0),(8,0,0,0).&lt;br /&gt;
&lt;br /&gt;
A spreadsheet containing these statistics can be [http://spreadsheets.google.com/ccc?key=p5T0SktZY9DuKZ2DyzO9EOg&amp;amp;hl=en# found here].&lt;br /&gt;
&lt;br /&gt;
The extremal statistics are&lt;br /&gt;
&lt;br /&gt;
(3,6,3,1),(4,4,3,1),(4,6,2,1),(2,6,6,0),(4,4,5,0),(4,6,4,0),(4,12,0,0),(8,0,0,0)&lt;br /&gt;
&lt;br /&gt;
The sharp linear bounds are :&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;math&amp;gt;2a+b+2c+4d \leq 22&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;3a+2b+3c+6d \leq 36&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;7a+2b+4c+8d \leq 56&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;6a+2b+3c+6d \leq 48&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;b+c+3d \leq 12&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;a+2c+4d \leq 14&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;5a+4c+8d \leq 40&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;a+4d \leq 8&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;b+6d \leq 12&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;c+3d \leq 6&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;d \leq 1&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In normalized notation,&lt;br /&gt;
* &amp;lt;math&amp;gt;8\alpha_0+ 6\alpha_1 + 6\alpha_2 + 2\alpha_3 \leq 11&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;4\alpha_0+4\alpha_1+3\alpha_2+\alpha_3 \leq 6&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;7\alpha_0+3\alpha_1+3\alpha_2+\alpha_3 \leq 7&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;8\alpha_0+3\alpha_1+3\alpha_2+\alpha_3 \leq 8&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;4\alpha_1+2\alpha_2+\alpha_3 \leq 4&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;4\alpha_0+6\alpha_2+2\alpha_3 \leq 7&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;5\alpha_0+3\alpha_2+\alpha_3 \leq 5&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;2\alpha_0+\alpha_3 \leq 2&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;2\alpha_1+\alpha_3 \leq 2&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;2\alpha_2+\alpha_3 \leq 2&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;\alpha_3 \leq 1&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== n=4 ==&lt;br /&gt;
&lt;br /&gt;
A [http://abel.math.umu.se/~klasm/extremal-moser-n=5-t=3 computer search] has obtained all extremisers to &amp;lt;math&amp;gt;c&#039;_4=43&amp;lt;/math&amp;gt;.  The 42-point solutions can be found [http://abel.math.umu.se/~klasm/moser-n=4-t=3-p=42.gz here].&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof that &amp;lt;math&amp;gt;c&#039;_4 \leq 43&amp;lt;/math&amp;gt;&#039;&#039;&#039;: &lt;br /&gt;
When e=1 (i.e. the 4D set contains 2222) then we have at most 41 points (in fact at most 39) by counting antipodal points, so assume e=0.&lt;br /&gt;
&lt;br /&gt;
Define the score of a 3D slice to be a/4+b/3+c/2+d.  Observe from double counting that the size of a 4D set is the sum of the scores of its eight side slices.&lt;br /&gt;
&lt;br /&gt;
But by [http://spreadsheets.google.com/ccc?key=p5T0SktZY9DuKZ2DyzO9EOg&amp;amp;hl=en looking at the extremals] we see that the largest score is 44/8, attained at only one point, namely when (a,b,c,d) = (2,6,6,0).  So the only way one can have a 44-point set is if all side slices are (2,6,6,0), or equivalently if the whole set has statistics (a,b,c,d,e) = (4,16,24,0,0).  But then we have all the points with two 2s, which means that the four &amp;quot;a&amp;quot; points cannot be separated by Hamming distance 2.  We conclude that we must have an antipodal pair among the &amp;quot;a&amp;quot; points with an odd number of 1s, and an antipodal pair among the &amp;quot;a&amp;quot; points with an even number of 1s.    By the symmetries of the cube, we may take the a-set to then be 1111, 3333, 1113, 3331.  But then the &amp;quot;b&amp;quot; set must exclude both 1112 and 3332, and so can have at most three points in the eight-point set xyz2 (with x,y,z=1,3) rather than four (to get four points one must alternate in a checkerboard pattern).  Adding this to the at most four points of the form xy2z, x2yz, 2xyz we see that b is at most 16, a contradiction. &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Given a subset of &amp;lt;math&amp;gt;[3]^4&amp;lt;/math&amp;gt;, let a be the number of points with no 2s, b be the number of points with 1 2, and so forth.  The quintuple (a,b,c,d,e) thus lies between (0,0,0,0,0) and (16,32,24,8,1).&lt;br /&gt;
&lt;br /&gt;
The 43-point solutions have distributions (a,b,c,d,e) as follows:&lt;br /&gt;
&lt;br /&gt;
* (5,20,18,0,0) [16 solutions]&lt;br /&gt;
* (4,16,23,0,0) [768 solutions]&lt;br /&gt;
* (3,16,24,0,0) [512 solutions]&lt;br /&gt;
* (4,15,24,0,0) [256 solutions]&lt;br /&gt;
&lt;br /&gt;
The 42-point solutions are [http://abel.math.umu.se/~klasm/Moser-42-stat.pdf distributed as follows]:&lt;br /&gt;
&lt;br /&gt;
* (6,24,12,0,0) [[http://abel.math.umu.se/~klasm/moser-n=4-42-12 8 solutions]] &lt;br /&gt;
* (5,20,17,0,0) [576 solutions]&lt;br /&gt;
* (5,19,18,0,0) [384 solutions]&lt;br /&gt;
* (6,16,18,2,0) [[http://abel.math.umu.se/~klasm/moser-n=4-42-e=2 192 solutions]]&lt;br /&gt;
* (4,20,18,0,0) [272 solutions]&lt;br /&gt;
* (5,17,20,0,0) [192 solutions]&lt;br /&gt;
* (5,16,21,0,0) [3584 solutions]&lt;br /&gt;
* (4,17,21,0,0) [768 solutions]&lt;br /&gt;
* (4,16,22,0,0) [26880 solutions]&lt;br /&gt;
* (5,15,22,0,0) [1536 solutions]&lt;br /&gt;
* (4,15,23,0,0) [22272 solutions]&lt;br /&gt;
* (3,16,23,0,0) [15744 solutions]&lt;br /&gt;
* (4,14,24,0,0) [4224 solutions]&lt;br /&gt;
* (3,15,24,0,0) [8704 solutions]&lt;br /&gt;
* (2,16,24,0,0) [896 solutions]&lt;br /&gt;
&lt;br /&gt;
Note how c is usually quite large, and d quite low.&lt;br /&gt;
&lt;br /&gt;
One of the (6,24,12,0,0) solutions is &amp;lt;math&amp;gt;\Gamma_{220}+\Gamma_{202}+\Gamma_{022}+\Gamma_{112}+\Gamma_{211}&amp;lt;/math&amp;gt; (i.e. the set of points containing exactly two 1s, and/or exactly two 3s).  The other seven are reflections of this set.&lt;br /&gt;
&lt;br /&gt;
There are 2,765,200 41-point solutions, [http://abel.math.umu.se/~klasm/solutions-4-t=3-41-moser.gz listed here].  The statistics for such points can be [http://abel.math.umu.se/~klasm/Moser-41-stat.pdf found here].  Noteworthy features of the statistics:&lt;br /&gt;
&lt;br /&gt;
* d is at most 3 (and, except for [http://abel.math.umu.se/~klasm/moser-n=3-t=3-41-d=3.gz 256 exceptional solutions] of the shape (5,15,18,3,0), have d at most 2; here are the [http://abel.math.umu.se/~klasm/moser-n=3-t=3-41-d=2.gz d=2 solutions] and [http://abel.math.umu.se/~klasm/moser-n=3-t=3-41-d=1.gz d=1 solutions])&lt;br /&gt;
* c is at least 6 (and, except for [http://abel.math.umu.se/~klasm/moser-n=3-t=3-41-c=6.gz 16 exceptional solutions] of the shape (7,28,6,0,0), have c at least 11).&lt;br /&gt;
&lt;br /&gt;
Statistics for the 41-point, 42-point, and 43-point solutions can be found [http://spreadsheets.google.com/ccc?key=p5T0SktZY9DuqNcxJ171Bbw&amp;amp;hl=en here].&lt;br /&gt;
&lt;br /&gt;
If a Moser set in &amp;lt;math&amp;gt;[3]^4&amp;lt;/math&amp;gt; contains 2222, then by the n=3 theory, any middle slice (i.e. 2***, *2**, **2*, or ***2) is missing at least one antipodal pair.  But each antipodal pair belongs to at most three middle slices, thus two of the 40 antipodal pairs must be completely missing.  As a consequence, any Moser set containing 2222 can have at most 39 points.&lt;br /&gt;
(A more refined analysis can be found at [http://www.ma.rhul.ac.uk/~elsholtz/WWW/blog/mosertablogv01.pdf found here].)&lt;br /&gt;
&lt;br /&gt;
We have the following inequalities connecting a,b,c,d,e:&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;math&amp;gt;4a+b \leq 64&amp;lt;/math&amp;gt;:  There are 32 lines connecting two &amp;quot;a&amp;quot; points with a &amp;quot;b&amp;quot; point; each &amp;quot;a&amp;quot; point belongs to four of these lines, and each &amp;quot;b&amp;quot; point belongs to one.  But each such line can have at most two points in the set, and the claim follows.&lt;br /&gt;
* This can be refined to &amp;lt;math&amp;gt;4a+b+\frac{2}{3} c \leq 64&amp;lt;/math&amp;gt;: There are 24 planes connecting four &amp;quot;a&amp;quot; points, four &amp;quot;b&amp;quot; points, and one &amp;quot;c&amp;quot; point; each &amp;quot;a&amp;quot; point belongs to six of these, each &amp;quot;b&amp;quot; point belongs to three, and each &amp;quot;c&amp;quot; point belongs to one.  For each of these planes, we have &amp;lt;math&amp;gt;2a + b + 2c \leq 8&amp;lt;/math&amp;gt; from the n=2 theory, and the claim follows.&lt;br /&gt;
* &amp;lt;math&amp;gt;6a+2c \leq 96&amp;lt;/math&amp;gt;:  There are 96 lines connecting two &amp;quot;a&amp;quot; points with a &amp;quot;c&amp;quot; point; each &amp;quot;a&amp;quot; point belongs to six of these lines, and each &amp;quot;c&amp;quot; point belongs to two.  But each such line can have at most two points in the set, and the claim follows.&lt;br /&gt;
* &amp;lt;math&amp;gt;3b+2c \leq 96&amp;lt;/math&amp;gt;:  There are 48 lines connecting two &amp;quot;b&amp;quot; points to a &amp;quot;c&amp;quot; point; each &amp;quot;b&amp;quot; point belongs to three of these points, and each &amp;quot;c&amp;quot; point belongs to two.  But each such line can have at most two points in the set, and the claim follows.&lt;br /&gt;
&lt;br /&gt;
The inequalities for n=3 imply inequalities for n=4.  Indeed, there are eight side slices of &amp;lt;math&amp;gt;[3]^4&amp;lt;/math&amp;gt;; each &amp;quot;a&amp;quot; point belongs to four of these, each &amp;quot;b&amp;quot; point belongs to three, each &amp;quot;c&amp;quot; point belongs to two, and each &amp;quot;d&amp;quot; point belongs to one.  Thus, any inequality of the form&lt;br /&gt;
:&amp;lt;math&amp;gt; \alpha a + \beta b + \gamma c + \delta d \leq M&amp;lt;/math&amp;gt;&lt;br /&gt;
in three dimensions implies the inequality&lt;br /&gt;
:&amp;lt;math&amp;gt; 4 \alpha a + 3 \beta b + 2 \gamma c + \delta d \leq 8M&amp;lt;/math&amp;gt;&lt;br /&gt;
in four dimensions.  Thus we have&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;math&amp;gt;8a+3b+4c+4d \leq 176&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;2a+b+c+d \leq 48&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;14a+3b+4c+4d \leq 244&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;4a+b+c+d \leq 64&amp;lt;/math&amp;gt; &lt;br /&gt;
* &amp;lt;math&amp;gt;3b+2c+3d \leq 96&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;a+c+d \leq 28&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;5a+2c+2d \leq 80&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;a+d \leq 16&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;b+2d \leq 32&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;2c+3d \leq 48&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Cubes also sit diagonally in the 4-dimensional cube.  They may have coordinates xxyz, where xx runs over (11,22,33) or (13,22,31), while y and z run over (1,2,3).  These cubes have a different distribution of 2s than the ordinary slices: (a,b,c,d,e) = (8,8,6,4,1) instead of (8,12,6,1,0) for the side slices and (0,8,12,6,1) for the middle slices.  So a different set of inequalities arise.  It is possible to run through the same procedure as described above for n=3, and the inequalities that arise are &amp;lt;math&amp;gt;2a+b+2c+2d+4e \le 24&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;4a+b+2c+2d+4e \le 32&amp;lt;/math&amp;gt; within the 3D cube, which when averaged becomes &amp;lt;math&amp;gt;4a+b+2c+4d+16e \le 96&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;8a+b+2c+4d+16e \le 128&amp;lt;/math&amp;gt; for the 4D cube.  A spreadsheet containing these statistics can be [http://spreadsheets.google.com/ccc?key=p5T0SktZY9DuKZ2DyzO9EOg&amp;amp;hl=en# found here] on sheet 2.  Other sheets of this spreadsheet contain results for a 3D cube sitting diagonally in a 5D or 6D cube.  Notice the similarity of the equations that arise for the xxxyz, xxyyz and xxxxyz diagonals.&lt;br /&gt;
&lt;br /&gt;
== n=5 ==&lt;br /&gt;
&lt;br /&gt;
Let (A,B,C,D,E,F) be the statistics of a five-dimensional Moser set, thus (A,B,C,D,E,F) varies between (0,0,0,0,0,0) and (32,80,80,40,10,1).&lt;br /&gt;
&lt;br /&gt;
There are several Moser sets with the statistics (4,40,80,0,0,0), which thus have 124 points.  Indeed, one can take&lt;br /&gt;
&lt;br /&gt;
* all points with two 2s;&lt;br /&gt;
* all points with one 2 and an even number of 1s; and&lt;br /&gt;
* (13111),(13113),(31311),(13333). Any two of these four points differ in three places, except for one pair of points that differ in one place.&lt;br /&gt;
&lt;br /&gt;
For the rest of this section, we assume that the Moser set &amp;lt;math&amp;gt;{\mathcal A}&amp;lt;/math&amp;gt; is a 125-point set.&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 1&#039;&#039;&#039;: F=0.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; If F is non-zero, then the Moser set contains 22222, then each of the 121 antipodal pairs can have at most one point in the set, leading to only 122 points. &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 2&#039;&#039;&#039;: Every middle slice of &amp;lt;math&amp;gt;{\mathcal A}&amp;lt;/math&amp;gt; has at most 41 points.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039;  Without loss of generality we may consider the 2**** slice.  There are two cases, depending on the value of c(2****).&lt;br /&gt;
&lt;br /&gt;
Suppose first that c is at least 17; thus there are at least 17 points of the form 222xy, 22xy2, 2xy22, or 2x22y, where the x, y denote 1 or 3.  This gives 36 &amp;quot;xy&amp;quot; wildcards in all in four coordinate slots; by the pigeonhole principle one of the slots sees at least 9 of the wildcards.  By symmetry, we may assume that the second coordinate slot sees at least 9 of these wildcards, thus there are at least 9 points of the form 2x22y, 2x2y2, 2xy22.  The x=1, x=3 cases can absorb at most six of these, thus each of these cases must absorb at least three points, with at least one absorbing at least five.  Let&#039;s say that it&#039;s the x=3 case that absorbs 5; thus &amp;lt;math&amp;gt;d(*1***) \geq 3&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;d(*3***) \geq 5&amp;lt;/math&amp;gt;.  From the n=4 theory this means that the *1*** slice has at most 41 points, and the *3*** slice has at most 40.  Meanwhile, the middle slice has at most 43, leading to 41+41+42=124 points in all.&lt;br /&gt;
&lt;br /&gt;
Now suppose c is less than 16; then by the n=4 theory the middle slice is one of the eight (6,24,12,0,0) sets.  Without loss of generality we may take it to be &amp;lt;math&amp;gt;\Gamma_{220}+\Gamma_{202}+\Gamma_{022}+\Gamma_{112}+\Gamma_{211}&amp;lt;/math&amp;gt;; in particular, the middle slice contains the points 21122 21212 21221 23322 23232 23223.  In particular, the *1*** and *3*** slices have a &amp;quot;d&amp;quot; value of at least three, and so have at most 41 points.  If the *2*** slice has at most 42 points, then we are at 41+42+41=124 points as needed, but if we have 43 or more, then we are back in the first case (as &amp;lt;math&amp;gt;c(*2***) \geq 17&amp;lt;/math&amp;gt;) after permuting the indices.&lt;br /&gt;
&amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Since 125=41+41+43, we thus have&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Corollary 1&#039;&#039;&#039;: Every side slice of &amp;lt;math&amp;gt;{\mathcal A}&amp;lt;/math&amp;gt; has at least 41 points.  If one side slice does have 41 points, then the other has 43.&lt;br /&gt;
&lt;br /&gt;
Combining this with the n=4 statistics, we conclude&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Corollary 2&#039;&#039;&#039;: Every side slice of &amp;lt;math&amp;gt;{\mathcal A}&amp;lt;/math&amp;gt; has e=0, and &amp;lt;math&amp;gt;d \leq 3&amp;lt;/math&amp;gt;.  Given two opposite side slices, e.g. 1**** and 3****, we have &amp;lt;math&amp;gt;d(1****)+d(3****) \leq 4&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Corollary 3&#039;&#039;&#039;: E=0.&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Corollary 4&#039;&#039;&#039;: Any middle slice has a &amp;quot;c&amp;quot; value of at most 8.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; Let&#039;s work with the 2**** slice.  By Corollary 2, there are at most four contributions to c(2****) of the form 21*** or 23***, and similarly for the other three positions.  Double counting then gives the claim. &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 3&#039;&#039;&#039;: &amp;lt;math&amp;gt;2B+C \leq 160&amp;lt;/math&amp;gt;.   &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039;: There are 160 lines connecting one &amp;quot;C&amp;quot; point to two &amp;quot;B&amp;quot; points (e.g. 11112, 11122, 11132); each &amp;quot;C&amp;quot; point lies in two of these, and each &amp;quot;B&amp;quot; point lies on four.  A Moser set can have at most two points out of each of these lines.  Double counting then gives the claim.  &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 4&#039;&#039;&#039; Given m A-points with &amp;lt;math&amp;gt;m \geq 5&amp;lt;/math&amp;gt;, there exists at least m-4 pairs (a,b) of such A-points with Hamming distance exactly two (i.e. b differs from a in exactly two places).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; It suffices to check this for m=5, since the case of larger m then follows by locating a pair, removing a point that contributes to that pair, and using the induction hypothesis.  Given 5 A-points, we may assume by the pigeonhole principle and symmetry that at least three of them have an odd number of 1s.  Suppose 11111 is one of the points, and that no pair has Hamming distance 2. All points with two 3s are excluded, so the only points allowed with an odd number of 1s are those with four 3s. But all those points differ from each other in two positions, so at most one of them is allowed.  &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Corollary 5&#039;&#039;&#039; &amp;lt;math&amp;gt;C \leq 79&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039;: Suppose for contradiction that C=80, then D=0 and &amp;lt;math&amp;gt;B \leq 40&amp;lt;/math&amp;gt;.  From Lemma 4 we also see that A cannot exceed 5, leading to the contradiction.&lt;br /&gt;
&amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Define the &#039;&#039;&#039;score&#039;&#039;&#039; of a Moser set in &amp;lt;math&amp;gt;[3]^4&amp;lt;/math&amp;gt; to be the quantity &amp;lt;math&amp;gt;a + 5b/4 + 5c/3 + 5d/2 + 5e&amp;lt;/math&amp;gt;.  Double-counting (and Lemma 2) gives&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 5&#039;&#039;&#039;  The total score of all the ten side-slices of &amp;lt;math&amp;gt;{\mathcal A}&amp;lt;/math&amp;gt; is equal to &amp;lt;math&amp;gt;5|{\mathcal A}| = 5 \times 125&amp;lt;/math&amp;gt;.  In particular, there exists a pair of opposite side-slices whose scores add up to at least 125.&lt;br /&gt;
&lt;br /&gt;
By Lemma 5 and symmetry, we may assume that the 1**** and 3**** slices have score adding up to at least 125.  By Lemma 2, the 2**** slice has at most 41 points, which imply that the 1**** and 3**** have 41, 42, or 43 points.  From the [http://spreadsheets.google.com/ccc?key=p5T0SktZY9DuqNcxJ171Bbw&amp;amp;hl=en n=4 statistics] we know that all 41-point, 42-point, 43-point slices have score less than 62, with the following exceptions:&lt;br /&gt;
&lt;br /&gt;
# (2,16,24,0,0) [42 points, score: 62]&lt;br /&gt;
# (4,16,23,0,0) [43 points, score: 62 1/3]&lt;br /&gt;
# (4,15,24,0,0) [43 points, score: 62 3/4]&lt;br /&gt;
# (3,16,24,0,0) [43 points, score: 63]&lt;br /&gt;
&lt;br /&gt;
Thus the 1**** and 3**** slices must from the above list.  Furthermore, if one of the slices is of type 1, then the other must be of type 4, and if one slice is of type 2, then the other must be of type 3 or 4.&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 6&#039;&#039;&#039; There exists one cut in which the side slices have total score strictly greater than 125 (i.e. they thus involve only Type 2, Type 3, and Type 4 slices, with at least one side slice not equal to Type 2, and the cut here is of the form 43+39+43).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; If not, then all cuts have side slices exactly equal to 125, which by the above table implies that one is Type 1 and one is Type 4, in particular all side slices have c=24.  But this forces C=80, contradicting Corollary 5. &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Adding up the corners we conclude&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Corollary 6&#039;&#039;&#039; &amp;lt;math&amp;gt;6 \leq A \leq 8&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 7&#039;&#039;&#039; &amp;lt;math&amp;gt;D=0&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; Firstly, from Lemma 6 we have a cut in which the two side slices are omitting at most one C-point between them (and have no D-point), which forces the middle slice to have at most one D-point; thus D is at most 1.&lt;br /&gt;
&lt;br /&gt;
Now suppose instead that D=1 (e.g. if 11222 was in the set); then there would be two choices of coordinates in which one of the side slices would have d=1 (e.g. 1**** and *1****). But the [http://spreadsheets.google.com/ccc?key=p5T0SktZY9DuqNcxJ171Bbw&amp;amp;hl=en n=4 statistics] show that such slices have a score of at most 59 7/12, so that the total score from those two coordinates is at most 63 + 59 7/12 = 122 7/12. On the other hand, the other three slices have a net score of at most 63+63 = 126. This averages out to at most 124.633... &amp;lt; 125, a contradiction.  &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Corollary 7&#039;&#039;&#039; Every middle slice has at most 40 points.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; From Lemma 7 we see that the middle slice must have c=0, but from the n=4 statistics this is not possible for any slice of size 41 or higher (alternatively, one can use the inequalities &amp;lt;math&amp;gt;4a+b \leq 64&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;b \leq 32&amp;lt;/math&amp;gt;). &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Each middle slice now has 39 or 40 points, with c=d=e=0, and so from the inequalities &amp;lt;math&amp;gt;4a+b \leq 64&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;b \leq 32&amp;lt;/math&amp;gt; must have statistics (8,32,0,0,0),(7,32,0,0,0), or (8,31,0,0,0).  In particular the &amp;quot;a&amp;quot; index of the middle slices is at most 8.  Summing over all middle slices we conclude&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 9&#039;&#039;&#039; B is at most 40.&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 10&#039;&#039;&#039; C is equal to 78 or 79.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; By Corollary 5, it suffices to show that &amp;lt;math&amp;gt;C \geq 78&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
As 125=43+39+43, we see that every center slice must have at least 39 points. By Lemma 2 and Lemma 7 the center slice has c=d=e=0, thus the center slice has a+b &amp;gt;= 39.  On the other hand, from the n=4 theory we have 4a+b &amp;lt;= 64, which forces b &amp;gt;= 31.&lt;br /&gt;
&lt;br /&gt;
By double counting, we see that 2C is equal to the sum of the b&#039;s of all the five center slices.  Thus C &amp;gt;= 5*31/2 = 77.5 and the claim follows.  &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
From Lemmas 9 and 10 we see that &amp;lt;math&amp;gt;B+C \leq 119&amp;lt;/math&amp;gt;, and thus &amp;lt;math&amp;gt;A \geq 6&amp;lt;/math&amp;gt;.  Also, if &amp;lt;math&amp;gt;A \geq 7&amp;lt;/math&amp;gt;, then by Lemma 4 we have at least three pairs of A points with Hamming distance 2.  At most two of these pairs eliminate the same C point, so we would have C=78 in that case.  &lt;br /&gt;
&lt;br /&gt;
Putting all the above facts together, we see that (A,B,C,D,E,F) must be one of the following triples:&lt;br /&gt;
&lt;br /&gt;
* (6,40,79,0,0,0)&lt;br /&gt;
* (7,40,78,0,0,0)&lt;br /&gt;
* (8,39,78,0,0,0)&lt;br /&gt;
&lt;br /&gt;
All three cases can be eliminated, giving &amp;lt;math&amp;gt;c&#039;_5=124&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== Elimination of (6,40,79,0,0,0) ===&lt;br /&gt;
&lt;br /&gt;
Look at the 6 A points.  From Lemma 4 we have at least two pairs (a,b), (c,d) of A-points that have Hamming separation 2.&lt;br /&gt;
&lt;br /&gt;
Now look at the midpoints of these two pairs; these midpoints are C-points cannot lie in the set.  But we have exactly one C-point missing from the set, thus the midpoints must be the same.  By symmetry, we may thus assume that the two pairs are (11111,11133) and (11113,11131).  Thus 11111,11133, 11113, 11131 are in the set, and so every C-point other than 11122 is in the set.  On the other hand, the B-points 11121, 11123, 11112, 11132 lie outside the set.&lt;br /&gt;
&lt;br /&gt;
At most one of 11312, 11332 lie in the set (since 11322 lies in the set).   Suppose that 11312 lies outside the set, then we have a pair (xy1z2, xy3z2) with x,y,z = 1,3 that is totally omitted from the set, namely (11112,11312).  On the other hand, every other pair of this form can have at most point in the set, thus there are at most seven points in the set of the form (xyzw2) with x,y,z,w = 1,3.  Similarly there are at most 8 points of the form xyz2w, or of xy2zw, x2yzw, 2xyzw, leading to at most 39 B-points in all, contradiction.&lt;br /&gt;
&lt;br /&gt;
=== Elimination of (7,40,78,0,0,0) ===&lt;br /&gt;
&lt;br /&gt;
By Lemma 4, we have at least three pairs of A-points of distance two apart that lie in the set.&lt;br /&gt;
The midpoints of these pairs are C-points that do not lie in the set; but there are only two such C-points, thus two pairs must have the same midpoint, so we may assume as before that 111xy lies in the set for x,y=1,3, which implies that 1112* and 111*2 lie outside the set.&lt;br /&gt;
&lt;br /&gt;
Now consider the 160 lines between 2 B points and one C point (cf. Lemma 3).  The sum of all the points in each such line (counting multiplicity) is 4B+2C = 316.  On the other hand, every one of the 160 lines can have at most two points, and four of these lines (namely 1112*, 111*2) have no points.  Thus all the other lines must have exactly two points.  &lt;br /&gt;
&lt;br /&gt;
We know that the C-point 11122 is missing from the set; there is one other missing C-point.  Since 1112x, 111x2 lie outside the set, we conclude from the previous paragraph that 1132x, 113x2 and 1312x, 131x2 lie in the set.  Taking midpoints we conclude that 11322 and 13122 lie outside the set.  But this is now three C-points missing (together with 11122), a contradiction.&lt;br /&gt;
&lt;br /&gt;
=== Elimination of (8,39,78,0,0,0) ===&lt;br /&gt;
&lt;br /&gt;
By Lemma 4 we have at least four pairs of A-points of distance two apart that lie in the set. The midpoints of these pairs are C-points that do not lie in the set; but there are only two such C-points, thus two pairs (a,b), (c,d) must have the same midpoint p, and the other two pairs (a&#039;,b&#039;), (c&#039;,d&#039;) must also have the same midpoint p&#039;.  (Note that every C-point is the midpoint of at most two such pairs.)&lt;br /&gt;
&lt;br /&gt;
Now consider the 160 lines between 2 B points and one C point (cf. Lemma 3).  The sum of all the points in each such line (counting multiplicity) is 4B+2C = 312.  Every one of the 160 lines can have at most two points, and four of these (those in the plane of (a,b,c,d) or of (a&#039;,b&#039;,c&#039;,d&#039;) have no points.  Thus all other lines must have exactly two points.&lt;br /&gt;
&lt;br /&gt;
Without loss of generality we have (a,b)=(11111,11133), (c,d) = (11113,11131), thus p = 11122.  By permuting the first three indices, we may assume that p&#039; is not of the form x2y2z, x2yz2, xy22z, xy2z2.  Then 1112x lies outside the set and 1122x lies in the set, so by the above paragraph 1132x lies in the set; similarly for 113x2, 1312x, 131x2.  This implies that 13122, 11322 lie outside the set, but this (together with 11122) shows that at least three C-points are missing, a contradiction.&lt;br /&gt;
&lt;br /&gt;
== General n ==&lt;br /&gt;
&lt;br /&gt;
General solution for &amp;lt;math&amp;gt;c&#039;_N&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* q 2s, all points from A(N-q,1)&lt;br /&gt;
* q-1 2s, points from A(N-q+1,2)&lt;br /&gt;
* q-2 2s, points from A(N-q+2,3)&lt;br /&gt;
* etc.&lt;br /&gt;
&lt;br /&gt;
where A(m,d) is a subset of &amp;lt;math&amp;gt;[1,3]^m&amp;lt;/math&amp;gt; for which any two points differ from each other in at least d places.&lt;br /&gt;
&lt;br /&gt;
Mathworld’s entry on error-correcting codes suggests it might be NP-complete to find the size of A(m,d) in general.&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;math&amp;gt;|A(m,1)| = 2^m&amp;lt;/math&amp;gt; because it includes all points in &amp;lt;math&amp;gt;[1,3]^m&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;|A(m,2)| = 2^{m-1}&amp;lt;/math&amp;gt; because it can include all points in &amp;lt;math&amp;gt;[1,3]^m&amp;lt;/math&amp;gt; with an odd number of 1s&lt;br /&gt;
&lt;br /&gt;
The integer programming routine from Maple 12 was used to obtain upper bounds for &amp;lt;math&amp;gt;c&#039;_6&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;c&#039;_7&amp;lt;/math&amp;gt;.  A large number of linear inequalities, described above in sections (n=3) and (n=4), were combined.  The details are in [[Maple calculations]].  The results were that &amp;lt;math&amp;gt;c&#039;_6 \le 361&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;c&#039;_7 \le 1071&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
A [[genetic algorithm]] has provided the following examples:&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;math&amp;gt;c&#039;_6 \geq 353&amp;lt;/math&amp;gt; (26 examples; [http://twofoldgaze.wordpress.com/2009/03/10/353-element-solution/ here is one])&lt;br /&gt;
* &amp;lt;math&amp;gt;c&#039;_7 \geq 988&amp;lt;/math&amp;gt; [http://twofoldgaze.wordpress.com/2009/03/10/978-element-solution/ Here is the example]&lt;br /&gt;
&lt;br /&gt;
== Variants ==&lt;br /&gt;
&lt;br /&gt;
A lower bound for Moser’s cube &amp;lt;math&amp;gt;[4]^n&amp;lt;/math&amp;gt; (values 1,2,3,4) comes from the following set:  Pick all points where q entries are 2 or 3; and also pick those where q-1 entries are 2 or 3 and an odd number of entries are 1.  This is maximized when q is near n/2, giving a lower bound of&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\binom{n}{n/2} 2^n + \binom{n}{n/2-1} 2^{n-1}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
which is comparable to &amp;lt;math&amp;gt;4^n/\sqrt{n}&amp;lt;/math&amp;gt; by [[Stirling&#039;s formula]].&lt;br /&gt;
&lt;br /&gt;
For k=5 (values 1,2,3,4,5) If A, B, C, D, and E denote the numbers of 1-s, 2-s, 3-s, 4-s and 5-s then the first three points of a geometric line form a 3-term arithmetic progression in A+E+2(B+D)+3C. So, for k=5 we have a similar lower bound for the Moser’s problem as for DHJ k=3, i.e. &amp;lt;math&amp;gt;5^{n - O(\sqrt{\log n})}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
The k=6 version of Moser implies DHJ(3).  Indeed, any k=3 combinatorial line-free set can be &amp;quot;doubled up&amp;quot; into a k=6 geometric line-free set of the same density by pulling back the set from the map &amp;lt;math&amp;gt;\phi: [6]^n \to [3]^n&amp;lt;/math&amp;gt; that maps 1, 2, 3, 4, 5, 6 to 1, 2, 3, 3, 2, 1 respectively; note that this map sends k=6 geometric lines to k=3 combinatorial lines.&lt;/div&gt;</summary>
		<author><name>121.220.134.232</name></author>
	</entry>
	<entry>
		<id>https://michaelnielsen.org/polymath/index.php?title=Moser%27s_cube_problem&amp;diff=938</id>
		<title>Moser&#039;s cube problem</title>
		<link rel="alternate" type="text/html" href="https://michaelnielsen.org/polymath/index.php?title=Moser%27s_cube_problem&amp;diff=938"/>
		<updated>2009-03-16T14:52:16Z</updated>

		<summary type="html">&lt;p&gt;121.220.134.232: /* General n */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Define a &#039;&#039;Moser set&#039;&#039; to be a subset of &amp;lt;math&amp;gt;[3]^n&amp;lt;/math&amp;gt; which does not contain any [[geometric line]], and let &amp;lt;math&amp;gt;c&#039;_n&amp;lt;/math&amp;gt; denote the size of the largest Moser set in &amp;lt;math&amp;gt;[3]^n&amp;lt;/math&amp;gt;.  The first few values are (see [http://www.research.att.com/~njas/sequences/A003142 OEIS A003142]):&lt;br /&gt;
&lt;br /&gt;
: &amp;lt;math&amp;gt;c&#039;_0 = 1; c&#039;_1 = 2; c&#039;_2 = 6; c&#039;_3 = 16; c&#039;_4 = 43; c&#039;_5 = 124.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Beyond this point, we only have some upper and lower bounds, in particular &amp;lt;math&amp;gt;353 \leq c&#039;_6 \leq 360&amp;lt;/math&amp;gt;; see [http://spreadsheets.google.com/ccc?key=p5T0SktZY9DsU-uZ1tK7VEg this spreadsheet] for the latest bounds.&lt;br /&gt;
&lt;br /&gt;
The best known asymptotic lower bound for &amp;lt;math&amp;gt;c&#039;_n&amp;lt;/math&amp;gt; is&lt;br /&gt;
&lt;br /&gt;
: &amp;lt;math&amp;gt;c&#039;_n \gg 3^n/\sqrt{n}&amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
formed by fixing the number of 2s to a single value near n/3.  Compare this to the DHJ(2) or Sperner limit of &amp;lt;math&amp;gt;2^n/\sqrt{n}&amp;lt;/math&amp;gt;.  Is it possible to do any better?  Note that we have a [[Upper_and_lower_bounds#Asymptotics|significantly better bound]] for the DHJ(3) &amp;lt;math&amp;gt;c_n&amp;lt;/math&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
: &amp;lt;math&amp;gt;c_n \geq 3^{n-O(\sqrt{\log n})}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
A more precise lower bound is&lt;br /&gt;
&lt;br /&gt;
: &amp;lt;math&amp;gt;c&#039;_n \geq \binom{n+1}{q} 2^{n-q}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where q is the nearest integer to &amp;lt;math&amp;gt;n/3&amp;lt;/math&amp;gt;, formed by taking all strings with q 2s, together with all strings with q-1 2s and an odd number of 1s.  This for instance gives the lower bound &amp;lt;math&amp;gt;c&#039;_5 \geq 120&amp;lt;/math&amp;gt;, which compares with the upper bound &amp;lt;math&amp;gt;c&#039;_5 \leq 3 c&#039;_4 = 129&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Using [[DHJ(3)]], we have the upper bound&lt;br /&gt;
&lt;br /&gt;
: &amp;lt;math&amp;gt;c&#039;_n = o(3^n)&amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
but no effective decay rate is known. It would be good to have a combinatorial proof of this fact (which is weaker than [[DHJ(3)]], but implies [[Roth&#039;s theorem]]).&lt;br /&gt;
&lt;br /&gt;
Convenient notation: given a Moser set A in &amp;lt;math&amp;gt;[3]^n&amp;lt;/math&amp;gt;, we let a be the number of points in A with no 2s, b be the number of points in A with one 2, c the number of points with two 2s, etc.  We call (a,b,c,...) the &#039;&#039;statistics&#039;&#039; of A.  Given a slice S of &amp;lt;math&amp;gt;[3]^n&amp;lt;/math&amp;gt;, we let a(S), b(S), etc. denote the statistics of that slice (dropping the fixed coordinates).  Thus for instance if A = {11, 12, 22, 32}, then (a,b,c) = (1,2,1), and (a(1*),b(1*)) = (1,1).&lt;br /&gt;
&lt;br /&gt;
We call a statistic (a,b,c,...) &#039;&#039;attainable&#039;&#039; if it is attained by a Moser set.  We say that an attainable statistic is &#039;&#039;Pareto-optimal&#039;&#039; if it cannot be pointwise dominated by any other attainable statistic (a&#039;,b&#039;,c&#039;,...) (thus &amp;lt;math&amp;gt;a&#039; \geq a&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;b&#039; \geq b&amp;lt;/math&amp;gt;, etc.)  We say that it is &#039;&#039;extremal&#039;&#039; if it is not a convex combination of any other attainable statistic (this is a stronger property than Pareto-optimal).  For the purposes of maximising linear scores of attainable statistics, it suffices to check extremal statistics.&lt;br /&gt;
&lt;br /&gt;
We let &amp;lt;math&amp;gt;(\alpha_0,\alpha_1,\ldots)&amp;lt;/math&amp;gt; be the normalized version of &amp;lt;math&amp;gt;(a,b,\ldots)&amp;lt;/math&amp;gt;, in which one divides the number of points of a certain type in the set by the total number of points in the set.  Thus for instance &amp;lt;math&amp;gt;\alpha_0 = a/2^n, \alpha_1 = b/(n 2^{n-1}), \alpha_3 = c/(\binom{n}{2} 2^{n-2})&amp;lt;/math&amp;gt;, etc., and the &amp;lt;math&amp;gt;\alpha_i&amp;lt;/math&amp;gt; range between 0 and 1.  Averaging arguments show that any linear inequality obeyed by the &amp;lt;math&amp;gt;\alpha_i&amp;lt;/math&amp;gt; at one dimension is automatically inherited by higher dimensions, as are shifted versions of this inequality (in which &amp;lt;math&amp;gt;\alpha_i&amp;lt;/math&amp;gt; is replaced by &amp;lt;math&amp;gt;\alpha_{i+1}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== n=0 ==&lt;br /&gt;
&lt;br /&gt;
We trivially have &amp;lt;math&amp;gt;c&#039;_0=1.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== n=1 ==&lt;br /&gt;
&lt;br /&gt;
We trivially have &amp;lt;math&amp;gt;c&#039;_1=2.&amp;lt;/math&amp;gt;  The Pareto-optimal values of the statistics (a,b) are (1,1) and (2,0); these are also the extremals.  We thus have the inequality &amp;lt;math&amp;gt;a+b \leq 2&amp;lt;/math&amp;gt;, or in normalized notation&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;2\alpha_0 + \alpha_1 \leq 2&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== n=2 ==&lt;br /&gt;
&lt;br /&gt;
We have &amp;lt;math&amp;gt;c&#039;_2 = 6&amp;lt;/math&amp;gt;; the upper bound follows since &amp;lt;math&amp;gt;c&#039;_2 \leq 3 c&#039;_1&amp;lt;/math&amp;gt;, and the lower bound follows by deleting one of the two diagonals from &amp;lt;math&amp;gt;[3]^2&amp;lt;/math&amp;gt; (these are the only extremisers).&lt;br /&gt;
&lt;br /&gt;
The extremiser has statistics (a,b,c) = (2,4,0), which are of course Pareto-optimal.  If c=1 then we must have a, b at most 2 (look at the lines through 22).  This is attainable (e.g. {11, 12, 22, 23, 31}, and so (2,2,1) is another Pareto-optimal statistic.  If a=4, then b and c must be 0, so we get another Pareto-optimal statistic (4,0,0) (attainable by {11, 13, 31, 33} of course).  If a=3, then c=0 and b is at most 2, giving another Pareto-optimal statistic (3,2,0); but this is a convex combination of (4,0,0) and (2,4,0) and is thus not extremal.  Thus the complete set of extremal statistics are&lt;br /&gt;
&lt;br /&gt;
(4,0,0), (2,4,0), (2,2,1).&lt;br /&gt;
&lt;br /&gt;
The sharp linear inequalities obeyed by a,b,c (other than the trivial ones &amp;lt;math&amp;gt;a,b,c \geq 0&amp;lt;/math&amp;gt;) are then&lt;br /&gt;
&lt;br /&gt;
*&amp;lt;math&amp;gt;2a+b+2c \leq 8&amp;lt;/math&amp;gt;&lt;br /&gt;
*&amp;lt;math&amp;gt;b+2c \leq 4&amp;lt;/math&amp;gt;&lt;br /&gt;
*&amp;lt;math&amp;gt;a+2c \leq 4&amp;lt;/math&amp;gt;&lt;br /&gt;
*&amp;lt;math&amp;gt;c \leq 1&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
In normalized notation, we have&lt;br /&gt;
*&amp;lt;math&amp;gt;4\alpha_0 + 2\alpha_1 + \alpha_2 \leq 4&amp;lt;/math&amp;gt;&lt;br /&gt;
*&amp;lt;math&amp;gt;2\alpha_1 + \alpha_2 \leq 2&amp;lt;/math&amp;gt;&lt;br /&gt;
*&amp;lt;math&amp;gt;2\alpha_0 + \alpha_2 \leq 2&amp;lt;/math&amp;gt;&lt;br /&gt;
*&amp;lt;math&amp;gt;\alpha_2 \leq 1&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== n=3 ==&lt;br /&gt;
&lt;br /&gt;
We have &amp;lt;math&amp;gt;c&#039;_3 = 16&amp;lt;/math&amp;gt;.  The lower bound can be seen for instance by taking all the strings with one 2, and half the strings with no 2 (e.g. the strings with an odd number of 1s).  The upper bound can be deduced from the corresponding [[upper and lower bounds]] for &amp;lt;math&amp;gt;c_3 = 18&amp;lt;/math&amp;gt;; the 17-point and 18-point line-free sets each contain a geometric line.&lt;br /&gt;
&lt;br /&gt;
If a Moser set in &amp;lt;math&amp;gt;[3]^3&amp;lt;/math&amp;gt; contains 222, then it can have at most 14 points, since the remaining 26 points in the cube split into 13 antipodal pairs, and at most one of each pair can lie in the set.  By exhausting over the &amp;lt;math&amp;gt;2^{13} = 8192&amp;lt;/math&amp;gt; possibilities, it can be shown that it is impossible for a 14-point set to exist; any Moser set containing 222 must in fact omit at least one antipodal pair completely and thus have only 13 points.  (A human proof of this fact can be [http://www.ma.rhul.ac.uk/~elsholtz/WWW/blog/mosertablogv01.pdf found here].)&lt;br /&gt;
&lt;br /&gt;
The Pareto-optimal statistics are&lt;br /&gt;
&lt;br /&gt;
(3,6,3,1),(4,4,3,1),(4,6,2,1),(2,6,6,0),(3,6,5,0),(4,4,5,0),(3,7,4,0),(4,6,4,0), (3,9,3,0),(4,7,3,0),(5,4,3,0),(4,9,2,0),(5,6,2,0),(6,3,2,0),(3,10,1,0),(5,7,1,0), (6,4,1,0),(4,12,0,0),(5,9,0,0),(6,6,0,0),(7,3,0,0),(8,0,0,0).&lt;br /&gt;
&lt;br /&gt;
A spreadsheet containing these statistics can be [http://spreadsheets.google.com/ccc?key=p5T0SktZY9DuKZ2DyzO9EOg&amp;amp;hl=en# found here].&lt;br /&gt;
&lt;br /&gt;
The extremal statistics are&lt;br /&gt;
&lt;br /&gt;
(3,6,3,1),(4,4,3,1),(4,6,2,1),(2,6,6,0),(4,4,5,0),(4,6,4,0),(4,12,0,0),(8,0,0,0)&lt;br /&gt;
&lt;br /&gt;
The sharp linear bounds are :&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;math&amp;gt;2a+b+2c+4d \leq 22&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;3a+2b+3c+6d \leq 36&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;7a+2b+4c+8d \leq 56&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;6a+2b+3c+6d \leq 48&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;b+c+3d \leq 12&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;a+2c+4d \leq 14&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;5a+4c+8d \leq 40&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;a+4d \leq 8&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;b+6d \leq 12&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;c+3d \leq 6&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;d \leq 1&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In normalized notation,&lt;br /&gt;
* &amp;lt;math&amp;gt;8\alpha_0+ 6\alpha_1 + 6\alpha_2 + 2\alpha_3 \leq 11&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;4\alpha_0+4\alpha_1+3\alpha_2+\alpha_3 \leq 6&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;7\alpha_0+3\alpha_1+3\alpha_2+\alpha_3 \leq 7&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;8\alpha_0+3\alpha_1+3\alpha_2+\alpha_3 \leq 8&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;4\alpha_1+2\alpha_2+\alpha_3 \leq 4&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;4\alpha_0+6\alpha_2+2\alpha_3 \leq 7&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;5\alpha_0+3\alpha_2+\alpha_3 \leq 5&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;2\alpha_0+\alpha_3 \leq 2&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;2\alpha_1+\alpha_3 \leq 2&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;2\alpha_2+\alpha_3 \leq 2&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;\alpha_3 \leq 1&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== n=4 ==&lt;br /&gt;
&lt;br /&gt;
A [http://abel.math.umu.se/~klasm/extremal-moser-n=5-t=3 computer search] has obtained all extremisers to &amp;lt;math&amp;gt;c&#039;_4=43&amp;lt;/math&amp;gt;.  The 42-point solutions can be found [http://abel.math.umu.se/~klasm/moser-n=4-t=3-p=42.gz here].&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof that &amp;lt;math&amp;gt;c&#039;_4 \leq 43&amp;lt;/math&amp;gt;&#039;&#039;&#039;: &lt;br /&gt;
When e=1 (i.e. the 4D set contains 2222) then we have at most 41 points (in fact at most 39) by counting antipodal points, so assume e=0.&lt;br /&gt;
&lt;br /&gt;
Define the score of a 3D slice to be a/4+b/3+c/2+d.  Observe from double counting that the size of a 4D set is the sum of the scores of its eight side slices.&lt;br /&gt;
&lt;br /&gt;
But by [http://spreadsheets.google.com/ccc?key=p5T0SktZY9DuKZ2DyzO9EOg&amp;amp;hl=en looking at the extremals] we see that the largest score is 44/8, attained at only one point, namely when (a,b,c,d) = (2,6,6,0).  So the only way one can have a 44-point set is if all side slices are (2,6,6,0), or equivalently if the whole set has statistics (a,b,c,d,e) = (4,16,24,0,0).  But then we have all the points with two 2s, which means that the four &amp;quot;a&amp;quot; points cannot be separated by Hamming distance 2.  We conclude that we must have an antipodal pair among the &amp;quot;a&amp;quot; points with an odd number of 1s, and an antipodal pair among the &amp;quot;a&amp;quot; points with an even number of 1s.    By the symmetries of the cube, we may take the a-set to then be 1111, 3333, 1113, 3331.  But then the &amp;quot;b&amp;quot; set must exclude both 1112 and 3332, and so can have at most three points in the eight-point set xyz2 (with x,y,z=1,3) rather than four (to get four points one must alternate in a checkerboard pattern).  Adding this to the at most four points of the form xy2z, x2yz, 2xyz we see that b is at most 16, a contradiction. &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Given a subset of &amp;lt;math&amp;gt;[3]^4&amp;lt;/math&amp;gt;, let a be the number of points with no 2s, b be the number of points with 1 2, and so forth.  The quintuple (a,b,c,d,e) thus lies between (0,0,0,0,0) and (16,32,24,8,1).&lt;br /&gt;
&lt;br /&gt;
The 43-point solutions have distributions (a,b,c,d,e) as follows:&lt;br /&gt;
&lt;br /&gt;
* (5,20,18,0,0) [16 solutions]&lt;br /&gt;
* (4,16,23,0,0) [768 solutions]&lt;br /&gt;
* (3,16,24,0,0) [512 solutions]&lt;br /&gt;
* (4,15,24,0,0) [256 solutions]&lt;br /&gt;
&lt;br /&gt;
The 42-point solutions are [http://abel.math.umu.se/~klasm/Moser-42-stat.pdf distributed as follows]:&lt;br /&gt;
&lt;br /&gt;
* (6,24,12,0,0) [[http://abel.math.umu.se/~klasm/moser-n=4-42-12 8 solutions]] &lt;br /&gt;
* (5,20,17,0,0) [576 solutions]&lt;br /&gt;
* (5,19,18,0,0) [384 solutions]&lt;br /&gt;
* (6,16,18,2,0) [[http://abel.math.umu.se/~klasm/moser-n=4-42-e=2 192 solutions]]&lt;br /&gt;
* (4,20,18,0,0) [272 solutions]&lt;br /&gt;
* (5,17,20,0,0) [192 solutions]&lt;br /&gt;
* (5,16,21,0,0) [3584 solutions]&lt;br /&gt;
* (4,17,21,0,0) [768 solutions]&lt;br /&gt;
* (4,16,22,0,0) [26880 solutions]&lt;br /&gt;
* (5,15,22,0,0) [1536 solutions]&lt;br /&gt;
* (4,15,23,0,0) [22272 solutions]&lt;br /&gt;
* (3,16,23,0,0) [15744 solutions]&lt;br /&gt;
* (4,14,24,0,0) [4224 solutions]&lt;br /&gt;
* (3,15,24,0,0) [8704 solutions]&lt;br /&gt;
* (2,16,24,0,0) [896 solutions]&lt;br /&gt;
&lt;br /&gt;
Note how c is usually quite large, and d quite low.&lt;br /&gt;
&lt;br /&gt;
One of the (6,24,12,0,0) solutions is &amp;lt;math&amp;gt;\Gamma_{220}+\Gamma_{202}+\Gamma_{022}+\Gamma_{112}+\Gamma_{211}&amp;lt;/math&amp;gt; (i.e. the set of points containing exactly two 1s, and/or exactly two 3s).  The other seven are reflections of this set.&lt;br /&gt;
&lt;br /&gt;
There are 2,765,200 41-point solutions, [http://abel.math.umu.se/~klasm/solutions-4-t=3-41-moser.gz listed here].  The statistics for such points can be [http://abel.math.umu.se/~klasm/Moser-41-stat.pdf found here].  Noteworthy features of the statistics:&lt;br /&gt;
&lt;br /&gt;
* d is at most 3 (and, except for [http://abel.math.umu.se/~klasm/moser-n=3-t=3-41-d=3.gz 256 exceptional solutions] of the shape (5,15,18,3,0), have d at most 2; here are the [http://abel.math.umu.se/~klasm/moser-n=3-t=3-41-d=2.gz d=2 solutions] and [http://abel.math.umu.se/~klasm/moser-n=3-t=3-41-d=1.gz d=1 solutions])&lt;br /&gt;
* c is at least 6 (and, except for [http://abel.math.umu.se/~klasm/moser-n=3-t=3-41-c=6.gz 16 exceptional solutions] of the shape (7,28,6,0,0), have c at least 11).&lt;br /&gt;
&lt;br /&gt;
Statistics for the 41-point, 42-point, and 43-point solutions can be found [http://spreadsheets.google.com/ccc?key=p5T0SktZY9DuqNcxJ171Bbw&amp;amp;hl=en here].&lt;br /&gt;
&lt;br /&gt;
If a Moser set in &amp;lt;math&amp;gt;[3]^4&amp;lt;/math&amp;gt; contains 2222, then by the n=3 theory, any middle slice (i.e. 2***, *2**, **2*, or ***2) is missing at least one antipodal pair.  But each antipodal pair belongs to at most three middle slices, thus two of the 40 antipodal pairs must be completely missing.  As a consequence, any Moser set containing 2222 can have at most 39 points.&lt;br /&gt;
(A more refined analysis can be found at [http://www.ma.rhul.ac.uk/~elsholtz/WWW/blog/mosertablogv01.pdf found here].)&lt;br /&gt;
&lt;br /&gt;
We have the following inequalities connecting a,b,c,d,e:&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;math&amp;gt;4a+b \leq 64&amp;lt;/math&amp;gt;:  There are 32 lines connecting two &amp;quot;a&amp;quot; points with a &amp;quot;b&amp;quot; point; each &amp;quot;a&amp;quot; point belongs to four of these lines, and each &amp;quot;b&amp;quot; point belongs to one.  But each such line can have at most two points in the set, and the claim follows.&lt;br /&gt;
* This can be refined to &amp;lt;math&amp;gt;4a+b+\frac{2}{3} c \leq 64&amp;lt;/math&amp;gt;: There are 24 planes connecting four &amp;quot;a&amp;quot; points, four &amp;quot;b&amp;quot; points, and one &amp;quot;c&amp;quot; point; each &amp;quot;a&amp;quot; point belongs to six of these, each &amp;quot;b&amp;quot; point belongs to three, and each &amp;quot;c&amp;quot; point belongs to one.  For each of these planes, we have &amp;lt;math&amp;gt;2a + b + 2c \leq 8&amp;lt;/math&amp;gt; from the n=2 theory, and the claim follows.&lt;br /&gt;
* &amp;lt;math&amp;gt;6a+2c \leq 96&amp;lt;/math&amp;gt;:  There are 96 lines connecting two &amp;quot;a&amp;quot; points with a &amp;quot;c&amp;quot; point; each &amp;quot;a&amp;quot; point belongs to six of these lines, and each &amp;quot;c&amp;quot; point belongs to two.  But each such line can have at most two points in the set, and the claim follows.&lt;br /&gt;
* &amp;lt;math&amp;gt;3b+2c \leq 96&amp;lt;/math&amp;gt;:  There are 48 lines connecting two &amp;quot;b&amp;quot; points to a &amp;quot;c&amp;quot; point; each &amp;quot;b&amp;quot; point belongs to three of these points, and each &amp;quot;c&amp;quot; point belongs to two.  But each such line can have at most two points in the set, and the claim follows.&lt;br /&gt;
&lt;br /&gt;
The inequalities for n=3 imply inequalities for n=4.  Indeed, there are eight side slices of &amp;lt;math&amp;gt;[3]^4&amp;lt;/math&amp;gt;; each &amp;quot;a&amp;quot; point belongs to four of these, each &amp;quot;b&amp;quot; point belongs to three, each &amp;quot;c&amp;quot; point belongs to two, and each &amp;quot;d&amp;quot; point belongs to one.  Thus, any inequality of the form&lt;br /&gt;
:&amp;lt;math&amp;gt; \alpha a + \beta b + \gamma c + \delta d \leq M&amp;lt;/math&amp;gt;&lt;br /&gt;
in three dimensions implies the inequality&lt;br /&gt;
:&amp;lt;math&amp;gt; 4 \alpha a + 3 \beta b + 2 \gamma c + \delta d \leq 8M&amp;lt;/math&amp;gt;&lt;br /&gt;
in four dimensions.  Thus we have&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;math&amp;gt;8a+3b+4c+4d \leq 176&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;2a+b+c+d \leq 48&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;14a+3b+4c+4d \leq 244&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;4a+b+c+d \leq 64&amp;lt;/math&amp;gt; &lt;br /&gt;
* &amp;lt;math&amp;gt;3b+2c+3d \leq 96&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;a+c+d \leq 28&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;5a+2c+2d \leq 80&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;a+d \leq 16&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;b+2d \leq 32&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;2c+3d \leq 48&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Cubes also sit diagonally in the 4-dimensional cube.  They may have coordinates xxyz, where xx runs over (11,22,33) or (13,22,31), while y and z run over (1,2,3).  These cubes have a different distribution of 2s than the ordinary slices: (a,b,c,d,e) = (8,8,6,4,1) instead of (8,12,6,1,0) for the side slices and (0,8,12,6,1) for the middle slices.  So a different set of inequalities arise.  It is possible to run through the same procedure as described above for n=3, and the inequalities that arise are &amp;lt;math&amp;gt;2a+b+2c+2d+4e \le 24&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;4a+b+2c+2d+4e \le 32&amp;lt;/math&amp;gt; within the 3D cube, which when averaged becomes &amp;lt;math&amp;gt;4a+b+2c+4d+16e \le 96&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;8a+b+2c+4d+16e \le 128&amp;lt;/math&amp;gt; for the 4D cube.  A spreadsheet containing these statistics can be [http://spreadsheets.google.com/ccc?key=p5T0SktZY9DuKZ2DyzO9EOg&amp;amp;hl=en# found here] on sheet 2.  Other sheets of this spreadsheet contain results for a 3D cube sitting diagonally in a 5D or 6D cube.  Notice the similarity of the equations that arise for the xxxyz, xxyyz and xxxxyz diagonals.&lt;br /&gt;
&lt;br /&gt;
== n=5 ==&lt;br /&gt;
&lt;br /&gt;
Let (A,B,C,D,E,F) be the statistics of a five-dimensional Moser set, thus (A,B,C,D,E,F) varies between (0,0,0,0,0,0) and (32,80,80,40,10,1).&lt;br /&gt;
&lt;br /&gt;
There are several Moser sets with the statistics (4,40,80,0,0,0), which thus have 124 points.  Indeed, one can take&lt;br /&gt;
&lt;br /&gt;
* all points with two 2s;&lt;br /&gt;
* all points with one 2 and an even number of 1s; and&lt;br /&gt;
* (13111),(13113),(31311),(13333). Any two of these four points differ in three places, except for one pair of points that differ in one place.&lt;br /&gt;
&lt;br /&gt;
For the rest of this section, we assume that the Moser set &amp;lt;math&amp;gt;{\mathcal A}&amp;lt;/math&amp;gt; is a 125-point set.&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 1&#039;&#039;&#039;: F=0.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; If F is non-zero, then the Moser set contains 22222, then each of the 121 antipodal pairs can have at most one point in the set, leading to only 122 points. &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 2&#039;&#039;&#039;: Every middle slice of &amp;lt;math&amp;gt;{\mathcal A}&amp;lt;/math&amp;gt; has at most 41 points.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039;  Without loss of generality we may consider the 2**** slice.  There are two cases, depending on the value of c(2****).&lt;br /&gt;
&lt;br /&gt;
Suppose first that c is at least 17; thus there are at least 17 points of the form 222xy, 22xy2, 2xy22, or 2x22y, where the x, y denote 1 or 3.  This gives 36 &amp;quot;xy&amp;quot; wildcards in all in four coordinate slots; by the pigeonhole principle one of the slots sees at least 9 of the wildcards.  By symmetry, we may assume that the second coordinate slot sees at least 9 of these wildcards, thus there are at least 9 points of the form 2x22y, 2x2y2, 2xy22.  The x=1, x=3 cases can absorb at most six of these, thus each of these cases must absorb at least three points, with at least one absorbing at least five.  Let&#039;s say that it&#039;s the x=3 case that absorbs 5; thus &amp;lt;math&amp;gt;d(*1***) \geq 3&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;d(*3***) \geq 5&amp;lt;/math&amp;gt;.  From the n=4 theory this means that the *1*** slice has at most 41 points, and the *3*** slice has at most 40.  Meanwhile, the middle slice has at most 43, leading to 41+41+42=124 points in all.&lt;br /&gt;
&lt;br /&gt;
Now suppose c is less than 16; then by the n=4 theory the middle slice is one of the eight (6,24,12,0,0) sets.  Without loss of generality we may take it to be &amp;lt;math&amp;gt;\Gamma_{220}+\Gamma_{202}+\Gamma_{022}+\Gamma_{112}+\Gamma_{211}&amp;lt;/math&amp;gt;; in particular, the middle slice contains the points 21122 21212 21221 23322 23232 23223.  In particular, the *1*** and *3*** slices have a &amp;quot;d&amp;quot; value of at least three, and so have at most 41 points.  If the *2*** slice has at most 42 points, then we are at 41+42+41=124 points as needed, but if we have 43 or more, then we are back in the first case (as &amp;lt;math&amp;gt;c(*2***) \geq 17&amp;lt;/math&amp;gt;) after permuting the indices.&lt;br /&gt;
&amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Since 125=41+41+43, we thus have&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Corollary 1&#039;&#039;&#039;: Every side slice of &amp;lt;math&amp;gt;{\mathcal A}&amp;lt;/math&amp;gt; has at least 41 points.  If one side slice does have 41 points, then the other has 43.&lt;br /&gt;
&lt;br /&gt;
Combining this with the n=4 statistics, we conclude&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Corollary 2&#039;&#039;&#039;: Every side slice of &amp;lt;math&amp;gt;{\mathcal A}&amp;lt;/math&amp;gt; has e=0, and &amp;lt;math&amp;gt;d \leq 3&amp;lt;/math&amp;gt;.  Given two opposite side slices, e.g. 1**** and 3****, we have &amp;lt;math&amp;gt;d(1****)+d(3****) \leq 4&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Corollary 3&#039;&#039;&#039;: E=0.&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Corollary 4&#039;&#039;&#039;: Any middle slice has a &amp;quot;c&amp;quot; value of at most 8.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; Let&#039;s work with the 2**** slice.  By Corollary 2, there are at most four contributions to c(2****) of the form 21*** or 23***, and similarly for the other three positions.  Double counting then gives the claim. &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 3&#039;&#039;&#039;: &amp;lt;math&amp;gt;2B+C \leq 160&amp;lt;/math&amp;gt;.   &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039;: There are 160 lines connecting one &amp;quot;C&amp;quot; point to two &amp;quot;B&amp;quot; points (e.g. 11112, 11122, 11132); each &amp;quot;C&amp;quot; point lies in two of these, and each &amp;quot;B&amp;quot; point lies on four.  A Moser set can have at most two points out of each of these lines.  Double counting then gives the claim.  &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 4&#039;&#039;&#039; Given m A-points with &amp;lt;math&amp;gt;m \geq 5&amp;lt;/math&amp;gt;, there exists at least m-4 pairs (a,b) of such A-points with Hamming distance exactly two (i.e. b differs from a in exactly two places).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; It suffices to check this for m=5, since the case of larger m then follows by locating a pair, removing a point that contributes to that pair, and using the induction hypothesis.  Given 5 A-points, we may assume by the pigeonhole principle and symmetry that at least three of them have an odd number of 1s.  Suppose 11111 is one of the points, and that no pair has Hamming distance 2. All points with two 3s are excluded, so the only points allowed with an odd number of 1s are those with four 3s. But all those points differ from each other in two positions, so at most one of them is allowed.  &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Corollary 5&#039;&#039;&#039; &amp;lt;math&amp;gt;C \leq 79&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039;: Suppose for contradiction that C=80, then D=0 and &amp;lt;math&amp;gt;B \leq 40&amp;lt;/math&amp;gt;.  From Lemma 4 we also see that A cannot exceed 5, leading to the contradiction.&lt;br /&gt;
&amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Define the &#039;&#039;&#039;score&#039;&#039;&#039; of a Moser set in &amp;lt;math&amp;gt;[3]^4&amp;lt;/math&amp;gt; to be the quantity &amp;lt;math&amp;gt;a + 5b/4 + 5c/3 + 5d/2 + 5e&amp;lt;/math&amp;gt;.  Double-counting (and Lemma 2) gives&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 5&#039;&#039;&#039;  The total score of all the ten side-slices of &amp;lt;math&amp;gt;{\mathcal A}&amp;lt;/math&amp;gt; is equal to &amp;lt;math&amp;gt;5|{\mathcal A}| = 5 \times 125&amp;lt;/math&amp;gt;.  In particular, there exists a pair of opposite side-slices whose scores add up to at least 125.&lt;br /&gt;
&lt;br /&gt;
By Lemma 5 and symmetry, we may assume that the 1**** and 3**** slices have score adding up to at least 125.  By Lemma 2, the 2**** slice has at most 41 points, which imply that the 1**** and 3**** have 41, 42, or 43 points.  From the [http://spreadsheets.google.com/ccc?key=p5T0SktZY9DuqNcxJ171Bbw&amp;amp;hl=en n=4 statistics] we know that all 41-point, 42-point, 43-point slices have score less than 62, with the following exceptions:&lt;br /&gt;
&lt;br /&gt;
# (2,16,24,0,0) [42 points, score: 62]&lt;br /&gt;
# (4,16,23,0,0) [43 points, score: 62 1/3]&lt;br /&gt;
# (4,15,24,0,0) [43 points, score: 62 3/4]&lt;br /&gt;
# (3,16,24,0,0) [43 points, score: 63]&lt;br /&gt;
&lt;br /&gt;
Thus the 1**** and 3**** slices must from the above list.  Furthermore, if one of the slices is of type 1, then the other must be of type 4, and if one slice is of type 2, then the other must be of type 3 or 4.&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 6&#039;&#039;&#039; There exists one cut in which the side slices have total score strictly greater than 125 (i.e. they thus involve only Type 2, Type 3, and Type 4 slices, with at least one side slice not equal to Type 2, and the cut here is of the form 43+39+43).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; If not, then all cuts have side slices exactly equal to 125, which by the above table implies that one is Type 1 and one is Type 4, in particular all side slices have c=24.  But this forces C=80, contradicting Corollary 5. &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Adding up the corners we conclude&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Corollary 6&#039;&#039;&#039; &amp;lt;math&amp;gt;6 \leq A \leq 8&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 7&#039;&#039;&#039; &amp;lt;math&amp;gt;D=0&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; Firstly, from Lemma 6 we have a cut in which the two side slices are omitting at most one C-point between them (and have no D-point), which forces the middle slice to have at most one D-point; thus D is at most 1.&lt;br /&gt;
&lt;br /&gt;
Now suppose instead that D=1 (e.g. if 11222 was in the set); then there would be two choices of coordinates in which one of the side slices would have d=1 (e.g. 1**** and *1****). But the [http://spreadsheets.google.com/ccc?key=p5T0SktZY9DuqNcxJ171Bbw&amp;amp;hl=en n=4 statistics] show that such slices have a score of at most 59 7/12, so that the total score from those two coordinates is at most 63 + 59 7/12 = 122 7/12. On the other hand, the other three slices have a net score of at most 63+63 = 126. This averages out to at most 124.633... &amp;lt; 125, a contradiction.  &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Corollary 7&#039;&#039;&#039; Every middle slice has at most 40 points.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; From Lemma 7 we see that the middle slice must have c=0, but from the n=4 statistics this is not possible for any slice of size 41 or higher (alternatively, one can use the inequalities &amp;lt;math&amp;gt;4a+b \leq 64&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;b \leq 32&amp;lt;/math&amp;gt;). &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Each middle slice now has 39 or 40 points, with c=d=e=0, and so from the inequalities &amp;lt;math&amp;gt;4a+b \leq 64&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;b \leq 32&amp;lt;/math&amp;gt; must have statistics (8,32,0,0,0),(7,32,0,0,0), or (8,31,0,0,0).  In particular the &amp;quot;a&amp;quot; index of the middle slices is at most 8.  Summing over all middle slices we conclude&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 9&#039;&#039;&#039; B is at most 40.&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 10&#039;&#039;&#039; C is equal to 78 or 79.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; By Corollary 5, it suffices to show that &amp;lt;math&amp;gt;C \geq 78&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
As 125=43+39+43, we see that every center slice must have at least 39 points. By Lemma 2 and Lemma 7 the center slice has c=d=e=0, thus the center slice has a+b &amp;gt;= 39.  On the other hand, from the n=4 theory we have 4a+b &amp;lt;= 64, which forces b &amp;gt;= 31.&lt;br /&gt;
&lt;br /&gt;
By double counting, we see that 2C is equal to the sum of the b&#039;s of all the five center slices.  Thus C &amp;gt;= 5*31/2 = 77.5 and the claim follows.  &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
From Lemmas 9 and 10 we see that &amp;lt;math&amp;gt;B+C \leq 119&amp;lt;/math&amp;gt;, and thus &amp;lt;math&amp;gt;A \geq 6&amp;lt;/math&amp;gt;.  Also, if &amp;lt;math&amp;gt;A \geq 7&amp;lt;/math&amp;gt;, then by Lemma 4 we have at least three pairs of A points with Hamming distance 2.  At most two of these pairs eliminate the same C point, so we would have C=78 in that case.  &lt;br /&gt;
&lt;br /&gt;
Putting all the above facts together, we see that (A,B,C,D,E,F) must be one of the following triples:&lt;br /&gt;
&lt;br /&gt;
* (6,40,79,0,0,0)&lt;br /&gt;
* (7,40,78,0,0,0)&lt;br /&gt;
* (8,39,78,0,0,0)&lt;br /&gt;
&lt;br /&gt;
All three cases can be eliminated, giving &amp;lt;math&amp;gt;c&#039;_5=124&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== Elimination of (6,40,79,0,0,0) ===&lt;br /&gt;
&lt;br /&gt;
Look at the 6 A points.  From Lemma 4 we have at least two pairs (a,b), (c,d) of A-points that have Hamming separation 2.&lt;br /&gt;
&lt;br /&gt;
Now look at the midpoints of these two pairs; these midpoints are C-points cannot lie in the set.  But we have exactly one C-point missing from the set, thus the midpoints must be the same.  By symmetry, we may thus assume that the two pairs are (11111,11133) and (11113,11131).  Thus 11111,11133, 11113, 11131 are in the set, and so every C-point other than 11122 is in the set.  On the other hand, the B-points 11121, 11123, 11112, 11132 lie outside the set.&lt;br /&gt;
&lt;br /&gt;
At most one of 11312, 11332 lie in the set (since 11322 lies in the set).   Suppose that 11312 lies outside the set, then we have a pair (xy1z2, xy3z2) with x,y,z = 1,3 that is totally omitted from the set, namely (11112,11312).  On the other hand, every other pair of this form can have at most point in the set, thus there are at most seven points in the set of the form (xyzw2) with x,y,z,w = 1,3.  Similarly there are at most 8 points of the form xyz2w, or of xy2zw, x2yzw, 2xyzw, leading to at most 39 B-points in all, contradiction.&lt;br /&gt;
&lt;br /&gt;
=== Elimination of (7,40,78,0,0,0) ===&lt;br /&gt;
&lt;br /&gt;
By Lemma 4, we have at least three pairs of A-points of distance two apart that lie in the set.&lt;br /&gt;
The midpoints of these pairs are C-points that do not lie in the set; but there are only two such C-points, thus two pairs must have the same midpoint, so we may assume as before that 111xy lies in the set for x,y=1,3, which implies that 1112* and 111*2 lie outside the set.&lt;br /&gt;
&lt;br /&gt;
Now consider the 160 lines between 2 B points and one C point (cf. Lemma 3).  The sum of all the points in each such line (counting multiplicity) is 4B+2C = 316.  On the other hand, every one of the 160 lines can have at most two points, and four of these lines (namely 1112*, 111*2) have no points.  Thus all the other lines must have exactly two points.  &lt;br /&gt;
&lt;br /&gt;
We know that the C-point 11122 is missing from the set; there is one other missing C-point.  Since 1112x, 111x2 lie outside the set, we conclude from the previous paragraph that 1132x, 113x2 and 1312x, 131x2 lie in the set.  Taking midpoints we conclude that 11322 and 13122 lie outside the set.  But this is now three C-points missing (together with 11122), a contradiction.&lt;br /&gt;
&lt;br /&gt;
=== Elimination of (8,39,78,0,0,0) ===&lt;br /&gt;
&lt;br /&gt;
By Lemma 4 we have at least four pairs of A-points of distance two apart that lie in the set. The midpoints of these pairs are C-points that do not lie in the set; but there are only two such C-points, thus two pairs (a,b), (c,d) must have the same midpoint p, and the other two pairs (a&#039;,b&#039;), (c&#039;,d&#039;) must also have the same midpoint p&#039;.  (Note that every C-point is the midpoint of at most two such pairs.)&lt;br /&gt;
&lt;br /&gt;
Now consider the 160 lines between 2 B points and one C point (cf. Lemma 3).  The sum of all the points in each such line (counting multiplicity) is 4B+2C = 312.  Every one of the 160 lines can have at most two points, and four of these (those in the plane of (a,b,c,d) or of (a&#039;,b&#039;,c&#039;,d&#039;) have no points.  Thus all other lines must have exactly two points.&lt;br /&gt;
&lt;br /&gt;
Without loss of generality we have (a,b)=(11111,11133), (c,d) = (11113,11131), thus p = 11122.  By permuting the first three indices, we may assume that p&#039; is not of the form x2y2z, x2yz2, xy22z, xy2z2.  Then 1112x lies outside the set and 1122x lies in the set, so by the above paragraph 1132x lies in the set; similarly for 113x2, 1312x, 131x2.  This implies that 13122, 11322 lie outside the set, but this (together with 11122) shows that at least three C-points are missing, a contradiction.&lt;br /&gt;
&lt;br /&gt;
== General n ==&lt;br /&gt;
&lt;br /&gt;
General solution for &amp;lt;math&amp;gt;c&#039;_N&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* q 2s, all points from A(N-q,1)&lt;br /&gt;
* q-1 2s, points from A(N-q+1,2)&lt;br /&gt;
* q-2 2s, points from A(N-q+2,3)&lt;br /&gt;
* etc.&lt;br /&gt;
&lt;br /&gt;
where A(m,d) is a subset of &amp;lt;math&amp;gt;[1,3]^m&amp;lt;/math&amp;gt; for which any two points differ from each other in at least d places.&lt;br /&gt;
&lt;br /&gt;
Mathworld’s entry on error-correcting codes suggests it might be NP-complete to find the size of A(m,d) in general.&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;math&amp;gt;|A(m,1)| = 2^m&amp;lt;/math&amp;gt; because it includes all points in &amp;lt;math&amp;gt;[1,3]^m&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;|A(m,2)| = 2^{m-1}&amp;lt;/math&amp;gt; because it can include all points in &amp;lt;math&amp;gt;[1,3]^m&amp;lt;/math&amp;gt; with an odd number of 1s&lt;br /&gt;
&lt;br /&gt;
Here are some [[Maple calculations]].  A large number of linear inequalities are combined, and an integer programming routine is used to show that &amp;lt;math&amp;gt;c&#039;_6 \le 361&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;c&#039;_7 \le 1071&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
A [[genetic algorithm]] has provided the following examples:&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;math&amp;gt;c&#039;_6 \geq 353&amp;lt;/math&amp;gt; (26 examples; [http://twofoldgaze.wordpress.com/2009/03/10/353-element-solution/ here is one])&lt;br /&gt;
* &amp;lt;math&amp;gt;c&#039;_7 \geq 988&amp;lt;/math&amp;gt; [http://twofoldgaze.wordpress.com/2009/03/10/978-element-solution/ Here is the example]&lt;br /&gt;
&lt;br /&gt;
== Variants ==&lt;br /&gt;
&lt;br /&gt;
A lower bound for Moser’s cube &amp;lt;math&amp;gt;[4]^n&amp;lt;/math&amp;gt; (values 1,2,3,4) comes from the following set:  Pick all points where q entries are 2 or 3; and also pick those where q-1 entries are 2 or 3 and an odd number of entries are 1.  This is maximized when q is near n/2, giving a lower bound of&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\binom{n}{n/2} 2^n + \binom{n}{n/2-1} 2^{n-1}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
which is comparable to &amp;lt;math&amp;gt;4^n/\sqrt{n}&amp;lt;/math&amp;gt; by [[Stirling&#039;s formula]].&lt;br /&gt;
&lt;br /&gt;
For k=5 (values 1,2,3,4,5) If A, B, C, D, and E denote the numbers of 1-s, 2-s, 3-s, 4-s and 5-s then the first three points of a geometric line form a 3-term arithmetic progression in A+E+2(B+D)+3C. So, for k=5 we have a similar lower bound for the Moser’s problem as for DHJ k=3, i.e. &amp;lt;math&amp;gt;5^{n - O(\sqrt{\log n})}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
The k=6 version of Moser implies DHJ(3).  Indeed, any k=3 combinatorial line-free set can be &amp;quot;doubled up&amp;quot; into a k=6 geometric line-free set of the same density by pulling back the set from the map &amp;lt;math&amp;gt;\phi: [6]^n \to [3]^n&amp;lt;/math&amp;gt; that maps 1, 2, 3, 4, 5, 6 to 1, 2, 3, 3, 2, 1 respectively; note that this map sends k=6 geometric lines to k=3 combinatorial lines.&lt;/div&gt;</summary>
		<author><name>121.220.134.232</name></author>
	</entry>
	<entry>
		<id>https://michaelnielsen.org/polymath/index.php?title=Moser%27s_cube_problem&amp;diff=937</id>
		<title>Moser&#039;s cube problem</title>
		<link rel="alternate" type="text/html" href="https://michaelnielsen.org/polymath/index.php?title=Moser%27s_cube_problem&amp;diff=937"/>
		<updated>2009-03-16T14:43:19Z</updated>

		<summary type="html">&lt;p&gt;121.220.134.232: /* Variants */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Define a &#039;&#039;Moser set&#039;&#039; to be a subset of &amp;lt;math&amp;gt;[3]^n&amp;lt;/math&amp;gt; which does not contain any [[geometric line]], and let &amp;lt;math&amp;gt;c&#039;_n&amp;lt;/math&amp;gt; denote the size of the largest Moser set in &amp;lt;math&amp;gt;[3]^n&amp;lt;/math&amp;gt;.  The first few values are (see [http://www.research.att.com/~njas/sequences/A003142 OEIS A003142]):&lt;br /&gt;
&lt;br /&gt;
: &amp;lt;math&amp;gt;c&#039;_0 = 1; c&#039;_1 = 2; c&#039;_2 = 6; c&#039;_3 = 16; c&#039;_4 = 43; c&#039;_5 = 124.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Beyond this point, we only have some upper and lower bounds, in particular &amp;lt;math&amp;gt;353 \leq c&#039;_6 \leq 360&amp;lt;/math&amp;gt;; see [http://spreadsheets.google.com/ccc?key=p5T0SktZY9DsU-uZ1tK7VEg this spreadsheet] for the latest bounds.&lt;br /&gt;
&lt;br /&gt;
The best known asymptotic lower bound for &amp;lt;math&amp;gt;c&#039;_n&amp;lt;/math&amp;gt; is&lt;br /&gt;
&lt;br /&gt;
: &amp;lt;math&amp;gt;c&#039;_n \gg 3^n/\sqrt{n}&amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
formed by fixing the number of 2s to a single value near n/3.  Compare this to the DHJ(2) or Sperner limit of &amp;lt;math&amp;gt;2^n/\sqrt{n}&amp;lt;/math&amp;gt;.  Is it possible to do any better?  Note that we have a [[Upper_and_lower_bounds#Asymptotics|significantly better bound]] for the DHJ(3) &amp;lt;math&amp;gt;c_n&amp;lt;/math&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
: &amp;lt;math&amp;gt;c_n \geq 3^{n-O(\sqrt{\log n})}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
A more precise lower bound is&lt;br /&gt;
&lt;br /&gt;
: &amp;lt;math&amp;gt;c&#039;_n \geq \binom{n+1}{q} 2^{n-q}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where q is the nearest integer to &amp;lt;math&amp;gt;n/3&amp;lt;/math&amp;gt;, formed by taking all strings with q 2s, together with all strings with q-1 2s and an odd number of 1s.  This for instance gives the lower bound &amp;lt;math&amp;gt;c&#039;_5 \geq 120&amp;lt;/math&amp;gt;, which compares with the upper bound &amp;lt;math&amp;gt;c&#039;_5 \leq 3 c&#039;_4 = 129&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Using [[DHJ(3)]], we have the upper bound&lt;br /&gt;
&lt;br /&gt;
: &amp;lt;math&amp;gt;c&#039;_n = o(3^n)&amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
but no effective decay rate is known. It would be good to have a combinatorial proof of this fact (which is weaker than [[DHJ(3)]], but implies [[Roth&#039;s theorem]]).&lt;br /&gt;
&lt;br /&gt;
Convenient notation: given a Moser set A in &amp;lt;math&amp;gt;[3]^n&amp;lt;/math&amp;gt;, we let a be the number of points in A with no 2s, b be the number of points in A with one 2, c the number of points with two 2s, etc.  We call (a,b,c,...) the &#039;&#039;statistics&#039;&#039; of A.  Given a slice S of &amp;lt;math&amp;gt;[3]^n&amp;lt;/math&amp;gt;, we let a(S), b(S), etc. denote the statistics of that slice (dropping the fixed coordinates).  Thus for instance if A = {11, 12, 22, 32}, then (a,b,c) = (1,2,1), and (a(1*),b(1*)) = (1,1).&lt;br /&gt;
&lt;br /&gt;
We call a statistic (a,b,c,...) &#039;&#039;attainable&#039;&#039; if it is attained by a Moser set.  We say that an attainable statistic is &#039;&#039;Pareto-optimal&#039;&#039; if it cannot be pointwise dominated by any other attainable statistic (a&#039;,b&#039;,c&#039;,...) (thus &amp;lt;math&amp;gt;a&#039; \geq a&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;b&#039; \geq b&amp;lt;/math&amp;gt;, etc.)  We say that it is &#039;&#039;extremal&#039;&#039; if it is not a convex combination of any other attainable statistic (this is a stronger property than Pareto-optimal).  For the purposes of maximising linear scores of attainable statistics, it suffices to check extremal statistics.&lt;br /&gt;
&lt;br /&gt;
We let &amp;lt;math&amp;gt;(\alpha_0,\alpha_1,\ldots)&amp;lt;/math&amp;gt; be the normalized version of &amp;lt;math&amp;gt;(a,b,\ldots)&amp;lt;/math&amp;gt;, in which one divides the number of points of a certain type in the set by the total number of points in the set.  Thus for instance &amp;lt;math&amp;gt;\alpha_0 = a/2^n, \alpha_1 = b/(n 2^{n-1}), \alpha_3 = c/(\binom{n}{2} 2^{n-2})&amp;lt;/math&amp;gt;, etc., and the &amp;lt;math&amp;gt;\alpha_i&amp;lt;/math&amp;gt; range between 0 and 1.  Averaging arguments show that any linear inequality obeyed by the &amp;lt;math&amp;gt;\alpha_i&amp;lt;/math&amp;gt; at one dimension is automatically inherited by higher dimensions, as are shifted versions of this inequality (in which &amp;lt;math&amp;gt;\alpha_i&amp;lt;/math&amp;gt; is replaced by &amp;lt;math&amp;gt;\alpha_{i+1}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== n=0 ==&lt;br /&gt;
&lt;br /&gt;
We trivially have &amp;lt;math&amp;gt;c&#039;_0=1.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== n=1 ==&lt;br /&gt;
&lt;br /&gt;
We trivially have &amp;lt;math&amp;gt;c&#039;_1=2.&amp;lt;/math&amp;gt;  The Pareto-optimal values of the statistics (a,b) are (1,1) and (2,0); these are also the extremals.  We thus have the inequality &amp;lt;math&amp;gt;a+b \leq 2&amp;lt;/math&amp;gt;, or in normalized notation&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;2\alpha_0 + \alpha_1 \leq 2&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== n=2 ==&lt;br /&gt;
&lt;br /&gt;
We have &amp;lt;math&amp;gt;c&#039;_2 = 6&amp;lt;/math&amp;gt;; the upper bound follows since &amp;lt;math&amp;gt;c&#039;_2 \leq 3 c&#039;_1&amp;lt;/math&amp;gt;, and the lower bound follows by deleting one of the two diagonals from &amp;lt;math&amp;gt;[3]^2&amp;lt;/math&amp;gt; (these are the only extremisers).&lt;br /&gt;
&lt;br /&gt;
The extremiser has statistics (a,b,c) = (2,4,0), which are of course Pareto-optimal.  If c=1 then we must have a, b at most 2 (look at the lines through 22).  This is attainable (e.g. {11, 12, 22, 23, 31}, and so (2,2,1) is another Pareto-optimal statistic.  If a=4, then b and c must be 0, so we get another Pareto-optimal statistic (4,0,0) (attainable by {11, 13, 31, 33} of course).  If a=3, then c=0 and b is at most 2, giving another Pareto-optimal statistic (3,2,0); but this is a convex combination of (4,0,0) and (2,4,0) and is thus not extremal.  Thus the complete set of extremal statistics are&lt;br /&gt;
&lt;br /&gt;
(4,0,0), (2,4,0), (2,2,1).&lt;br /&gt;
&lt;br /&gt;
The sharp linear inequalities obeyed by a,b,c (other than the trivial ones &amp;lt;math&amp;gt;a,b,c \geq 0&amp;lt;/math&amp;gt;) are then&lt;br /&gt;
&lt;br /&gt;
*&amp;lt;math&amp;gt;2a+b+2c \leq 8&amp;lt;/math&amp;gt;&lt;br /&gt;
*&amp;lt;math&amp;gt;b+2c \leq 4&amp;lt;/math&amp;gt;&lt;br /&gt;
*&amp;lt;math&amp;gt;a+2c \leq 4&amp;lt;/math&amp;gt;&lt;br /&gt;
*&amp;lt;math&amp;gt;c \leq 1&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
In normalized notation, we have&lt;br /&gt;
*&amp;lt;math&amp;gt;4\alpha_0 + 2\alpha_1 + \alpha_2 \leq 4&amp;lt;/math&amp;gt;&lt;br /&gt;
*&amp;lt;math&amp;gt;2\alpha_1 + \alpha_2 \leq 2&amp;lt;/math&amp;gt;&lt;br /&gt;
*&amp;lt;math&amp;gt;2\alpha_0 + \alpha_2 \leq 2&amp;lt;/math&amp;gt;&lt;br /&gt;
*&amp;lt;math&amp;gt;\alpha_2 \leq 1&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== n=3 ==&lt;br /&gt;
&lt;br /&gt;
We have &amp;lt;math&amp;gt;c&#039;_3 = 16&amp;lt;/math&amp;gt;.  The lower bound can be seen for instance by taking all the strings with one 2, and half the strings with no 2 (e.g. the strings with an odd number of 1s).  The upper bound can be deduced from the corresponding [[upper and lower bounds]] for &amp;lt;math&amp;gt;c_3 = 18&amp;lt;/math&amp;gt;; the 17-point and 18-point line-free sets each contain a geometric line.&lt;br /&gt;
&lt;br /&gt;
If a Moser set in &amp;lt;math&amp;gt;[3]^3&amp;lt;/math&amp;gt; contains 222, then it can have at most 14 points, since the remaining 26 points in the cube split into 13 antipodal pairs, and at most one of each pair can lie in the set.  By exhausting over the &amp;lt;math&amp;gt;2^{13} = 8192&amp;lt;/math&amp;gt; possibilities, it can be shown that it is impossible for a 14-point set to exist; any Moser set containing 222 must in fact omit at least one antipodal pair completely and thus have only 13 points.  (A human proof of this fact can be [http://www.ma.rhul.ac.uk/~elsholtz/WWW/blog/mosertablogv01.pdf found here].)&lt;br /&gt;
&lt;br /&gt;
The Pareto-optimal statistics are&lt;br /&gt;
&lt;br /&gt;
(3,6,3,1),(4,4,3,1),(4,6,2,1),(2,6,6,0),(3,6,5,0),(4,4,5,0),(3,7,4,0),(4,6,4,0), (3,9,3,0),(4,7,3,0),(5,4,3,0),(4,9,2,0),(5,6,2,0),(6,3,2,0),(3,10,1,0),(5,7,1,0), (6,4,1,0),(4,12,0,0),(5,9,0,0),(6,6,0,0),(7,3,0,0),(8,0,0,0).&lt;br /&gt;
&lt;br /&gt;
A spreadsheet containing these statistics can be [http://spreadsheets.google.com/ccc?key=p5T0SktZY9DuKZ2DyzO9EOg&amp;amp;hl=en# found here].&lt;br /&gt;
&lt;br /&gt;
The extremal statistics are&lt;br /&gt;
&lt;br /&gt;
(3,6,3,1),(4,4,3,1),(4,6,2,1),(2,6,6,0),(4,4,5,0),(4,6,4,0),(4,12,0,0),(8,0,0,0)&lt;br /&gt;
&lt;br /&gt;
The sharp linear bounds are :&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;math&amp;gt;2a+b+2c+4d \leq 22&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;3a+2b+3c+6d \leq 36&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;7a+2b+4c+8d \leq 56&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;6a+2b+3c+6d \leq 48&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;b+c+3d \leq 12&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;a+2c+4d \leq 14&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;5a+4c+8d \leq 40&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;a+4d \leq 8&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;b+6d \leq 12&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;c+3d \leq 6&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;d \leq 1&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In normalized notation,&lt;br /&gt;
* &amp;lt;math&amp;gt;8\alpha_0+ 6\alpha_1 + 6\alpha_2 + 2\alpha_3 \leq 11&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;4\alpha_0+4\alpha_1+3\alpha_2+\alpha_3 \leq 6&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;7\alpha_0+3\alpha_1+3\alpha_2+\alpha_3 \leq 7&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;8\alpha_0+3\alpha_1+3\alpha_2+\alpha_3 \leq 8&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;4\alpha_1+2\alpha_2+\alpha_3 \leq 4&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;4\alpha_0+6\alpha_2+2\alpha_3 \leq 7&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;5\alpha_0+3\alpha_2+\alpha_3 \leq 5&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;2\alpha_0+\alpha_3 \leq 2&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;2\alpha_1+\alpha_3 \leq 2&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;2\alpha_2+\alpha_3 \leq 2&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;\alpha_3 \leq 1&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== n=4 ==&lt;br /&gt;
&lt;br /&gt;
A [http://abel.math.umu.se/~klasm/extremal-moser-n=5-t=3 computer search] has obtained all extremisers to &amp;lt;math&amp;gt;c&#039;_4=43&amp;lt;/math&amp;gt;.  The 42-point solutions can be found [http://abel.math.umu.se/~klasm/moser-n=4-t=3-p=42.gz here].&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof that &amp;lt;math&amp;gt;c&#039;_4 \leq 43&amp;lt;/math&amp;gt;&#039;&#039;&#039;: &lt;br /&gt;
When e=1 (i.e. the 4D set contains 2222) then we have at most 41 points (in fact at most 39) by counting antipodal points, so assume e=0.&lt;br /&gt;
&lt;br /&gt;
Define the score of a 3D slice to be a/4+b/3+c/2+d.  Observe from double counting that the size of a 4D set is the sum of the scores of its eight side slices.&lt;br /&gt;
&lt;br /&gt;
But by [http://spreadsheets.google.com/ccc?key=p5T0SktZY9DuKZ2DyzO9EOg&amp;amp;hl=en looking at the extremals] we see that the largest score is 44/8, attained at only one point, namely when (a,b,c,d) = (2,6,6,0).  So the only way one can have a 44-point set is if all side slices are (2,6,6,0), or equivalently if the whole set has statistics (a,b,c,d,e) = (4,16,24,0,0).  But then we have all the points with two 2s, which means that the four &amp;quot;a&amp;quot; points cannot be separated by Hamming distance 2.  We conclude that we must have an antipodal pair among the &amp;quot;a&amp;quot; points with an odd number of 1s, and an antipodal pair among the &amp;quot;a&amp;quot; points with an even number of 1s.    By the symmetries of the cube, we may take the a-set to then be 1111, 3333, 1113, 3331.  But then the &amp;quot;b&amp;quot; set must exclude both 1112 and 3332, and so can have at most three points in the eight-point set xyz2 (with x,y,z=1,3) rather than four (to get four points one must alternate in a checkerboard pattern).  Adding this to the at most four points of the form xy2z, x2yz, 2xyz we see that b is at most 16, a contradiction. &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Given a subset of &amp;lt;math&amp;gt;[3]^4&amp;lt;/math&amp;gt;, let a be the number of points with no 2s, b be the number of points with 1 2, and so forth.  The quintuple (a,b,c,d,e) thus lies between (0,0,0,0,0) and (16,32,24,8,1).&lt;br /&gt;
&lt;br /&gt;
The 43-point solutions have distributions (a,b,c,d,e) as follows:&lt;br /&gt;
&lt;br /&gt;
* (5,20,18,0,0) [16 solutions]&lt;br /&gt;
* (4,16,23,0,0) [768 solutions]&lt;br /&gt;
* (3,16,24,0,0) [512 solutions]&lt;br /&gt;
* (4,15,24,0,0) [256 solutions]&lt;br /&gt;
&lt;br /&gt;
The 42-point solutions are [http://abel.math.umu.se/~klasm/Moser-42-stat.pdf distributed as follows]:&lt;br /&gt;
&lt;br /&gt;
* (6,24,12,0,0) [[http://abel.math.umu.se/~klasm/moser-n=4-42-12 8 solutions]] &lt;br /&gt;
* (5,20,17,0,0) [576 solutions]&lt;br /&gt;
* (5,19,18,0,0) [384 solutions]&lt;br /&gt;
* (6,16,18,2,0) [[http://abel.math.umu.se/~klasm/moser-n=4-42-e=2 192 solutions]]&lt;br /&gt;
* (4,20,18,0,0) [272 solutions]&lt;br /&gt;
* (5,17,20,0,0) [192 solutions]&lt;br /&gt;
* (5,16,21,0,0) [3584 solutions]&lt;br /&gt;
* (4,17,21,0,0) [768 solutions]&lt;br /&gt;
* (4,16,22,0,0) [26880 solutions]&lt;br /&gt;
* (5,15,22,0,0) [1536 solutions]&lt;br /&gt;
* (4,15,23,0,0) [22272 solutions]&lt;br /&gt;
* (3,16,23,0,0) [15744 solutions]&lt;br /&gt;
* (4,14,24,0,0) [4224 solutions]&lt;br /&gt;
* (3,15,24,0,0) [8704 solutions]&lt;br /&gt;
* (2,16,24,0,0) [896 solutions]&lt;br /&gt;
&lt;br /&gt;
Note how c is usually quite large, and d quite low.&lt;br /&gt;
&lt;br /&gt;
One of the (6,24,12,0,0) solutions is &amp;lt;math&amp;gt;\Gamma_{220}+\Gamma_{202}+\Gamma_{022}+\Gamma_{112}+\Gamma_{211}&amp;lt;/math&amp;gt; (i.e. the set of points containing exactly two 1s, and/or exactly two 3s).  The other seven are reflections of this set.&lt;br /&gt;
&lt;br /&gt;
There are 2,765,200 41-point solutions, [http://abel.math.umu.se/~klasm/solutions-4-t=3-41-moser.gz listed here].  The statistics for such points can be [http://abel.math.umu.se/~klasm/Moser-41-stat.pdf found here].  Noteworthy features of the statistics:&lt;br /&gt;
&lt;br /&gt;
* d is at most 3 (and, except for [http://abel.math.umu.se/~klasm/moser-n=3-t=3-41-d=3.gz 256 exceptional solutions] of the shape (5,15,18,3,0), have d at most 2; here are the [http://abel.math.umu.se/~klasm/moser-n=3-t=3-41-d=2.gz d=2 solutions] and [http://abel.math.umu.se/~klasm/moser-n=3-t=3-41-d=1.gz d=1 solutions])&lt;br /&gt;
* c is at least 6 (and, except for [http://abel.math.umu.se/~klasm/moser-n=3-t=3-41-c=6.gz 16 exceptional solutions] of the shape (7,28,6,0,0), have c at least 11).&lt;br /&gt;
&lt;br /&gt;
Statistics for the 41-point, 42-point, and 43-point solutions can be found [http://spreadsheets.google.com/ccc?key=p5T0SktZY9DuqNcxJ171Bbw&amp;amp;hl=en here].&lt;br /&gt;
&lt;br /&gt;
If a Moser set in &amp;lt;math&amp;gt;[3]^4&amp;lt;/math&amp;gt; contains 2222, then by the n=3 theory, any middle slice (i.e. 2***, *2**, **2*, or ***2) is missing at least one antipodal pair.  But each antipodal pair belongs to at most three middle slices, thus two of the 40 antipodal pairs must be completely missing.  As a consequence, any Moser set containing 2222 can have at most 39 points.&lt;br /&gt;
(A more refined analysis can be found at [http://www.ma.rhul.ac.uk/~elsholtz/WWW/blog/mosertablogv01.pdf found here].)&lt;br /&gt;
&lt;br /&gt;
We have the following inequalities connecting a,b,c,d,e:&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;math&amp;gt;4a+b \leq 64&amp;lt;/math&amp;gt;:  There are 32 lines connecting two &amp;quot;a&amp;quot; points with a &amp;quot;b&amp;quot; point; each &amp;quot;a&amp;quot; point belongs to four of these lines, and each &amp;quot;b&amp;quot; point belongs to one.  But each such line can have at most two points in the set, and the claim follows.&lt;br /&gt;
* This can be refined to &amp;lt;math&amp;gt;4a+b+\frac{2}{3} c \leq 64&amp;lt;/math&amp;gt;: There are 24 planes connecting four &amp;quot;a&amp;quot; points, four &amp;quot;b&amp;quot; points, and one &amp;quot;c&amp;quot; point; each &amp;quot;a&amp;quot; point belongs to six of these, each &amp;quot;b&amp;quot; point belongs to three, and each &amp;quot;c&amp;quot; point belongs to one.  For each of these planes, we have &amp;lt;math&amp;gt;2a + b + 2c \leq 8&amp;lt;/math&amp;gt; from the n=2 theory, and the claim follows.&lt;br /&gt;
* &amp;lt;math&amp;gt;6a+2c \leq 96&amp;lt;/math&amp;gt;:  There are 96 lines connecting two &amp;quot;a&amp;quot; points with a &amp;quot;c&amp;quot; point; each &amp;quot;a&amp;quot; point belongs to six of these lines, and each &amp;quot;c&amp;quot; point belongs to two.  But each such line can have at most two points in the set, and the claim follows.&lt;br /&gt;
* &amp;lt;math&amp;gt;3b+2c \leq 96&amp;lt;/math&amp;gt;:  There are 48 lines connecting two &amp;quot;b&amp;quot; points to a &amp;quot;c&amp;quot; point; each &amp;quot;b&amp;quot; point belongs to three of these points, and each &amp;quot;c&amp;quot; point belongs to two.  But each such line can have at most two points in the set, and the claim follows.&lt;br /&gt;
&lt;br /&gt;
The inequalities for n=3 imply inequalities for n=4.  Indeed, there are eight side slices of &amp;lt;math&amp;gt;[3]^4&amp;lt;/math&amp;gt;; each &amp;quot;a&amp;quot; point belongs to four of these, each &amp;quot;b&amp;quot; point belongs to three, each &amp;quot;c&amp;quot; point belongs to two, and each &amp;quot;d&amp;quot; point belongs to one.  Thus, any inequality of the form&lt;br /&gt;
:&amp;lt;math&amp;gt; \alpha a + \beta b + \gamma c + \delta d \leq M&amp;lt;/math&amp;gt;&lt;br /&gt;
in three dimensions implies the inequality&lt;br /&gt;
:&amp;lt;math&amp;gt; 4 \alpha a + 3 \beta b + 2 \gamma c + \delta d \leq 8M&amp;lt;/math&amp;gt;&lt;br /&gt;
in four dimensions.  Thus we have&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;math&amp;gt;8a+3b+4c+4d \leq 176&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;2a+b+c+d \leq 48&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;14a+3b+4c+4d \leq 244&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;4a+b+c+d \leq 64&amp;lt;/math&amp;gt; &lt;br /&gt;
* &amp;lt;math&amp;gt;3b+2c+3d \leq 96&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;a+c+d \leq 28&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;5a+2c+2d \leq 80&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;a+d \leq 16&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;b+2d \leq 32&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;2c+3d \leq 48&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Cubes also sit diagonally in the 4-dimensional cube.  They may have coordinates xxyz, where xx runs over (11,22,33) or (13,22,31), while y and z run over (1,2,3).  These cubes have a different distribution of 2s than the ordinary slices: (a,b,c,d,e) = (8,8,6,4,1) instead of (8,12,6,1,0) for the side slices and (0,8,12,6,1) for the middle slices.  So a different set of inequalities arise.  It is possible to run through the same procedure as described above for n=3, and the inequalities that arise are &amp;lt;math&amp;gt;2a+b+2c+2d+4e \le 24&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;4a+b+2c+2d+4e \le 32&amp;lt;/math&amp;gt; within the 3D cube, which when averaged becomes &amp;lt;math&amp;gt;4a+b+2c+4d+16e \le 96&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;8a+b+2c+4d+16e \le 128&amp;lt;/math&amp;gt; for the 4D cube.  A spreadsheet containing these statistics can be [http://spreadsheets.google.com/ccc?key=p5T0SktZY9DuKZ2DyzO9EOg&amp;amp;hl=en# found here] on sheet 2.  Other sheets of this spreadsheet contain results for a 3D cube sitting diagonally in a 5D or 6D cube.  Notice the similarity of the equations that arise for the xxxyz, xxyyz and xxxxyz diagonals.&lt;br /&gt;
&lt;br /&gt;
== n=5 ==&lt;br /&gt;
&lt;br /&gt;
Let (A,B,C,D,E,F) be the statistics of a five-dimensional Moser set, thus (A,B,C,D,E,F) varies between (0,0,0,0,0,0) and (32,80,80,40,10,1).&lt;br /&gt;
&lt;br /&gt;
There are several Moser sets with the statistics (4,40,80,0,0,0), which thus have 124 points.  Indeed, one can take&lt;br /&gt;
&lt;br /&gt;
* all points with two 2s;&lt;br /&gt;
* all points with one 2 and an even number of 1s; and&lt;br /&gt;
* (13111),(13113),(31311),(13333). Any two of these four points differ in three places, except for one pair of points that differ in one place.&lt;br /&gt;
&lt;br /&gt;
For the rest of this section, we assume that the Moser set &amp;lt;math&amp;gt;{\mathcal A}&amp;lt;/math&amp;gt; is a 125-point set.&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 1&#039;&#039;&#039;: F=0.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; If F is non-zero, then the Moser set contains 22222, then each of the 121 antipodal pairs can have at most one point in the set, leading to only 122 points. &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 2&#039;&#039;&#039;: Every middle slice of &amp;lt;math&amp;gt;{\mathcal A}&amp;lt;/math&amp;gt; has at most 41 points.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039;  Without loss of generality we may consider the 2**** slice.  There are two cases, depending on the value of c(2****).&lt;br /&gt;
&lt;br /&gt;
Suppose first that c is at least 17; thus there are at least 17 points of the form 222xy, 22xy2, 2xy22, or 2x22y, where the x, y denote 1 or 3.  This gives 36 &amp;quot;xy&amp;quot; wildcards in all in four coordinate slots; by the pigeonhole principle one of the slots sees at least 9 of the wildcards.  By symmetry, we may assume that the second coordinate slot sees at least 9 of these wildcards, thus there are at least 9 points of the form 2x22y, 2x2y2, 2xy22.  The x=1, x=3 cases can absorb at most six of these, thus each of these cases must absorb at least three points, with at least one absorbing at least five.  Let&#039;s say that it&#039;s the x=3 case that absorbs 5; thus &amp;lt;math&amp;gt;d(*1***) \geq 3&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;d(*3***) \geq 5&amp;lt;/math&amp;gt;.  From the n=4 theory this means that the *1*** slice has at most 41 points, and the *3*** slice has at most 40.  Meanwhile, the middle slice has at most 43, leading to 41+41+42=124 points in all.&lt;br /&gt;
&lt;br /&gt;
Now suppose c is less than 16; then by the n=4 theory the middle slice is one of the eight (6,24,12,0,0) sets.  Without loss of generality we may take it to be &amp;lt;math&amp;gt;\Gamma_{220}+\Gamma_{202}+\Gamma_{022}+\Gamma_{112}+\Gamma_{211}&amp;lt;/math&amp;gt;; in particular, the middle slice contains the points 21122 21212 21221 23322 23232 23223.  In particular, the *1*** and *3*** slices have a &amp;quot;d&amp;quot; value of at least three, and so have at most 41 points.  If the *2*** slice has at most 42 points, then we are at 41+42+41=124 points as needed, but if we have 43 or more, then we are back in the first case (as &amp;lt;math&amp;gt;c(*2***) \geq 17&amp;lt;/math&amp;gt;) after permuting the indices.&lt;br /&gt;
&amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Since 125=41+41+43, we thus have&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Corollary 1&#039;&#039;&#039;: Every side slice of &amp;lt;math&amp;gt;{\mathcal A}&amp;lt;/math&amp;gt; has at least 41 points.  If one side slice does have 41 points, then the other has 43.&lt;br /&gt;
&lt;br /&gt;
Combining this with the n=4 statistics, we conclude&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Corollary 2&#039;&#039;&#039;: Every side slice of &amp;lt;math&amp;gt;{\mathcal A}&amp;lt;/math&amp;gt; has e=0, and &amp;lt;math&amp;gt;d \leq 3&amp;lt;/math&amp;gt;.  Given two opposite side slices, e.g. 1**** and 3****, we have &amp;lt;math&amp;gt;d(1****)+d(3****) \leq 4&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Corollary 3&#039;&#039;&#039;: E=0.&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Corollary 4&#039;&#039;&#039;: Any middle slice has a &amp;quot;c&amp;quot; value of at most 8.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; Let&#039;s work with the 2**** slice.  By Corollary 2, there are at most four contributions to c(2****) of the form 21*** or 23***, and similarly for the other three positions.  Double counting then gives the claim. &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 3&#039;&#039;&#039;: &amp;lt;math&amp;gt;2B+C \leq 160&amp;lt;/math&amp;gt;.   &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039;: There are 160 lines connecting one &amp;quot;C&amp;quot; point to two &amp;quot;B&amp;quot; points (e.g. 11112, 11122, 11132); each &amp;quot;C&amp;quot; point lies in two of these, and each &amp;quot;B&amp;quot; point lies on four.  A Moser set can have at most two points out of each of these lines.  Double counting then gives the claim.  &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 4&#039;&#039;&#039; Given m A-points with &amp;lt;math&amp;gt;m \geq 5&amp;lt;/math&amp;gt;, there exists at least m-4 pairs (a,b) of such A-points with Hamming distance exactly two (i.e. b differs from a in exactly two places).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; It suffices to check this for m=5, since the case of larger m then follows by locating a pair, removing a point that contributes to that pair, and using the induction hypothesis.  Given 5 A-points, we may assume by the pigeonhole principle and symmetry that at least three of them have an odd number of 1s.  Suppose 11111 is one of the points, and that no pair has Hamming distance 2. All points with two 3s are excluded, so the only points allowed with an odd number of 1s are those with four 3s. But all those points differ from each other in two positions, so at most one of them is allowed.  &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Corollary 5&#039;&#039;&#039; &amp;lt;math&amp;gt;C \leq 79&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039;: Suppose for contradiction that C=80, then D=0 and &amp;lt;math&amp;gt;B \leq 40&amp;lt;/math&amp;gt;.  From Lemma 4 we also see that A cannot exceed 5, leading to the contradiction.&lt;br /&gt;
&amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Define the &#039;&#039;&#039;score&#039;&#039;&#039; of a Moser set in &amp;lt;math&amp;gt;[3]^4&amp;lt;/math&amp;gt; to be the quantity &amp;lt;math&amp;gt;a + 5b/4 + 5c/3 + 5d/2 + 5e&amp;lt;/math&amp;gt;.  Double-counting (and Lemma 2) gives&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 5&#039;&#039;&#039;  The total score of all the ten side-slices of &amp;lt;math&amp;gt;{\mathcal A}&amp;lt;/math&amp;gt; is equal to &amp;lt;math&amp;gt;5|{\mathcal A}| = 5 \times 125&amp;lt;/math&amp;gt;.  In particular, there exists a pair of opposite side-slices whose scores add up to at least 125.&lt;br /&gt;
&lt;br /&gt;
By Lemma 5 and symmetry, we may assume that the 1**** and 3**** slices have score adding up to at least 125.  By Lemma 2, the 2**** slice has at most 41 points, which imply that the 1**** and 3**** have 41, 42, or 43 points.  From the [http://spreadsheets.google.com/ccc?key=p5T0SktZY9DuqNcxJ171Bbw&amp;amp;hl=en n=4 statistics] we know that all 41-point, 42-point, 43-point slices have score less than 62, with the following exceptions:&lt;br /&gt;
&lt;br /&gt;
# (2,16,24,0,0) [42 points, score: 62]&lt;br /&gt;
# (4,16,23,0,0) [43 points, score: 62 1/3]&lt;br /&gt;
# (4,15,24,0,0) [43 points, score: 62 3/4]&lt;br /&gt;
# (3,16,24,0,0) [43 points, score: 63]&lt;br /&gt;
&lt;br /&gt;
Thus the 1**** and 3**** slices must from the above list.  Furthermore, if one of the slices is of type 1, then the other must be of type 4, and if one slice is of type 2, then the other must be of type 3 or 4.&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 6&#039;&#039;&#039; There exists one cut in which the side slices have total score strictly greater than 125 (i.e. they thus involve only Type 2, Type 3, and Type 4 slices, with at least one side slice not equal to Type 2, and the cut here is of the form 43+39+43).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; If not, then all cuts have side slices exactly equal to 125, which by the above table implies that one is Type 1 and one is Type 4, in particular all side slices have c=24.  But this forces C=80, contradicting Corollary 5. &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Adding up the corners we conclude&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Corollary 6&#039;&#039;&#039; &amp;lt;math&amp;gt;6 \leq A \leq 8&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 7&#039;&#039;&#039; &amp;lt;math&amp;gt;D=0&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; Firstly, from Lemma 6 we have a cut in which the two side slices are omitting at most one C-point between them (and have no D-point), which forces the middle slice to have at most one D-point; thus D is at most 1.&lt;br /&gt;
&lt;br /&gt;
Now suppose instead that D=1 (e.g. if 11222 was in the set); then there would be two choices of coordinates in which one of the side slices would have d=1 (e.g. 1**** and *1****). But the [http://spreadsheets.google.com/ccc?key=p5T0SktZY9DuqNcxJ171Bbw&amp;amp;hl=en n=4 statistics] show that such slices have a score of at most 59 7/12, so that the total score from those two coordinates is at most 63 + 59 7/12 = 122 7/12. On the other hand, the other three slices have a net score of at most 63+63 = 126. This averages out to at most 124.633... &amp;lt; 125, a contradiction.  &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Corollary 7&#039;&#039;&#039; Every middle slice has at most 40 points.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; From Lemma 7 we see that the middle slice must have c=0, but from the n=4 statistics this is not possible for any slice of size 41 or higher (alternatively, one can use the inequalities &amp;lt;math&amp;gt;4a+b \leq 64&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;b \leq 32&amp;lt;/math&amp;gt;). &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Each middle slice now has 39 or 40 points, with c=d=e=0, and so from the inequalities &amp;lt;math&amp;gt;4a+b \leq 64&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;b \leq 32&amp;lt;/math&amp;gt; must have statistics (8,32,0,0,0),(7,32,0,0,0), or (8,31,0,0,0).  In particular the &amp;quot;a&amp;quot; index of the middle slices is at most 8.  Summing over all middle slices we conclude&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 9&#039;&#039;&#039; B is at most 40.&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 10&#039;&#039;&#039; C is equal to 78 or 79.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; By Corollary 5, it suffices to show that &amp;lt;math&amp;gt;C \geq 78&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
As 125=43+39+43, we see that every center slice must have at least 39 points. By Lemma 2 and Lemma 7 the center slice has c=d=e=0, thus the center slice has a+b &amp;gt;= 39.  On the other hand, from the n=4 theory we have 4a+b &amp;lt;= 64, which forces b &amp;gt;= 31.&lt;br /&gt;
&lt;br /&gt;
By double counting, we see that 2C is equal to the sum of the b&#039;s of all the five center slices.  Thus C &amp;gt;= 5*31/2 = 77.5 and the claim follows.  &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
From Lemmas 9 and 10 we see that &amp;lt;math&amp;gt;B+C \leq 119&amp;lt;/math&amp;gt;, and thus &amp;lt;math&amp;gt;A \geq 6&amp;lt;/math&amp;gt;.  Also, if &amp;lt;math&amp;gt;A \geq 7&amp;lt;/math&amp;gt;, then by Lemma 4 we have at least three pairs of A points with Hamming distance 2.  At most two of these pairs eliminate the same C point, so we would have C=78 in that case.  &lt;br /&gt;
&lt;br /&gt;
Putting all the above facts together, we see that (A,B,C,D,E,F) must be one of the following triples:&lt;br /&gt;
&lt;br /&gt;
* (6,40,79,0,0,0)&lt;br /&gt;
* (7,40,78,0,0,0)&lt;br /&gt;
* (8,39,78,0,0,0)&lt;br /&gt;
&lt;br /&gt;
All three cases can be eliminated, giving &amp;lt;math&amp;gt;c&#039;_5=124&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== Elimination of (6,40,79,0,0,0) ===&lt;br /&gt;
&lt;br /&gt;
Look at the 6 A points.  From Lemma 4 we have at least two pairs (a,b), (c,d) of A-points that have Hamming separation 2.&lt;br /&gt;
&lt;br /&gt;
Now look at the midpoints of these two pairs; these midpoints are C-points cannot lie in the set.  But we have exactly one C-point missing from the set, thus the midpoints must be the same.  By symmetry, we may thus assume that the two pairs are (11111,11133) and (11113,11131).  Thus 11111,11133, 11113, 11131 are in the set, and so every C-point other than 11122 is in the set.  On the other hand, the B-points 11121, 11123, 11112, 11132 lie outside the set.&lt;br /&gt;
&lt;br /&gt;
At most one of 11312, 11332 lie in the set (since 11322 lies in the set).   Suppose that 11312 lies outside the set, then we have a pair (xy1z2, xy3z2) with x,y,z = 1,3 that is totally omitted from the set, namely (11112,11312).  On the other hand, every other pair of this form can have at most point in the set, thus there are at most seven points in the set of the form (xyzw2) with x,y,z,w = 1,3.  Similarly there are at most 8 points of the form xyz2w, or of xy2zw, x2yzw, 2xyzw, leading to at most 39 B-points in all, contradiction.&lt;br /&gt;
&lt;br /&gt;
=== Elimination of (7,40,78,0,0,0) ===&lt;br /&gt;
&lt;br /&gt;
By Lemma 4, we have at least three pairs of A-points of distance two apart that lie in the set.&lt;br /&gt;
The midpoints of these pairs are C-points that do not lie in the set; but there are only two such C-points, thus two pairs must have the same midpoint, so we may assume as before that 111xy lies in the set for x,y=1,3, which implies that 1112* and 111*2 lie outside the set.&lt;br /&gt;
&lt;br /&gt;
Now consider the 160 lines between 2 B points and one C point (cf. Lemma 3).  The sum of all the points in each such line (counting multiplicity) is 4B+2C = 316.  On the other hand, every one of the 160 lines can have at most two points, and four of these lines (namely 1112*, 111*2) have no points.  Thus all the other lines must have exactly two points.  &lt;br /&gt;
&lt;br /&gt;
We know that the C-point 11122 is missing from the set; there is one other missing C-point.  Since 1112x, 111x2 lie outside the set, we conclude from the previous paragraph that 1132x, 113x2 and 1312x, 131x2 lie in the set.  Taking midpoints we conclude that 11322 and 13122 lie outside the set.  But this is now three C-points missing (together with 11122), a contradiction.&lt;br /&gt;
&lt;br /&gt;
=== Elimination of (8,39,78,0,0,0) ===&lt;br /&gt;
&lt;br /&gt;
By Lemma 4 we have at least four pairs of A-points of distance two apart that lie in the set. The midpoints of these pairs are C-points that do not lie in the set; but there are only two such C-points, thus two pairs (a,b), (c,d) must have the same midpoint p, and the other two pairs (a&#039;,b&#039;), (c&#039;,d&#039;) must also have the same midpoint p&#039;.  (Note that every C-point is the midpoint of at most two such pairs.)&lt;br /&gt;
&lt;br /&gt;
Now consider the 160 lines between 2 B points and one C point (cf. Lemma 3).  The sum of all the points in each such line (counting multiplicity) is 4B+2C = 312.  Every one of the 160 lines can have at most two points, and four of these (those in the plane of (a,b,c,d) or of (a&#039;,b&#039;,c&#039;,d&#039;) have no points.  Thus all other lines must have exactly two points.&lt;br /&gt;
&lt;br /&gt;
Without loss of generality we have (a,b)=(11111,11133), (c,d) = (11113,11131), thus p = 11122.  By permuting the first three indices, we may assume that p&#039; is not of the form x2y2z, x2yz2, xy22z, xy2z2.  Then 1112x lies outside the set and 1122x lies in the set, so by the above paragraph 1132x lies in the set; similarly for 113x2, 1312x, 131x2.  This implies that 13122, 11322 lie outside the set, but this (together with 11122) shows that at least three C-points are missing, a contradiction.&lt;br /&gt;
&lt;br /&gt;
== General n ==&lt;br /&gt;
&lt;br /&gt;
General solution for &amp;lt;math&amp;gt;c&#039;_N&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* q 2s, all points from A(N-q,1)&lt;br /&gt;
* q-1 2s, points from A(N-q+1,2)&lt;br /&gt;
* q-2 2s, points from A(N-q+2,3)&lt;br /&gt;
* etc.&lt;br /&gt;
&lt;br /&gt;
where A(m,d) is a subset of &amp;lt;math&amp;gt;[1,3]^m&amp;lt;/math&amp;gt; for which any two points differ from each other in at least d places.&lt;br /&gt;
&lt;br /&gt;
Mathworld’s entry on error-correcting codes suggests it might be NP-complete to find the size of A(m,d) in general.&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;math&amp;gt;|A(m,1)| = 2^m&amp;lt;/math&amp;gt; because it includes all points in &amp;lt;math&amp;gt;[1,3]^m&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;|A(m,2)| = 2^{m-1}&amp;lt;/math&amp;gt; because it can include all points in &amp;lt;math&amp;gt;[1,3]^m&amp;lt;/math&amp;gt; with an odd number of 1s&lt;br /&gt;
&lt;br /&gt;
Here are some [[Maple calculations]].&lt;br /&gt;
&lt;br /&gt;
A [[genetic algorithm]] has provided the following examples:&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;math&amp;gt;c&#039;_6 \geq 353&amp;lt;/math&amp;gt; (26 examples; [http://twofoldgaze.wordpress.com/2009/03/10/353-element-solution/ here is one])&lt;br /&gt;
* &amp;lt;math&amp;gt;c&#039;_7 \geq 988&amp;lt;/math&amp;gt; [http://twofoldgaze.wordpress.com/2009/03/10/978-element-solution/ Here is the example]&lt;br /&gt;
&lt;br /&gt;
== Variants ==&lt;br /&gt;
&lt;br /&gt;
A lower bound for Moser’s cube &amp;lt;math&amp;gt;[4]^n&amp;lt;/math&amp;gt; (values 1,2,3,4) comes from the following set:  Pick all points where q entries are 2 or 3; and also pick those where q-1 entries are 2 or 3 and an odd number of entries are 1.  This is maximized when q is near n/2, giving a lower bound of&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\binom{n}{n/2} 2^n + \binom{n}{n/2-1} 2^{n-1}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
which is comparable to &amp;lt;math&amp;gt;4^n/\sqrt{n}&amp;lt;/math&amp;gt; by [[Stirling&#039;s formula]].&lt;br /&gt;
&lt;br /&gt;
For k=5 (values 1,2,3,4,5) If A, B, C, D, and E denote the numbers of 1-s, 2-s, 3-s, 4-s and 5-s then the first three points of a geometric line form a 3-term arithmetic progression in A+E+2(B+D)+3C. So, for k=5 we have a similar lower bound for the Moser’s problem as for DHJ k=3, i.e. &amp;lt;math&amp;gt;5^{n - O(\sqrt{\log n})}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
The k=6 version of Moser implies DHJ(3).  Indeed, any k=3 combinatorial line-free set can be &amp;quot;doubled up&amp;quot; into a k=6 geometric line-free set of the same density by pulling back the set from the map &amp;lt;math&amp;gt;\phi: [6]^n \to [3]^n&amp;lt;/math&amp;gt; that maps 1, 2, 3, 4, 5, 6 to 1, 2, 3, 3, 2, 1 respectively; note that this map sends k=6 geometric lines to k=3 combinatorial lines.&lt;/div&gt;</summary>
		<author><name>121.220.134.232</name></author>
	</entry>
	<entry>
		<id>https://michaelnielsen.org/polymath/index.php?title=Moser%27s_cube_problem&amp;diff=936</id>
		<title>Moser&#039;s cube problem</title>
		<link rel="alternate" type="text/html" href="https://michaelnielsen.org/polymath/index.php?title=Moser%27s_cube_problem&amp;diff=936"/>
		<updated>2009-03-16T14:41:48Z</updated>

		<summary type="html">&lt;p&gt;121.220.134.232: /* n=5 */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Define a &#039;&#039;Moser set&#039;&#039; to be a subset of &amp;lt;math&amp;gt;[3]^n&amp;lt;/math&amp;gt; which does not contain any [[geometric line]], and let &amp;lt;math&amp;gt;c&#039;_n&amp;lt;/math&amp;gt; denote the size of the largest Moser set in &amp;lt;math&amp;gt;[3]^n&amp;lt;/math&amp;gt;.  The first few values are (see [http://www.research.att.com/~njas/sequences/A003142 OEIS A003142]):&lt;br /&gt;
&lt;br /&gt;
: &amp;lt;math&amp;gt;c&#039;_0 = 1; c&#039;_1 = 2; c&#039;_2 = 6; c&#039;_3 = 16; c&#039;_4 = 43; c&#039;_5 = 124.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Beyond this point, we only have some upper and lower bounds, in particular &amp;lt;math&amp;gt;353 \leq c&#039;_6 \leq 360&amp;lt;/math&amp;gt;; see [http://spreadsheets.google.com/ccc?key=p5T0SktZY9DsU-uZ1tK7VEg this spreadsheet] for the latest bounds.&lt;br /&gt;
&lt;br /&gt;
The best known asymptotic lower bound for &amp;lt;math&amp;gt;c&#039;_n&amp;lt;/math&amp;gt; is&lt;br /&gt;
&lt;br /&gt;
: &amp;lt;math&amp;gt;c&#039;_n \gg 3^n/\sqrt{n}&amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
formed by fixing the number of 2s to a single value near n/3.  Compare this to the DHJ(2) or Sperner limit of &amp;lt;math&amp;gt;2^n/\sqrt{n}&amp;lt;/math&amp;gt;.  Is it possible to do any better?  Note that we have a [[Upper_and_lower_bounds#Asymptotics|significantly better bound]] for the DHJ(3) &amp;lt;math&amp;gt;c_n&amp;lt;/math&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
: &amp;lt;math&amp;gt;c_n \geq 3^{n-O(\sqrt{\log n})}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
A more precise lower bound is&lt;br /&gt;
&lt;br /&gt;
: &amp;lt;math&amp;gt;c&#039;_n \geq \binom{n+1}{q} 2^{n-q}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where q is the nearest integer to &amp;lt;math&amp;gt;n/3&amp;lt;/math&amp;gt;, formed by taking all strings with q 2s, together with all strings with q-1 2s and an odd number of 1s.  This for instance gives the lower bound &amp;lt;math&amp;gt;c&#039;_5 \geq 120&amp;lt;/math&amp;gt;, which compares with the upper bound &amp;lt;math&amp;gt;c&#039;_5 \leq 3 c&#039;_4 = 129&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Using [[DHJ(3)]], we have the upper bound&lt;br /&gt;
&lt;br /&gt;
: &amp;lt;math&amp;gt;c&#039;_n = o(3^n)&amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
but no effective decay rate is known. It would be good to have a combinatorial proof of this fact (which is weaker than [[DHJ(3)]], but implies [[Roth&#039;s theorem]]).&lt;br /&gt;
&lt;br /&gt;
Convenient notation: given a Moser set A in &amp;lt;math&amp;gt;[3]^n&amp;lt;/math&amp;gt;, we let a be the number of points in A with no 2s, b be the number of points in A with one 2, c the number of points with two 2s, etc.  We call (a,b,c,...) the &#039;&#039;statistics&#039;&#039; of A.  Given a slice S of &amp;lt;math&amp;gt;[3]^n&amp;lt;/math&amp;gt;, we let a(S), b(S), etc. denote the statistics of that slice (dropping the fixed coordinates).  Thus for instance if A = {11, 12, 22, 32}, then (a,b,c) = (1,2,1), and (a(1*),b(1*)) = (1,1).&lt;br /&gt;
&lt;br /&gt;
We call a statistic (a,b,c,...) &#039;&#039;attainable&#039;&#039; if it is attained by a Moser set.  We say that an attainable statistic is &#039;&#039;Pareto-optimal&#039;&#039; if it cannot be pointwise dominated by any other attainable statistic (a&#039;,b&#039;,c&#039;,...) (thus &amp;lt;math&amp;gt;a&#039; \geq a&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;b&#039; \geq b&amp;lt;/math&amp;gt;, etc.)  We say that it is &#039;&#039;extremal&#039;&#039; if it is not a convex combination of any other attainable statistic (this is a stronger property than Pareto-optimal).  For the purposes of maximising linear scores of attainable statistics, it suffices to check extremal statistics.&lt;br /&gt;
&lt;br /&gt;
We let &amp;lt;math&amp;gt;(\alpha_0,\alpha_1,\ldots)&amp;lt;/math&amp;gt; be the normalized version of &amp;lt;math&amp;gt;(a,b,\ldots)&amp;lt;/math&amp;gt;, in which one divides the number of points of a certain type in the set by the total number of points in the set.  Thus for instance &amp;lt;math&amp;gt;\alpha_0 = a/2^n, \alpha_1 = b/(n 2^{n-1}), \alpha_3 = c/(\binom{n}{2} 2^{n-2})&amp;lt;/math&amp;gt;, etc., and the &amp;lt;math&amp;gt;\alpha_i&amp;lt;/math&amp;gt; range between 0 and 1.  Averaging arguments show that any linear inequality obeyed by the &amp;lt;math&amp;gt;\alpha_i&amp;lt;/math&amp;gt; at one dimension is automatically inherited by higher dimensions, as are shifted versions of this inequality (in which &amp;lt;math&amp;gt;\alpha_i&amp;lt;/math&amp;gt; is replaced by &amp;lt;math&amp;gt;\alpha_{i+1}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== n=0 ==&lt;br /&gt;
&lt;br /&gt;
We trivially have &amp;lt;math&amp;gt;c&#039;_0=1.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== n=1 ==&lt;br /&gt;
&lt;br /&gt;
We trivially have &amp;lt;math&amp;gt;c&#039;_1=2.&amp;lt;/math&amp;gt;  The Pareto-optimal values of the statistics (a,b) are (1,1) and (2,0); these are also the extremals.  We thus have the inequality &amp;lt;math&amp;gt;a+b \leq 2&amp;lt;/math&amp;gt;, or in normalized notation&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;2\alpha_0 + \alpha_1 \leq 2&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== n=2 ==&lt;br /&gt;
&lt;br /&gt;
We have &amp;lt;math&amp;gt;c&#039;_2 = 6&amp;lt;/math&amp;gt;; the upper bound follows since &amp;lt;math&amp;gt;c&#039;_2 \leq 3 c&#039;_1&amp;lt;/math&amp;gt;, and the lower bound follows by deleting one of the two diagonals from &amp;lt;math&amp;gt;[3]^2&amp;lt;/math&amp;gt; (these are the only extremisers).&lt;br /&gt;
&lt;br /&gt;
The extremiser has statistics (a,b,c) = (2,4,0), which are of course Pareto-optimal.  If c=1 then we must have a, b at most 2 (look at the lines through 22).  This is attainable (e.g. {11, 12, 22, 23, 31}, and so (2,2,1) is another Pareto-optimal statistic.  If a=4, then b and c must be 0, so we get another Pareto-optimal statistic (4,0,0) (attainable by {11, 13, 31, 33} of course).  If a=3, then c=0 and b is at most 2, giving another Pareto-optimal statistic (3,2,0); but this is a convex combination of (4,0,0) and (2,4,0) and is thus not extremal.  Thus the complete set of extremal statistics are&lt;br /&gt;
&lt;br /&gt;
(4,0,0), (2,4,0), (2,2,1).&lt;br /&gt;
&lt;br /&gt;
The sharp linear inequalities obeyed by a,b,c (other than the trivial ones &amp;lt;math&amp;gt;a,b,c \geq 0&amp;lt;/math&amp;gt;) are then&lt;br /&gt;
&lt;br /&gt;
*&amp;lt;math&amp;gt;2a+b+2c \leq 8&amp;lt;/math&amp;gt;&lt;br /&gt;
*&amp;lt;math&amp;gt;b+2c \leq 4&amp;lt;/math&amp;gt;&lt;br /&gt;
*&amp;lt;math&amp;gt;a+2c \leq 4&amp;lt;/math&amp;gt;&lt;br /&gt;
*&amp;lt;math&amp;gt;c \leq 1&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
In normalized notation, we have&lt;br /&gt;
*&amp;lt;math&amp;gt;4\alpha_0 + 2\alpha_1 + \alpha_2 \leq 4&amp;lt;/math&amp;gt;&lt;br /&gt;
*&amp;lt;math&amp;gt;2\alpha_1 + \alpha_2 \leq 2&amp;lt;/math&amp;gt;&lt;br /&gt;
*&amp;lt;math&amp;gt;2\alpha_0 + \alpha_2 \leq 2&amp;lt;/math&amp;gt;&lt;br /&gt;
*&amp;lt;math&amp;gt;\alpha_2 \leq 1&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== n=3 ==&lt;br /&gt;
&lt;br /&gt;
We have &amp;lt;math&amp;gt;c&#039;_3 = 16&amp;lt;/math&amp;gt;.  The lower bound can be seen for instance by taking all the strings with one 2, and half the strings with no 2 (e.g. the strings with an odd number of 1s).  The upper bound can be deduced from the corresponding [[upper and lower bounds]] for &amp;lt;math&amp;gt;c_3 = 18&amp;lt;/math&amp;gt;; the 17-point and 18-point line-free sets each contain a geometric line.&lt;br /&gt;
&lt;br /&gt;
If a Moser set in &amp;lt;math&amp;gt;[3]^3&amp;lt;/math&amp;gt; contains 222, then it can have at most 14 points, since the remaining 26 points in the cube split into 13 antipodal pairs, and at most one of each pair can lie in the set.  By exhausting over the &amp;lt;math&amp;gt;2^{13} = 8192&amp;lt;/math&amp;gt; possibilities, it can be shown that it is impossible for a 14-point set to exist; any Moser set containing 222 must in fact omit at least one antipodal pair completely and thus have only 13 points.  (A human proof of this fact can be [http://www.ma.rhul.ac.uk/~elsholtz/WWW/blog/mosertablogv01.pdf found here].)&lt;br /&gt;
&lt;br /&gt;
The Pareto-optimal statistics are&lt;br /&gt;
&lt;br /&gt;
(3,6,3,1),(4,4,3,1),(4,6,2,1),(2,6,6,0),(3,6,5,0),(4,4,5,0),(3,7,4,0),(4,6,4,0), (3,9,3,0),(4,7,3,0),(5,4,3,0),(4,9,2,0),(5,6,2,0),(6,3,2,0),(3,10,1,0),(5,7,1,0), (6,4,1,0),(4,12,0,0),(5,9,0,0),(6,6,0,0),(7,3,0,0),(8,0,0,0).&lt;br /&gt;
&lt;br /&gt;
A spreadsheet containing these statistics can be [http://spreadsheets.google.com/ccc?key=p5T0SktZY9DuKZ2DyzO9EOg&amp;amp;hl=en# found here].&lt;br /&gt;
&lt;br /&gt;
The extremal statistics are&lt;br /&gt;
&lt;br /&gt;
(3,6,3,1),(4,4,3,1),(4,6,2,1),(2,6,6,0),(4,4,5,0),(4,6,4,0),(4,12,0,0),(8,0,0,0)&lt;br /&gt;
&lt;br /&gt;
The sharp linear bounds are :&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;math&amp;gt;2a+b+2c+4d \leq 22&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;3a+2b+3c+6d \leq 36&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;7a+2b+4c+8d \leq 56&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;6a+2b+3c+6d \leq 48&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;b+c+3d \leq 12&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;a+2c+4d \leq 14&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;5a+4c+8d \leq 40&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;a+4d \leq 8&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;b+6d \leq 12&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;c+3d \leq 6&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;d \leq 1&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In normalized notation,&lt;br /&gt;
* &amp;lt;math&amp;gt;8\alpha_0+ 6\alpha_1 + 6\alpha_2 + 2\alpha_3 \leq 11&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;4\alpha_0+4\alpha_1+3\alpha_2+\alpha_3 \leq 6&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;7\alpha_0+3\alpha_1+3\alpha_2+\alpha_3 \leq 7&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;8\alpha_0+3\alpha_1+3\alpha_2+\alpha_3 \leq 8&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;4\alpha_1+2\alpha_2+\alpha_3 \leq 4&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;4\alpha_0+6\alpha_2+2\alpha_3 \leq 7&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;5\alpha_0+3\alpha_2+\alpha_3 \leq 5&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;2\alpha_0+\alpha_3 \leq 2&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;2\alpha_1+\alpha_3 \leq 2&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;2\alpha_2+\alpha_3 \leq 2&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;\alpha_3 \leq 1&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== n=4 ==&lt;br /&gt;
&lt;br /&gt;
A [http://abel.math.umu.se/~klasm/extremal-moser-n=5-t=3 computer search] has obtained all extremisers to &amp;lt;math&amp;gt;c&#039;_4=43&amp;lt;/math&amp;gt;.  The 42-point solutions can be found [http://abel.math.umu.se/~klasm/moser-n=4-t=3-p=42.gz here].&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof that &amp;lt;math&amp;gt;c&#039;_4 \leq 43&amp;lt;/math&amp;gt;&#039;&#039;&#039;: &lt;br /&gt;
When e=1 (i.e. the 4D set contains 2222) then we have at most 41 points (in fact at most 39) by counting antipodal points, so assume e=0.&lt;br /&gt;
&lt;br /&gt;
Define the score of a 3D slice to be a/4+b/3+c/2+d.  Observe from double counting that the size of a 4D set is the sum of the scores of its eight side slices.&lt;br /&gt;
&lt;br /&gt;
But by [http://spreadsheets.google.com/ccc?key=p5T0SktZY9DuKZ2DyzO9EOg&amp;amp;hl=en looking at the extremals] we see that the largest score is 44/8, attained at only one point, namely when (a,b,c,d) = (2,6,6,0).  So the only way one can have a 44-point set is if all side slices are (2,6,6,0), or equivalently if the whole set has statistics (a,b,c,d,e) = (4,16,24,0,0).  But then we have all the points with two 2s, which means that the four &amp;quot;a&amp;quot; points cannot be separated by Hamming distance 2.  We conclude that we must have an antipodal pair among the &amp;quot;a&amp;quot; points with an odd number of 1s, and an antipodal pair among the &amp;quot;a&amp;quot; points with an even number of 1s.    By the symmetries of the cube, we may take the a-set to then be 1111, 3333, 1113, 3331.  But then the &amp;quot;b&amp;quot; set must exclude both 1112 and 3332, and so can have at most three points in the eight-point set xyz2 (with x,y,z=1,3) rather than four (to get four points one must alternate in a checkerboard pattern).  Adding this to the at most four points of the form xy2z, x2yz, 2xyz we see that b is at most 16, a contradiction. &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Given a subset of &amp;lt;math&amp;gt;[3]^4&amp;lt;/math&amp;gt;, let a be the number of points with no 2s, b be the number of points with 1 2, and so forth.  The quintuple (a,b,c,d,e) thus lies between (0,0,0,0,0) and (16,32,24,8,1).&lt;br /&gt;
&lt;br /&gt;
The 43-point solutions have distributions (a,b,c,d,e) as follows:&lt;br /&gt;
&lt;br /&gt;
* (5,20,18,0,0) [16 solutions]&lt;br /&gt;
* (4,16,23,0,0) [768 solutions]&lt;br /&gt;
* (3,16,24,0,0) [512 solutions]&lt;br /&gt;
* (4,15,24,0,0) [256 solutions]&lt;br /&gt;
&lt;br /&gt;
The 42-point solutions are [http://abel.math.umu.se/~klasm/Moser-42-stat.pdf distributed as follows]:&lt;br /&gt;
&lt;br /&gt;
* (6,24,12,0,0) [[http://abel.math.umu.se/~klasm/moser-n=4-42-12 8 solutions]] &lt;br /&gt;
* (5,20,17,0,0) [576 solutions]&lt;br /&gt;
* (5,19,18,0,0) [384 solutions]&lt;br /&gt;
* (6,16,18,2,0) [[http://abel.math.umu.se/~klasm/moser-n=4-42-e=2 192 solutions]]&lt;br /&gt;
* (4,20,18,0,0) [272 solutions]&lt;br /&gt;
* (5,17,20,0,0) [192 solutions]&lt;br /&gt;
* (5,16,21,0,0) [3584 solutions]&lt;br /&gt;
* (4,17,21,0,0) [768 solutions]&lt;br /&gt;
* (4,16,22,0,0) [26880 solutions]&lt;br /&gt;
* (5,15,22,0,0) [1536 solutions]&lt;br /&gt;
* (4,15,23,0,0) [22272 solutions]&lt;br /&gt;
* (3,16,23,0,0) [15744 solutions]&lt;br /&gt;
* (4,14,24,0,0) [4224 solutions]&lt;br /&gt;
* (3,15,24,0,0) [8704 solutions]&lt;br /&gt;
* (2,16,24,0,0) [896 solutions]&lt;br /&gt;
&lt;br /&gt;
Note how c is usually quite large, and d quite low.&lt;br /&gt;
&lt;br /&gt;
One of the (6,24,12,0,0) solutions is &amp;lt;math&amp;gt;\Gamma_{220}+\Gamma_{202}+\Gamma_{022}+\Gamma_{112}+\Gamma_{211}&amp;lt;/math&amp;gt; (i.e. the set of points containing exactly two 1s, and/or exactly two 3s).  The other seven are reflections of this set.&lt;br /&gt;
&lt;br /&gt;
There are 2,765,200 41-point solutions, [http://abel.math.umu.se/~klasm/solutions-4-t=3-41-moser.gz listed here].  The statistics for such points can be [http://abel.math.umu.se/~klasm/Moser-41-stat.pdf found here].  Noteworthy features of the statistics:&lt;br /&gt;
&lt;br /&gt;
* d is at most 3 (and, except for [http://abel.math.umu.se/~klasm/moser-n=3-t=3-41-d=3.gz 256 exceptional solutions] of the shape (5,15,18,3,0), have d at most 2; here are the [http://abel.math.umu.se/~klasm/moser-n=3-t=3-41-d=2.gz d=2 solutions] and [http://abel.math.umu.se/~klasm/moser-n=3-t=3-41-d=1.gz d=1 solutions])&lt;br /&gt;
* c is at least 6 (and, except for [http://abel.math.umu.se/~klasm/moser-n=3-t=3-41-c=6.gz 16 exceptional solutions] of the shape (7,28,6,0,0), have c at least 11).&lt;br /&gt;
&lt;br /&gt;
Statistics for the 41-point, 42-point, and 43-point solutions can be found [http://spreadsheets.google.com/ccc?key=p5T0SktZY9DuqNcxJ171Bbw&amp;amp;hl=en here].&lt;br /&gt;
&lt;br /&gt;
If a Moser set in &amp;lt;math&amp;gt;[3]^4&amp;lt;/math&amp;gt; contains 2222, then by the n=3 theory, any middle slice (i.e. 2***, *2**, **2*, or ***2) is missing at least one antipodal pair.  But each antipodal pair belongs to at most three middle slices, thus two of the 40 antipodal pairs must be completely missing.  As a consequence, any Moser set containing 2222 can have at most 39 points.&lt;br /&gt;
(A more refined analysis can be found at [http://www.ma.rhul.ac.uk/~elsholtz/WWW/blog/mosertablogv01.pdf found here].)&lt;br /&gt;
&lt;br /&gt;
We have the following inequalities connecting a,b,c,d,e:&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;math&amp;gt;4a+b \leq 64&amp;lt;/math&amp;gt;:  There are 32 lines connecting two &amp;quot;a&amp;quot; points with a &amp;quot;b&amp;quot; point; each &amp;quot;a&amp;quot; point belongs to four of these lines, and each &amp;quot;b&amp;quot; point belongs to one.  But each such line can have at most two points in the set, and the claim follows.&lt;br /&gt;
* This can be refined to &amp;lt;math&amp;gt;4a+b+\frac{2}{3} c \leq 64&amp;lt;/math&amp;gt;: There are 24 planes connecting four &amp;quot;a&amp;quot; points, four &amp;quot;b&amp;quot; points, and one &amp;quot;c&amp;quot; point; each &amp;quot;a&amp;quot; point belongs to six of these, each &amp;quot;b&amp;quot; point belongs to three, and each &amp;quot;c&amp;quot; point belongs to one.  For each of these planes, we have &amp;lt;math&amp;gt;2a + b + 2c \leq 8&amp;lt;/math&amp;gt; from the n=2 theory, and the claim follows.&lt;br /&gt;
* &amp;lt;math&amp;gt;6a+2c \leq 96&amp;lt;/math&amp;gt;:  There are 96 lines connecting two &amp;quot;a&amp;quot; points with a &amp;quot;c&amp;quot; point; each &amp;quot;a&amp;quot; point belongs to six of these lines, and each &amp;quot;c&amp;quot; point belongs to two.  But each such line can have at most two points in the set, and the claim follows.&lt;br /&gt;
* &amp;lt;math&amp;gt;3b+2c \leq 96&amp;lt;/math&amp;gt;:  There are 48 lines connecting two &amp;quot;b&amp;quot; points to a &amp;quot;c&amp;quot; point; each &amp;quot;b&amp;quot; point belongs to three of these points, and each &amp;quot;c&amp;quot; point belongs to two.  But each such line can have at most two points in the set, and the claim follows.&lt;br /&gt;
&lt;br /&gt;
The inequalities for n=3 imply inequalities for n=4.  Indeed, there are eight side slices of &amp;lt;math&amp;gt;[3]^4&amp;lt;/math&amp;gt;; each &amp;quot;a&amp;quot; point belongs to four of these, each &amp;quot;b&amp;quot; point belongs to three, each &amp;quot;c&amp;quot; point belongs to two, and each &amp;quot;d&amp;quot; point belongs to one.  Thus, any inequality of the form&lt;br /&gt;
:&amp;lt;math&amp;gt; \alpha a + \beta b + \gamma c + \delta d \leq M&amp;lt;/math&amp;gt;&lt;br /&gt;
in three dimensions implies the inequality&lt;br /&gt;
:&amp;lt;math&amp;gt; 4 \alpha a + 3 \beta b + 2 \gamma c + \delta d \leq 8M&amp;lt;/math&amp;gt;&lt;br /&gt;
in four dimensions.  Thus we have&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;math&amp;gt;8a+3b+4c+4d \leq 176&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;2a+b+c+d \leq 48&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;14a+3b+4c+4d \leq 244&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;4a+b+c+d \leq 64&amp;lt;/math&amp;gt; &lt;br /&gt;
* &amp;lt;math&amp;gt;3b+2c+3d \leq 96&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;a+c+d \leq 28&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;5a+2c+2d \leq 80&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;a+d \leq 16&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;b+2d \leq 32&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;2c+3d \leq 48&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Cubes also sit diagonally in the 4-dimensional cube.  They may have coordinates xxyz, where xx runs over (11,22,33) or (13,22,31), while y and z run over (1,2,3).  These cubes have a different distribution of 2s than the ordinary slices: (a,b,c,d,e) = (8,8,6,4,1) instead of (8,12,6,1,0) for the side slices and (0,8,12,6,1) for the middle slices.  So a different set of inequalities arise.  It is possible to run through the same procedure as described above for n=3, and the inequalities that arise are &amp;lt;math&amp;gt;2a+b+2c+2d+4e \le 24&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;4a+b+2c+2d+4e \le 32&amp;lt;/math&amp;gt; within the 3D cube, which when averaged becomes &amp;lt;math&amp;gt;4a+b+2c+4d+16e \le 96&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;8a+b+2c+4d+16e \le 128&amp;lt;/math&amp;gt; for the 4D cube.  A spreadsheet containing these statistics can be [http://spreadsheets.google.com/ccc?key=p5T0SktZY9DuKZ2DyzO9EOg&amp;amp;hl=en# found here] on sheet 2.  Other sheets of this spreadsheet contain results for a 3D cube sitting diagonally in a 5D or 6D cube.  Notice the similarity of the equations that arise for the xxxyz, xxyyz and xxxxyz diagonals.&lt;br /&gt;
&lt;br /&gt;
== n=5 ==&lt;br /&gt;
&lt;br /&gt;
Let (A,B,C,D,E,F) be the statistics of a five-dimensional Moser set, thus (A,B,C,D,E,F) varies between (0,0,0,0,0,0) and (32,80,80,40,10,1).&lt;br /&gt;
&lt;br /&gt;
There are several Moser sets with the statistics (4,40,80,0,0,0), which thus have 124 points.  Indeed, one can take&lt;br /&gt;
&lt;br /&gt;
* all points with two 2s;&lt;br /&gt;
* all points with one 2 and an even number of 1s; and&lt;br /&gt;
* (13111),(13113),(31311),(13333). Any two of these four points differ in three places, except for one pair of points that differ in one place.&lt;br /&gt;
&lt;br /&gt;
For the rest of this section, we assume that the Moser set &amp;lt;math&amp;gt;{\mathcal A}&amp;lt;/math&amp;gt; is a 125-point set.&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 1&#039;&#039;&#039;: F=0.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; If F is non-zero, then the Moser set contains 22222, then each of the 121 antipodal pairs can have at most one point in the set, leading to only 122 points. &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 2&#039;&#039;&#039;: Every middle slice of &amp;lt;math&amp;gt;{\mathcal A}&amp;lt;/math&amp;gt; has at most 41 points.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039;  Without loss of generality we may consider the 2**** slice.  There are two cases, depending on the value of c(2****).&lt;br /&gt;
&lt;br /&gt;
Suppose first that c is at least 17; thus there are at least 17 points of the form 222xy, 22xy2, 2xy22, or 2x22y, where the x, y denote 1 or 3.  This gives 36 &amp;quot;xy&amp;quot; wildcards in all in four coordinate slots; by the pigeonhole principle one of the slots sees at least 9 of the wildcards.  By symmetry, we may assume that the second coordinate slot sees at least 9 of these wildcards, thus there are at least 9 points of the form 2x22y, 2x2y2, 2xy22.  The x=1, x=3 cases can absorb at most six of these, thus each of these cases must absorb at least three points, with at least one absorbing at least five.  Let&#039;s say that it&#039;s the x=3 case that absorbs 5; thus &amp;lt;math&amp;gt;d(*1***) \geq 3&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;d(*3***) \geq 5&amp;lt;/math&amp;gt;.  From the n=4 theory this means that the *1*** slice has at most 41 points, and the *3*** slice has at most 40.  Meanwhile, the middle slice has at most 43, leading to 41+41+42=124 points in all.&lt;br /&gt;
&lt;br /&gt;
Now suppose c is less than 16; then by the n=4 theory the middle slice is one of the eight (6,24,12,0,0) sets.  Without loss of generality we may take it to be &amp;lt;math&amp;gt;\Gamma_{220}+\Gamma_{202}+\Gamma_{022}+\Gamma_{112}+\Gamma_{211}&amp;lt;/math&amp;gt;; in particular, the middle slice contains the points 21122 21212 21221 23322 23232 23223.  In particular, the *1*** and *3*** slices have a &amp;quot;d&amp;quot; value of at least three, and so have at most 41 points.  If the *2*** slice has at most 42 points, then we are at 41+42+41=124 points as needed, but if we have 43 or more, then we are back in the first case (as &amp;lt;math&amp;gt;c(*2***) \geq 17&amp;lt;/math&amp;gt;) after permuting the indices.&lt;br /&gt;
&amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Since 125=41+41+43, we thus have&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Corollary 1&#039;&#039;&#039;: Every side slice of &amp;lt;math&amp;gt;{\mathcal A}&amp;lt;/math&amp;gt; has at least 41 points.  If one side slice does have 41 points, then the other has 43.&lt;br /&gt;
&lt;br /&gt;
Combining this with the n=4 statistics, we conclude&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Corollary 2&#039;&#039;&#039;: Every side slice of &amp;lt;math&amp;gt;{\mathcal A}&amp;lt;/math&amp;gt; has e=0, and &amp;lt;math&amp;gt;d \leq 3&amp;lt;/math&amp;gt;.  Given two opposite side slices, e.g. 1**** and 3****, we have &amp;lt;math&amp;gt;d(1****)+d(3****) \leq 4&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Corollary 3&#039;&#039;&#039;: E=0.&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Corollary 4&#039;&#039;&#039;: Any middle slice has a &amp;quot;c&amp;quot; value of at most 8.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; Let&#039;s work with the 2**** slice.  By Corollary 2, there are at most four contributions to c(2****) of the form 21*** or 23***, and similarly for the other three positions.  Double counting then gives the claim. &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 3&#039;&#039;&#039;: &amp;lt;math&amp;gt;2B+C \leq 160&amp;lt;/math&amp;gt;.   &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039;: There are 160 lines connecting one &amp;quot;C&amp;quot; point to two &amp;quot;B&amp;quot; points (e.g. 11112, 11122, 11132); each &amp;quot;C&amp;quot; point lies in two of these, and each &amp;quot;B&amp;quot; point lies on four.  A Moser set can have at most two points out of each of these lines.  Double counting then gives the claim.  &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 4&#039;&#039;&#039; Given m A-points with &amp;lt;math&amp;gt;m \geq 5&amp;lt;/math&amp;gt;, there exists at least m-4 pairs (a,b) of such A-points with Hamming distance exactly two (i.e. b differs from a in exactly two places).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; It suffices to check this for m=5, since the case of larger m then follows by locating a pair, removing a point that contributes to that pair, and using the induction hypothesis.  Given 5 A-points, we may assume by the pigeonhole principle and symmetry that at least three of them have an odd number of 1s.  Suppose 11111 is one of the points, and that no pair has Hamming distance 2. All points with two 3s are excluded, so the only points allowed with an odd number of 1s are those with four 3s. But all those points differ from each other in two positions, so at most one of them is allowed.  &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Corollary 5&#039;&#039;&#039; &amp;lt;math&amp;gt;C \leq 79&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039;: Suppose for contradiction that C=80, then D=0 and &amp;lt;math&amp;gt;B \leq 40&amp;lt;/math&amp;gt;.  From Lemma 4 we also see that A cannot exceed 5, leading to the contradiction.&lt;br /&gt;
&amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Define the &#039;&#039;&#039;score&#039;&#039;&#039; of a Moser set in &amp;lt;math&amp;gt;[3]^4&amp;lt;/math&amp;gt; to be the quantity &amp;lt;math&amp;gt;a + 5b/4 + 5c/3 + 5d/2 + 5e&amp;lt;/math&amp;gt;.  Double-counting (and Lemma 2) gives&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 5&#039;&#039;&#039;  The total score of all the ten side-slices of &amp;lt;math&amp;gt;{\mathcal A}&amp;lt;/math&amp;gt; is equal to &amp;lt;math&amp;gt;5|{\mathcal A}| = 5 \times 125&amp;lt;/math&amp;gt;.  In particular, there exists a pair of opposite side-slices whose scores add up to at least 125.&lt;br /&gt;
&lt;br /&gt;
By Lemma 5 and symmetry, we may assume that the 1**** and 3**** slices have score adding up to at least 125.  By Lemma 2, the 2**** slice has at most 41 points, which imply that the 1**** and 3**** have 41, 42, or 43 points.  From the [http://spreadsheets.google.com/ccc?key=p5T0SktZY9DuqNcxJ171Bbw&amp;amp;hl=en n=4 statistics] we know that all 41-point, 42-point, 43-point slices have score less than 62, with the following exceptions:&lt;br /&gt;
&lt;br /&gt;
# (2,16,24,0,0) [42 points, score: 62]&lt;br /&gt;
# (4,16,23,0,0) [43 points, score: 62 1/3]&lt;br /&gt;
# (4,15,24,0,0) [43 points, score: 62 3/4]&lt;br /&gt;
# (3,16,24,0,0) [43 points, score: 63]&lt;br /&gt;
&lt;br /&gt;
Thus the 1**** and 3**** slices must from the above list.  Furthermore, if one of the slices is of type 1, then the other must be of type 4, and if one slice is of type 2, then the other must be of type 3 or 4.&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 6&#039;&#039;&#039; There exists one cut in which the side slices have total score strictly greater than 125 (i.e. they thus involve only Type 2, Type 3, and Type 4 slices, with at least one side slice not equal to Type 2, and the cut here is of the form 43+39+43).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; If not, then all cuts have side slices exactly equal to 125, which by the above table implies that one is Type 1 and one is Type 4, in particular all side slices have c=24.  But this forces C=80, contradicting Corollary 5. &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Adding up the corners we conclude&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Corollary 6&#039;&#039;&#039; &amp;lt;math&amp;gt;6 \leq A \leq 8&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 7&#039;&#039;&#039; &amp;lt;math&amp;gt;D=0&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; Firstly, from Lemma 6 we have a cut in which the two side slices are omitting at most one C-point between them (and have no D-point), which forces the middle slice to have at most one D-point; thus D is at most 1.&lt;br /&gt;
&lt;br /&gt;
Now suppose instead that D=1 (e.g. if 11222 was in the set); then there would be two choices of coordinates in which one of the side slices would have d=1 (e.g. 1**** and *1****). But the [http://spreadsheets.google.com/ccc?key=p5T0SktZY9DuqNcxJ171Bbw&amp;amp;hl=en n=4 statistics] show that such slices have a score of at most 59 7/12, so that the total score from those two coordinates is at most 63 + 59 7/12 = 122 7/12. On the other hand, the other three slices have a net score of at most 63+63 = 126. This averages out to at most 124.633... &amp;lt; 125, a contradiction.  &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Corollary 7&#039;&#039;&#039; Every middle slice has at most 40 points.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; From Lemma 7 we see that the middle slice must have c=0, but from the n=4 statistics this is not possible for any slice of size 41 or higher (alternatively, one can use the inequalities &amp;lt;math&amp;gt;4a+b \leq 64&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;b \leq 32&amp;lt;/math&amp;gt;). &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Each middle slice now has 39 or 40 points, with c=d=e=0, and so from the inequalities &amp;lt;math&amp;gt;4a+b \leq 64&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;b \leq 32&amp;lt;/math&amp;gt; must have statistics (8,32,0,0,0),(7,32,0,0,0), or (8,31,0,0,0).  In particular the &amp;quot;a&amp;quot; index of the middle slices is at most 8.  Summing over all middle slices we conclude&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 9&#039;&#039;&#039; B is at most 40.&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 10&#039;&#039;&#039; C is equal to 78 or 79.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; By Corollary 5, it suffices to show that &amp;lt;math&amp;gt;C \geq 78&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
As 125=43+39+43, we see that every center slice must have at least 39 points. By Lemma 2 and Lemma 7 the center slice has c=d=e=0, thus the center slice has a+b &amp;gt;= 39.  On the other hand, from the n=4 theory we have 4a+b &amp;lt;= 64, which forces b &amp;gt;= 31.&lt;br /&gt;
&lt;br /&gt;
By double counting, we see that 2C is equal to the sum of the b&#039;s of all the five center slices.  Thus C &amp;gt;= 5*31/2 = 77.5 and the claim follows.  &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
From Lemmas 9 and 10 we see that &amp;lt;math&amp;gt;B+C \leq 119&amp;lt;/math&amp;gt;, and thus &amp;lt;math&amp;gt;A \geq 6&amp;lt;/math&amp;gt;.  Also, if &amp;lt;math&amp;gt;A \geq 7&amp;lt;/math&amp;gt;, then by Lemma 4 we have at least three pairs of A points with Hamming distance 2.  At most two of these pairs eliminate the same C point, so we would have C=78 in that case.  &lt;br /&gt;
&lt;br /&gt;
Putting all the above facts together, we see that (A,B,C,D,E,F) must be one of the following triples:&lt;br /&gt;
&lt;br /&gt;
* (6,40,79,0,0,0)&lt;br /&gt;
* (7,40,78,0,0,0)&lt;br /&gt;
* (8,39,78,0,0,0)&lt;br /&gt;
&lt;br /&gt;
All three cases can be eliminated, giving &amp;lt;math&amp;gt;c&#039;_5=124&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== Elimination of (6,40,79,0,0,0) ===&lt;br /&gt;
&lt;br /&gt;
Look at the 6 A points.  From Lemma 4 we have at least two pairs (a,b), (c,d) of A-points that have Hamming separation 2.&lt;br /&gt;
&lt;br /&gt;
Now look at the midpoints of these two pairs; these midpoints are C-points cannot lie in the set.  But we have exactly one C-point missing from the set, thus the midpoints must be the same.  By symmetry, we may thus assume that the two pairs are (11111,11133) and (11113,11131).  Thus 11111,11133, 11113, 11131 are in the set, and so every C-point other than 11122 is in the set.  On the other hand, the B-points 11121, 11123, 11112, 11132 lie outside the set.&lt;br /&gt;
&lt;br /&gt;
At most one of 11312, 11332 lie in the set (since 11322 lies in the set).   Suppose that 11312 lies outside the set, then we have a pair (xy1z2, xy3z2) with x,y,z = 1,3 that is totally omitted from the set, namely (11112,11312).  On the other hand, every other pair of this form can have at most point in the set, thus there are at most seven points in the set of the form (xyzw2) with x,y,z,w = 1,3.  Similarly there are at most 8 points of the form xyz2w, or of xy2zw, x2yzw, 2xyzw, leading to at most 39 B-points in all, contradiction.&lt;br /&gt;
&lt;br /&gt;
=== Elimination of (7,40,78,0,0,0) ===&lt;br /&gt;
&lt;br /&gt;
By Lemma 4, we have at least three pairs of A-points of distance two apart that lie in the set.&lt;br /&gt;
The midpoints of these pairs are C-points that do not lie in the set; but there are only two such C-points, thus two pairs must have the same midpoint, so we may assume as before that 111xy lies in the set for x,y=1,3, which implies that 1112* and 111*2 lie outside the set.&lt;br /&gt;
&lt;br /&gt;
Now consider the 160 lines between 2 B points and one C point (cf. Lemma 3).  The sum of all the points in each such line (counting multiplicity) is 4B+2C = 316.  On the other hand, every one of the 160 lines can have at most two points, and four of these lines (namely 1112*, 111*2) have no points.  Thus all the other lines must have exactly two points.  &lt;br /&gt;
&lt;br /&gt;
We know that the C-point 11122 is missing from the set; there is one other missing C-point.  Since 1112x, 111x2 lie outside the set, we conclude from the previous paragraph that 1132x, 113x2 and 1312x, 131x2 lie in the set.  Taking midpoints we conclude that 11322 and 13122 lie outside the set.  But this is now three C-points missing (together with 11122), a contradiction.&lt;br /&gt;
&lt;br /&gt;
=== Elimination of (8,39,78,0,0,0) ===&lt;br /&gt;
&lt;br /&gt;
By Lemma 4 we have at least four pairs of A-points of distance two apart that lie in the set. The midpoints of these pairs are C-points that do not lie in the set; but there are only two such C-points, thus two pairs (a,b), (c,d) must have the same midpoint p, and the other two pairs (a&#039;,b&#039;), (c&#039;,d&#039;) must also have the same midpoint p&#039;.  (Note that every C-point is the midpoint of at most two such pairs.)&lt;br /&gt;
&lt;br /&gt;
Now consider the 160 lines between 2 B points and one C point (cf. Lemma 3).  The sum of all the points in each such line (counting multiplicity) is 4B+2C = 312.  Every one of the 160 lines can have at most two points, and four of these (those in the plane of (a,b,c,d) or of (a&#039;,b&#039;,c&#039;,d&#039;) have no points.  Thus all other lines must have exactly two points.&lt;br /&gt;
&lt;br /&gt;
Without loss of generality we have (a,b)=(11111,11133), (c,d) = (11113,11131), thus p = 11122.  By permuting the first three indices, we may assume that p&#039; is not of the form x2y2z, x2yz2, xy22z, xy2z2.  Then 1112x lies outside the set and 1122x lies in the set, so by the above paragraph 1132x lies in the set; similarly for 113x2, 1312x, 131x2.  This implies that 13122, 11322 lie outside the set, but this (together with 11122) shows that at least three C-points are missing, a contradiction.&lt;br /&gt;
&lt;br /&gt;
== General n ==&lt;br /&gt;
&lt;br /&gt;
General solution for &amp;lt;math&amp;gt;c&#039;_N&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* q 2s, all points from A(N-q,1)&lt;br /&gt;
* q-1 2s, points from A(N-q+1,2)&lt;br /&gt;
* q-2 2s, points from A(N-q+2,3)&lt;br /&gt;
* etc.&lt;br /&gt;
&lt;br /&gt;
where A(m,d) is a subset of &amp;lt;math&amp;gt;[1,3]^m&amp;lt;/math&amp;gt; for which any two points differ from each other in at least d places.&lt;br /&gt;
&lt;br /&gt;
Mathworld’s entry on error-correcting codes suggests it might be NP-complete to find the size of A(m,d) in general.&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;math&amp;gt;|A(m,1)| = 2^m&amp;lt;/math&amp;gt; because it includes all points in &amp;lt;math&amp;gt;[1,3]^m&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;|A(m,2)| = 2^{m-1}&amp;lt;/math&amp;gt; because it can include all points in &amp;lt;math&amp;gt;[1,3]^m&amp;lt;/math&amp;gt; with an odd number of 1s&lt;br /&gt;
&lt;br /&gt;
Here are some [[Maple calculations]].&lt;br /&gt;
&lt;br /&gt;
A [[genetic algorithm]] has provided the following examples:&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;math&amp;gt;c&#039;_6 \geq 353&amp;lt;/math&amp;gt; (26 examples; [http://twofoldgaze.wordpress.com/2009/03/10/353-element-solution/ here is one])&lt;br /&gt;
* &amp;lt;math&amp;gt;c&#039;_7 \geq 988&amp;lt;/math&amp;gt; [http://twofoldgaze.wordpress.com/2009/03/10/978-element-solution/ Here is the example]&lt;br /&gt;
&lt;br /&gt;
== Variants ==&lt;br /&gt;
&lt;br /&gt;
A lower bound for Moser’s cube &amp;lt;math&amp;gt;[4]^n&amp;lt;/math&amp;gt; (values 0,1,2,3) comes from the following set:  Pick all points where q entries are 1 or 2; and also pick those where q-1 entries are 1 or 2 and an odd number of entries are 0.  This is maximized when q is near n/2, giving a lower bound of&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\binom{n}{n/2} 2^n + \binom{n}{n/2-1} 2^{n-1}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
which is comparable to &amp;lt;math&amp;gt;4^n/\sqrt{n}&amp;lt;/math&amp;gt; by [[Stirling&#039;s formula]].&lt;br /&gt;
&lt;br /&gt;
For k=5 (values 0,1,2,3,4) If A, B, C, D, and E denote the numbers of 0-s, 1-s, 2-s, 3-s, and 4-s then the first three points of a geometric line form a 3-term arithmetic progression in A+E+2(B+D)+3C. So, for k=5 we have a similar lower bound for the Moser’s problem as for DHJ k=3, i.e. &amp;lt;math&amp;gt;5^{n - O(\sqrt{\log n})}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
The k=6 version of Moser implies DHJ(3).  Indeed, any k=3 combinatorial line-free set can be &amp;quot;doubled up&amp;quot; into a k=6 geometric line-free set of the same density by pulling back the set from the map &amp;lt;math&amp;gt;\phi: [6]^n \to [3]^n&amp;lt;/math&amp;gt; that maps 1, 2, 3, 4, 5, 6 to 1, 2, 3, 3, 2, 1 respectively; note that this map sends k=6 geometric lines to k=3 combinatorial lines.&lt;/div&gt;</summary>
		<author><name>121.220.134.232</name></author>
	</entry>
	<entry>
		<id>https://michaelnielsen.org/polymath/index.php?title=Moser%27s_cube_problem&amp;diff=935</id>
		<title>Moser&#039;s cube problem</title>
		<link rel="alternate" type="text/html" href="https://michaelnielsen.org/polymath/index.php?title=Moser%27s_cube_problem&amp;diff=935"/>
		<updated>2009-03-16T14:38:04Z</updated>

		<summary type="html">&lt;p&gt;121.220.134.232: /* n=5 */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Define a &#039;&#039;Moser set&#039;&#039; to be a subset of &amp;lt;math&amp;gt;[3]^n&amp;lt;/math&amp;gt; which does not contain any [[geometric line]], and let &amp;lt;math&amp;gt;c&#039;_n&amp;lt;/math&amp;gt; denote the size of the largest Moser set in &amp;lt;math&amp;gt;[3]^n&amp;lt;/math&amp;gt;.  The first few values are (see [http://www.research.att.com/~njas/sequences/A003142 OEIS A003142]):&lt;br /&gt;
&lt;br /&gt;
: &amp;lt;math&amp;gt;c&#039;_0 = 1; c&#039;_1 = 2; c&#039;_2 = 6; c&#039;_3 = 16; c&#039;_4 = 43; c&#039;_5 = 124.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Beyond this point, we only have some upper and lower bounds, in particular &amp;lt;math&amp;gt;353 \leq c&#039;_6 \leq 360&amp;lt;/math&amp;gt;; see [http://spreadsheets.google.com/ccc?key=p5T0SktZY9DsU-uZ1tK7VEg this spreadsheet] for the latest bounds.&lt;br /&gt;
&lt;br /&gt;
The best known asymptotic lower bound for &amp;lt;math&amp;gt;c&#039;_n&amp;lt;/math&amp;gt; is&lt;br /&gt;
&lt;br /&gt;
: &amp;lt;math&amp;gt;c&#039;_n \gg 3^n/\sqrt{n}&amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
formed by fixing the number of 2s to a single value near n/3.  Compare this to the DHJ(2) or Sperner limit of &amp;lt;math&amp;gt;2^n/\sqrt{n}&amp;lt;/math&amp;gt;.  Is it possible to do any better?  Note that we have a [[Upper_and_lower_bounds#Asymptotics|significantly better bound]] for the DHJ(3) &amp;lt;math&amp;gt;c_n&amp;lt;/math&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
: &amp;lt;math&amp;gt;c_n \geq 3^{n-O(\sqrt{\log n})}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
A more precise lower bound is&lt;br /&gt;
&lt;br /&gt;
: &amp;lt;math&amp;gt;c&#039;_n \geq \binom{n+1}{q} 2^{n-q}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where q is the nearest integer to &amp;lt;math&amp;gt;n/3&amp;lt;/math&amp;gt;, formed by taking all strings with q 2s, together with all strings with q-1 2s and an odd number of 1s.  This for instance gives the lower bound &amp;lt;math&amp;gt;c&#039;_5 \geq 120&amp;lt;/math&amp;gt;, which compares with the upper bound &amp;lt;math&amp;gt;c&#039;_5 \leq 3 c&#039;_4 = 129&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Using [[DHJ(3)]], we have the upper bound&lt;br /&gt;
&lt;br /&gt;
: &amp;lt;math&amp;gt;c&#039;_n = o(3^n)&amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
but no effective decay rate is known. It would be good to have a combinatorial proof of this fact (which is weaker than [[DHJ(3)]], but implies [[Roth&#039;s theorem]]).&lt;br /&gt;
&lt;br /&gt;
Convenient notation: given a Moser set A in &amp;lt;math&amp;gt;[3]^n&amp;lt;/math&amp;gt;, we let a be the number of points in A with no 2s, b be the number of points in A with one 2, c the number of points with two 2s, etc.  We call (a,b,c,...) the &#039;&#039;statistics&#039;&#039; of A.  Given a slice S of &amp;lt;math&amp;gt;[3]^n&amp;lt;/math&amp;gt;, we let a(S), b(S), etc. denote the statistics of that slice (dropping the fixed coordinates).  Thus for instance if A = {11, 12, 22, 32}, then (a,b,c) = (1,2,1), and (a(1*),b(1*)) = (1,1).&lt;br /&gt;
&lt;br /&gt;
We call a statistic (a,b,c,...) &#039;&#039;attainable&#039;&#039; if it is attained by a Moser set.  We say that an attainable statistic is &#039;&#039;Pareto-optimal&#039;&#039; if it cannot be pointwise dominated by any other attainable statistic (a&#039;,b&#039;,c&#039;,...) (thus &amp;lt;math&amp;gt;a&#039; \geq a&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;b&#039; \geq b&amp;lt;/math&amp;gt;, etc.)  We say that it is &#039;&#039;extremal&#039;&#039; if it is not a convex combination of any other attainable statistic (this is a stronger property than Pareto-optimal).  For the purposes of maximising linear scores of attainable statistics, it suffices to check extremal statistics.&lt;br /&gt;
&lt;br /&gt;
We let &amp;lt;math&amp;gt;(\alpha_0,\alpha_1,\ldots)&amp;lt;/math&amp;gt; be the normalized version of &amp;lt;math&amp;gt;(a,b,\ldots)&amp;lt;/math&amp;gt;, in which one divides the number of points of a certain type in the set by the total number of points in the set.  Thus for instance &amp;lt;math&amp;gt;\alpha_0 = a/2^n, \alpha_1 = b/(n 2^{n-1}), \alpha_3 = c/(\binom{n}{2} 2^{n-2})&amp;lt;/math&amp;gt;, etc., and the &amp;lt;math&amp;gt;\alpha_i&amp;lt;/math&amp;gt; range between 0 and 1.  Averaging arguments show that any linear inequality obeyed by the &amp;lt;math&amp;gt;\alpha_i&amp;lt;/math&amp;gt; at one dimension is automatically inherited by higher dimensions, as are shifted versions of this inequality (in which &amp;lt;math&amp;gt;\alpha_i&amp;lt;/math&amp;gt; is replaced by &amp;lt;math&amp;gt;\alpha_{i+1}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== n=0 ==&lt;br /&gt;
&lt;br /&gt;
We trivially have &amp;lt;math&amp;gt;c&#039;_0=1.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== n=1 ==&lt;br /&gt;
&lt;br /&gt;
We trivially have &amp;lt;math&amp;gt;c&#039;_1=2.&amp;lt;/math&amp;gt;  The Pareto-optimal values of the statistics (a,b) are (1,1) and (2,0); these are also the extremals.  We thus have the inequality &amp;lt;math&amp;gt;a+b \leq 2&amp;lt;/math&amp;gt;, or in normalized notation&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;2\alpha_0 + \alpha_1 \leq 2&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== n=2 ==&lt;br /&gt;
&lt;br /&gt;
We have &amp;lt;math&amp;gt;c&#039;_2 = 6&amp;lt;/math&amp;gt;; the upper bound follows since &amp;lt;math&amp;gt;c&#039;_2 \leq 3 c&#039;_1&amp;lt;/math&amp;gt;, and the lower bound follows by deleting one of the two diagonals from &amp;lt;math&amp;gt;[3]^2&amp;lt;/math&amp;gt; (these are the only extremisers).&lt;br /&gt;
&lt;br /&gt;
The extremiser has statistics (a,b,c) = (2,4,0), which are of course Pareto-optimal.  If c=1 then we must have a, b at most 2 (look at the lines through 22).  This is attainable (e.g. {11, 12, 22, 23, 31}, and so (2,2,1) is another Pareto-optimal statistic.  If a=4, then b and c must be 0, so we get another Pareto-optimal statistic (4,0,0) (attainable by {11, 13, 31, 33} of course).  If a=3, then c=0 and b is at most 2, giving another Pareto-optimal statistic (3,2,0); but this is a convex combination of (4,0,0) and (2,4,0) and is thus not extremal.  Thus the complete set of extremal statistics are&lt;br /&gt;
&lt;br /&gt;
(4,0,0), (2,4,0), (2,2,1).&lt;br /&gt;
&lt;br /&gt;
The sharp linear inequalities obeyed by a,b,c (other than the trivial ones &amp;lt;math&amp;gt;a,b,c \geq 0&amp;lt;/math&amp;gt;) are then&lt;br /&gt;
&lt;br /&gt;
*&amp;lt;math&amp;gt;2a+b+2c \leq 8&amp;lt;/math&amp;gt;&lt;br /&gt;
*&amp;lt;math&amp;gt;b+2c \leq 4&amp;lt;/math&amp;gt;&lt;br /&gt;
*&amp;lt;math&amp;gt;a+2c \leq 4&amp;lt;/math&amp;gt;&lt;br /&gt;
*&amp;lt;math&amp;gt;c \leq 1&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
In normalized notation, we have&lt;br /&gt;
*&amp;lt;math&amp;gt;4\alpha_0 + 2\alpha_1 + \alpha_2 \leq 4&amp;lt;/math&amp;gt;&lt;br /&gt;
*&amp;lt;math&amp;gt;2\alpha_1 + \alpha_2 \leq 2&amp;lt;/math&amp;gt;&lt;br /&gt;
*&amp;lt;math&amp;gt;2\alpha_0 + \alpha_2 \leq 2&amp;lt;/math&amp;gt;&lt;br /&gt;
*&amp;lt;math&amp;gt;\alpha_2 \leq 1&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== n=3 ==&lt;br /&gt;
&lt;br /&gt;
We have &amp;lt;math&amp;gt;c&#039;_3 = 16&amp;lt;/math&amp;gt;.  The lower bound can be seen for instance by taking all the strings with one 2, and half the strings with no 2 (e.g. the strings with an odd number of 1s).  The upper bound can be deduced from the corresponding [[upper and lower bounds]] for &amp;lt;math&amp;gt;c_3 = 18&amp;lt;/math&amp;gt;; the 17-point and 18-point line-free sets each contain a geometric line.&lt;br /&gt;
&lt;br /&gt;
If a Moser set in &amp;lt;math&amp;gt;[3]^3&amp;lt;/math&amp;gt; contains 222, then it can have at most 14 points, since the remaining 26 points in the cube split into 13 antipodal pairs, and at most one of each pair can lie in the set.  By exhausting over the &amp;lt;math&amp;gt;2^{13} = 8192&amp;lt;/math&amp;gt; possibilities, it can be shown that it is impossible for a 14-point set to exist; any Moser set containing 222 must in fact omit at least one antipodal pair completely and thus have only 13 points.  (A human proof of this fact can be [http://www.ma.rhul.ac.uk/~elsholtz/WWW/blog/mosertablogv01.pdf found here].)&lt;br /&gt;
&lt;br /&gt;
The Pareto-optimal statistics are&lt;br /&gt;
&lt;br /&gt;
(3,6,3,1),(4,4,3,1),(4,6,2,1),(2,6,6,0),(3,6,5,0),(4,4,5,0),(3,7,4,0),(4,6,4,0), (3,9,3,0),(4,7,3,0),(5,4,3,0),(4,9,2,0),(5,6,2,0),(6,3,2,0),(3,10,1,0),(5,7,1,0), (6,4,1,0),(4,12,0,0),(5,9,0,0),(6,6,0,0),(7,3,0,0),(8,0,0,0).&lt;br /&gt;
&lt;br /&gt;
A spreadsheet containing these statistics can be [http://spreadsheets.google.com/ccc?key=p5T0SktZY9DuKZ2DyzO9EOg&amp;amp;hl=en# found here].&lt;br /&gt;
&lt;br /&gt;
The extremal statistics are&lt;br /&gt;
&lt;br /&gt;
(3,6,3,1),(4,4,3,1),(4,6,2,1),(2,6,6,0),(4,4,5,0),(4,6,4,0),(4,12,0,0),(8,0,0,0)&lt;br /&gt;
&lt;br /&gt;
The sharp linear bounds are :&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;math&amp;gt;2a+b+2c+4d \leq 22&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;3a+2b+3c+6d \leq 36&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;7a+2b+4c+8d \leq 56&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;6a+2b+3c+6d \leq 48&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;b+c+3d \leq 12&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;a+2c+4d \leq 14&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;5a+4c+8d \leq 40&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;a+4d \leq 8&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;b+6d \leq 12&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;c+3d \leq 6&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;d \leq 1&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In normalized notation,&lt;br /&gt;
* &amp;lt;math&amp;gt;8\alpha_0+ 6\alpha_1 + 6\alpha_2 + 2\alpha_3 \leq 11&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;4\alpha_0+4\alpha_1+3\alpha_2+\alpha_3 \leq 6&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;7\alpha_0+3\alpha_1+3\alpha_2+\alpha_3 \leq 7&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;8\alpha_0+3\alpha_1+3\alpha_2+\alpha_3 \leq 8&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;4\alpha_1+2\alpha_2+\alpha_3 \leq 4&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;4\alpha_0+6\alpha_2+2\alpha_3 \leq 7&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;5\alpha_0+3\alpha_2+\alpha_3 \leq 5&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;2\alpha_0+\alpha_3 \leq 2&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;2\alpha_1+\alpha_3 \leq 2&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;2\alpha_2+\alpha_3 \leq 2&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;\alpha_3 \leq 1&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== n=4 ==&lt;br /&gt;
&lt;br /&gt;
A [http://abel.math.umu.se/~klasm/extremal-moser-n=5-t=3 computer search] has obtained all extremisers to &amp;lt;math&amp;gt;c&#039;_4=43&amp;lt;/math&amp;gt;.  The 42-point solutions can be found [http://abel.math.umu.se/~klasm/moser-n=4-t=3-p=42.gz here].&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof that &amp;lt;math&amp;gt;c&#039;_4 \leq 43&amp;lt;/math&amp;gt;&#039;&#039;&#039;: &lt;br /&gt;
When e=1 (i.e. the 4D set contains 2222) then we have at most 41 points (in fact at most 39) by counting antipodal points, so assume e=0.&lt;br /&gt;
&lt;br /&gt;
Define the score of a 3D slice to be a/4+b/3+c/2+d.  Observe from double counting that the size of a 4D set is the sum of the scores of its eight side slices.&lt;br /&gt;
&lt;br /&gt;
But by [http://spreadsheets.google.com/ccc?key=p5T0SktZY9DuKZ2DyzO9EOg&amp;amp;hl=en looking at the extremals] we see that the largest score is 44/8, attained at only one point, namely when (a,b,c,d) = (2,6,6,0).  So the only way one can have a 44-point set is if all side slices are (2,6,6,0), or equivalently if the whole set has statistics (a,b,c,d,e) = (4,16,24,0,0).  But then we have all the points with two 2s, which means that the four &amp;quot;a&amp;quot; points cannot be separated by Hamming distance 2.  We conclude that we must have an antipodal pair among the &amp;quot;a&amp;quot; points with an odd number of 1s, and an antipodal pair among the &amp;quot;a&amp;quot; points with an even number of 1s.    By the symmetries of the cube, we may take the a-set to then be 1111, 3333, 1113, 3331.  But then the &amp;quot;b&amp;quot; set must exclude both 1112 and 3332, and so can have at most three points in the eight-point set xyz2 (with x,y,z=1,3) rather than four (to get four points one must alternate in a checkerboard pattern).  Adding this to the at most four points of the form xy2z, x2yz, 2xyz we see that b is at most 16, a contradiction. &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Given a subset of &amp;lt;math&amp;gt;[3]^4&amp;lt;/math&amp;gt;, let a be the number of points with no 2s, b be the number of points with 1 2, and so forth.  The quintuple (a,b,c,d,e) thus lies between (0,0,0,0,0) and (16,32,24,8,1).&lt;br /&gt;
&lt;br /&gt;
The 43-point solutions have distributions (a,b,c,d,e) as follows:&lt;br /&gt;
&lt;br /&gt;
* (5,20,18,0,0) [16 solutions]&lt;br /&gt;
* (4,16,23,0,0) [768 solutions]&lt;br /&gt;
* (3,16,24,0,0) [512 solutions]&lt;br /&gt;
* (4,15,24,0,0) [256 solutions]&lt;br /&gt;
&lt;br /&gt;
The 42-point solutions are [http://abel.math.umu.se/~klasm/Moser-42-stat.pdf distributed as follows]:&lt;br /&gt;
&lt;br /&gt;
* (6,24,12,0,0) [[http://abel.math.umu.se/~klasm/moser-n=4-42-12 8 solutions]] &lt;br /&gt;
* (5,20,17,0,0) [576 solutions]&lt;br /&gt;
* (5,19,18,0,0) [384 solutions]&lt;br /&gt;
* (6,16,18,2,0) [[http://abel.math.umu.se/~klasm/moser-n=4-42-e=2 192 solutions]]&lt;br /&gt;
* (4,20,18,0,0) [272 solutions]&lt;br /&gt;
* (5,17,20,0,0) [192 solutions]&lt;br /&gt;
* (5,16,21,0,0) [3584 solutions]&lt;br /&gt;
* (4,17,21,0,0) [768 solutions]&lt;br /&gt;
* (4,16,22,0,0) [26880 solutions]&lt;br /&gt;
* (5,15,22,0,0) [1536 solutions]&lt;br /&gt;
* (4,15,23,0,0) [22272 solutions]&lt;br /&gt;
* (3,16,23,0,0) [15744 solutions]&lt;br /&gt;
* (4,14,24,0,0) [4224 solutions]&lt;br /&gt;
* (3,15,24,0,0) [8704 solutions]&lt;br /&gt;
* (2,16,24,0,0) [896 solutions]&lt;br /&gt;
&lt;br /&gt;
Note how c is usually quite large, and d quite low.&lt;br /&gt;
&lt;br /&gt;
One of the (6,24,12,0,0) solutions is &amp;lt;math&amp;gt;\Gamma_{220}+\Gamma_{202}+\Gamma_{022}+\Gamma_{112}+\Gamma_{211}&amp;lt;/math&amp;gt; (i.e. the set of points containing exactly two 1s, and/or exactly two 3s).  The other seven are reflections of this set.&lt;br /&gt;
&lt;br /&gt;
There are 2,765,200 41-point solutions, [http://abel.math.umu.se/~klasm/solutions-4-t=3-41-moser.gz listed here].  The statistics for such points can be [http://abel.math.umu.se/~klasm/Moser-41-stat.pdf found here].  Noteworthy features of the statistics:&lt;br /&gt;
&lt;br /&gt;
* d is at most 3 (and, except for [http://abel.math.umu.se/~klasm/moser-n=3-t=3-41-d=3.gz 256 exceptional solutions] of the shape (5,15,18,3,0), have d at most 2; here are the [http://abel.math.umu.se/~klasm/moser-n=3-t=3-41-d=2.gz d=2 solutions] and [http://abel.math.umu.se/~klasm/moser-n=3-t=3-41-d=1.gz d=1 solutions])&lt;br /&gt;
* c is at least 6 (and, except for [http://abel.math.umu.se/~klasm/moser-n=3-t=3-41-c=6.gz 16 exceptional solutions] of the shape (7,28,6,0,0), have c at least 11).&lt;br /&gt;
&lt;br /&gt;
Statistics for the 41-point, 42-point, and 43-point solutions can be found [http://spreadsheets.google.com/ccc?key=p5T0SktZY9DuqNcxJ171Bbw&amp;amp;hl=en here].&lt;br /&gt;
&lt;br /&gt;
If a Moser set in &amp;lt;math&amp;gt;[3]^4&amp;lt;/math&amp;gt; contains 2222, then by the n=3 theory, any middle slice (i.e. 2***, *2**, **2*, or ***2) is missing at least one antipodal pair.  But each antipodal pair belongs to at most three middle slices, thus two of the 40 antipodal pairs must be completely missing.  As a consequence, any Moser set containing 2222 can have at most 39 points.&lt;br /&gt;
(A more refined analysis can be found at [http://www.ma.rhul.ac.uk/~elsholtz/WWW/blog/mosertablogv01.pdf found here].)&lt;br /&gt;
&lt;br /&gt;
We have the following inequalities connecting a,b,c,d,e:&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;math&amp;gt;4a+b \leq 64&amp;lt;/math&amp;gt;:  There are 32 lines connecting two &amp;quot;a&amp;quot; points with a &amp;quot;b&amp;quot; point; each &amp;quot;a&amp;quot; point belongs to four of these lines, and each &amp;quot;b&amp;quot; point belongs to one.  But each such line can have at most two points in the set, and the claim follows.&lt;br /&gt;
* This can be refined to &amp;lt;math&amp;gt;4a+b+\frac{2}{3} c \leq 64&amp;lt;/math&amp;gt;: There are 24 planes connecting four &amp;quot;a&amp;quot; points, four &amp;quot;b&amp;quot; points, and one &amp;quot;c&amp;quot; point; each &amp;quot;a&amp;quot; point belongs to six of these, each &amp;quot;b&amp;quot; point belongs to three, and each &amp;quot;c&amp;quot; point belongs to one.  For each of these planes, we have &amp;lt;math&amp;gt;2a + b + 2c \leq 8&amp;lt;/math&amp;gt; from the n=2 theory, and the claim follows.&lt;br /&gt;
* &amp;lt;math&amp;gt;6a+2c \leq 96&amp;lt;/math&amp;gt;:  There are 96 lines connecting two &amp;quot;a&amp;quot; points with a &amp;quot;c&amp;quot; point; each &amp;quot;a&amp;quot; point belongs to six of these lines, and each &amp;quot;c&amp;quot; point belongs to two.  But each such line can have at most two points in the set, and the claim follows.&lt;br /&gt;
* &amp;lt;math&amp;gt;3b+2c \leq 96&amp;lt;/math&amp;gt;:  There are 48 lines connecting two &amp;quot;b&amp;quot; points to a &amp;quot;c&amp;quot; point; each &amp;quot;b&amp;quot; point belongs to three of these points, and each &amp;quot;c&amp;quot; point belongs to two.  But each such line can have at most two points in the set, and the claim follows.&lt;br /&gt;
&lt;br /&gt;
The inequalities for n=3 imply inequalities for n=4.  Indeed, there are eight side slices of &amp;lt;math&amp;gt;[3]^4&amp;lt;/math&amp;gt;; each &amp;quot;a&amp;quot; point belongs to four of these, each &amp;quot;b&amp;quot; point belongs to three, each &amp;quot;c&amp;quot; point belongs to two, and each &amp;quot;d&amp;quot; point belongs to one.  Thus, any inequality of the form&lt;br /&gt;
:&amp;lt;math&amp;gt; \alpha a + \beta b + \gamma c + \delta d \leq M&amp;lt;/math&amp;gt;&lt;br /&gt;
in three dimensions implies the inequality&lt;br /&gt;
:&amp;lt;math&amp;gt; 4 \alpha a + 3 \beta b + 2 \gamma c + \delta d \leq 8M&amp;lt;/math&amp;gt;&lt;br /&gt;
in four dimensions.  Thus we have&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;math&amp;gt;8a+3b+4c+4d \leq 176&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;2a+b+c+d \leq 48&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;14a+3b+4c+4d \leq 244&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;4a+b+c+d \leq 64&amp;lt;/math&amp;gt; &lt;br /&gt;
* &amp;lt;math&amp;gt;3b+2c+3d \leq 96&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;a+c+d \leq 28&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;5a+2c+2d \leq 80&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;a+d \leq 16&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;b+2d \leq 32&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;2c+3d \leq 48&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Cubes also sit diagonally in the 4-dimensional cube.  They may have coordinates xxyz, where xx runs over (11,22,33) or (13,22,31), while y and z run over (1,2,3).  These cubes have a different distribution of 2s than the ordinary slices: (a,b,c,d,e) = (8,8,6,4,1) instead of (8,12,6,1,0) for the side slices and (0,8,12,6,1) for the middle slices.  So a different set of inequalities arise.  It is possible to run through the same procedure as described above for n=3, and the inequalities that arise are &amp;lt;math&amp;gt;2a+b+2c+2d+4e \le 24&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;4a+b+2c+2d+4e \le 32&amp;lt;/math&amp;gt; within the 3D cube, which when averaged becomes &amp;lt;math&amp;gt;4a+b+2c+4d+16e \le 96&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;8a+b+2c+4d+16e \le 128&amp;lt;/math&amp;gt; for the 4D cube.  A spreadsheet containing these statistics can be [http://spreadsheets.google.com/ccc?key=p5T0SktZY9DuKZ2DyzO9EOg&amp;amp;hl=en# found here] on sheet 2.  Other sheets of this spreadsheet contain results for a 3D cube sitting diagonally in a 5D or 6D cube.  Notice the similarity of the equations that arise for the xxxyz, xxyyz and xxxxyz diagonals.&lt;br /&gt;
&lt;br /&gt;
== n=5 ==&lt;br /&gt;
&lt;br /&gt;
Let (A,B,C,D,E,F) be the statistics of a five-dimensional Moser set, thus (A,B,C,D,E,F) varies between (0,0,0,0,0,0) and (32,80,80,40,10,1).&lt;br /&gt;
&lt;br /&gt;
There are several Moser sets with the statistics (4,40,80,0,0,0), which thus have 124 points.  Indeed, one can take&lt;br /&gt;
&lt;br /&gt;
* all points with two 1s;&lt;br /&gt;
* all points with one 1 and an even number of 0s; and&lt;br /&gt;
* (02000),(02002),(20200),(02222). Any two of these four points differ in three places, except for one pair of points that differ in one place.&lt;br /&gt;
&lt;br /&gt;
For the rest of this section, we assume that the Moser set &amp;lt;math&amp;gt;{\mathcal A}&amp;lt;/math&amp;gt; is a 125-point set.&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 1&#039;&#039;&#039;: F=0.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; If F is non-zero, then the Moser set contains 22222, then each of the 121 antipodal pairs can have at most one point in the set, leading to only 122 points. &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 2&#039;&#039;&#039;: Every middle slice of &amp;lt;math&amp;gt;{\mathcal A}&amp;lt;/math&amp;gt; has at most 41 points.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039;  Without loss of generality we may consider the 2**** slice.  There are two cases, depending on the value of c(2****).&lt;br /&gt;
&lt;br /&gt;
Suppose first that c is at least 17; thus there are at least 17 points of the form 222xy, 22xy2, 2xy22, or 2x22y, where the x, y denote 1 or 3.  This gives 36 &amp;quot;xy&amp;quot; wildcards in all in four coordinate slots; by the pigeonhole principle one of the slots sees at least 9 of the wildcards.  By symmetry, we may assume that the second coordinate slot sees at least 9 of these wildcards, thus there are at least 9 points of the form 2x22y, 2x2y2, 2xy22.  The x=1, x=3 cases can absorb at most six of these, thus each of these cases must absorb at least three points, with at least one absorbing at least five.  Let&#039;s say that it&#039;s the x=3 case that absorbs 5; thus &amp;lt;math&amp;gt;d(*1***) \geq 3&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;d(*3***) \geq 5&amp;lt;/math&amp;gt;.  From the n=4 theory this means that the *1*** slice has at most 41 points, and the *3*** slice has at most 40.  Meanwhile, the middle slice has at most 43, leading to 41+41+42=124 points in all.&lt;br /&gt;
&lt;br /&gt;
Now suppose c is less than 16; then by the n=4 theory the middle slice is one of the eight (6,24,12,0,0) sets.  Without loss of generality we may take it to be &amp;lt;math&amp;gt;\Gamma_{220}+\Gamma_{202}+\Gamma_{022}+\Gamma_{112}+\Gamma_{211}&amp;lt;/math&amp;gt;; in particular, the middle slice contains the points 21122 21212 21221 23322 23232 23223.  In particular, the *1*** and *3*** slices have a &amp;quot;d&amp;quot; value of at least three, and so have at most 41 points.  If the *2*** slice has at most 42 points, then we are at 41+42+41=124 points as needed, but if we have 43 or more, then we are back in the first case (as &amp;lt;math&amp;gt;c(*2***) \geq 17&amp;lt;/math&amp;gt;) after permuting the indices.&lt;br /&gt;
&amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Since 125=41+41+43, we thus have&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Corollary 1&#039;&#039;&#039;: Every side slice of &amp;lt;math&amp;gt;{\mathcal A}&amp;lt;/math&amp;gt; has at least 41 points.  If one side slice does have 41 points, then the other has 43.&lt;br /&gt;
&lt;br /&gt;
Combining this with the n=4 statistics, we conclude&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Corollary 2&#039;&#039;&#039;: Every side slice of &amp;lt;math&amp;gt;{\mathcal A}&amp;lt;/math&amp;gt; has e=0, and &amp;lt;math&amp;gt;d \leq 3&amp;lt;/math&amp;gt;.  Given two opposite side slices, e.g. 1**** and 3****, we have &amp;lt;math&amp;gt;d(1****)+d(3****) \leq 4&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Corollary 3&#039;&#039;&#039;: E=0.&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Corollary 4&#039;&#039;&#039;: Any middle slice has a &amp;quot;c&amp;quot; value of at most 8.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; Let&#039;s work with the 2**** slice.  By Corollary 2, there are at most four contributions to c(2****) of the form 21*** or 23***, and similarly for the other three positions.  Double counting then gives the claim. &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 3&#039;&#039;&#039;: &amp;lt;math&amp;gt;2B+C \leq 160&amp;lt;/math&amp;gt;.   &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039;: There are 160 lines connecting one &amp;quot;C&amp;quot; point to two &amp;quot;B&amp;quot; points (e.g. 11112, 11122, 11132); each &amp;quot;C&amp;quot; point lies in two of these, and each &amp;quot;B&amp;quot; point lies on four.  A Moser set can have at most two points out of each of these lines.  Double counting then gives the claim.  &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 4&#039;&#039;&#039; Given m A-points with &amp;lt;math&amp;gt;m \geq 5&amp;lt;/math&amp;gt;, there exists at least m-4 pairs (a,b) of such A-points with Hamming distance exactly two (i.e. b differs from a in exactly two places).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; It suffices to check this for m=5, since the case of larger m then follows by locating a pair, removing a point that contributes to that pair, and using the induction hypothesis.  Given 5 A-points, we may assume by the pigeonhole principle and symmetry that at least three of them have an odd number of 1s.  Suppose 11111 is one of the points, and that no pair has Hamming distance 2. All points with two 3s are excluded, so the only points allowed with an odd number of 1s are those with four 3s. But all those points differ from each other in two positions, so at most one of them is allowed.  &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Corollary 5&#039;&#039;&#039; &amp;lt;math&amp;gt;C \leq 79&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039;: Suppose for contradiction that C=80, then D=0 and &amp;lt;math&amp;gt;B \leq 40&amp;lt;/math&amp;gt;.  From Lemma 4 we also see that A cannot exceed 5, leading to the contradiction.&lt;br /&gt;
&amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Define the &#039;&#039;&#039;score&#039;&#039;&#039; of a Moser set in &amp;lt;math&amp;gt;[3]^4&amp;lt;/math&amp;gt; to be the quantity &amp;lt;math&amp;gt;a + 5b/4 + 5c/3 + 5d/2 + 5e&amp;lt;/math&amp;gt;.  Double-counting (and Lemma 2) gives&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 5&#039;&#039;&#039;  The total score of all the ten side-slices of &amp;lt;math&amp;gt;{\mathcal A}&amp;lt;/math&amp;gt; is equal to &amp;lt;math&amp;gt;5|{\mathcal A}| = 5 \times 125&amp;lt;/math&amp;gt;.  In particular, there exists a pair of opposite side-slices whose scores add up to at least 125.&lt;br /&gt;
&lt;br /&gt;
By Lemma 5 and symmetry, we may assume that the 1**** and 3**** slices have score adding up to at least 125.  By Lemma 2, the 2**** slice has at most 41 points, which imply that the 1**** and 3**** have 41, 42, or 43 points.  From the [http://spreadsheets.google.com/ccc?key=p5T0SktZY9DuqNcxJ171Bbw&amp;amp;hl=en n=4 statistics] we know that all 41-point, 42-point, 43-point slices have score less than 62, with the following exceptions:&lt;br /&gt;
&lt;br /&gt;
# (2,16,24,0,0) [42 points, score: 62]&lt;br /&gt;
# (4,16,23,0,0) [43 points, score: 62 1/3]&lt;br /&gt;
# (4,15,24,0,0) [43 points, score: 62 3/4]&lt;br /&gt;
# (3,16,24,0,0) [43 points, score: 63]&lt;br /&gt;
&lt;br /&gt;
Thus the 1**** and 3**** slices must from the above list.  Furthermore, if one of the slices is of type 1, then the other must be of type 4, and if one slice is of type 2, then the other must be of type 3 or 4.&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 6&#039;&#039;&#039; There exists one cut in which the side slices have total score strictly greater than 125 (i.e. they thus involve only Type 2, Type 3, and Type 4 slices, with at least one side slice not equal to Type 2, and the cut here is of the form 43+39+43).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; If not, then all cuts have side slices exactly equal to 125, which by the above table implies that one is Type 1 and one is Type 4, in particular all side slices have c=24.  But this forces C=80, contradicting Corollary 5. &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Adding up the corners we conclude&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Corollary 6&#039;&#039;&#039; &amp;lt;math&amp;gt;6 \leq A \leq 8&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 7&#039;&#039;&#039; &amp;lt;math&amp;gt;D=0&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; Firstly, from Lemma 6 we have a cut in which the two side slices are omitting at most one C-point between them (and have no D-point), which forces the middle slice to have at most one D-point; thus D is at most 1.&lt;br /&gt;
&lt;br /&gt;
Now suppose instead that D=1 (e.g. if 11222 was in the set); then there would be two choices of coordinates in which one of the side slices would have d=1 (e.g. 1**** and *1****). But the [http://spreadsheets.google.com/ccc?key=p5T0SktZY9DuqNcxJ171Bbw&amp;amp;hl=en n=4 statistics] show that such slices have a score of at most 59 7/12, so that the total score from those two coordinates is at most 63 + 59 7/12 = 122 7/12. On the other hand, the other three slices have a net score of at most 63+63 = 126. This averages out to at most 124.633... &amp;lt; 125, a contradiction.  &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Corollary 7&#039;&#039;&#039; Every middle slice has at most 40 points.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; From Lemma 7 we see that the middle slice must have c=0, but from the n=4 statistics this is not possible for any slice of size 41 or higher (alternatively, one can use the inequalities &amp;lt;math&amp;gt;4a+b \leq 64&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;b \leq 32&amp;lt;/math&amp;gt;). &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Each middle slice now has 39 or 40 points, with c=d=e=0, and so from the inequalities &amp;lt;math&amp;gt;4a+b \leq 64&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;b \leq 32&amp;lt;/math&amp;gt; must have statistics (8,32,0,0,0),(7,32,0,0,0), or (8,31,0,0,0).  In particular the &amp;quot;a&amp;quot; index of the middle slices is at most 8.  Summing over all middle slices we conclude&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 9&#039;&#039;&#039; B is at most 40.&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 10&#039;&#039;&#039; C is equal to 78 or 79.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; By Corollary 5, it suffices to show that &amp;lt;math&amp;gt;C \geq 78&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
As 125=43+39+43, we see that every center slice must have at least 39 points. By Lemma 2 and Lemma 7 the center slice has c=d=e=0, thus the center slice has a+b &amp;gt;= 39.  On the other hand, from the n=4 theory we have 4a+b &amp;lt;= 64, which forces b &amp;gt;= 31.&lt;br /&gt;
&lt;br /&gt;
By double counting, we see that 2C is equal to the sum of the b&#039;s of all the five center slices.  Thus C &amp;gt;= 5*31/2 = 77.5 and the claim follows.  &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
From Lemmas 9 and 10 we see that &amp;lt;math&amp;gt;B+C \leq 119&amp;lt;/math&amp;gt;, and thus &amp;lt;math&amp;gt;A \geq 6&amp;lt;/math&amp;gt;.  Also, if &amp;lt;math&amp;gt;A \geq 7&amp;lt;/math&amp;gt;, then by Lemma 4 we have at least three pairs of A points with Hamming distance 2.  At most two of these pairs eliminate the same C point, so we would have C=78 in that case.  &lt;br /&gt;
&lt;br /&gt;
Putting all the above facts together, we see that (A,B,C,D,E,F) must be one of the following triples:&lt;br /&gt;
&lt;br /&gt;
* (6,40,79,0,0,0)&lt;br /&gt;
* (7,40,78,0,0,0)&lt;br /&gt;
* (8,39,78,0,0,0)&lt;br /&gt;
&lt;br /&gt;
All three cases can be eliminated, giving &amp;lt;math&amp;gt;c&#039;_5=124&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== Elimination of (6,40,79,0,0,0) ===&lt;br /&gt;
&lt;br /&gt;
Look at the 6 A points.  From Lemma 4 we have at least two pairs (a,b), (c,d) of A-points that have Hamming separation 2.&lt;br /&gt;
&lt;br /&gt;
Now look at the midpoints of these two pairs; these midpoints are C-points cannot lie in the set.  But we have exactly one C-point missing from the set, thus the midpoints must be the same.  By symmetry, we may thus assume that the two pairs are (11111,11133) and (11113,11131).  Thus 11111,11133, 11113, 11131 are in the set, and so every C-point other than 11122 is in the set.  On the other hand, the B-points 11121, 11123, 11112, 11132 lie outside the set.&lt;br /&gt;
&lt;br /&gt;
At most one of 11312, 11332 lie in the set (since 11322 lies in the set).   Suppose that 11312 lies outside the set, then we have a pair (xy1z2, xy3z2) with x,y,z = 1,3 that is totally omitted from the set, namely (11112,11312).  On the other hand, every other pair of this form can have at most point in the set, thus there are at most seven points in the set of the form (xyzw2) with x,y,z,w = 1,3.  Similarly there are at most 8 points of the form xyz2w, or of xy2zw, x2yzw, 2xyzw, leading to at most 39 B-points in all, contradiction.&lt;br /&gt;
&lt;br /&gt;
=== Elimination of (7,40,78,0,0,0) ===&lt;br /&gt;
&lt;br /&gt;
By Lemma 4, we have at least three pairs of A-points of distance two apart that lie in the set.&lt;br /&gt;
The midpoints of these pairs are C-points that do not lie in the set; but there are only two such C-points, thus two pairs must have the same midpoint, so we may assume as before that 111xy lies in the set for x,y=1,3, which implies that 1112* and 111*2 lie outside the set.&lt;br /&gt;
&lt;br /&gt;
Now consider the 160 lines between 2 B points and one C point (cf. Lemma 3).  The sum of all the points in each such line (counting multiplicity) is 4B+2C = 316.  On the other hand, every one of the 160 lines can have at most two points, and four of these lines (namely 1112*, 111*2) have no points.  Thus all the other lines must have exactly two points.  &lt;br /&gt;
&lt;br /&gt;
We know that the C-point 11122 is missing from the set; there is one other missing C-point.  Since 1112x, 111x2 lie outside the set, we conclude from the previous paragraph that 1132x, 113x2 and 1312x, 131x2 lie in the set.  Taking midpoints we conclude that 11322 and 13122 lie outside the set.  But this is now three C-points missing (together with 11122), a contradiction.&lt;br /&gt;
&lt;br /&gt;
=== Elimination of (8,39,78,0,0,0) ===&lt;br /&gt;
&lt;br /&gt;
By Lemma 4 we have at least four pairs of A-points of distance two apart that lie in the set. The midpoints of these pairs are C-points that do not lie in the set; but there are only two such C-points, thus two pairs (a,b), (c,d) must have the same midpoint p, and the other two pairs (a&#039;,b&#039;), (c&#039;,d&#039;) must also have the same midpoint p&#039;.  (Note that every C-point is the midpoint of at most two such pairs.)&lt;br /&gt;
&lt;br /&gt;
Now consider the 160 lines between 2 B points and one C point (cf. Lemma 3).  The sum of all the points in each such line (counting multiplicity) is 4B+2C = 312.  Every one of the 160 lines can have at most two points, and four of these (those in the plane of (a,b,c,d) or of (a&#039;,b&#039;,c&#039;,d&#039;) have no points.  Thus all other lines must have exactly two points.&lt;br /&gt;
&lt;br /&gt;
Without loss of generality we have (a,b)=(11111,11133), (c,d) = (11113,11131), thus p = 11122.  By permuting the first three indices, we may assume that p&#039; is not of the form x2y2z, x2yz2, xy22z, xy2z2.  Then 1112x lies outside the set and 1122x lies in the set, so by the above paragraph 1132x lies in the set; similarly for 113x2, 1312x, 131x2.  This implies that 13122, 11322 lie outside the set, but this (together with 11122) shows that at least three C-points are missing, a contradiction.&lt;br /&gt;
&lt;br /&gt;
== General n ==&lt;br /&gt;
&lt;br /&gt;
General solution for &amp;lt;math&amp;gt;c&#039;_N&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* q 2s, all points from A(N-q,1)&lt;br /&gt;
* q-1 2s, points from A(N-q+1,2)&lt;br /&gt;
* q-2 2s, points from A(N-q+2,3)&lt;br /&gt;
* etc.&lt;br /&gt;
&lt;br /&gt;
where A(m,d) is a subset of &amp;lt;math&amp;gt;[1,3]^m&amp;lt;/math&amp;gt; for which any two points differ from each other in at least d places.&lt;br /&gt;
&lt;br /&gt;
Mathworld’s entry on error-correcting codes suggests it might be NP-complete to find the size of A(m,d) in general.&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;math&amp;gt;|A(m,1)| = 2^m&amp;lt;/math&amp;gt; because it includes all points in &amp;lt;math&amp;gt;[1,3]^m&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;|A(m,2)| = 2^{m-1}&amp;lt;/math&amp;gt; because it can include all points in &amp;lt;math&amp;gt;[1,3]^m&amp;lt;/math&amp;gt; with an odd number of 1s&lt;br /&gt;
&lt;br /&gt;
Here are some [[Maple calculations]].&lt;br /&gt;
&lt;br /&gt;
A [[genetic algorithm]] has provided the following examples:&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;math&amp;gt;c&#039;_6 \geq 353&amp;lt;/math&amp;gt; (26 examples; [http://twofoldgaze.wordpress.com/2009/03/10/353-element-solution/ here is one])&lt;br /&gt;
* &amp;lt;math&amp;gt;c&#039;_7 \geq 988&amp;lt;/math&amp;gt; [http://twofoldgaze.wordpress.com/2009/03/10/978-element-solution/ Here is the example]&lt;br /&gt;
&lt;br /&gt;
== Variants ==&lt;br /&gt;
&lt;br /&gt;
A lower bound for Moser’s cube &amp;lt;math&amp;gt;[4]^n&amp;lt;/math&amp;gt; (values 0,1,2,3) comes from the following set:  Pick all points where q entries are 1 or 2; and also pick those where q-1 entries are 1 or 2 and an odd number of entries are 0.  This is maximized when q is near n/2, giving a lower bound of&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\binom{n}{n/2} 2^n + \binom{n}{n/2-1} 2^{n-1}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
which is comparable to &amp;lt;math&amp;gt;4^n/\sqrt{n}&amp;lt;/math&amp;gt; by [[Stirling&#039;s formula]].&lt;br /&gt;
&lt;br /&gt;
For k=5 (values 0,1,2,3,4) If A, B, C, D, and E denote the numbers of 0-s, 1-s, 2-s, 3-s, and 4-s then the first three points of a geometric line form a 3-term arithmetic progression in A+E+2(B+D)+3C. So, for k=5 we have a similar lower bound for the Moser’s problem as for DHJ k=3, i.e. &amp;lt;math&amp;gt;5^{n - O(\sqrt{\log n})}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
The k=6 version of Moser implies DHJ(3).  Indeed, any k=3 combinatorial line-free set can be &amp;quot;doubled up&amp;quot; into a k=6 geometric line-free set of the same density by pulling back the set from the map &amp;lt;math&amp;gt;\phi: [6]^n \to [3]^n&amp;lt;/math&amp;gt; that maps 1, 2, 3, 4, 5, 6 to 1, 2, 3, 3, 2, 1 respectively; note that this map sends k=6 geometric lines to k=3 combinatorial lines.&lt;/div&gt;</summary>
		<author><name>121.220.134.232</name></author>
	</entry>
	<entry>
		<id>https://michaelnielsen.org/polymath/index.php?title=Moser%27s_cube_problem&amp;diff=934</id>
		<title>Moser&#039;s cube problem</title>
		<link rel="alternate" type="text/html" href="https://michaelnielsen.org/polymath/index.php?title=Moser%27s_cube_problem&amp;diff=934"/>
		<updated>2009-03-16T14:37:15Z</updated>

		<summary type="html">&lt;p&gt;121.220.134.232: /* n=5 */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Define a &#039;&#039;Moser set&#039;&#039; to be a subset of &amp;lt;math&amp;gt;[3]^n&amp;lt;/math&amp;gt; which does not contain any [[geometric line]], and let &amp;lt;math&amp;gt;c&#039;_n&amp;lt;/math&amp;gt; denote the size of the largest Moser set in &amp;lt;math&amp;gt;[3]^n&amp;lt;/math&amp;gt;.  The first few values are (see [http://www.research.att.com/~njas/sequences/A003142 OEIS A003142]):&lt;br /&gt;
&lt;br /&gt;
: &amp;lt;math&amp;gt;c&#039;_0 = 1; c&#039;_1 = 2; c&#039;_2 = 6; c&#039;_3 = 16; c&#039;_4 = 43; c&#039;_5 = 124.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Beyond this point, we only have some upper and lower bounds, in particular &amp;lt;math&amp;gt;353 \leq c&#039;_6 \leq 360&amp;lt;/math&amp;gt;; see [http://spreadsheets.google.com/ccc?key=p5T0SktZY9DsU-uZ1tK7VEg this spreadsheet] for the latest bounds.&lt;br /&gt;
&lt;br /&gt;
The best known asymptotic lower bound for &amp;lt;math&amp;gt;c&#039;_n&amp;lt;/math&amp;gt; is&lt;br /&gt;
&lt;br /&gt;
: &amp;lt;math&amp;gt;c&#039;_n \gg 3^n/\sqrt{n}&amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
formed by fixing the number of 2s to a single value near n/3.  Compare this to the DHJ(2) or Sperner limit of &amp;lt;math&amp;gt;2^n/\sqrt{n}&amp;lt;/math&amp;gt;.  Is it possible to do any better?  Note that we have a [[Upper_and_lower_bounds#Asymptotics|significantly better bound]] for the DHJ(3) &amp;lt;math&amp;gt;c_n&amp;lt;/math&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
: &amp;lt;math&amp;gt;c_n \geq 3^{n-O(\sqrt{\log n})}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
A more precise lower bound is&lt;br /&gt;
&lt;br /&gt;
: &amp;lt;math&amp;gt;c&#039;_n \geq \binom{n+1}{q} 2^{n-q}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where q is the nearest integer to &amp;lt;math&amp;gt;n/3&amp;lt;/math&amp;gt;, formed by taking all strings with q 2s, together with all strings with q-1 2s and an odd number of 1s.  This for instance gives the lower bound &amp;lt;math&amp;gt;c&#039;_5 \geq 120&amp;lt;/math&amp;gt;, which compares with the upper bound &amp;lt;math&amp;gt;c&#039;_5 \leq 3 c&#039;_4 = 129&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Using [[DHJ(3)]], we have the upper bound&lt;br /&gt;
&lt;br /&gt;
: &amp;lt;math&amp;gt;c&#039;_n = o(3^n)&amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
but no effective decay rate is known. It would be good to have a combinatorial proof of this fact (which is weaker than [[DHJ(3)]], but implies [[Roth&#039;s theorem]]).&lt;br /&gt;
&lt;br /&gt;
Convenient notation: given a Moser set A in &amp;lt;math&amp;gt;[3]^n&amp;lt;/math&amp;gt;, we let a be the number of points in A with no 2s, b be the number of points in A with one 2, c the number of points with two 2s, etc.  We call (a,b,c,...) the &#039;&#039;statistics&#039;&#039; of A.  Given a slice S of &amp;lt;math&amp;gt;[3]^n&amp;lt;/math&amp;gt;, we let a(S), b(S), etc. denote the statistics of that slice (dropping the fixed coordinates).  Thus for instance if A = {11, 12, 22, 32}, then (a,b,c) = (1,2,1), and (a(1*),b(1*)) = (1,1).&lt;br /&gt;
&lt;br /&gt;
We call a statistic (a,b,c,...) &#039;&#039;attainable&#039;&#039; if it is attained by a Moser set.  We say that an attainable statistic is &#039;&#039;Pareto-optimal&#039;&#039; if it cannot be pointwise dominated by any other attainable statistic (a&#039;,b&#039;,c&#039;,...) (thus &amp;lt;math&amp;gt;a&#039; \geq a&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;b&#039; \geq b&amp;lt;/math&amp;gt;, etc.)  We say that it is &#039;&#039;extremal&#039;&#039; if it is not a convex combination of any other attainable statistic (this is a stronger property than Pareto-optimal).  For the purposes of maximising linear scores of attainable statistics, it suffices to check extremal statistics.&lt;br /&gt;
&lt;br /&gt;
We let &amp;lt;math&amp;gt;(\alpha_0,\alpha_1,\ldots)&amp;lt;/math&amp;gt; be the normalized version of &amp;lt;math&amp;gt;(a,b,\ldots)&amp;lt;/math&amp;gt;, in which one divides the number of points of a certain type in the set by the total number of points in the set.  Thus for instance &amp;lt;math&amp;gt;\alpha_0 = a/2^n, \alpha_1 = b/(n 2^{n-1}), \alpha_3 = c/(\binom{n}{2} 2^{n-2})&amp;lt;/math&amp;gt;, etc., and the &amp;lt;math&amp;gt;\alpha_i&amp;lt;/math&amp;gt; range between 0 and 1.  Averaging arguments show that any linear inequality obeyed by the &amp;lt;math&amp;gt;\alpha_i&amp;lt;/math&amp;gt; at one dimension is automatically inherited by higher dimensions, as are shifted versions of this inequality (in which &amp;lt;math&amp;gt;\alpha_i&amp;lt;/math&amp;gt; is replaced by &amp;lt;math&amp;gt;\alpha_{i+1}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== n=0 ==&lt;br /&gt;
&lt;br /&gt;
We trivially have &amp;lt;math&amp;gt;c&#039;_0=1.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== n=1 ==&lt;br /&gt;
&lt;br /&gt;
We trivially have &amp;lt;math&amp;gt;c&#039;_1=2.&amp;lt;/math&amp;gt;  The Pareto-optimal values of the statistics (a,b) are (1,1) and (2,0); these are also the extremals.  We thus have the inequality &amp;lt;math&amp;gt;a+b \leq 2&amp;lt;/math&amp;gt;, or in normalized notation&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;2\alpha_0 + \alpha_1 \leq 2&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== n=2 ==&lt;br /&gt;
&lt;br /&gt;
We have &amp;lt;math&amp;gt;c&#039;_2 = 6&amp;lt;/math&amp;gt;; the upper bound follows since &amp;lt;math&amp;gt;c&#039;_2 \leq 3 c&#039;_1&amp;lt;/math&amp;gt;, and the lower bound follows by deleting one of the two diagonals from &amp;lt;math&amp;gt;[3]^2&amp;lt;/math&amp;gt; (these are the only extremisers).&lt;br /&gt;
&lt;br /&gt;
The extremiser has statistics (a,b,c) = (2,4,0), which are of course Pareto-optimal.  If c=1 then we must have a, b at most 2 (look at the lines through 22).  This is attainable (e.g. {11, 12, 22, 23, 31}, and so (2,2,1) is another Pareto-optimal statistic.  If a=4, then b and c must be 0, so we get another Pareto-optimal statistic (4,0,0) (attainable by {11, 13, 31, 33} of course).  If a=3, then c=0 and b is at most 2, giving another Pareto-optimal statistic (3,2,0); but this is a convex combination of (4,0,0) and (2,4,0) and is thus not extremal.  Thus the complete set of extremal statistics are&lt;br /&gt;
&lt;br /&gt;
(4,0,0), (2,4,0), (2,2,1).&lt;br /&gt;
&lt;br /&gt;
The sharp linear inequalities obeyed by a,b,c (other than the trivial ones &amp;lt;math&amp;gt;a,b,c \geq 0&amp;lt;/math&amp;gt;) are then&lt;br /&gt;
&lt;br /&gt;
*&amp;lt;math&amp;gt;2a+b+2c \leq 8&amp;lt;/math&amp;gt;&lt;br /&gt;
*&amp;lt;math&amp;gt;b+2c \leq 4&amp;lt;/math&amp;gt;&lt;br /&gt;
*&amp;lt;math&amp;gt;a+2c \leq 4&amp;lt;/math&amp;gt;&lt;br /&gt;
*&amp;lt;math&amp;gt;c \leq 1&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
In normalized notation, we have&lt;br /&gt;
*&amp;lt;math&amp;gt;4\alpha_0 + 2\alpha_1 + \alpha_2 \leq 4&amp;lt;/math&amp;gt;&lt;br /&gt;
*&amp;lt;math&amp;gt;2\alpha_1 + \alpha_2 \leq 2&amp;lt;/math&amp;gt;&lt;br /&gt;
*&amp;lt;math&amp;gt;2\alpha_0 + \alpha_2 \leq 2&amp;lt;/math&amp;gt;&lt;br /&gt;
*&amp;lt;math&amp;gt;\alpha_2 \leq 1&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== n=3 ==&lt;br /&gt;
&lt;br /&gt;
We have &amp;lt;math&amp;gt;c&#039;_3 = 16&amp;lt;/math&amp;gt;.  The lower bound can be seen for instance by taking all the strings with one 2, and half the strings with no 2 (e.g. the strings with an odd number of 1s).  The upper bound can be deduced from the corresponding [[upper and lower bounds]] for &amp;lt;math&amp;gt;c_3 = 18&amp;lt;/math&amp;gt;; the 17-point and 18-point line-free sets each contain a geometric line.&lt;br /&gt;
&lt;br /&gt;
If a Moser set in &amp;lt;math&amp;gt;[3]^3&amp;lt;/math&amp;gt; contains 222, then it can have at most 14 points, since the remaining 26 points in the cube split into 13 antipodal pairs, and at most one of each pair can lie in the set.  By exhausting over the &amp;lt;math&amp;gt;2^{13} = 8192&amp;lt;/math&amp;gt; possibilities, it can be shown that it is impossible for a 14-point set to exist; any Moser set containing 222 must in fact omit at least one antipodal pair completely and thus have only 13 points.  (A human proof of this fact can be [http://www.ma.rhul.ac.uk/~elsholtz/WWW/blog/mosertablogv01.pdf found here].)&lt;br /&gt;
&lt;br /&gt;
The Pareto-optimal statistics are&lt;br /&gt;
&lt;br /&gt;
(3,6,3,1),(4,4,3,1),(4,6,2,1),(2,6,6,0),(3,6,5,0),(4,4,5,0),(3,7,4,0),(4,6,4,0), (3,9,3,0),(4,7,3,0),(5,4,3,0),(4,9,2,0),(5,6,2,0),(6,3,2,0),(3,10,1,0),(5,7,1,0), (6,4,1,0),(4,12,0,0),(5,9,0,0),(6,6,0,0),(7,3,0,0),(8,0,0,0).&lt;br /&gt;
&lt;br /&gt;
A spreadsheet containing these statistics can be [http://spreadsheets.google.com/ccc?key=p5T0SktZY9DuKZ2DyzO9EOg&amp;amp;hl=en# found here].&lt;br /&gt;
&lt;br /&gt;
The extremal statistics are&lt;br /&gt;
&lt;br /&gt;
(3,6,3,1),(4,4,3,1),(4,6,2,1),(2,6,6,0),(4,4,5,0),(4,6,4,0),(4,12,0,0),(8,0,0,0)&lt;br /&gt;
&lt;br /&gt;
The sharp linear bounds are :&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;math&amp;gt;2a+b+2c+4d \leq 22&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;3a+2b+3c+6d \leq 36&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;7a+2b+4c+8d \leq 56&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;6a+2b+3c+6d \leq 48&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;b+c+3d \leq 12&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;a+2c+4d \leq 14&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;5a+4c+8d \leq 40&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;a+4d \leq 8&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;b+6d \leq 12&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;c+3d \leq 6&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;d \leq 1&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In normalized notation,&lt;br /&gt;
* &amp;lt;math&amp;gt;8\alpha_0+ 6\alpha_1 + 6\alpha_2 + 2\alpha_3 \leq 11&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;4\alpha_0+4\alpha_1+3\alpha_2+\alpha_3 \leq 6&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;7\alpha_0+3\alpha_1+3\alpha_2+\alpha_3 \leq 7&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;8\alpha_0+3\alpha_1+3\alpha_2+\alpha_3 \leq 8&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;4\alpha_1+2\alpha_2+\alpha_3 \leq 4&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;4\alpha_0+6\alpha_2+2\alpha_3 \leq 7&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;5\alpha_0+3\alpha_2+\alpha_3 \leq 5&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;2\alpha_0+\alpha_3 \leq 2&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;2\alpha_1+\alpha_3 \leq 2&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;2\alpha_2+\alpha_3 \leq 2&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;\alpha_3 \leq 1&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== n=4 ==&lt;br /&gt;
&lt;br /&gt;
A [http://abel.math.umu.se/~klasm/extremal-moser-n=5-t=3 computer search] has obtained all extremisers to &amp;lt;math&amp;gt;c&#039;_4=43&amp;lt;/math&amp;gt;.  The 42-point solutions can be found [http://abel.math.umu.se/~klasm/moser-n=4-t=3-p=42.gz here].&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof that &amp;lt;math&amp;gt;c&#039;_4 \leq 43&amp;lt;/math&amp;gt;&#039;&#039;&#039;: &lt;br /&gt;
When e=1 (i.e. the 4D set contains 2222) then we have at most 41 points (in fact at most 39) by counting antipodal points, so assume e=0.&lt;br /&gt;
&lt;br /&gt;
Define the score of a 3D slice to be a/4+b/3+c/2+d.  Observe from double counting that the size of a 4D set is the sum of the scores of its eight side slices.&lt;br /&gt;
&lt;br /&gt;
But by [http://spreadsheets.google.com/ccc?key=p5T0SktZY9DuKZ2DyzO9EOg&amp;amp;hl=en looking at the extremals] we see that the largest score is 44/8, attained at only one point, namely when (a,b,c,d) = (2,6,6,0).  So the only way one can have a 44-point set is if all side slices are (2,6,6,0), or equivalently if the whole set has statistics (a,b,c,d,e) = (4,16,24,0,0).  But then we have all the points with two 2s, which means that the four &amp;quot;a&amp;quot; points cannot be separated by Hamming distance 2.  We conclude that we must have an antipodal pair among the &amp;quot;a&amp;quot; points with an odd number of 1s, and an antipodal pair among the &amp;quot;a&amp;quot; points with an even number of 1s.    By the symmetries of the cube, we may take the a-set to then be 1111, 3333, 1113, 3331.  But then the &amp;quot;b&amp;quot; set must exclude both 1112 and 3332, and so can have at most three points in the eight-point set xyz2 (with x,y,z=1,3) rather than four (to get four points one must alternate in a checkerboard pattern).  Adding this to the at most four points of the form xy2z, x2yz, 2xyz we see that b is at most 16, a contradiction. &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Given a subset of &amp;lt;math&amp;gt;[3]^4&amp;lt;/math&amp;gt;, let a be the number of points with no 2s, b be the number of points with 1 2, and so forth.  The quintuple (a,b,c,d,e) thus lies between (0,0,0,0,0) and (16,32,24,8,1).&lt;br /&gt;
&lt;br /&gt;
The 43-point solutions have distributions (a,b,c,d,e) as follows:&lt;br /&gt;
&lt;br /&gt;
* (5,20,18,0,0) [16 solutions]&lt;br /&gt;
* (4,16,23,0,0) [768 solutions]&lt;br /&gt;
* (3,16,24,0,0) [512 solutions]&lt;br /&gt;
* (4,15,24,0,0) [256 solutions]&lt;br /&gt;
&lt;br /&gt;
The 42-point solutions are [http://abel.math.umu.se/~klasm/Moser-42-stat.pdf distributed as follows]:&lt;br /&gt;
&lt;br /&gt;
* (6,24,12,0,0) [[http://abel.math.umu.se/~klasm/moser-n=4-42-12 8 solutions]] &lt;br /&gt;
* (5,20,17,0,0) [576 solutions]&lt;br /&gt;
* (5,19,18,0,0) [384 solutions]&lt;br /&gt;
* (6,16,18,2,0) [[http://abel.math.umu.se/~klasm/moser-n=4-42-e=2 192 solutions]]&lt;br /&gt;
* (4,20,18,0,0) [272 solutions]&lt;br /&gt;
* (5,17,20,0,0) [192 solutions]&lt;br /&gt;
* (5,16,21,0,0) [3584 solutions]&lt;br /&gt;
* (4,17,21,0,0) [768 solutions]&lt;br /&gt;
* (4,16,22,0,0) [26880 solutions]&lt;br /&gt;
* (5,15,22,0,0) [1536 solutions]&lt;br /&gt;
* (4,15,23,0,0) [22272 solutions]&lt;br /&gt;
* (3,16,23,0,0) [15744 solutions]&lt;br /&gt;
* (4,14,24,0,0) [4224 solutions]&lt;br /&gt;
* (3,15,24,0,0) [8704 solutions]&lt;br /&gt;
* (2,16,24,0,0) [896 solutions]&lt;br /&gt;
&lt;br /&gt;
Note how c is usually quite large, and d quite low.&lt;br /&gt;
&lt;br /&gt;
One of the (6,24,12,0,0) solutions is &amp;lt;math&amp;gt;\Gamma_{220}+\Gamma_{202}+\Gamma_{022}+\Gamma_{112}+\Gamma_{211}&amp;lt;/math&amp;gt; (i.e. the set of points containing exactly two 1s, and/or exactly two 3s).  The other seven are reflections of this set.&lt;br /&gt;
&lt;br /&gt;
There are 2,765,200 41-point solutions, [http://abel.math.umu.se/~klasm/solutions-4-t=3-41-moser.gz listed here].  The statistics for such points can be [http://abel.math.umu.se/~klasm/Moser-41-stat.pdf found here].  Noteworthy features of the statistics:&lt;br /&gt;
&lt;br /&gt;
* d is at most 3 (and, except for [http://abel.math.umu.se/~klasm/moser-n=3-t=3-41-d=3.gz 256 exceptional solutions] of the shape (5,15,18,3,0), have d at most 2; here are the [http://abel.math.umu.se/~klasm/moser-n=3-t=3-41-d=2.gz d=2 solutions] and [http://abel.math.umu.se/~klasm/moser-n=3-t=3-41-d=1.gz d=1 solutions])&lt;br /&gt;
* c is at least 6 (and, except for [http://abel.math.umu.se/~klasm/moser-n=3-t=3-41-c=6.gz 16 exceptional solutions] of the shape (7,28,6,0,0), have c at least 11).&lt;br /&gt;
&lt;br /&gt;
Statistics for the 41-point, 42-point, and 43-point solutions can be found [http://spreadsheets.google.com/ccc?key=p5T0SktZY9DuqNcxJ171Bbw&amp;amp;hl=en here].&lt;br /&gt;
&lt;br /&gt;
If a Moser set in &amp;lt;math&amp;gt;[3]^4&amp;lt;/math&amp;gt; contains 2222, then by the n=3 theory, any middle slice (i.e. 2***, *2**, **2*, or ***2) is missing at least one antipodal pair.  But each antipodal pair belongs to at most three middle slices, thus two of the 40 antipodal pairs must be completely missing.  As a consequence, any Moser set containing 2222 can have at most 39 points.&lt;br /&gt;
(A more refined analysis can be found at [http://www.ma.rhul.ac.uk/~elsholtz/WWW/blog/mosertablogv01.pdf found here].)&lt;br /&gt;
&lt;br /&gt;
We have the following inequalities connecting a,b,c,d,e:&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;math&amp;gt;4a+b \leq 64&amp;lt;/math&amp;gt;:  There are 32 lines connecting two &amp;quot;a&amp;quot; points with a &amp;quot;b&amp;quot; point; each &amp;quot;a&amp;quot; point belongs to four of these lines, and each &amp;quot;b&amp;quot; point belongs to one.  But each such line can have at most two points in the set, and the claim follows.&lt;br /&gt;
* This can be refined to &amp;lt;math&amp;gt;4a+b+\frac{2}{3} c \leq 64&amp;lt;/math&amp;gt;: There are 24 planes connecting four &amp;quot;a&amp;quot; points, four &amp;quot;b&amp;quot; points, and one &amp;quot;c&amp;quot; point; each &amp;quot;a&amp;quot; point belongs to six of these, each &amp;quot;b&amp;quot; point belongs to three, and each &amp;quot;c&amp;quot; point belongs to one.  For each of these planes, we have &amp;lt;math&amp;gt;2a + b + 2c \leq 8&amp;lt;/math&amp;gt; from the n=2 theory, and the claim follows.&lt;br /&gt;
* &amp;lt;math&amp;gt;6a+2c \leq 96&amp;lt;/math&amp;gt;:  There are 96 lines connecting two &amp;quot;a&amp;quot; points with a &amp;quot;c&amp;quot; point; each &amp;quot;a&amp;quot; point belongs to six of these lines, and each &amp;quot;c&amp;quot; point belongs to two.  But each such line can have at most two points in the set, and the claim follows.&lt;br /&gt;
* &amp;lt;math&amp;gt;3b+2c \leq 96&amp;lt;/math&amp;gt;:  There are 48 lines connecting two &amp;quot;b&amp;quot; points to a &amp;quot;c&amp;quot; point; each &amp;quot;b&amp;quot; point belongs to three of these points, and each &amp;quot;c&amp;quot; point belongs to two.  But each such line can have at most two points in the set, and the claim follows.&lt;br /&gt;
&lt;br /&gt;
The inequalities for n=3 imply inequalities for n=4.  Indeed, there are eight side slices of &amp;lt;math&amp;gt;[3]^4&amp;lt;/math&amp;gt;; each &amp;quot;a&amp;quot; point belongs to four of these, each &amp;quot;b&amp;quot; point belongs to three, each &amp;quot;c&amp;quot; point belongs to two, and each &amp;quot;d&amp;quot; point belongs to one.  Thus, any inequality of the form&lt;br /&gt;
:&amp;lt;math&amp;gt; \alpha a + \beta b + \gamma c + \delta d \leq M&amp;lt;/math&amp;gt;&lt;br /&gt;
in three dimensions implies the inequality&lt;br /&gt;
:&amp;lt;math&amp;gt; 4 \alpha a + 3 \beta b + 2 \gamma c + \delta d \leq 8M&amp;lt;/math&amp;gt;&lt;br /&gt;
in four dimensions.  Thus we have&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;math&amp;gt;8a+3b+4c+4d \leq 176&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;2a+b+c+d \leq 48&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;14a+3b+4c+4d \leq 244&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;4a+b+c+d \leq 64&amp;lt;/math&amp;gt; &lt;br /&gt;
* &amp;lt;math&amp;gt;3b+2c+3d \leq 96&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;a+c+d \leq 28&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;5a+2c+2d \leq 80&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;a+d \leq 16&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;b+2d \leq 32&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;2c+3d \leq 48&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Cubes also sit diagonally in the 4-dimensional cube.  They may have coordinates xxyz, where xx runs over (11,22,33) or (13,22,31), while y and z run over (1,2,3).  These cubes have a different distribution of 2s than the ordinary slices: (a,b,c,d,e) = (8,8,6,4,1) instead of (8,12,6,1,0) for the side slices and (0,8,12,6,1) for the middle slices.  So a different set of inequalities arise.  It is possible to run through the same procedure as described above for n=3, and the inequalities that arise are &amp;lt;math&amp;gt;2a+b+2c+2d+4e \le 24&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;4a+b+2c+2d+4e \le 32&amp;lt;/math&amp;gt; within the 3D cube, which when averaged becomes &amp;lt;math&amp;gt;4a+b+2c+4d+16e \le 96&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;8a+b+2c+4d+16e \le 128&amp;lt;/math&amp;gt; for the 4D cube.  A spreadsheet containing these statistics can be [http://spreadsheets.google.com/ccc?key=p5T0SktZY9DuKZ2DyzO9EOg&amp;amp;hl=en# found here] on sheet 2.  Other sheets of this spreadsheet contain results for a 3D cube sitting diagonally in a 5D or 6D cube.  Notice the similarity of the equations that arise for the xxxyz, xxyyz and xxxxyz diagonals.&lt;br /&gt;
&lt;br /&gt;
== n=5 ==&lt;br /&gt;
&lt;br /&gt;
Let (A,B,C,D,E,F) be the statistics of a five-dimensional Moser set, thus (A,B,C,D,E,F) varies between (0,0,0,0,0,0) and (32,80,80,40,10,1).&lt;br /&gt;
&lt;br /&gt;
There are several Moser sets with the statistics (4,40,80,0,0,0), which thus have 124 points.  Indeed, one can take&lt;br /&gt;
&lt;br /&gt;
* all points with two 1s;&lt;br /&gt;
* all points with one 1 and an even number of 0s; and&lt;br /&gt;
* (01000),(01001),(10100),(01111). Any two of these four points differ in three places, except for one pair of points that differ in one place.&lt;br /&gt;
&lt;br /&gt;
For the rest of this section, we assume that the Moser set &amp;lt;math&amp;gt;{\mathcal A}&amp;lt;/math&amp;gt; is a 125-point set.&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 1&#039;&#039;&#039;: F=0.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; If F is non-zero, then the Moser set contains 22222, then each of the 121 antipodal pairs can have at most one point in the set, leading to only 122 points. &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 2&#039;&#039;&#039;: Every middle slice of &amp;lt;math&amp;gt;{\mathcal A}&amp;lt;/math&amp;gt; has at most 41 points.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039;  Without loss of generality we may consider the 2**** slice.  There are two cases, depending on the value of c(2****).&lt;br /&gt;
&lt;br /&gt;
Suppose first that c is at least 17; thus there are at least 17 points of the form 222xy, 22xy2, 2xy22, or 2x22y, where the x, y denote 1 or 3.  This gives 36 &amp;quot;xy&amp;quot; wildcards in all in four coordinate slots; by the pigeonhole principle one of the slots sees at least 9 of the wildcards.  By symmetry, we may assume that the second coordinate slot sees at least 9 of these wildcards, thus there are at least 9 points of the form 2x22y, 2x2y2, 2xy22.  The x=1, x=3 cases can absorb at most six of these, thus each of these cases must absorb at least three points, with at least one absorbing at least five.  Let&#039;s say that it&#039;s the x=3 case that absorbs 5; thus &amp;lt;math&amp;gt;d(*1***) \geq 3&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;d(*3***) \geq 5&amp;lt;/math&amp;gt;.  From the n=4 theory this means that the *1*** slice has at most 41 points, and the *3*** slice has at most 40.  Meanwhile, the middle slice has at most 43, leading to 41+41+42=124 points in all.&lt;br /&gt;
&lt;br /&gt;
Now suppose c is less than 16; then by the n=4 theory the middle slice is one of the eight (6,24,12,0,0) sets.  Without loss of generality we may take it to be &amp;lt;math&amp;gt;\Gamma_{220}+\Gamma_{202}+\Gamma_{022}+\Gamma_{112}+\Gamma_{211}&amp;lt;/math&amp;gt;; in particular, the middle slice contains the points 21122 21212 21221 23322 23232 23223.  In particular, the *1*** and *3*** slices have a &amp;quot;d&amp;quot; value of at least three, and so have at most 41 points.  If the *2*** slice has at most 42 points, then we are at 41+42+41=124 points as needed, but if we have 43 or more, then we are back in the first case (as &amp;lt;math&amp;gt;c(*2***) \geq 17&amp;lt;/math&amp;gt;) after permuting the indices.&lt;br /&gt;
&amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Since 125=41+41+43, we thus have&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Corollary 1&#039;&#039;&#039;: Every side slice of &amp;lt;math&amp;gt;{\mathcal A}&amp;lt;/math&amp;gt; has at least 41 points.  If one side slice does have 41 points, then the other has 43.&lt;br /&gt;
&lt;br /&gt;
Combining this with the n=4 statistics, we conclude&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Corollary 2&#039;&#039;&#039;: Every side slice of &amp;lt;math&amp;gt;{\mathcal A}&amp;lt;/math&amp;gt; has e=0, and &amp;lt;math&amp;gt;d \leq 3&amp;lt;/math&amp;gt;.  Given two opposite side slices, e.g. 1**** and 3****, we have &amp;lt;math&amp;gt;d(1****)+d(3****) \leq 4&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Corollary 3&#039;&#039;&#039;: E=0.&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Corollary 4&#039;&#039;&#039;: Any middle slice has a &amp;quot;c&amp;quot; value of at most 8.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; Let&#039;s work with the 2**** slice.  By Corollary 2, there are at most four contributions to c(2****) of the form 21*** or 23***, and similarly for the other three positions.  Double counting then gives the claim. &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 3&#039;&#039;&#039;: &amp;lt;math&amp;gt;2B+C \leq 160&amp;lt;/math&amp;gt;.   &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039;: There are 160 lines connecting one &amp;quot;C&amp;quot; point to two &amp;quot;B&amp;quot; points (e.g. 11112, 11122, 11132); each &amp;quot;C&amp;quot; point lies in two of these, and each &amp;quot;B&amp;quot; point lies on four.  A Moser set can have at most two points out of each of these lines.  Double counting then gives the claim.  &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 4&#039;&#039;&#039; Given m A-points with &amp;lt;math&amp;gt;m \geq 5&amp;lt;/math&amp;gt;, there exists at least m-4 pairs (a,b) of such A-points with Hamming distance exactly two (i.e. b differs from a in exactly two places).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; It suffices to check this for m=5, since the case of larger m then follows by locating a pair, removing a point that contributes to that pair, and using the induction hypothesis.  Given 5 A-points, we may assume by the pigeonhole principle and symmetry that at least three of them have an odd number of 1s.  Suppose 11111 is one of the points, and that no pair has Hamming distance 2. All points with two 3s are excluded, so the only points allowed with an odd number of 1s are those with four 3s. But all those points differ from each other in two positions, so at most one of them is allowed.  &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Corollary 5&#039;&#039;&#039; &amp;lt;math&amp;gt;C \leq 79&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039;: Suppose for contradiction that C=80, then D=0 and &amp;lt;math&amp;gt;B \leq 40&amp;lt;/math&amp;gt;.  From Lemma 4 we also see that A cannot exceed 5, leading to the contradiction.&lt;br /&gt;
&amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Define the &#039;&#039;&#039;score&#039;&#039;&#039; of a Moser set in &amp;lt;math&amp;gt;[3]^4&amp;lt;/math&amp;gt; to be the quantity &amp;lt;math&amp;gt;a + 5b/4 + 5c/3 + 5d/2 + 5e&amp;lt;/math&amp;gt;.  Double-counting (and Lemma 2) gives&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 5&#039;&#039;&#039;  The total score of all the ten side-slices of &amp;lt;math&amp;gt;{\mathcal A}&amp;lt;/math&amp;gt; is equal to &amp;lt;math&amp;gt;5|{\mathcal A}| = 5 \times 125&amp;lt;/math&amp;gt;.  In particular, there exists a pair of opposite side-slices whose scores add up to at least 125.&lt;br /&gt;
&lt;br /&gt;
By Lemma 5 and symmetry, we may assume that the 1**** and 3**** slices have score adding up to at least 125.  By Lemma 2, the 2**** slice has at most 41 points, which imply that the 1**** and 3**** have 41, 42, or 43 points.  From the [http://spreadsheets.google.com/ccc?key=p5T0SktZY9DuqNcxJ171Bbw&amp;amp;hl=en n=4 statistics] we know that all 41-point, 42-point, 43-point slices have score less than 62, with the following exceptions:&lt;br /&gt;
&lt;br /&gt;
# (2,16,24,0,0) [42 points, score: 62]&lt;br /&gt;
# (4,16,23,0,0) [43 points, score: 62 1/3]&lt;br /&gt;
# (4,15,24,0,0) [43 points, score: 62 3/4]&lt;br /&gt;
# (3,16,24,0,0) [43 points, score: 63]&lt;br /&gt;
&lt;br /&gt;
Thus the 1**** and 3**** slices must from the above list.  Furthermore, if one of the slices is of type 1, then the other must be of type 4, and if one slice is of type 2, then the other must be of type 3 or 4.&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 6&#039;&#039;&#039; There exists one cut in which the side slices have total score strictly greater than 125 (i.e. they thus involve only Type 2, Type 3, and Type 4 slices, with at least one side slice not equal to Type 2, and the cut here is of the form 43+39+43).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; If not, then all cuts have side slices exactly equal to 125, which by the above table implies that one is Type 1 and one is Type 4, in particular all side slices have c=24.  But this forces C=80, contradicting Corollary 5. &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Adding up the corners we conclude&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Corollary 6&#039;&#039;&#039; &amp;lt;math&amp;gt;6 \leq A \leq 8&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 7&#039;&#039;&#039; &amp;lt;math&amp;gt;D=0&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; Firstly, from Lemma 6 we have a cut in which the two side slices are omitting at most one C-point between them (and have no D-point), which forces the middle slice to have at most one D-point; thus D is at most 1.&lt;br /&gt;
&lt;br /&gt;
Now suppose instead that D=1 (e.g. if 11222 was in the set); then there would be two choices of coordinates in which one of the side slices would have d=1 (e.g. 1**** and *1****). But the [http://spreadsheets.google.com/ccc?key=p5T0SktZY9DuqNcxJ171Bbw&amp;amp;hl=en n=4 statistics] show that such slices have a score of at most 59 7/12, so that the total score from those two coordinates is at most 63 + 59 7/12 = 122 7/12. On the other hand, the other three slices have a net score of at most 63+63 = 126. This averages out to at most 124.633... &amp;lt; 125, a contradiction.  &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Corollary 7&#039;&#039;&#039; Every middle slice has at most 40 points.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; From Lemma 7 we see that the middle slice must have c=0, but from the n=4 statistics this is not possible for any slice of size 41 or higher (alternatively, one can use the inequalities &amp;lt;math&amp;gt;4a+b \leq 64&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;b \leq 32&amp;lt;/math&amp;gt;). &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Each middle slice now has 39 or 40 points, with c=d=e=0, and so from the inequalities &amp;lt;math&amp;gt;4a+b \leq 64&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;b \leq 32&amp;lt;/math&amp;gt; must have statistics (8,32,0,0,0),(7,32,0,0,0), or (8,31,0,0,0).  In particular the &amp;quot;a&amp;quot; index of the middle slices is at most 8.  Summing over all middle slices we conclude&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 9&#039;&#039;&#039; B is at most 40.&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 10&#039;&#039;&#039; C is equal to 78 or 79.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; By Corollary 5, it suffices to show that &amp;lt;math&amp;gt;C \geq 78&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
As 125=43+39+43, we see that every center slice must have at least 39 points. By Lemma 2 and Lemma 7 the center slice has c=d=e=0, thus the center slice has a+b &amp;gt;= 39.  On the other hand, from the n=4 theory we have 4a+b &amp;lt;= 64, which forces b &amp;gt;= 31.&lt;br /&gt;
&lt;br /&gt;
By double counting, we see that 2C is equal to the sum of the b&#039;s of all the five center slices.  Thus C &amp;gt;= 5*31/2 = 77.5 and the claim follows.  &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
From Lemmas 9 and 10 we see that &amp;lt;math&amp;gt;B+C \leq 119&amp;lt;/math&amp;gt;, and thus &amp;lt;math&amp;gt;A \geq 6&amp;lt;/math&amp;gt;.  Also, if &amp;lt;math&amp;gt;A \geq 7&amp;lt;/math&amp;gt;, then by Lemma 4 we have at least three pairs of A points with Hamming distance 2.  At most two of these pairs eliminate the same C point, so we would have C=78 in that case.  &lt;br /&gt;
&lt;br /&gt;
Putting all the above facts together, we see that (A,B,C,D,E,F) must be one of the following triples:&lt;br /&gt;
&lt;br /&gt;
* (6,40,79,0,0,0)&lt;br /&gt;
* (7,40,78,0,0,0)&lt;br /&gt;
* (8,39,78,0,0,0)&lt;br /&gt;
&lt;br /&gt;
All three cases can be eliminated, giving &amp;lt;math&amp;gt;c&#039;_5=124&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== Elimination of (6,40,79,0,0,0) ===&lt;br /&gt;
&lt;br /&gt;
Look at the 6 A points.  From Lemma 4 we have at least two pairs (a,b), (c,d) of A-points that have Hamming separation 2.&lt;br /&gt;
&lt;br /&gt;
Now look at the midpoints of these two pairs; these midpoints are C-points cannot lie in the set.  But we have exactly one C-point missing from the set, thus the midpoints must be the same.  By symmetry, we may thus assume that the two pairs are (11111,11133) and (11113,11131).  Thus 11111,11133, 11113, 11131 are in the set, and so every C-point other than 11122 is in the set.  On the other hand, the B-points 11121, 11123, 11112, 11132 lie outside the set.&lt;br /&gt;
&lt;br /&gt;
At most one of 11312, 11332 lie in the set (since 11322 lies in the set).   Suppose that 11312 lies outside the set, then we have a pair (xy1z2, xy3z2) with x,y,z = 1,3 that is totally omitted from the set, namely (11112,11312).  On the other hand, every other pair of this form can have at most point in the set, thus there are at most seven points in the set of the form (xyzw2) with x,y,z,w = 1,3.  Similarly there are at most 8 points of the form xyz2w, or of xy2zw, x2yzw, 2xyzw, leading to at most 39 B-points in all, contradiction.&lt;br /&gt;
&lt;br /&gt;
=== Elimination of (7,40,78,0,0,0) ===&lt;br /&gt;
&lt;br /&gt;
By Lemma 4, we have at least three pairs of A-points of distance two apart that lie in the set.&lt;br /&gt;
The midpoints of these pairs are C-points that do not lie in the set; but there are only two such C-points, thus two pairs must have the same midpoint, so we may assume as before that 111xy lies in the set for x,y=1,3, which implies that 1112* and 111*2 lie outside the set.&lt;br /&gt;
&lt;br /&gt;
Now consider the 160 lines between 2 B points and one C point (cf. Lemma 3).  The sum of all the points in each such line (counting multiplicity) is 4B+2C = 316.  On the other hand, every one of the 160 lines can have at most two points, and four of these lines (namely 1112*, 111*2) have no points.  Thus all the other lines must have exactly two points.  &lt;br /&gt;
&lt;br /&gt;
We know that the C-point 11122 is missing from the set; there is one other missing C-point.  Since 1112x, 111x2 lie outside the set, we conclude from the previous paragraph that 1132x, 113x2 and 1312x, 131x2 lie in the set.  Taking midpoints we conclude that 11322 and 13122 lie outside the set.  But this is now three C-points missing (together with 11122), a contradiction.&lt;br /&gt;
&lt;br /&gt;
=== Elimination of (8,39,78,0,0,0) ===&lt;br /&gt;
&lt;br /&gt;
By Lemma 4 we have at least four pairs of A-points of distance two apart that lie in the set. The midpoints of these pairs are C-points that do not lie in the set; but there are only two such C-points, thus two pairs (a,b), (c,d) must have the same midpoint p, and the other two pairs (a&#039;,b&#039;), (c&#039;,d&#039;) must also have the same midpoint p&#039;.  (Note that every C-point is the midpoint of at most two such pairs.)&lt;br /&gt;
&lt;br /&gt;
Now consider the 160 lines between 2 B points and one C point (cf. Lemma 3).  The sum of all the points in each such line (counting multiplicity) is 4B+2C = 312.  Every one of the 160 lines can have at most two points, and four of these (those in the plane of (a,b,c,d) or of (a&#039;,b&#039;,c&#039;,d&#039;) have no points.  Thus all other lines must have exactly two points.&lt;br /&gt;
&lt;br /&gt;
Without loss of generality we have (a,b)=(11111,11133), (c,d) = (11113,11131), thus p = 11122.  By permuting the first three indices, we may assume that p&#039; is not of the form x2y2z, x2yz2, xy22z, xy2z2.  Then 1112x lies outside the set and 1122x lies in the set, so by the above paragraph 1132x lies in the set; similarly for 113x2, 1312x, 131x2.  This implies that 13122, 11322 lie outside the set, but this (together with 11122) shows that at least three C-points are missing, a contradiction.&lt;br /&gt;
&lt;br /&gt;
== General n ==&lt;br /&gt;
&lt;br /&gt;
General solution for &amp;lt;math&amp;gt;c&#039;_N&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* q 2s, all points from A(N-q,1)&lt;br /&gt;
* q-1 2s, points from A(N-q+1,2)&lt;br /&gt;
* q-2 2s, points from A(N-q+2,3)&lt;br /&gt;
* etc.&lt;br /&gt;
&lt;br /&gt;
where A(m,d) is a subset of &amp;lt;math&amp;gt;[1,3]^m&amp;lt;/math&amp;gt; for which any two points differ from each other in at least d places.&lt;br /&gt;
&lt;br /&gt;
Mathworld’s entry on error-correcting codes suggests it might be NP-complete to find the size of A(m,d) in general.&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;math&amp;gt;|A(m,1)| = 2^m&amp;lt;/math&amp;gt; because it includes all points in &amp;lt;math&amp;gt;[1,3]^m&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;|A(m,2)| = 2^{m-1}&amp;lt;/math&amp;gt; because it can include all points in &amp;lt;math&amp;gt;[1,3]^m&amp;lt;/math&amp;gt; with an odd number of 1s&lt;br /&gt;
&lt;br /&gt;
Here are some [[Maple calculations]].&lt;br /&gt;
&lt;br /&gt;
A [[genetic algorithm]] has provided the following examples:&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;math&amp;gt;c&#039;_6 \geq 353&amp;lt;/math&amp;gt; (26 examples; [http://twofoldgaze.wordpress.com/2009/03/10/353-element-solution/ here is one])&lt;br /&gt;
* &amp;lt;math&amp;gt;c&#039;_7 \geq 988&amp;lt;/math&amp;gt; [http://twofoldgaze.wordpress.com/2009/03/10/978-element-solution/ Here is the example]&lt;br /&gt;
&lt;br /&gt;
== Variants ==&lt;br /&gt;
&lt;br /&gt;
A lower bound for Moser’s cube &amp;lt;math&amp;gt;[4]^n&amp;lt;/math&amp;gt; (values 0,1,2,3) comes from the following set:  Pick all points where q entries are 1 or 2; and also pick those where q-1 entries are 1 or 2 and an odd number of entries are 0.  This is maximized when q is near n/2, giving a lower bound of&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\binom{n}{n/2} 2^n + \binom{n}{n/2-1} 2^{n-1}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
which is comparable to &amp;lt;math&amp;gt;4^n/\sqrt{n}&amp;lt;/math&amp;gt; by [[Stirling&#039;s formula]].&lt;br /&gt;
&lt;br /&gt;
For k=5 (values 0,1,2,3,4) If A, B, C, D, and E denote the numbers of 0-s, 1-s, 2-s, 3-s, and 4-s then the first three points of a geometric line form a 3-term arithmetic progression in A+E+2(B+D)+3C. So, for k=5 we have a similar lower bound for the Moser’s problem as for DHJ k=3, i.e. &amp;lt;math&amp;gt;5^{n - O(\sqrt{\log n})}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
The k=6 version of Moser implies DHJ(3).  Indeed, any k=3 combinatorial line-free set can be &amp;quot;doubled up&amp;quot; into a k=6 geometric line-free set of the same density by pulling back the set from the map &amp;lt;math&amp;gt;\phi: [6]^n \to [3]^n&amp;lt;/math&amp;gt; that maps 1, 2, 3, 4, 5, 6 to 1, 2, 3, 3, 2, 1 respectively; note that this map sends k=6 geometric lines to k=3 combinatorial lines.&lt;/div&gt;</summary>
		<author><name>121.220.134.232</name></author>
	</entry>
	<entry>
		<id>https://michaelnielsen.org/polymath/index.php?title=Moser%27s_cube_problem&amp;diff=933</id>
		<title>Moser&#039;s cube problem</title>
		<link rel="alternate" type="text/html" href="https://michaelnielsen.org/polymath/index.php?title=Moser%27s_cube_problem&amp;diff=933"/>
		<updated>2009-03-16T14:35:45Z</updated>

		<summary type="html">&lt;p&gt;121.220.134.232: /* n=5 */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Define a &#039;&#039;Moser set&#039;&#039; to be a subset of &amp;lt;math&amp;gt;[3]^n&amp;lt;/math&amp;gt; which does not contain any [[geometric line]], and let &amp;lt;math&amp;gt;c&#039;_n&amp;lt;/math&amp;gt; denote the size of the largest Moser set in &amp;lt;math&amp;gt;[3]^n&amp;lt;/math&amp;gt;.  The first few values are (see [http://www.research.att.com/~njas/sequences/A003142 OEIS A003142]):&lt;br /&gt;
&lt;br /&gt;
: &amp;lt;math&amp;gt;c&#039;_0 = 1; c&#039;_1 = 2; c&#039;_2 = 6; c&#039;_3 = 16; c&#039;_4 = 43; c&#039;_5 = 124.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Beyond this point, we only have some upper and lower bounds, in particular &amp;lt;math&amp;gt;353 \leq c&#039;_6 \leq 360&amp;lt;/math&amp;gt;; see [http://spreadsheets.google.com/ccc?key=p5T0SktZY9DsU-uZ1tK7VEg this spreadsheet] for the latest bounds.&lt;br /&gt;
&lt;br /&gt;
The best known asymptotic lower bound for &amp;lt;math&amp;gt;c&#039;_n&amp;lt;/math&amp;gt; is&lt;br /&gt;
&lt;br /&gt;
: &amp;lt;math&amp;gt;c&#039;_n \gg 3^n/\sqrt{n}&amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
formed by fixing the number of 2s to a single value near n/3.  Compare this to the DHJ(2) or Sperner limit of &amp;lt;math&amp;gt;2^n/\sqrt{n}&amp;lt;/math&amp;gt;.  Is it possible to do any better?  Note that we have a [[Upper_and_lower_bounds#Asymptotics|significantly better bound]] for the DHJ(3) &amp;lt;math&amp;gt;c_n&amp;lt;/math&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
: &amp;lt;math&amp;gt;c_n \geq 3^{n-O(\sqrt{\log n})}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
A more precise lower bound is&lt;br /&gt;
&lt;br /&gt;
: &amp;lt;math&amp;gt;c&#039;_n \geq \binom{n+1}{q} 2^{n-q}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where q is the nearest integer to &amp;lt;math&amp;gt;n/3&amp;lt;/math&amp;gt;, formed by taking all strings with q 2s, together with all strings with q-1 2s and an odd number of 1s.  This for instance gives the lower bound &amp;lt;math&amp;gt;c&#039;_5 \geq 120&amp;lt;/math&amp;gt;, which compares with the upper bound &amp;lt;math&amp;gt;c&#039;_5 \leq 3 c&#039;_4 = 129&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Using [[DHJ(3)]], we have the upper bound&lt;br /&gt;
&lt;br /&gt;
: &amp;lt;math&amp;gt;c&#039;_n = o(3^n)&amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
but no effective decay rate is known. It would be good to have a combinatorial proof of this fact (which is weaker than [[DHJ(3)]], but implies [[Roth&#039;s theorem]]).&lt;br /&gt;
&lt;br /&gt;
Convenient notation: given a Moser set A in &amp;lt;math&amp;gt;[3]^n&amp;lt;/math&amp;gt;, we let a be the number of points in A with no 2s, b be the number of points in A with one 2, c the number of points with two 2s, etc.  We call (a,b,c,...) the &#039;&#039;statistics&#039;&#039; of A.  Given a slice S of &amp;lt;math&amp;gt;[3]^n&amp;lt;/math&amp;gt;, we let a(S), b(S), etc. denote the statistics of that slice (dropping the fixed coordinates).  Thus for instance if A = {11, 12, 22, 32}, then (a,b,c) = (1,2,1), and (a(1*),b(1*)) = (1,1).&lt;br /&gt;
&lt;br /&gt;
We call a statistic (a,b,c,...) &#039;&#039;attainable&#039;&#039; if it is attained by a Moser set.  We say that an attainable statistic is &#039;&#039;Pareto-optimal&#039;&#039; if it cannot be pointwise dominated by any other attainable statistic (a&#039;,b&#039;,c&#039;,...) (thus &amp;lt;math&amp;gt;a&#039; \geq a&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;b&#039; \geq b&amp;lt;/math&amp;gt;, etc.)  We say that it is &#039;&#039;extremal&#039;&#039; if it is not a convex combination of any other attainable statistic (this is a stronger property than Pareto-optimal).  For the purposes of maximising linear scores of attainable statistics, it suffices to check extremal statistics.&lt;br /&gt;
&lt;br /&gt;
We let &amp;lt;math&amp;gt;(\alpha_0,\alpha_1,\ldots)&amp;lt;/math&amp;gt; be the normalized version of &amp;lt;math&amp;gt;(a,b,\ldots)&amp;lt;/math&amp;gt;, in which one divides the number of points of a certain type in the set by the total number of points in the set.  Thus for instance &amp;lt;math&amp;gt;\alpha_0 = a/2^n, \alpha_1 = b/(n 2^{n-1}), \alpha_3 = c/(\binom{n}{2} 2^{n-2})&amp;lt;/math&amp;gt;, etc., and the &amp;lt;math&amp;gt;\alpha_i&amp;lt;/math&amp;gt; range between 0 and 1.  Averaging arguments show that any linear inequality obeyed by the &amp;lt;math&amp;gt;\alpha_i&amp;lt;/math&amp;gt; at one dimension is automatically inherited by higher dimensions, as are shifted versions of this inequality (in which &amp;lt;math&amp;gt;\alpha_i&amp;lt;/math&amp;gt; is replaced by &amp;lt;math&amp;gt;\alpha_{i+1}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== n=0 ==&lt;br /&gt;
&lt;br /&gt;
We trivially have &amp;lt;math&amp;gt;c&#039;_0=1.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== n=1 ==&lt;br /&gt;
&lt;br /&gt;
We trivially have &amp;lt;math&amp;gt;c&#039;_1=2.&amp;lt;/math&amp;gt;  The Pareto-optimal values of the statistics (a,b) are (1,1) and (2,0); these are also the extremals.  We thus have the inequality &amp;lt;math&amp;gt;a+b \leq 2&amp;lt;/math&amp;gt;, or in normalized notation&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;2\alpha_0 + \alpha_1 \leq 2&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== n=2 ==&lt;br /&gt;
&lt;br /&gt;
We have &amp;lt;math&amp;gt;c&#039;_2 = 6&amp;lt;/math&amp;gt;; the upper bound follows since &amp;lt;math&amp;gt;c&#039;_2 \leq 3 c&#039;_1&amp;lt;/math&amp;gt;, and the lower bound follows by deleting one of the two diagonals from &amp;lt;math&amp;gt;[3]^2&amp;lt;/math&amp;gt; (these are the only extremisers).&lt;br /&gt;
&lt;br /&gt;
The extremiser has statistics (a,b,c) = (2,4,0), which are of course Pareto-optimal.  If c=1 then we must have a, b at most 2 (look at the lines through 22).  This is attainable (e.g. {11, 12, 22, 23, 31}, and so (2,2,1) is another Pareto-optimal statistic.  If a=4, then b and c must be 0, so we get another Pareto-optimal statistic (4,0,0) (attainable by {11, 13, 31, 33} of course).  If a=3, then c=0 and b is at most 2, giving another Pareto-optimal statistic (3,2,0); but this is a convex combination of (4,0,0) and (2,4,0) and is thus not extremal.  Thus the complete set of extremal statistics are&lt;br /&gt;
&lt;br /&gt;
(4,0,0), (2,4,0), (2,2,1).&lt;br /&gt;
&lt;br /&gt;
The sharp linear inequalities obeyed by a,b,c (other than the trivial ones &amp;lt;math&amp;gt;a,b,c \geq 0&amp;lt;/math&amp;gt;) are then&lt;br /&gt;
&lt;br /&gt;
*&amp;lt;math&amp;gt;2a+b+2c \leq 8&amp;lt;/math&amp;gt;&lt;br /&gt;
*&amp;lt;math&amp;gt;b+2c \leq 4&amp;lt;/math&amp;gt;&lt;br /&gt;
*&amp;lt;math&amp;gt;a+2c \leq 4&amp;lt;/math&amp;gt;&lt;br /&gt;
*&amp;lt;math&amp;gt;c \leq 1&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
In normalized notation, we have&lt;br /&gt;
*&amp;lt;math&amp;gt;4\alpha_0 + 2\alpha_1 + \alpha_2 \leq 4&amp;lt;/math&amp;gt;&lt;br /&gt;
*&amp;lt;math&amp;gt;2\alpha_1 + \alpha_2 \leq 2&amp;lt;/math&amp;gt;&lt;br /&gt;
*&amp;lt;math&amp;gt;2\alpha_0 + \alpha_2 \leq 2&amp;lt;/math&amp;gt;&lt;br /&gt;
*&amp;lt;math&amp;gt;\alpha_2 \leq 1&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== n=3 ==&lt;br /&gt;
&lt;br /&gt;
We have &amp;lt;math&amp;gt;c&#039;_3 = 16&amp;lt;/math&amp;gt;.  The lower bound can be seen for instance by taking all the strings with one 2, and half the strings with no 2 (e.g. the strings with an odd number of 1s).  The upper bound can be deduced from the corresponding [[upper and lower bounds]] for &amp;lt;math&amp;gt;c_3 = 18&amp;lt;/math&amp;gt;; the 17-point and 18-point line-free sets each contain a geometric line.&lt;br /&gt;
&lt;br /&gt;
If a Moser set in &amp;lt;math&amp;gt;[3]^3&amp;lt;/math&amp;gt; contains 222, then it can have at most 14 points, since the remaining 26 points in the cube split into 13 antipodal pairs, and at most one of each pair can lie in the set.  By exhausting over the &amp;lt;math&amp;gt;2^{13} = 8192&amp;lt;/math&amp;gt; possibilities, it can be shown that it is impossible for a 14-point set to exist; any Moser set containing 222 must in fact omit at least one antipodal pair completely and thus have only 13 points.  (A human proof of this fact can be [http://www.ma.rhul.ac.uk/~elsholtz/WWW/blog/mosertablogv01.pdf found here].)&lt;br /&gt;
&lt;br /&gt;
The Pareto-optimal statistics are&lt;br /&gt;
&lt;br /&gt;
(3,6,3,1),(4,4,3,1),(4,6,2,1),(2,6,6,0),(3,6,5,0),(4,4,5,0),(3,7,4,0),(4,6,4,0), (3,9,3,0),(4,7,3,0),(5,4,3,0),(4,9,2,0),(5,6,2,0),(6,3,2,0),(3,10,1,0),(5,7,1,0), (6,4,1,0),(4,12,0,0),(5,9,0,0),(6,6,0,0),(7,3,0,0),(8,0,0,0).&lt;br /&gt;
&lt;br /&gt;
A spreadsheet containing these statistics can be [http://spreadsheets.google.com/ccc?key=p5T0SktZY9DuKZ2DyzO9EOg&amp;amp;hl=en# found here].&lt;br /&gt;
&lt;br /&gt;
The extremal statistics are&lt;br /&gt;
&lt;br /&gt;
(3,6,3,1),(4,4,3,1),(4,6,2,1),(2,6,6,0),(4,4,5,0),(4,6,4,0),(4,12,0,0),(8,0,0,0)&lt;br /&gt;
&lt;br /&gt;
The sharp linear bounds are :&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;math&amp;gt;2a+b+2c+4d \leq 22&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;3a+2b+3c+6d \leq 36&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;7a+2b+4c+8d \leq 56&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;6a+2b+3c+6d \leq 48&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;b+c+3d \leq 12&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;a+2c+4d \leq 14&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;5a+4c+8d \leq 40&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;a+4d \leq 8&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;b+6d \leq 12&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;c+3d \leq 6&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;d \leq 1&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In normalized notation,&lt;br /&gt;
* &amp;lt;math&amp;gt;8\alpha_0+ 6\alpha_1 + 6\alpha_2 + 2\alpha_3 \leq 11&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;4\alpha_0+4\alpha_1+3\alpha_2+\alpha_3 \leq 6&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;7\alpha_0+3\alpha_1+3\alpha_2+\alpha_3 \leq 7&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;8\alpha_0+3\alpha_1+3\alpha_2+\alpha_3 \leq 8&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;4\alpha_1+2\alpha_2+\alpha_3 \leq 4&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;4\alpha_0+6\alpha_2+2\alpha_3 \leq 7&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;5\alpha_0+3\alpha_2+\alpha_3 \leq 5&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;2\alpha_0+\alpha_3 \leq 2&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;2\alpha_1+\alpha_3 \leq 2&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;2\alpha_2+\alpha_3 \leq 2&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;\alpha_3 \leq 1&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== n=4 ==&lt;br /&gt;
&lt;br /&gt;
A [http://abel.math.umu.se/~klasm/extremal-moser-n=5-t=3 computer search] has obtained all extremisers to &amp;lt;math&amp;gt;c&#039;_4=43&amp;lt;/math&amp;gt;.  The 42-point solutions can be found [http://abel.math.umu.se/~klasm/moser-n=4-t=3-p=42.gz here].&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof that &amp;lt;math&amp;gt;c&#039;_4 \leq 43&amp;lt;/math&amp;gt;&#039;&#039;&#039;: &lt;br /&gt;
When e=1 (i.e. the 4D set contains 2222) then we have at most 41 points (in fact at most 39) by counting antipodal points, so assume e=0.&lt;br /&gt;
&lt;br /&gt;
Define the score of a 3D slice to be a/4+b/3+c/2+d.  Observe from double counting that the size of a 4D set is the sum of the scores of its eight side slices.&lt;br /&gt;
&lt;br /&gt;
But by [http://spreadsheets.google.com/ccc?key=p5T0SktZY9DuKZ2DyzO9EOg&amp;amp;hl=en looking at the extremals] we see that the largest score is 44/8, attained at only one point, namely when (a,b,c,d) = (2,6,6,0).  So the only way one can have a 44-point set is if all side slices are (2,6,6,0), or equivalently if the whole set has statistics (a,b,c,d,e) = (4,16,24,0,0).  But then we have all the points with two 2s, which means that the four &amp;quot;a&amp;quot; points cannot be separated by Hamming distance 2.  We conclude that we must have an antipodal pair among the &amp;quot;a&amp;quot; points with an odd number of 1s, and an antipodal pair among the &amp;quot;a&amp;quot; points with an even number of 1s.    By the symmetries of the cube, we may take the a-set to then be 1111, 3333, 1113, 3331.  But then the &amp;quot;b&amp;quot; set must exclude both 1112 and 3332, and so can have at most three points in the eight-point set xyz2 (with x,y,z=1,3) rather than four (to get four points one must alternate in a checkerboard pattern).  Adding this to the at most four points of the form xy2z, x2yz, 2xyz we see that b is at most 16, a contradiction. &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Given a subset of &amp;lt;math&amp;gt;[3]^4&amp;lt;/math&amp;gt;, let a be the number of points with no 2s, b be the number of points with 1 2, and so forth.  The quintuple (a,b,c,d,e) thus lies between (0,0,0,0,0) and (16,32,24,8,1).&lt;br /&gt;
&lt;br /&gt;
The 43-point solutions have distributions (a,b,c,d,e) as follows:&lt;br /&gt;
&lt;br /&gt;
* (5,20,18,0,0) [16 solutions]&lt;br /&gt;
* (4,16,23,0,0) [768 solutions]&lt;br /&gt;
* (3,16,24,0,0) [512 solutions]&lt;br /&gt;
* (4,15,24,0,0) [256 solutions]&lt;br /&gt;
&lt;br /&gt;
The 42-point solutions are [http://abel.math.umu.se/~klasm/Moser-42-stat.pdf distributed as follows]:&lt;br /&gt;
&lt;br /&gt;
* (6,24,12,0,0) [[http://abel.math.umu.se/~klasm/moser-n=4-42-12 8 solutions]] &lt;br /&gt;
* (5,20,17,0,0) [576 solutions]&lt;br /&gt;
* (5,19,18,0,0) [384 solutions]&lt;br /&gt;
* (6,16,18,2,0) [[http://abel.math.umu.se/~klasm/moser-n=4-42-e=2 192 solutions]]&lt;br /&gt;
* (4,20,18,0,0) [272 solutions]&lt;br /&gt;
* (5,17,20,0,0) [192 solutions]&lt;br /&gt;
* (5,16,21,0,0) [3584 solutions]&lt;br /&gt;
* (4,17,21,0,0) [768 solutions]&lt;br /&gt;
* (4,16,22,0,0) [26880 solutions]&lt;br /&gt;
* (5,15,22,0,0) [1536 solutions]&lt;br /&gt;
* (4,15,23,0,0) [22272 solutions]&lt;br /&gt;
* (3,16,23,0,0) [15744 solutions]&lt;br /&gt;
* (4,14,24,0,0) [4224 solutions]&lt;br /&gt;
* (3,15,24,0,0) [8704 solutions]&lt;br /&gt;
* (2,16,24,0,0) [896 solutions]&lt;br /&gt;
&lt;br /&gt;
Note how c is usually quite large, and d quite low.&lt;br /&gt;
&lt;br /&gt;
One of the (6,24,12,0,0) solutions is &amp;lt;math&amp;gt;\Gamma_{220}+\Gamma_{202}+\Gamma_{022}+\Gamma_{112}+\Gamma_{211}&amp;lt;/math&amp;gt; (i.e. the set of points containing exactly two 1s, and/or exactly two 3s).  The other seven are reflections of this set.&lt;br /&gt;
&lt;br /&gt;
There are 2,765,200 41-point solutions, [http://abel.math.umu.se/~klasm/solutions-4-t=3-41-moser.gz listed here].  The statistics for such points can be [http://abel.math.umu.se/~klasm/Moser-41-stat.pdf found here].  Noteworthy features of the statistics:&lt;br /&gt;
&lt;br /&gt;
* d is at most 3 (and, except for [http://abel.math.umu.se/~klasm/moser-n=3-t=3-41-d=3.gz 256 exceptional solutions] of the shape (5,15,18,3,0), have d at most 2; here are the [http://abel.math.umu.se/~klasm/moser-n=3-t=3-41-d=2.gz d=2 solutions] and [http://abel.math.umu.se/~klasm/moser-n=3-t=3-41-d=1.gz d=1 solutions])&lt;br /&gt;
* c is at least 6 (and, except for [http://abel.math.umu.se/~klasm/moser-n=3-t=3-41-c=6.gz 16 exceptional solutions] of the shape (7,28,6,0,0), have c at least 11).&lt;br /&gt;
&lt;br /&gt;
Statistics for the 41-point, 42-point, and 43-point solutions can be found [http://spreadsheets.google.com/ccc?key=p5T0SktZY9DuqNcxJ171Bbw&amp;amp;hl=en here].&lt;br /&gt;
&lt;br /&gt;
If a Moser set in &amp;lt;math&amp;gt;[3]^4&amp;lt;/math&amp;gt; contains 2222, then by the n=3 theory, any middle slice (i.e. 2***, *2**, **2*, or ***2) is missing at least one antipodal pair.  But each antipodal pair belongs to at most three middle slices, thus two of the 40 antipodal pairs must be completely missing.  As a consequence, any Moser set containing 2222 can have at most 39 points.&lt;br /&gt;
(A more refined analysis can be found at [http://www.ma.rhul.ac.uk/~elsholtz/WWW/blog/mosertablogv01.pdf found here].)&lt;br /&gt;
&lt;br /&gt;
We have the following inequalities connecting a,b,c,d,e:&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;math&amp;gt;4a+b \leq 64&amp;lt;/math&amp;gt;:  There are 32 lines connecting two &amp;quot;a&amp;quot; points with a &amp;quot;b&amp;quot; point; each &amp;quot;a&amp;quot; point belongs to four of these lines, and each &amp;quot;b&amp;quot; point belongs to one.  But each such line can have at most two points in the set, and the claim follows.&lt;br /&gt;
* This can be refined to &amp;lt;math&amp;gt;4a+b+\frac{2}{3} c \leq 64&amp;lt;/math&amp;gt;: There are 24 planes connecting four &amp;quot;a&amp;quot; points, four &amp;quot;b&amp;quot; points, and one &amp;quot;c&amp;quot; point; each &amp;quot;a&amp;quot; point belongs to six of these, each &amp;quot;b&amp;quot; point belongs to three, and each &amp;quot;c&amp;quot; point belongs to one.  For each of these planes, we have &amp;lt;math&amp;gt;2a + b + 2c \leq 8&amp;lt;/math&amp;gt; from the n=2 theory, and the claim follows.&lt;br /&gt;
* &amp;lt;math&amp;gt;6a+2c \leq 96&amp;lt;/math&amp;gt;:  There are 96 lines connecting two &amp;quot;a&amp;quot; points with a &amp;quot;c&amp;quot; point; each &amp;quot;a&amp;quot; point belongs to six of these lines, and each &amp;quot;c&amp;quot; point belongs to two.  But each such line can have at most two points in the set, and the claim follows.&lt;br /&gt;
* &amp;lt;math&amp;gt;3b+2c \leq 96&amp;lt;/math&amp;gt;:  There are 48 lines connecting two &amp;quot;b&amp;quot; points to a &amp;quot;c&amp;quot; point; each &amp;quot;b&amp;quot; point belongs to three of these points, and each &amp;quot;c&amp;quot; point belongs to two.  But each such line can have at most two points in the set, and the claim follows.&lt;br /&gt;
&lt;br /&gt;
The inequalities for n=3 imply inequalities for n=4.  Indeed, there are eight side slices of &amp;lt;math&amp;gt;[3]^4&amp;lt;/math&amp;gt;; each &amp;quot;a&amp;quot; point belongs to four of these, each &amp;quot;b&amp;quot; point belongs to three, each &amp;quot;c&amp;quot; point belongs to two, and each &amp;quot;d&amp;quot; point belongs to one.  Thus, any inequality of the form&lt;br /&gt;
:&amp;lt;math&amp;gt; \alpha a + \beta b + \gamma c + \delta d \leq M&amp;lt;/math&amp;gt;&lt;br /&gt;
in three dimensions implies the inequality&lt;br /&gt;
:&amp;lt;math&amp;gt; 4 \alpha a + 3 \beta b + 2 \gamma c + \delta d \leq 8M&amp;lt;/math&amp;gt;&lt;br /&gt;
in four dimensions.  Thus we have&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;math&amp;gt;8a+3b+4c+4d \leq 176&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;2a+b+c+d \leq 48&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;14a+3b+4c+4d \leq 244&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;4a+b+c+d \leq 64&amp;lt;/math&amp;gt; &lt;br /&gt;
* &amp;lt;math&amp;gt;3b+2c+3d \leq 96&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;a+c+d \leq 28&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;5a+2c+2d \leq 80&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;a+d \leq 16&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;b+2d \leq 32&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;2c+3d \leq 48&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Cubes also sit diagonally in the 4-dimensional cube.  They may have coordinates xxyz, where xx runs over (11,22,33) or (13,22,31), while y and z run over (1,2,3).  These cubes have a different distribution of 2s than the ordinary slices: (a,b,c,d,e) = (8,8,6,4,1) instead of (8,12,6,1,0) for the side slices and (0,8,12,6,1) for the middle slices.  So a different set of inequalities arise.  It is possible to run through the same procedure as described above for n=3, and the inequalities that arise are &amp;lt;math&amp;gt;2a+b+2c+2d+4e \le 24&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;4a+b+2c+2d+4e \le 32&amp;lt;/math&amp;gt; within the 3D cube, which when averaged becomes &amp;lt;math&amp;gt;4a+b+2c+4d+16e \le 96&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;8a+b+2c+4d+16e \le 128&amp;lt;/math&amp;gt; for the 4D cube.  A spreadsheet containing these statistics can be [http://spreadsheets.google.com/ccc?key=p5T0SktZY9DuKZ2DyzO9EOg&amp;amp;hl=en# found here] on sheet 2.  Other sheets of this spreadsheet contain results for a 3D cube sitting diagonally in a 5D or 6D cube.  Notice the similarity of the equations that arise for the xxxyz, xxyyz and xxxxyz diagonals.&lt;br /&gt;
&lt;br /&gt;
== n=5 ==&lt;br /&gt;
&lt;br /&gt;
Let (A,B,C,D,E,F) be the statistics of a five-dimensional Moser set, thus (A,B,C,D,E,F) varies between (0,0,0,0,0,0) and (32,80,80,40,10,1).&lt;br /&gt;
&lt;br /&gt;
There are several Moser sets with the statistics (4,40,80,0,0), which thus have 124 points.  Indeed, one can take&lt;br /&gt;
&lt;br /&gt;
* all points with two 1s;&lt;br /&gt;
* all points with one 1 and an even number of 0s; and&lt;br /&gt;
* (01000),(01001),(10100),(01111). Any two of these four points differ in three places, except for one pair of points that differ in one place.&lt;br /&gt;
&lt;br /&gt;
For the rest of this section, we assume that the Moser set &amp;lt;math&amp;gt;{\mathcal A}&amp;lt;/math&amp;gt; is a 125-point set.&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 1&#039;&#039;&#039;: F=0.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; If F is non-zero, then the Moser set contains 22222, then each of the 121 antipodal pairs can have at most one point in the set, leading to only 122 points. &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 2&#039;&#039;&#039;: Every middle slice of &amp;lt;math&amp;gt;{\mathcal A}&amp;lt;/math&amp;gt; has at most 41 points.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039;  Without loss of generality we may consider the 2**** slice.  There are two cases, depending on the value of c(2****).&lt;br /&gt;
&lt;br /&gt;
Suppose first that c is at least 17; thus there are at least 17 points of the form 222xy, 22xy2, 2xy22, or 2x22y, where the x, y denote 1 or 3.  This gives 36 &amp;quot;xy&amp;quot; wildcards in all in four coordinate slots; by the pigeonhole principle one of the slots sees at least 9 of the wildcards.  By symmetry, we may assume that the second coordinate slot sees at least 9 of these wildcards, thus there are at least 9 points of the form 2x22y, 2x2y2, 2xy22.  The x=1, x=3 cases can absorb at most six of these, thus each of these cases must absorb at least three points, with at least one absorbing at least five.  Let&#039;s say that it&#039;s the x=3 case that absorbs 5; thus &amp;lt;math&amp;gt;d(*1***) \geq 3&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;d(*3***) \geq 5&amp;lt;/math&amp;gt;.  From the n=4 theory this means that the *1*** slice has at most 41 points, and the *3*** slice has at most 40.  Meanwhile, the middle slice has at most 43, leading to 41+41+42=124 points in all.&lt;br /&gt;
&lt;br /&gt;
Now suppose c is less than 16; then by the n=4 theory the middle slice is one of the eight (6,24,12,0,0) sets.  Without loss of generality we may take it to be &amp;lt;math&amp;gt;\Gamma_{220}+\Gamma_{202}+\Gamma_{022}+\Gamma_{112}+\Gamma_{211}&amp;lt;/math&amp;gt;; in particular, the middle slice contains the points 21122 21212 21221 23322 23232 23223.  In particular, the *1*** and *3*** slices have a &amp;quot;d&amp;quot; value of at least three, and so have at most 41 points.  If the *2*** slice has at most 42 points, then we are at 41+42+41=124 points as needed, but if we have 43 or more, then we are back in the first case (as &amp;lt;math&amp;gt;c(*2***) \geq 17&amp;lt;/math&amp;gt;) after permuting the indices.&lt;br /&gt;
&amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Since 125=41+41+43, we thus have&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Corollary 1&#039;&#039;&#039;: Every side slice of &amp;lt;math&amp;gt;{\mathcal A}&amp;lt;/math&amp;gt; has at least 41 points.  If one side slice does have 41 points, then the other has 43.&lt;br /&gt;
&lt;br /&gt;
Combining this with the n=4 statistics, we conclude&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Corollary 2&#039;&#039;&#039;: Every side slice of &amp;lt;math&amp;gt;{\mathcal A}&amp;lt;/math&amp;gt; has e=0, and &amp;lt;math&amp;gt;d \leq 3&amp;lt;/math&amp;gt;.  Given two opposite side slices, e.g. 1**** and 3****, we have &amp;lt;math&amp;gt;d(1****)+d(3****) \leq 4&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Corollary 3&#039;&#039;&#039;: E=0.&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Corollary 4&#039;&#039;&#039;: Any middle slice has a &amp;quot;c&amp;quot; value of at most 8.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; Let&#039;s work with the 2**** slice.  By Corollary 2, there are at most four contributions to c(2****) of the form 21*** or 23***, and similarly for the other three positions.  Double counting then gives the claim. &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 3&#039;&#039;&#039;: &amp;lt;math&amp;gt;2B+C \leq 160&amp;lt;/math&amp;gt;.   &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039;: There are 160 lines connecting one &amp;quot;C&amp;quot; point to two &amp;quot;B&amp;quot; points (e.g. 11112, 11122, 11132); each &amp;quot;C&amp;quot; point lies in two of these, and each &amp;quot;B&amp;quot; point lies on four.  A Moser set can have at most two points out of each of these lines.  Double counting then gives the claim.  &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 4&#039;&#039;&#039; Given m A-points with &amp;lt;math&amp;gt;m \geq 5&amp;lt;/math&amp;gt;, there exists at least m-4 pairs (a,b) of such A-points with Hamming distance exactly two (i.e. b differs from a in exactly two places).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; It suffices to check this for m=5, since the case of larger m then follows by locating a pair, removing a point that contributes to that pair, and using the induction hypothesis.  Given 5 A-points, we may assume by the pigeonhole principle and symmetry that at least three of them have an odd number of 1s.  Suppose 11111 is one of the points, and that no pair has Hamming distance 2. All points with two 3s are excluded, so the only points allowed with an odd number of 1s are those with four 3s. But all those points differ from each other in two positions, so at most one of them is allowed.  &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Corollary 5&#039;&#039;&#039; &amp;lt;math&amp;gt;C \leq 79&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039;: Suppose for contradiction that C=80, then D=0 and &amp;lt;math&amp;gt;B \leq 40&amp;lt;/math&amp;gt;.  From Lemma 4 we also see that A cannot exceed 5, leading to the contradiction.&lt;br /&gt;
&amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Define the &#039;&#039;&#039;score&#039;&#039;&#039; of a Moser set in &amp;lt;math&amp;gt;[3]^4&amp;lt;/math&amp;gt; to be the quantity &amp;lt;math&amp;gt;a + 5b/4 + 5c/3 + 5d/2 + 5e&amp;lt;/math&amp;gt;.  Double-counting (and Lemma 2) gives&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 5&#039;&#039;&#039;  The total score of all the ten side-slices of &amp;lt;math&amp;gt;{\mathcal A}&amp;lt;/math&amp;gt; is equal to &amp;lt;math&amp;gt;5|{\mathcal A}| = 5 \times 125&amp;lt;/math&amp;gt;.  In particular, there exists a pair of opposite side-slices whose scores add up to at least 125.&lt;br /&gt;
&lt;br /&gt;
By Lemma 5 and symmetry, we may assume that the 1**** and 3**** slices have score adding up to at least 125.  By Lemma 2, the 2**** slice has at most 41 points, which imply that the 1**** and 3**** have 41, 42, or 43 points.  From the [http://spreadsheets.google.com/ccc?key=p5T0SktZY9DuqNcxJ171Bbw&amp;amp;hl=en n=4 statistics] we know that all 41-point, 42-point, 43-point slices have score less than 62, with the following exceptions:&lt;br /&gt;
&lt;br /&gt;
# (2,16,24,0,0) [42 points, score: 62]&lt;br /&gt;
# (4,16,23,0,0) [43 points, score: 62 1/3]&lt;br /&gt;
# (4,15,24,0,0) [43 points, score: 62 3/4]&lt;br /&gt;
# (3,16,24,0,0) [43 points, score: 63]&lt;br /&gt;
&lt;br /&gt;
Thus the 1**** and 3**** slices must from the above list.  Furthermore, if one of the slices is of type 1, then the other must be of type 4, and if one slice is of type 2, then the other must be of type 3 or 4.&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 6&#039;&#039;&#039; There exists one cut in which the side slices have total score strictly greater than 125 (i.e. they thus involve only Type 2, Type 3, and Type 4 slices, with at least one side slice not equal to Type 2, and the cut here is of the form 43+39+43).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; If not, then all cuts have side slices exactly equal to 125, which by the above table implies that one is Type 1 and one is Type 4, in particular all side slices have c=24.  But this forces C=80, contradicting Corollary 5. &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Adding up the corners we conclude&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Corollary 6&#039;&#039;&#039; &amp;lt;math&amp;gt;6 \leq A \leq 8&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 7&#039;&#039;&#039; &amp;lt;math&amp;gt;D=0&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; Firstly, from Lemma 6 we have a cut in which the two side slices are omitting at most one C-point between them (and have no D-point), which forces the middle slice to have at most one D-point; thus D is at most 1.&lt;br /&gt;
&lt;br /&gt;
Now suppose instead that D=1 (e.g. if 11222 was in the set); then there would be two choices of coordinates in which one of the side slices would have d=1 (e.g. 1**** and *1****). But the [http://spreadsheets.google.com/ccc?key=p5T0SktZY9DuqNcxJ171Bbw&amp;amp;hl=en n=4 statistics] show that such slices have a score of at most 59 7/12, so that the total score from those two coordinates is at most 63 + 59 7/12 = 122 7/12. On the other hand, the other three slices have a net score of at most 63+63 = 126. This averages out to at most 124.633... &amp;lt; 125, a contradiction.  &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Corollary 7&#039;&#039;&#039; Every middle slice has at most 40 points.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; From Lemma 7 we see that the middle slice must have c=0, but from the n=4 statistics this is not possible for any slice of size 41 or higher (alternatively, one can use the inequalities &amp;lt;math&amp;gt;4a+b \leq 64&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;b \leq 32&amp;lt;/math&amp;gt;). &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Each middle slice now has 39 or 40 points, with c=d=e=0, and so from the inequalities &amp;lt;math&amp;gt;4a+b \leq 64&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;b \leq 32&amp;lt;/math&amp;gt; must have statistics (8,32,0,0,0),(7,32,0,0,0), or (8,31,0,0,0).  In particular the &amp;quot;a&amp;quot; index of the middle slices is at most 8.  Summing over all middle slices we conclude&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 9&#039;&#039;&#039; B is at most 40.&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 10&#039;&#039;&#039; C is equal to 78 or 79.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; By Corollary 5, it suffices to show that &amp;lt;math&amp;gt;C \geq 78&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
As 125=43+39+43, we see that every center slice must have at least 39 points. By Lemma 2 and Lemma 7 the center slice has c=d=e=0, thus the center slice has a+b &amp;gt;= 39.  On the other hand, from the n=4 theory we have 4a+b &amp;lt;= 64, which forces b &amp;gt;= 31.&lt;br /&gt;
&lt;br /&gt;
By double counting, we see that 2C is equal to the sum of the b&#039;s of all the five center slices.  Thus C &amp;gt;= 5*31/2 = 77.5 and the claim follows.  &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
From Lemmas 9 and 10 we see that &amp;lt;math&amp;gt;B+C \leq 119&amp;lt;/math&amp;gt;, and thus &amp;lt;math&amp;gt;A \geq 6&amp;lt;/math&amp;gt;.  Also, if &amp;lt;math&amp;gt;A \geq 7&amp;lt;/math&amp;gt;, then by Lemma 4 we have at least three pairs of A points with Hamming distance 2.  At most two of these pairs eliminate the same C point, so we would have C=78 in that case.  &lt;br /&gt;
&lt;br /&gt;
Putting all the above facts together, we see that (A,B,C,D,E,F) must be one of the following triples:&lt;br /&gt;
&lt;br /&gt;
* (6,40,79,0,0,0)&lt;br /&gt;
* (7,40,78,0,0,0)&lt;br /&gt;
* (8,39,78,0,0,0)&lt;br /&gt;
&lt;br /&gt;
All three cases can be eliminated, giving &amp;lt;math&amp;gt;c&#039;_5=124&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== Elimination of (6,40,79,0,0,0) ===&lt;br /&gt;
&lt;br /&gt;
Look at the 6 A points.  From Lemma 4 we have at least two pairs (a,b), (c,d) of A-points that have Hamming separation 2.&lt;br /&gt;
&lt;br /&gt;
Now look at the midpoints of these two pairs; these midpoints are C-points cannot lie in the set.  But we have exactly one C-point missing from the set, thus the midpoints must be the same.  By symmetry, we may thus assume that the two pairs are (11111,11133) and (11113,11131).  Thus 11111,11133, 11113, 11131 are in the set, and so every C-point other than 11122 is in the set.  On the other hand, the B-points 11121, 11123, 11112, 11132 lie outside the set.&lt;br /&gt;
&lt;br /&gt;
At most one of 11312, 11332 lie in the set (since 11322 lies in the set).   Suppose that 11312 lies outside the set, then we have a pair (xy1z2, xy3z2) with x,y,z = 1,3 that is totally omitted from the set, namely (11112,11312).  On the other hand, every other pair of this form can have at most point in the set, thus there are at most seven points in the set of the form (xyzw2) with x,y,z,w = 1,3.  Similarly there are at most 8 points of the form xyz2w, or of xy2zw, x2yzw, 2xyzw, leading to at most 39 B-points in all, contradiction.&lt;br /&gt;
&lt;br /&gt;
=== Elimination of (7,40,78,0,0,0) ===&lt;br /&gt;
&lt;br /&gt;
By Lemma 4, we have at least three pairs of A-points of distance two apart that lie in the set.&lt;br /&gt;
The midpoints of these pairs are C-points that do not lie in the set; but there are only two such C-points, thus two pairs must have the same midpoint, so we may assume as before that 111xy lies in the set for x,y=1,3, which implies that 1112* and 111*2 lie outside the set.&lt;br /&gt;
&lt;br /&gt;
Now consider the 160 lines between 2 B points and one C point (cf. Lemma 3).  The sum of all the points in each such line (counting multiplicity) is 4B+2C = 316.  On the other hand, every one of the 160 lines can have at most two points, and four of these lines (namely 1112*, 111*2) have no points.  Thus all the other lines must have exactly two points.  &lt;br /&gt;
&lt;br /&gt;
We know that the C-point 11122 is missing from the set; there is one other missing C-point.  Since 1112x, 111x2 lie outside the set, we conclude from the previous paragraph that 1132x, 113x2 and 1312x, 131x2 lie in the set.  Taking midpoints we conclude that 11322 and 13122 lie outside the set.  But this is now three C-points missing (together with 11122), a contradiction.&lt;br /&gt;
&lt;br /&gt;
=== Elimination of (8,39,78,0,0,0) ===&lt;br /&gt;
&lt;br /&gt;
By Lemma 4 we have at least four pairs of A-points of distance two apart that lie in the set. The midpoints of these pairs are C-points that do not lie in the set; but there are only two such C-points, thus two pairs (a,b), (c,d) must have the same midpoint p, and the other two pairs (a&#039;,b&#039;), (c&#039;,d&#039;) must also have the same midpoint p&#039;.  (Note that every C-point is the midpoint of at most two such pairs.)&lt;br /&gt;
&lt;br /&gt;
Now consider the 160 lines between 2 B points and one C point (cf. Lemma 3).  The sum of all the points in each such line (counting multiplicity) is 4B+2C = 312.  Every one of the 160 lines can have at most two points, and four of these (those in the plane of (a,b,c,d) or of (a&#039;,b&#039;,c&#039;,d&#039;) have no points.  Thus all other lines must have exactly two points.&lt;br /&gt;
&lt;br /&gt;
Without loss of generality we have (a,b)=(11111,11133), (c,d) = (11113,11131), thus p = 11122.  By permuting the first three indices, we may assume that p&#039; is not of the form x2y2z, x2yz2, xy22z, xy2z2.  Then 1112x lies outside the set and 1122x lies in the set, so by the above paragraph 1132x lies in the set; similarly for 113x2, 1312x, 131x2.  This implies that 13122, 11322 lie outside the set, but this (together with 11122) shows that at least three C-points are missing, a contradiction.&lt;br /&gt;
&lt;br /&gt;
== General n ==&lt;br /&gt;
&lt;br /&gt;
General solution for &amp;lt;math&amp;gt;c&#039;_N&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* q 2s, all points from A(N-q,1)&lt;br /&gt;
* q-1 2s, points from A(N-q+1,2)&lt;br /&gt;
* q-2 2s, points from A(N-q+2,3)&lt;br /&gt;
* etc.&lt;br /&gt;
&lt;br /&gt;
where A(m,d) is a subset of &amp;lt;math&amp;gt;[1,3]^m&amp;lt;/math&amp;gt; for which any two points differ from each other in at least d places.&lt;br /&gt;
&lt;br /&gt;
Mathworld’s entry on error-correcting codes suggests it might be NP-complete to find the size of A(m,d) in general.&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;math&amp;gt;|A(m,1)| = 2^m&amp;lt;/math&amp;gt; because it includes all points in &amp;lt;math&amp;gt;[1,3]^m&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;|A(m,2)| = 2^{m-1}&amp;lt;/math&amp;gt; because it can include all points in &amp;lt;math&amp;gt;[1,3]^m&amp;lt;/math&amp;gt; with an odd number of 1s&lt;br /&gt;
&lt;br /&gt;
Here are some [[Maple calculations]].&lt;br /&gt;
&lt;br /&gt;
A [[genetic algorithm]] has provided the following examples:&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;math&amp;gt;c&#039;_6 \geq 353&amp;lt;/math&amp;gt; (26 examples; [http://twofoldgaze.wordpress.com/2009/03/10/353-element-solution/ here is one])&lt;br /&gt;
* &amp;lt;math&amp;gt;c&#039;_7 \geq 988&amp;lt;/math&amp;gt; [http://twofoldgaze.wordpress.com/2009/03/10/978-element-solution/ Here is the example]&lt;br /&gt;
&lt;br /&gt;
== Variants ==&lt;br /&gt;
&lt;br /&gt;
A lower bound for Moser’s cube &amp;lt;math&amp;gt;[4]^n&amp;lt;/math&amp;gt; (values 0,1,2,3) comes from the following set:  Pick all points where q entries are 1 or 2; and also pick those where q-1 entries are 1 or 2 and an odd number of entries are 0.  This is maximized when q is near n/2, giving a lower bound of&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\binom{n}{n/2} 2^n + \binom{n}{n/2-1} 2^{n-1}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
which is comparable to &amp;lt;math&amp;gt;4^n/\sqrt{n}&amp;lt;/math&amp;gt; by [[Stirling&#039;s formula]].&lt;br /&gt;
&lt;br /&gt;
For k=5 (values 0,1,2,3,4) If A, B, C, D, and E denote the numbers of 0-s, 1-s, 2-s, 3-s, and 4-s then the first three points of a geometric line form a 3-term arithmetic progression in A+E+2(B+D)+3C. So, for k=5 we have a similar lower bound for the Moser’s problem as for DHJ k=3, i.e. &amp;lt;math&amp;gt;5^{n - O(\sqrt{\log n})}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
The k=6 version of Moser implies DHJ(3).  Indeed, any k=3 combinatorial line-free set can be &amp;quot;doubled up&amp;quot; into a k=6 geometric line-free set of the same density by pulling back the set from the map &amp;lt;math&amp;gt;\phi: [6]^n \to [3]^n&amp;lt;/math&amp;gt; that maps 1, 2, 3, 4, 5, 6 to 1, 2, 3, 3, 2, 1 respectively; note that this map sends k=6 geometric lines to k=3 combinatorial lines.&lt;/div&gt;</summary>
		<author><name>121.220.134.232</name></author>
	</entry>
	<entry>
		<id>https://michaelnielsen.org/polymath/index.php?title=Moser%27s_cube_problem&amp;diff=894</id>
		<title>Moser&#039;s cube problem</title>
		<link rel="alternate" type="text/html" href="https://michaelnielsen.org/polymath/index.php?title=Moser%27s_cube_problem&amp;diff=894"/>
		<updated>2009-03-15T09:52:16Z</updated>

		<summary type="html">&lt;p&gt;121.220.134.232: /* n=4 */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Define a &#039;&#039;Moser set&#039;&#039; to be a subset of &amp;lt;math&amp;gt;[3]^n&amp;lt;/math&amp;gt; which does not contain any [[geometric line]], and let &amp;lt;math&amp;gt;c&#039;_n&amp;lt;/math&amp;gt; denote the size of the largest Moser set in &amp;lt;math&amp;gt;[3]^n&amp;lt;/math&amp;gt;.  The first few values are (see [http://www.research.att.com/~njas/sequences/A003142 OEIS A003142]):&lt;br /&gt;
&lt;br /&gt;
: &amp;lt;math&amp;gt;c&#039;_0 = 1; c&#039;_1 = 2; c&#039;_2 = 6; c&#039;_3 = 16; c&#039;_4 = 43; c&#039;_5 = 124.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Beyond this point, we only have some upper and lower bounds, in particular &amp;lt;math&amp;gt;353 \leq c&#039;_5 \leq 360&amp;lt;/math&amp;gt;; see [http://spreadsheets.google.com/ccc?key=p5T0SktZY9DsU-uZ1tK7VEg this spreadsheet] for the latest bounds.&lt;br /&gt;
&lt;br /&gt;
The best known asymptotic lower bound for &amp;lt;math&amp;gt;c&#039;_n&amp;lt;/math&amp;gt; is&lt;br /&gt;
&lt;br /&gt;
: &amp;lt;math&amp;gt;c&#039;_n \gg 3^n/\sqrt{n}&amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
formed by fixing the number of 2s to a single value near n/3.  Compare this to the DHJ(2) or Sperner limit of &amp;lt;math&amp;gt;2^n/\sqrt{n}&amp;lt;/math&amp;gt;.  Is it possible to do any better?  Note that we have a [[Upper_and_lower_bounds#Asymptotics|significantly better bound]] for the DHJ(3) &amp;lt;math&amp;gt;c_n&amp;lt;/math&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
: &amp;lt;math&amp;gt;c_n \geq 3^{n-O(\sqrt{\log n})}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
A more precise lower bound is&lt;br /&gt;
&lt;br /&gt;
: &amp;lt;math&amp;gt;c&#039;_n \geq \binom{n+1}{q} 2^{n-q}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where q is the nearest integer to &amp;lt;math&amp;gt;n/3&amp;lt;/math&amp;gt;, formed by taking all strings with q 2s, together with all strings with q-1 2s and an odd number of 1s.  This for instance gives the lower bound &amp;lt;math&amp;gt;c&#039;_5 \geq 120&amp;lt;/math&amp;gt;, which compares with the upper bound &amp;lt;math&amp;gt;c&#039;_5 \leq 3 c&#039;_4 = 129&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Using [[DHJ(3)]], we have the upper bound&lt;br /&gt;
&lt;br /&gt;
: &amp;lt;math&amp;gt;c&#039;_n = o(3^n)&amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
but no effective decay rate is known. It would be good to have a combinatorial proof of this fact (which is weaker than [[DHJ(3)]], but implies [[Roth&#039;s theorem]]).&lt;br /&gt;
&lt;br /&gt;
Convenient notation: given a Moser set A in &amp;lt;math&amp;gt;[3]^n&amp;lt;/math&amp;gt;, we let a be the number of points in A with no 2s, b be the number of points in A with one 2, c the number of points with two 2s, etc.  We call (a,b,c,...) the &#039;&#039;statistics&#039;&#039; of A.  Given a slice S of &amp;lt;math&amp;gt;[3]^n&amp;lt;/math&amp;gt;, we let a(S), b(S), etc. denote the statistics of that slice (dropping the fixed coordinates).  Thus for instance if A = {11, 12, 22, 32}, then (a,b,c) = (1,2,1), and (a(1*),b(1*)) = (1,1).&lt;br /&gt;
&lt;br /&gt;
We call a statistic (a,b,c,...) &#039;&#039;attainable&#039;&#039; if it is attained by a Moser set.  We say that an attainable statistic is &#039;&#039;Pareto-optimal&#039;&#039; if it cannot be pointwise dominated by any other attainable statistic (a&#039;,b&#039;,c&#039;,...) (thus &amp;lt;math&amp;gt;a&#039; \geq a&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;b&#039; \geq b&amp;lt;/math&amp;gt;, etc.)  We say that it is &#039;&#039;extremal&#039;&#039; if it is not a convex combination of any other attainable statistic (this is a stronger property than Pareto-optimal).  For the purposes of maximising linear scores of attainable statistics, it suffices to check extremal statistics.&lt;br /&gt;
&lt;br /&gt;
We let &amp;lt;math&amp;gt;(\alpha_0,\alpha_1,\ldots)&amp;lt;/math&amp;gt; be the normalized version of &amp;lt;math&amp;gt;(a,b,\ldots)&amp;lt;/math&amp;gt;, in which one divides the number of points of a certain type in the set by the total number of points in the set.  Thus for instance &amp;lt;math&amp;gt;\alpha_0 = a/2^n, \alpha_1 = b/(n 2^{n-1}), \alpha_3 = c/(\binom{n}{2} 2^{n-2})&amp;lt;/math&amp;gt;, etc., and the &amp;lt;math&amp;gt;\alpha_i&amp;lt;/math&amp;gt; range between 0 and 1.  Averaging arguments show that any linear inequality obeyed by the &amp;lt;math&amp;gt;\alpha_i&amp;lt;/math&amp;gt; at one dimension is automatically inherited by higher dimensions, as are shifted versions of this inequality (in which &amp;lt;math&amp;gt;\alpha_i&amp;lt;/math&amp;gt; is replaced by &amp;lt;math&amp;gt;\alpha_{i+1}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== n=0 ==&lt;br /&gt;
&lt;br /&gt;
We trivially have &amp;lt;math&amp;gt;c&#039;_0=1.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== n=1 ==&lt;br /&gt;
&lt;br /&gt;
We trivially have &amp;lt;math&amp;gt;c&#039;_1=2.&amp;lt;/math&amp;gt;  The Pareto-optimal values of the statistics (a,b) are (1,1) and (2,0); these are also the extremals.  We thus have the inequality &amp;lt;math&amp;gt;a+b \leq 2&amp;lt;/math&amp;gt;, or in normalized notation&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;2\alpha_0 + \alpha_1 \leq 2&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== n=2 ==&lt;br /&gt;
&lt;br /&gt;
We have &amp;lt;math&amp;gt;c&#039;_2 = 6&amp;lt;/math&amp;gt;; the upper bound follows since &amp;lt;math&amp;gt;c&#039;_2 \leq 3 c&#039;_1&amp;lt;/math&amp;gt;, and the lower bound follows by deleting one of the two diagonals from &amp;lt;math&amp;gt;[3]^2&amp;lt;/math&amp;gt; (these are the only extremisers).&lt;br /&gt;
&lt;br /&gt;
The extremiser has statistics (a,b,c) = (2,4,0), which are of course Pareto-optimal.  If c=1 then we must have a, b at most 2 (look at the lines through 22).  This is attainable (e.g. {11, 12, 22, 23, 31}, and so (2,2,1) is another Pareto-optimal statistic.  If a=4, then b and c must be 0, so we get another Pareto-optimal statistic (4,0,0) (attainable by {11, 13, 31, 33} of course).  If a=3, then c=0 and b is at most 2, giving another Pareto-optimal statistic (3,2,0); but this is a convex combination of (4,0,0) and (2,4,0) and is thus not extremal.  Thus the complete set of extremal statistics are&lt;br /&gt;
&lt;br /&gt;
(4,0,0), (2,4,0), (2,2,1).&lt;br /&gt;
&lt;br /&gt;
The sharp linear inequalities obeyed by a,b,c (other than the trivial ones &amp;lt;math&amp;gt;a,b,c \geq 0&amp;lt;/math&amp;gt;) are then&lt;br /&gt;
&lt;br /&gt;
*&amp;lt;math&amp;gt;2a+b+2c \leq 8&amp;lt;/math&amp;gt;&lt;br /&gt;
*&amp;lt;math&amp;gt;b+2c \leq 4&amp;lt;/math&amp;gt;&lt;br /&gt;
*&amp;lt;math&amp;gt;a+2c \leq 4&amp;lt;/math&amp;gt;&lt;br /&gt;
*&amp;lt;math&amp;gt;c \leq 1&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
In normalized notation, we have&lt;br /&gt;
*&amp;lt;math&amp;gt;4\alpha_0 + 2\alpha_1 + \alpha_2 \leq 4&amp;lt;/math&amp;gt;&lt;br /&gt;
*&amp;lt;math&amp;gt;2\alpha_1 + \alpha_2 \leq 2&amp;lt;/math&amp;gt;&lt;br /&gt;
*&amp;lt;math&amp;gt;2\alpha_0 + \alpha_2 \leq 2&amp;lt;/math&amp;gt;&lt;br /&gt;
*&amp;lt;math&amp;gt;\alpha_2 \leq 1&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== n=3 ==&lt;br /&gt;
&lt;br /&gt;
We have &amp;lt;math&amp;gt;c&#039;_3 = 16&amp;lt;/math&amp;gt;.  The lower bound can be seen for instance by taking all the strings with one 2, and half the strings with no 2 (e.g. the strings with an odd number of 1s).  The upper bound can be deduced from the corresponding [[upper and lower bounds]] for &amp;lt;math&amp;gt;c_3 = 18&amp;lt;/math&amp;gt;; the 17-point and 18-point line-free sets each contain a geometric line.&lt;br /&gt;
&lt;br /&gt;
If a Moser set in &amp;lt;math&amp;gt;[3]^3&amp;lt;/math&amp;gt; contains 222, then it can have at most 14 points, since the remaining 26 points in the cube split into 13 antipodal pairs, and at most one of each pair can lie in the set.  By exhausting over the &amp;lt;math&amp;gt;2^{13} = 8192&amp;lt;/math&amp;gt; possibilities, it can be shown that it is impossible for a 14-point set to exist; any Moser set containing 222 must in fact omit at least one antipodal pair completely and thus have only 13 points.  (A human proof of this fact can be [http://www.ma.rhul.ac.uk/~elsholtz/WWW/blog/mosertablogv01.pdf found here].)&lt;br /&gt;
&lt;br /&gt;
The Pareto-optimal statistics are&lt;br /&gt;
&lt;br /&gt;
(3,6,3,1),(4,4,3,1),(4,6,2,1),(2,6,6,0),(3,6,5,0),(4,4,5,0),(3,7,4,0),(4,6,4,0), (3,9,3,0),(4,7,3,0),(5,4,3,0),(4,9,2,0),(5,6,2,0),(6,3,2,0),(3,10,1,0),(5,7,1,0), (6,4,1,0),(4,12,0,0),(5,9,0,0),(6,6,0,0),(7,3,0,0),(8,0,0,0).&lt;br /&gt;
&lt;br /&gt;
A spreadsheet containing these statistics can be [http://spreadsheets.google.com/ccc?key=p5T0SktZY9DuKZ2DyzO9EOg&amp;amp;hl=en# found here].&lt;br /&gt;
&lt;br /&gt;
The extremal statistics are&lt;br /&gt;
&lt;br /&gt;
(3,6,3,1),(4,4,3,1),(4,6,2,1),(2,6,6,0),(4,4,5,0),(4,6,4,0),(4,12,0,0),(8,0,0,0)&lt;br /&gt;
&lt;br /&gt;
The sharp linear bounds are :&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;math&amp;gt;2a+b+2c+4d \leq 22&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;3a+2b+3c+6d \leq 36&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;7a+2b+4c+8d \leq 56&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;6a+2b+3c+6d \leq 48&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;b+c+3d \leq 12&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;a+2c+4d \leq 14&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;5a+4c+8d \leq 40&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;a+4d \leq 8&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;b+6d \leq 12&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;c+3d \leq 6&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;d \leq 1&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In normalized notation,&lt;br /&gt;
* &amp;lt;math&amp;gt;8\alpha_0+ 6\alpha_1 + 6\alpha_2 + 2\alpha_3 \leq 11&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;4\alpha_0+4\alpha_1+3\alpha_2+\alpha_3 \leq 6&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;7\alpha_0+3\alpha_1+3\alpha_2+\alpha_3 \leq 7&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;8\alpha_0+3\alpha_1+3\alpha_2+\alpha_3 \leq 8&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;4\alpha_1+2\alpha_2+\alpha_3 \leq 4&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;4\alpha_0+6\alpha_2+2\alpha_3 \leq 7&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;5\alpha_0+3\alpha_2+\alpha_3 \leq 5&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;2\alpha_0+\alpha_3 \leq 2&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;2\alpha_1+\alpha_3 \leq 2&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;2\alpha_2+\alpha_3 \leq 2&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;\alpha_3 \leq 1&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== n=4 ==&lt;br /&gt;
&lt;br /&gt;
A [http://abel.math.umu.se/~klasm/extremal-moser-n=5-t=3 computer search] has obtained all extremisers to &amp;lt;math&amp;gt;c&#039;_4=43&amp;lt;/math&amp;gt;.  The 42-point solutions can be found [http://abel.math.umu.se/~klasm/moser-n=4-t=3-p=42.gz here].&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof that &amp;lt;math&amp;gt;c&#039;_4 \leq 43&amp;lt;/math&amp;gt;&#039;&#039;&#039;: &lt;br /&gt;
When e=1 (i.e. the 4D set contains 2222) then we have at most 41 points (in fact at most 39) by counting antipodal points, so assume e=0.&lt;br /&gt;
&lt;br /&gt;
Define the score of a 3D slice to be a/4+b/3+c/2+d.  Observe from double counting that the size of a 4D set is the sum of the scores of its eight side slices.&lt;br /&gt;
&lt;br /&gt;
But by [http://spreadsheets.google.com/ccc?key=p5T0SktZY9DuKZ2DyzO9EOg&amp;amp;hl=en looking at the extremals] we see that the largest score is 44/8, attained at only one point, namely when (a,b,c,d) = (2,6,6,0).  So the only way one can have a 44-point set is if all side slices are (2,6,6,0), or equivalently if the whole set has statistics (a,b,c,d,e) = (4,16,24,0,0).  But then we have all the points with two 2s, which means that the four &amp;quot;a&amp;quot; points cannot be separated by Hamming distance 2.  We conclude that we must have an antipodal pair among the &amp;quot;a&amp;quot; points with an odd number of 1s, and an antipodal pair among the &amp;quot;a&amp;quot; points with an even number of 1s.    By the symmetries of the cube, we may take the a-set to then be 1111, 3333, 1113, 3331.  But then the &amp;quot;b&amp;quot; set must exclude both 1112 and 3332, and so can have at most three points in the eight-point set xyz2 (with x,y,z=1,3) rather than four (to get four points one must alternate in a checkerboard pattern).  Adding this to the at most four points of the form xy2z, x2yz, 2xyz we see that b is at most 16, a contradiction. &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Given a subset of &amp;lt;math&amp;gt;[3]^4&amp;lt;/math&amp;gt;, let a be the number of points with no 2s, b be the number of points with 1 2, and so forth.  The quintuple (a,b,c,d,e) thus lies between (0,0,0,0,0) and (16,32,24,8,1).&lt;br /&gt;
&lt;br /&gt;
The 43-point solutions have distributions (a,b,c,d,e) as follows:&lt;br /&gt;
&lt;br /&gt;
* (5,20,18,0,0) [16 solutions]&lt;br /&gt;
* (4,16,23,0,0) [768 solutions]&lt;br /&gt;
* (3,16,24,0,0) [512 solutions]&lt;br /&gt;
* (4,15,24,0,0) [256 solutions]&lt;br /&gt;
&lt;br /&gt;
The 42-point solutions are [http://abel.math.umu.se/~klasm/Moser-42-stat.pdf distributed as follows]:&lt;br /&gt;
&lt;br /&gt;
* (6,24,12,0,0) [[http://abel.math.umu.se/~klasm/moser-n=4-42-12 8 solutions]] &lt;br /&gt;
* (5,20,17,0,0) [576 solutions]&lt;br /&gt;
* (5,19,18,0,0) [384 solutions]&lt;br /&gt;
* (6,16,18,2,0) [[http://abel.math.umu.se/~klasm/moser-n=4-42-e=2 192 solutions]]&lt;br /&gt;
* (4,20,18,0,0) [272 solutions]&lt;br /&gt;
* (5,17,20,0,0) [192 solutions]&lt;br /&gt;
* (5,16,21,0,0) [3584 solutions]&lt;br /&gt;
* (4,17,21,0,0) [768 solutions]&lt;br /&gt;
* (4,16,22,0,0) [26880 solutions]&lt;br /&gt;
* (5,15,22,0,0) [1536 solutions]&lt;br /&gt;
* (4,15,23,0,0) [22272 solutions]&lt;br /&gt;
* (3,16,23,0,0) [15744 solutions]&lt;br /&gt;
* (4,14,24,0,0) [4224 solutions]&lt;br /&gt;
* (3,15,24,0,0) [8704 solutions]&lt;br /&gt;
* (2,16,24,0,0) [896 solutions]&lt;br /&gt;
&lt;br /&gt;
Note how c is usually quite large, and d quite low.&lt;br /&gt;
&lt;br /&gt;
One of the (6,24,12,0,0) solutions is &amp;lt;math&amp;gt;\Gamma_{220}+\Gamma_{202}+\Gamma_{022}+\Gamma_{112}+\Gamma_{211}&amp;lt;/math&amp;gt; (i.e. the set of points containing exactly two 1s, and/or exactly two 3s).  The other seven are reflections of this set.&lt;br /&gt;
&lt;br /&gt;
There are 2,765,200 41-point solutions, [http://abel.math.umu.se/~klasm/solutions-4-t=3-41-moser.gz listed here].  The statistics for such points can be [http://abel.math.umu.se/~klasm/Moser-41-stat.pdf found here].  Noteworthy features of the statistics:&lt;br /&gt;
&lt;br /&gt;
* d is at most 3 (and, except for [http://abel.math.umu.se/~klasm/moser-n=3-t=3-41-d=3.gz 256 exceptional solutions] of the shape (5,15,18,3,0), have d at most 2; here are the [http://abel.math.umu.se/~klasm/moser-n=3-t=3-41-d=2.gz d=2 solutions] and [http://abel.math.umu.se/~klasm/moser-n=3-t=3-41-d=1.gz d=1 solutions])&lt;br /&gt;
* c is at least 6 (and, except for [http://abel.math.umu.se/~klasm/moser-n=3-t=3-41-c=6.gz 16 exceptional solutions] of the shape (7,28,6,0,0), have c at least 11).&lt;br /&gt;
&lt;br /&gt;
Statistics for the 41-point, 42-point, and 43-point solutions can be found [http://spreadsheets.google.com/ccc?key=p5T0SktZY9DuqNcxJ171Bbw&amp;amp;hl=en here].&lt;br /&gt;
&lt;br /&gt;
If a Moser set in &amp;lt;math&amp;gt;[3]^4&amp;lt;/math&amp;gt; contains 2222, then by the n=3 theory, any middle slice (i.e. 2***, *2**, **2*, or ***2) is missing at least one antipodal pair.  But each antipodal pair belongs to at most three middle slices, thus two of the 40 antipodal pairs must be completely missing.  As a consequence, any Moser set containing 2222 can have at most 39 points.&lt;br /&gt;
(A more refined analysis can be found at [http://www.ma.rhul.ac.uk/~elsholtz/WWW/blog/mosertablogv01.pdf found here].)&lt;br /&gt;
&lt;br /&gt;
We have the following inequalities connecting a,b,c,d,e:&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;math&amp;gt;4a+b \leq 64&amp;lt;/math&amp;gt;:  There are 32 lines connecting two &amp;quot;a&amp;quot; points with a &amp;quot;b&amp;quot; point; each &amp;quot;a&amp;quot; point belongs to four of these lines, and each &amp;quot;b&amp;quot; point belongs to one.  But each such line can have at most two points in the set, and the claim follows.&lt;br /&gt;
* This can be refined to &amp;lt;math&amp;gt;4a+b+\frac{2}{3} c \leq 64&amp;lt;/math&amp;gt;: There are 24 planes connecting four &amp;quot;a&amp;quot; points, four &amp;quot;b&amp;quot; points, and one &amp;quot;c&amp;quot; point; each &amp;quot;a&amp;quot; point belongs to six of these, each &amp;quot;b&amp;quot; point belongs to three, and each &amp;quot;c&amp;quot; point belongs to one.  For each of these planes, we have &amp;lt;math&amp;gt;2a + b + 2c \leq 8&amp;lt;/math&amp;gt; from the n=2 theory, and the claim follows.&lt;br /&gt;
* &amp;lt;math&amp;gt;6a+2c \leq 96&amp;lt;/math&amp;gt;:  There are 96 lines connecting two &amp;quot;a&amp;quot; points with a &amp;quot;c&amp;quot; point; each &amp;quot;a&amp;quot; point belongs to six of these lines, and each &amp;quot;c&amp;quot; point belongs to two.  But each such line can have at most two points in the set, and the claim follows.&lt;br /&gt;
* &amp;lt;math&amp;gt;3b+2c \leq 96&amp;lt;/math&amp;gt;:  There are 48 lines connecting two &amp;quot;b&amp;quot; points to a &amp;quot;c&amp;quot; point; each &amp;quot;b&amp;quot; point belongs to three of these points, and each &amp;quot;c&amp;quot; point belongs to two.  But each such line can have at most two points in the set, and the claim follows.&lt;br /&gt;
&lt;br /&gt;
The inequalities for n=3 imply inequalities for n=4.  Indeed, there are eight side slices of &amp;lt;math&amp;gt;[3]^4&amp;lt;/math&amp;gt;; each &amp;quot;a&amp;quot; point belongs to four of these, each &amp;quot;b&amp;quot; point belongs to three, each &amp;quot;c&amp;quot; point belongs to two, and each &amp;quot;d&amp;quot; point belongs to one.  Thus, any inequality of the form&lt;br /&gt;
:&amp;lt;math&amp;gt; \alpha a + \beta b + \gamma c + \delta d \leq M&amp;lt;/math&amp;gt;&lt;br /&gt;
in three dimensions implies the inequality&lt;br /&gt;
:&amp;lt;math&amp;gt; 4 \alpha a + 3 \beta b + 2 \gamma c + \delta d \leq 8M&amp;lt;/math&amp;gt;&lt;br /&gt;
in four dimensions.  Thus we have&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;math&amp;gt;8a+3b+4c+4d \leq 176&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;2a+b+c+d \leq 48&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;14a+3b+4c+4d \leq 244&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;4a+b+c+d \leq 64&amp;lt;/math&amp;gt; &lt;br /&gt;
* &amp;lt;math&amp;gt;3b+2c+3d \leq 96&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;a+c+d \leq 28&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;5a+2c+2d \leq 80&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;a+d \leq 16&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;b+2d \leq 32&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;2c+3d \leq 48&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Cubes also sit diagonally in the 4-dimensional cube.  They may have coordinates xxyz, where xx runs over (11,22,33) or (13,22,31), while y and z run over (1,2,3).  These cubes have a different distribution of 2s than the ordinary slices: (a,b,c,d,e) = (8,8,6,4,1) instead of (8,12,6,1,0) for the side slices and (0,8,12,6,1) for the middle slices.  So a different set of inequalities arise.  It is possible to run through the same procedure as described above for n=3, and the inequalities that arise are &amp;lt;math&amp;gt;2a+b+2c+2d+4e \le 24&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;4a+b+2c+2d+4e \le 32&amp;lt;/math&amp;gt; within the 3D cube, which when averaged becomes &amp;lt;math&amp;gt;4a+b+2c+4d+16e \le 96&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;8a+b+2c+4d+16e \le 128&amp;lt;/math&amp;gt; for the 4D cube.  A spreadsheet containing these statistics can be [http://spreadsheets.google.com/ccc?key=p5T0SktZY9DuKZ2DyzO9EOg&amp;amp;hl=en# found here] on sheet 2.  Other sheets of this spreadsheet contain results for a 3D cube sitting diagonally in a 5D or 6D cube.  Notice the similarity of the equations that arise for the xxxyz, xxyyz and xxxxyz diagonals.&lt;br /&gt;
&lt;br /&gt;
== n=5 ==&lt;br /&gt;
&lt;br /&gt;
Let (A,B,C,D,E,F) be the statistics of a five-dimensional Moser set, thus (A,B,C,D,E,F) varies between (0,0,0,0,0,0) and (32,80,80,40,10,1).&lt;br /&gt;
&lt;br /&gt;
There are several Moser sets with the statistics (4,40,80,0,0), which thus have 124 points.  Indeed, one can take&lt;br /&gt;
&lt;br /&gt;
* all points with two 1s;&lt;br /&gt;
* all points with one 1 and an even number of 0s; and&lt;br /&gt;
* Four points with no 1s and two or three 0s. Any two of these four points differ in three places, except for one pair of points that differ in one place.&lt;br /&gt;
&lt;br /&gt;
For the rest of this section, we assume that the Moser set &amp;lt;math&amp;gt;{\mathcal A}&amp;lt;/math&amp;gt; is a 125-point set.&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 1&#039;&#039;&#039;: F=0.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; If F is non-zero, then the Moser set contains 22222, then each of the 121 antipodal pairs can have at most one point in the set, leading to only 122 points. &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 2&#039;&#039;&#039;: Every middle slice of &amp;lt;math&amp;gt;{\mathcal A}&amp;lt;/math&amp;gt; has at most 41 points.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039;  Without loss of generality we may consider the 2**** slice.  There are two cases, depending on the value of c(2****).&lt;br /&gt;
&lt;br /&gt;
Suppose first that c is at least 17; thus there are at least 17 points of the form 222xy, 22xy2, 2xy22, or 2x22y, where the x, y denote 1 or 3.  This gives 36 &amp;quot;xy&amp;quot; wildcards in all in four coordinate slots; by the pigeonhole principle one of the slots sees at least 9 of the wildcards.  By symmetry, we may assume that the second coordinate slot sees at least 9 of these wildcards, thus there are at least 9 points of the form 2x22y, 2x2y2, 2xy22.  The x=1, x=3 cases can absorb at most six of these, thus each of these cases must absorb at least three points, with at least one absorbing at least five.  Let&#039;s say that it&#039;s the x=3 case that absorbs 5; thus &amp;lt;math&amp;gt;d(*1***) \geq 3&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;d(*3***) \geq 5&amp;lt;/math&amp;gt;.  From the n=4 theory this means that the *1*** slice has at most 41 points, and the *3*** slice has at most 40.  Meanwhile, the middle slice has at most 43, leading to 41+41+42=124 points in all.&lt;br /&gt;
&lt;br /&gt;
Now suppose c is less than 16; then by the n=4 theory the middle slice is one of the eight (6,24,12,0,0) sets.  Without loss of generality we may take it to be &amp;lt;math&amp;gt;\Gamma_{220}+\Gamma_{202}+\Gamma_{022}+\Gamma_{112}+\Gamma_{211}&amp;lt;/math&amp;gt;; in particular, the middle slice contains the points 21122 21212 21221 23322 23232 23223.  In particular, the *1*** and *3*** slices have a &amp;quot;d&amp;quot; value of at least three, and so have at most 41 points.  If the *2*** slice has at most 42 points, then we are at 41+42+41=124 points as needed, but if we have 43 or more, then we are back in the first case (as &amp;lt;math&amp;gt;c(*2***) \geq 17&amp;lt;/math&amp;gt;) after permuting the indices.&lt;br /&gt;
&amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Since 125=41+41+43, we thus have&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Corollary 1&#039;&#039;&#039;: Every side slice of &amp;lt;math&amp;gt;{\mathcal A}&amp;lt;/math&amp;gt; has at least 41 points.  If one side slice does have 41 points, then the other has 43.&lt;br /&gt;
&lt;br /&gt;
Combining this with the n=4 statistics, we conclude&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Corollary 2&#039;&#039;&#039;: Every side slice of &amp;lt;math&amp;gt;{\mathcal A}&amp;lt;/math&amp;gt; has e=0, and &amp;lt;math&amp;gt;d \leq 3&amp;lt;/math&amp;gt;.  Given two opposite side slices, e.g. 1**** and 3****, we have &amp;lt;math&amp;gt;d(1****)+d(3****) \leq 4&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Corollary 3&#039;&#039;&#039;: E=0.&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Corollary 4&#039;&#039;&#039;: Any middle slice has a &amp;quot;c&amp;quot; value of at most 8.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; Let&#039;s work with the 2**** slice.  By Corollary 2, there are at most four contributions to c(2****) of the form 21*** or 23***, and similarly for the other three positions.  Double counting then gives the claim. &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 3&#039;&#039;&#039;: &amp;lt;math&amp;gt;2B+C \leq 160&amp;lt;/math&amp;gt;.   &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039;: There are 160 lines connecting one &amp;quot;C&amp;quot; point to two &amp;quot;B&amp;quot; points (e.g. 11112, 11122, 11132); each &amp;quot;C&amp;quot; point lies in two of these, and each &amp;quot;B&amp;quot; point lies on four.  A Moser set can have at most two points out of each of these lines.  Double counting then gives the claim.  &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 4&#039;&#039;&#039; Given m A-points with &amp;lt;math&amp;gt;m \geq 5&amp;lt;/math&amp;gt;, there exists at least m-4 pairs (a,b) of such A-points with Hamming distance exactly two (i.e. b differs from a in exactly two places).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; It suffices to check this for m=5, since the case of larger m then follows by locating a pair, removing a point that contributes to that pair, and using the induction hypothesis.  Given 5 A-points, we may assume by the pigeonhole principle and symmetry that at least three of them have an odd number of 1s.  Suppose 11111 is one of the points, and that no pair has Hamming distance 2. All points with two 3s are excluded, so the only points allowed with an odd number of 1s are those with four 3s. But all those points differ from each other in two positions, so at most one of them is allowed.  &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Corollary 5&#039;&#039;&#039; &amp;lt;math&amp;gt;C \leq 79&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039;: Suppose for contradiction that C=80, then D=0 and &amp;lt;math&amp;gt;B \leq 40&amp;lt;/math&amp;gt;.  From Lemma 4 we also see that A cannot exceed 5, leading to the contradiction.&lt;br /&gt;
&amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Define the &#039;&#039;&#039;score&#039;&#039;&#039; of a Moser set in &amp;lt;math&amp;gt;[3]^4&amp;lt;/math&amp;gt; to be the quantity &amp;lt;math&amp;gt;a + 5b/4 + 5c/3 + 5d/2 + 5e&amp;lt;/math&amp;gt;.  Double-counting (and Lemma 2) gives&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 5&#039;&#039;&#039;  The total score of all the ten side-slices of &amp;lt;math&amp;gt;{\mathcal A}&amp;lt;/math&amp;gt; is equal to &amp;lt;math&amp;gt;5|{\mathcal A}| = 5 \times 125&amp;lt;/math&amp;gt;.  In particular, there exists a pair of opposite side-slices whose scores add up to at least 125.&lt;br /&gt;
&lt;br /&gt;
By Lemma 5 and symmetry, we may assume that the 1**** and 3**** slices have score adding up to at least 125.  By Lemma 2, the 2**** slice has at most 41 points, which imply that the 1**** and 3**** have 41, 42, or 43 points.  From the [http://spreadsheets.google.com/ccc?key=p5T0SktZY9DuqNcxJ171Bbw&amp;amp;hl=en n=4 statistics] we know that all 41-point, 42-point, 43-point slices have score less than 62, with the following exceptions:&lt;br /&gt;
&lt;br /&gt;
# (2,16,24,0,0) [42 points, score: 62]&lt;br /&gt;
# (4,16,23,0,0) [43 points, score: 62 1/3]&lt;br /&gt;
# (4,15,24,0,0) [43 points, score: 62 3/4]&lt;br /&gt;
# (3,16,24,0,0) [43 points, score: 63]&lt;br /&gt;
&lt;br /&gt;
Thus the 1**** and 3**** slices must from the above list.  Furthermore, if one of the slices is of type 1, then the other must be of type 4, and if one slice is of type 2, then the other must be of type 3 or 4.&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 6&#039;&#039;&#039; There exists one cut in which the side slices have total score strictly greater than 125 (i.e. they thus involve only Type 2, Type 3, and Type 4 slices, with at least one side slice not equal to Type 2, and the cut here is of the form 43+39+43).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; If not, then all cuts have side slices exactly equal to 125, which by the above table implies that one is Type 1 and one is Type 4, in particular all side slices have c=24.  But this forces C=80, contradicting Corollary 5. &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Adding up the corners we conclude&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Corollary 6&#039;&#039;&#039; &amp;lt;math&amp;gt;6 \leq A \leq 8&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 7&#039;&#039;&#039; &amp;lt;math&amp;gt;D=0&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; Firstly, from Lemma 6 we have a cut in which the two side slices are omitting at most one C-point between them (and have no D-point), which forces the middle slice to have at most one D-point; thus D is at most 1.&lt;br /&gt;
&lt;br /&gt;
Now suppose instead that D=1 (e.g. if 11222 was in the set); then there would be two choices of coordinates in which one of the side slices would have d=1 (e.g. 1**** and *1****). But the [http://spreadsheets.google.com/ccc?key=p5T0SktZY9DuqNcxJ171Bbw&amp;amp;hl=en n=4 statistics] show that such slices have a score of at most 59 7/12, so that the total score from those two coordinates is at most 63 + 59 7/12 = 122 7/12. On the other hand, the other three slices have a net score of at most 63+63 = 126. This averages out to at most 124.633... &amp;lt; 125, a contradiction.  &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Corollary 7&#039;&#039;&#039; Every middle slice has at most 40 points.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; From Lemma 7 we see that the middle slice must have c=0, but from the n=4 statistics this is not possible for any slice of size 41 or higher (alternatively, one can use the inequalities &amp;lt;math&amp;gt;4a+b \leq 64&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;b \leq 32&amp;lt;/math&amp;gt;). &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Each middle slice now has 39 or 40 points, with c=d=e=0, and so from the inequalities &amp;lt;math&amp;gt;4a+b \leq 64&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;b \leq 32&amp;lt;/math&amp;gt; must have statistics (8,32,0,0,0),(7,32,0,0,0), or (8,31,0,0,0).  In particular the &amp;quot;a&amp;quot; index of the middle slices is at most 8.  Summing over all middle slices we conclude&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 9&#039;&#039;&#039; B is at most 40.&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 10&#039;&#039;&#039; C is equal to 78 or 79.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; By Corollary 5, it suffices to show that &amp;lt;math&amp;gt;C \geq 78&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
As 125=43+39+43, we see that every center slice must have at least 39 points. By Lemma 2 and Lemma 7 the center slice has c=d=e=0, thus the center slice has a+b &amp;gt;= 39.  On the other hand, from the n=4 theory we have 4a+b &amp;lt;= 64, which forces b &amp;gt;= 31.&lt;br /&gt;
&lt;br /&gt;
By double counting, we see that 2C is equal to the sum of the b&#039;s of all the five center slices.  Thus C &amp;gt;= 5*31/2 = 77.5 and the claim follows.  &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
From Lemmas 9 and 10 we see that &amp;lt;math&amp;gt;B+C \leq 119&amp;lt;/math&amp;gt;, and thus &amp;lt;math&amp;gt;A \geq 6&amp;lt;/math&amp;gt;.  Also, if &amp;lt;math&amp;gt;A \geq 7&amp;lt;/math&amp;gt;, then by Lemma 4 we have at least three pairs of A points with Hamming distance 2.  At most two of these pairs eliminate the same C point, so we would have C=78 in that case.  &lt;br /&gt;
&lt;br /&gt;
Putting all the above facts together, we see that (A,B,C,D,E,F) must be one of the following triples:&lt;br /&gt;
&lt;br /&gt;
* (6,40,79,0,0,0)&lt;br /&gt;
* (7,40,78,0,0,0)&lt;br /&gt;
* (8,39,78,0,0,0)&lt;br /&gt;
&lt;br /&gt;
All three cases can be eliminated, giving &amp;lt;math&amp;gt;c&#039;_5=124&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== Elimination of (6,40,79,0,0,0) ===&lt;br /&gt;
&lt;br /&gt;
Look at the 6 A points.  From Lemma 4 we have at least two pairs (a,b), (c,d) of A-points that have Hamming separation 2.&lt;br /&gt;
&lt;br /&gt;
Now look at the midpoints of these two pairs; these midpoints are C-points cannot lie in the set.  But we have exactly one C-point missing from the set, thus the midpoints must be the same.  By symmetry, we may thus assume that the two pairs are (11111,11133) and (11113,11131).  Thus 11111,11133, 11113, 11131 are in the set, and so every C-point other than 11122 is in the set.  On the other hand, the B-points 11121, 11123, 11112, 11132 lie outside the set.&lt;br /&gt;
&lt;br /&gt;
At most one of 11312, 11332 lie in the set (since 11322 lies in the set).   Suppose that 11312 lies outside the set, then we have a pair (xy1z2, xy3z2) with x,y,z = 1,3 that is totally omitted from the set, namely (11112,11312).  On the other hand, every other pair of this form can have at most point in the set, thus there are at most seven points in the set of the form (xyzw2) with x,y,z,w = 1,3.  Similarly there are at most 8 points of the form xyz2w, or of xy2zw, x2yzw, 2xyzw, leading to at most 39 B-points in all, contradiction.&lt;br /&gt;
&lt;br /&gt;
=== Elimination of (7,40,78,0,0,0) ===&lt;br /&gt;
&lt;br /&gt;
By Lemma 4, we have at least three pairs of A-points of distance two apart that lie in the set.&lt;br /&gt;
The midpoints of these pairs are C-points that do not lie in the set; but there are only two such C-points, thus two pairs must have the same midpoint, so we may assume as before that 111xy lies in the set for x,y=1,3, which implies that 1112* and 111*2 lie outside the set.&lt;br /&gt;
&lt;br /&gt;
Now consider the 160 lines between 2 B points and one C point (cf. Lemma 3).  The sum of all the points in each such line (counting multiplicity) is 4B+2C = 316.  On the other hand, every one of the 160 lines can have at most two points, and four of these lines (namely 1112*, 111*2) have no points.  Thus all the other lines must have exactly two points.  &lt;br /&gt;
&lt;br /&gt;
We know that the C-point 11122 is missing from the set; there is one other missing C-point.  Since 1112x, 111x2 lie outside the set, we conclude from the previous paragraph that 1132x, 113x2 and 1312x, 131x2 lie in the set.  Taking midpoints we conclude that 11322 and 13122 lie outside the set.  But this is now three C-points missing (together with 11122), a contradiction.&lt;br /&gt;
&lt;br /&gt;
=== Elimination of (8,39,78,0,0,0) ===&lt;br /&gt;
&lt;br /&gt;
By Lemma 4 we have at least four pairs of A-points of distance two apart that lie in the set. The midpoints of these pairs are C-points that do not lie in the set; but there are only two such C-points, thus two pairs (a,b), (c,d) must have the same midpoint p, and the other two pairs (a&#039;,b&#039;), (c&#039;,d&#039;) must also have the same midpoint p&#039;.  (Note that every C-point is the midpoint of at most two such pairs.)&lt;br /&gt;
&lt;br /&gt;
Now consider the 160 lines between 2 B points and one C point (cf. Lemma 3).  The sum of all the points in each such line (counting multiplicity) is 4B+2C = 312.  Every one of the 160 lines can have at most two points, and four of these (those in the plane of (a,b,c,d) or of (a&#039;,b&#039;,c&#039;,d&#039;) have no points.  Thus all other lines must have exactly two points.&lt;br /&gt;
&lt;br /&gt;
Without loss of generality we have (a,b)=(11111,11133), (c,d) = (11113,11131), thus p = 11122.  By permuting the first three indices, we may assume that p&#039; is not of the form x2y2z, x2yz2, xy22z, xy2z2.  Then 1112x lies outside the set and 1122x lies in the set, so by the above paragraph 1132x lies in the set; similarly for 113x2, 1312x, 131x2.  This implies that 13122, 11322 lie outside the set, but this (together with 11122) shows that at least three C-points are missing, a contradiction.&lt;br /&gt;
&lt;br /&gt;
== General n ==&lt;br /&gt;
&lt;br /&gt;
General solution for &amp;lt;math&amp;gt;c&#039;_N&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* q 2s, all points from A(N-q,1)&lt;br /&gt;
* q-1 2s, points from A(N-q+1,2)&lt;br /&gt;
* q-2 2s, points from A(N-q+2,3)&lt;br /&gt;
* etc.&lt;br /&gt;
&lt;br /&gt;
where A(m,d) is a subset of &amp;lt;math&amp;gt;[1,3]^m&amp;lt;/math&amp;gt; for which any two points differ from each other in at least d places.&lt;br /&gt;
&lt;br /&gt;
Mathworld’s entry on error-correcting codes suggests it might be NP-complete to find the size of A(m,d) in general.&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;math&amp;gt;|A(m,1)| = 2^m&amp;lt;/math&amp;gt; because it includes all points in &amp;lt;math&amp;gt;[1,3]^m&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;|A(m,2)| = 2^{m-1}&amp;lt;/math&amp;gt; because it can include all points in &amp;lt;math&amp;gt;[1,3]^m&amp;lt;/math&amp;gt; with an odd number of 1s&lt;br /&gt;
&lt;br /&gt;
Here are some [[Maple calculations]].&lt;br /&gt;
&lt;br /&gt;
A [[genetic algorithm]] has provided the following examples:&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;math&amp;gt;c&#039;_6 \geq 353&amp;lt;/math&amp;gt; (26 examples; [http://twofoldgaze.wordpress.com/2009/03/10/353-element-solution/ here is one])&lt;br /&gt;
* &amp;lt;math&amp;gt;c&#039;_7 \geq 988&amp;lt;/math&amp;gt; [http://twofoldgaze.wordpress.com/2009/03/10/978-element-solution/ Here is the example]&lt;br /&gt;
&lt;br /&gt;
== Variants ==&lt;br /&gt;
&lt;br /&gt;
A lower bound for Moser’s cube &amp;lt;math&amp;gt;[4]^n&amp;lt;/math&amp;gt; (values 0,1,2,3) comes from the following set:  Pick all points where q entries are 1 or 2; and also pick those where q-1 entries are 1 or 2 and an odd number of entries are 0.  This is maximized when q is near n/2, giving a lower bound of&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\binom{n}{n/2} 2^n + \binom{n}{n/2-1} 2^{n-1}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
which is comparable to &amp;lt;math&amp;gt;4^n/\sqrt{n}&amp;lt;/math&amp;gt; by [[Stirling&#039;s formula]].&lt;br /&gt;
&lt;br /&gt;
For k=5 (values 0,1,2,3,4) If A, B, C, D, and E denote the numbers of 0-s, 1-s, 2-s, 3-s, and 4-s then the first three points of a geometric line form a 3-term arithmetic progression in A+E+2(B+D)+3C. So, for k=5 we have a similar lower bound for the Moser’s problem as for DHJ k=3, i.e. &amp;lt;math&amp;gt;5^{n - O(\sqrt{\log n})}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
The k=6 version of Moser implies DHJ(3).  Indeed, any k=3 combinatorial line-free set can be &amp;quot;doubled up&amp;quot; into a k=6 geometric line-free set of the same density by pulling back the set from the map &amp;lt;math&amp;gt;\phi: [6]^n \to [3]^n&amp;lt;/math&amp;gt; that maps 1, 2, 3, 4, 5, 6 to 1, 2, 3, 3, 2, 1 respectively; note that this map sends k=6 geometric lines to k=3 combinatorial lines.&lt;/div&gt;</summary>
		<author><name>121.220.134.232</name></author>
	</entry>
	<entry>
		<id>https://michaelnielsen.org/polymath/index.php?title=Moser%27s_cube_problem&amp;diff=893</id>
		<title>Moser&#039;s cube problem</title>
		<link rel="alternate" type="text/html" href="https://michaelnielsen.org/polymath/index.php?title=Moser%27s_cube_problem&amp;diff=893"/>
		<updated>2009-03-15T09:08:05Z</updated>

		<summary type="html">&lt;p&gt;121.220.134.232: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Define a &#039;&#039;Moser set&#039;&#039; to be a subset of &amp;lt;math&amp;gt;[3]^n&amp;lt;/math&amp;gt; which does not contain any [[geometric line]], and let &amp;lt;math&amp;gt;c&#039;_n&amp;lt;/math&amp;gt; denote the size of the largest Moser set in &amp;lt;math&amp;gt;[3]^n&amp;lt;/math&amp;gt;.  The first few values are (see [http://www.research.att.com/~njas/sequences/A003142 OEIS A003142]):&lt;br /&gt;
&lt;br /&gt;
: &amp;lt;math&amp;gt;c&#039;_0 = 1; c&#039;_1 = 2; c&#039;_2 = 6; c&#039;_3 = 16; c&#039;_4 = 43; c&#039;_5 = 124.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Beyond this point, we only have some upper and lower bounds, in particular &amp;lt;math&amp;gt;353 \leq c&#039;_5 \leq 360&amp;lt;/math&amp;gt;; see [http://spreadsheets.google.com/ccc?key=p5T0SktZY9DsU-uZ1tK7VEg this spreadsheet] for the latest bounds.&lt;br /&gt;
&lt;br /&gt;
The best known asymptotic lower bound for &amp;lt;math&amp;gt;c&#039;_n&amp;lt;/math&amp;gt; is&lt;br /&gt;
&lt;br /&gt;
: &amp;lt;math&amp;gt;c&#039;_n \gg 3^n/\sqrt{n}&amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
formed by fixing the number of 2s to a single value near n/3.  Compare this to the DHJ(2) or Sperner limit of &amp;lt;math&amp;gt;2^n/\sqrt{n}&amp;lt;/math&amp;gt;.  Is it possible to do any better?  Note that we have a [[Upper_and_lower_bounds#Asymptotics|significantly better bound]] for the DHJ(3) &amp;lt;math&amp;gt;c_n&amp;lt;/math&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
: &amp;lt;math&amp;gt;c_n \geq 3^{n-O(\sqrt{\log n})}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
A more precise lower bound is&lt;br /&gt;
&lt;br /&gt;
: &amp;lt;math&amp;gt;c&#039;_n \geq \binom{n+1}{q} 2^{n-q}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where q is the nearest integer to &amp;lt;math&amp;gt;n/3&amp;lt;/math&amp;gt;, formed by taking all strings with q 2s, together with all strings with q-1 2s and an odd number of 1s.  This for instance gives the lower bound &amp;lt;math&amp;gt;c&#039;_5 \geq 120&amp;lt;/math&amp;gt;, which compares with the upper bound &amp;lt;math&amp;gt;c&#039;_5 \leq 3 c&#039;_4 = 129&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Using [[DHJ(3)]], we have the upper bound&lt;br /&gt;
&lt;br /&gt;
: &amp;lt;math&amp;gt;c&#039;_n = o(3^n)&amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
but no effective decay rate is known. It would be good to have a combinatorial proof of this fact (which is weaker than [[DHJ(3)]], but implies [[Roth&#039;s theorem]]).&lt;br /&gt;
&lt;br /&gt;
Convenient notation: given a Moser set A in &amp;lt;math&amp;gt;[3]^n&amp;lt;/math&amp;gt;, we let a be the number of points in A with no 2s, b be the number of points in A with one 2, c the number of points with two 2s, etc.  We call (a,b,c,...) the &#039;&#039;statistics&#039;&#039; of A.  Given a slice S of &amp;lt;math&amp;gt;[3]^n&amp;lt;/math&amp;gt;, we let a(S), b(S), etc. denote the statistics of that slice (dropping the fixed coordinates).  Thus for instance if A = {11, 12, 22, 32}, then (a,b,c) = (1,2,1), and (a(1*),b(1*)) = (1,1).&lt;br /&gt;
&lt;br /&gt;
We call a statistic (a,b,c,...) &#039;&#039;attainable&#039;&#039; if it is attained by a Moser set.  We say that an attainable statistic is &#039;&#039;Pareto-optimal&#039;&#039; if it cannot be pointwise dominated by any other attainable statistic (a&#039;,b&#039;,c&#039;,...) (thus &amp;lt;math&amp;gt;a&#039; \geq a&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;b&#039; \geq b&amp;lt;/math&amp;gt;, etc.)  We say that it is &#039;&#039;extremal&#039;&#039; if it is not a convex combination of any other attainable statistic (this is a stronger property than Pareto-optimal).  For the purposes of maximising linear scores of attainable statistics, it suffices to check extremal statistics.&lt;br /&gt;
&lt;br /&gt;
We let &amp;lt;math&amp;gt;(\alpha_0,\alpha_1,\ldots)&amp;lt;/math&amp;gt; be the normalized version of &amp;lt;math&amp;gt;(a,b,\ldots)&amp;lt;/math&amp;gt;, in which one divides the number of points of a certain type in the set by the total number of points in the set.  Thus for instance &amp;lt;math&amp;gt;\alpha_0 = a/2^n, \alpha_1 = b/(n 2^{n-1}), \alpha_3 = c/(\binom{n}{2} 2^{n-2})&amp;lt;/math&amp;gt;, etc., and the &amp;lt;math&amp;gt;\alpha_i&amp;lt;/math&amp;gt; range between 0 and 1.  Averaging arguments show that any linear inequality obeyed by the &amp;lt;math&amp;gt;\alpha_i&amp;lt;/math&amp;gt; at one dimension is automatically inherited by higher dimensions, as are shifted versions of this inequality (in which &amp;lt;math&amp;gt;\alpha_i&amp;lt;/math&amp;gt; is replaced by &amp;lt;math&amp;gt;\alpha_{i+1}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== n=0 ==&lt;br /&gt;
&lt;br /&gt;
We trivially have &amp;lt;math&amp;gt;c&#039;_0=1.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== n=1 ==&lt;br /&gt;
&lt;br /&gt;
We trivially have &amp;lt;math&amp;gt;c&#039;_1=2.&amp;lt;/math&amp;gt;  The Pareto-optimal values of the statistics (a,b) are (1,1) and (2,0); these are also the extremals.  We thus have the inequality &amp;lt;math&amp;gt;a+b \leq 2&amp;lt;/math&amp;gt;, or in normalized notation&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;2\alpha_0 + \alpha_1 \leq 2&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== n=2 ==&lt;br /&gt;
&lt;br /&gt;
We have &amp;lt;math&amp;gt;c&#039;_2 = 6&amp;lt;/math&amp;gt;; the upper bound follows since &amp;lt;math&amp;gt;c&#039;_2 \leq 3 c&#039;_1&amp;lt;/math&amp;gt;, and the lower bound follows by deleting one of the two diagonals from &amp;lt;math&amp;gt;[3]^2&amp;lt;/math&amp;gt; (these are the only extremisers).&lt;br /&gt;
&lt;br /&gt;
The extremiser has statistics (a,b,c) = (2,4,0), which are of course Pareto-optimal.  If c=1 then we must have a, b at most 2 (look at the lines through 22).  This is attainable (e.g. {11, 12, 22, 23, 31}, and so (2,2,1) is another Pareto-optimal statistic.  If a=4, then b and c must be 0, so we get another Pareto-optimal statistic (4,0,0) (attainable by {11, 13, 31, 33} of course).  If a=3, then c=0 and b is at most 2, giving another Pareto-optimal statistic (3,2,0); but this is a convex combination of (4,0,0) and (2,4,0) and is thus not extremal.  Thus the complete set of extremal statistics are&lt;br /&gt;
&lt;br /&gt;
(4,0,0), (2,4,0), (2,2,1).&lt;br /&gt;
&lt;br /&gt;
The sharp linear inequalities obeyed by a,b,c (other than the trivial ones &amp;lt;math&amp;gt;a,b,c \geq 0&amp;lt;/math&amp;gt;) are then&lt;br /&gt;
&lt;br /&gt;
*&amp;lt;math&amp;gt;2a+b+2c \leq 8&amp;lt;/math&amp;gt;&lt;br /&gt;
*&amp;lt;math&amp;gt;b+2c \leq 4&amp;lt;/math&amp;gt;&lt;br /&gt;
*&amp;lt;math&amp;gt;a+2c \leq 4&amp;lt;/math&amp;gt;&lt;br /&gt;
*&amp;lt;math&amp;gt;c \leq 1&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
In normalized notation, we have&lt;br /&gt;
*&amp;lt;math&amp;gt;4\alpha_0 + 2\alpha_1 + \alpha_2 \leq 4&amp;lt;/math&amp;gt;&lt;br /&gt;
*&amp;lt;math&amp;gt;2\alpha_1 + \alpha_2 \leq 2&amp;lt;/math&amp;gt;&lt;br /&gt;
*&amp;lt;math&amp;gt;2\alpha_0 + \alpha_2 \leq 2&amp;lt;/math&amp;gt;&lt;br /&gt;
*&amp;lt;math&amp;gt;\alpha_2 \leq 1&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== n=3 ==&lt;br /&gt;
&lt;br /&gt;
We have &amp;lt;math&amp;gt;c&#039;_3 = 16&amp;lt;/math&amp;gt;.  The lower bound can be seen for instance by taking all the strings with one 2, and half the strings with no 2 (e.g. the strings with an odd number of 1s).  The upper bound can be deduced from the corresponding [[upper and lower bounds]] for &amp;lt;math&amp;gt;c_3 = 18&amp;lt;/math&amp;gt;; the 17-point and 18-point line-free sets each contain a geometric line.&lt;br /&gt;
&lt;br /&gt;
If a Moser set in &amp;lt;math&amp;gt;[3]^3&amp;lt;/math&amp;gt; contains 222, then it can have at most 14 points, since the remaining 26 points in the cube split into 13 antipodal pairs, and at most one of each pair can lie in the set.  By exhausting over the &amp;lt;math&amp;gt;2^{13} = 8192&amp;lt;/math&amp;gt; possibilities, it can be shown that it is impossible for a 14-point set to exist; any Moser set containing 222 must in fact omit at least one antipodal pair completely and thus have only 13 points.  (A human proof of this fact can be [http://www.ma.rhul.ac.uk/~elsholtz/WWW/blog/mosertablogv01.pdf found here].)&lt;br /&gt;
&lt;br /&gt;
The Pareto-optimal statistics are&lt;br /&gt;
&lt;br /&gt;
(3,6,3,1),(4,4,3,1),(4,6,2,1),(2,6,6,0),(3,6,5,0),(4,4,5,0),(3,7,4,0),(4,6,4,0), (3,9,3,0),(4,7,3,0),(5,4,3,0),(4,9,2,0),(5,6,2,0),(6,3,2,0),(3,10,1,0),(5,7,1,0), (6,4,1,0),(4,12,0,0),(5,9,0,0),(6,6,0,0),(7,3,0,0),(8,0,0,0).&lt;br /&gt;
&lt;br /&gt;
A spreadsheet containing these statistics can be [http://spreadsheets.google.com/ccc?key=p5T0SktZY9DuKZ2DyzO9EOg&amp;amp;hl=en# found here].&lt;br /&gt;
&lt;br /&gt;
The extremal statistics are&lt;br /&gt;
&lt;br /&gt;
(3,6,3,1),(4,4,3,1),(4,6,2,1),(2,6,6,0),(4,4,5,0),(4,6,4,0),(4,12,0,0),(8,0,0,0)&lt;br /&gt;
&lt;br /&gt;
The sharp linear bounds are :&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;math&amp;gt;2a+b+2c+4d \leq 22&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;3a+2b+3c+6d \leq 36&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;7a+2b+4c+8d \leq 56&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;6a+2b+3c+6d \leq 48&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;b+c+3d \leq 12&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;a+2c+4d \leq 14&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;5a+4c+8d \leq 40&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;a+4d \leq 8&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;b+6d \leq 12&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;c+3d \leq 6&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;d \leq 1&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In normalized notation,&lt;br /&gt;
* &amp;lt;math&amp;gt;8\alpha_0+ 6\alpha_1 + 6\alpha_2 + 2\alpha_3 \leq 11&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;4\alpha_0+4\alpha_1+3\alpha_2+\alpha_3 \leq 6&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;7\alpha_0+3\alpha_1+3\alpha_2+\alpha_3 \leq 7&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;8\alpha_0+3\alpha_1+3\alpha_2+\alpha_3 \leq 8&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;4\alpha_1+2\alpha_2+\alpha_3 \leq 4&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;4\alpha_0+6\alpha_2+2\alpha_3 \leq 7&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;5\alpha_0+3\alpha_2+\alpha_3 \leq 5&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;2\alpha_0+\alpha_3 \leq 2&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;2\alpha_1+\alpha_3 \leq 2&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;2\alpha_2+\alpha_3 \leq 2&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;\alpha_3 \leq 1&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== n=4 ==&lt;br /&gt;
&lt;br /&gt;
A [http://abel.math.umu.se/~klasm/extremal-moser-n=5-t=3 computer search] has obtained all extremisers to &amp;lt;math&amp;gt;c&#039;_4=43&amp;lt;/math&amp;gt;.  The 42-point solutions can be found [http://abel.math.umu.se/~klasm/moser-n=4-t=3-p=42.gz here].&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof that &amp;lt;math&amp;gt;c&#039;_4 \leq 43&amp;lt;/math&amp;gt;&#039;&#039;&#039;: &lt;br /&gt;
When e=1 (i.e. the 4D set contains 2222) then we have at most 41 points (in fact at most 39) by counting antipodal points, so assume e=0.&lt;br /&gt;
&lt;br /&gt;
Define the score of a 3D slice to be a/4+b/3+c/2+d.  Observe from double counting that the size of a 4D set is the sum of the scores of its eight side slices.&lt;br /&gt;
&lt;br /&gt;
But by [http://spreadsheets.google.com/ccc?key=p5T0SktZY9DuKZ2DyzO9EOg&amp;amp;hl=en looking at the extremals] we see that the largest score is 44/8, attained at only one point, namely when (a,b,c,d) = (2,6,6,0).  So the only way one can have a 44-point set is if all side slices are (2,6,6,0), or equivalently if the whole set has statistics (a,b,c,d,e) = (4,16,24,0,0).  But then we have all the points with two 2s, which means that the four &amp;quot;a&amp;quot; points cannot be separated by Hamming distance 2.  We conclude that we must have an antipodal pair among the &amp;quot;a&amp;quot; points with an odd number of 1s, and an antipodal pair among the &amp;quot;a&amp;quot; points with an even number of 1s.    By the symmetries of the cube, we may take the a-set to then be 1111, 3333, 1113, 3331.  But then the &amp;quot;b&amp;quot; set must exclude both 1112 and 3332, and so can have at most three points in the eight-point set xyz2 (with x,y,z=1,3) rather than four (to get four points one must alternate in a checkerboard pattern).  Adding this to the at most four points of the form xy2z, x2yz, 2xyz we see that b is at most 16, a contradiction. &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Given a subset of &amp;lt;math&amp;gt;[3]^4&amp;lt;/math&amp;gt;, let a be the number of points with no 2s, b be the number of points with 1 2, and so forth.  The quintuple (a,b,c,d,e) thus lies between (0,0,0,0,0) and (16,32,24,8,1).&lt;br /&gt;
&lt;br /&gt;
The 43-point solutions have distributions (a,b,c,d,e) as follows:&lt;br /&gt;
&lt;br /&gt;
* (5,20,18,0,0) [16 solutions]&lt;br /&gt;
* (4,16,23,0,0) [768 solutions]&lt;br /&gt;
* (3,16,24,0,0) [512 solutions]&lt;br /&gt;
* (4,15,24,0,0) [256 solutions]&lt;br /&gt;
&lt;br /&gt;
The 42-point solutions are [http://abel.math.umu.se/~klasm/Moser-42-stat.pdf distributed as follows]:&lt;br /&gt;
&lt;br /&gt;
* (6,24,12,0,0) [[http://abel.math.umu.se/~klasm/moser-n=4-42-12 8 solutions]] &lt;br /&gt;
* (5,20,17,0,0) [576 solutions]&lt;br /&gt;
* (5,19,18,0,0) [384 solutions]&lt;br /&gt;
* (6,16,18,2,0) [[http://abel.math.umu.se/~klasm/moser-n=4-42-e=2 192 solutions]]&lt;br /&gt;
* (4,20,18,0,0) [272 solutions]&lt;br /&gt;
* (5,17,20,0,0) [192 solutions]&lt;br /&gt;
* (5,16,21,0,0) [3584 solutions]&lt;br /&gt;
* (4,17,21,0,0) [768 solutions]&lt;br /&gt;
* (4,16,22,0,0) [26880 solutions]&lt;br /&gt;
* (5,15,22,0,0) [1536 solutions]&lt;br /&gt;
* (4,15,23,0,0) [22272 solutions]&lt;br /&gt;
* (3,16,23,0,0) [15744 solutions]&lt;br /&gt;
* (4,14,24,0,0) [4224 solutions]&lt;br /&gt;
* (3,15,24,0,0) [8704 solutions]&lt;br /&gt;
* (2,16,24,0,0) [896 solutions]&lt;br /&gt;
&lt;br /&gt;
Note how c is usually quite large, and d quite low.&lt;br /&gt;
&lt;br /&gt;
One of the (6,24,12,0,0) solutions is &amp;lt;math&amp;gt;\Gamma_{220}+\Gamma_{202}+\Gamma_{022}+\Gamma_{112}+\Gamma_{211}&amp;lt;/math&amp;gt; (i.e. the set of points containing exactly two 1s, and/or exactly two 3s).  The other seven are reflections of this set.&lt;br /&gt;
&lt;br /&gt;
There are 2,765,200 41-point solutions, [http://abel.math.umu.se/~klasm/solutions-4-t=3-41-moser.gz listed here].  The statistics for such points can be [http://abel.math.umu.se/~klasm/Moser-41-stat.pdf found here].  Noteworthy features of the statistics:&lt;br /&gt;
&lt;br /&gt;
* d is at most 3 (and, except for [http://abel.math.umu.se/~klasm/moser-n=3-t=3-41-d=3.gz 256 exceptional solutions] of the shape (5,15,18,3,0), have d at most 2; here are the [http://abel.math.umu.se/~klasm/moser-n=3-t=3-41-d=2.gz d=2 solutions] and [http://abel.math.umu.se/~klasm/moser-n=3-t=3-41-d=1.gz d=1 solutions])&lt;br /&gt;
* c is at least 6 (and, except for [http://abel.math.umu.se/~klasm/moser-n=3-t=3-41-c=6.gz 16 exceptional solutions] of the shape (7,28,6,0,0), have c at least 11).&lt;br /&gt;
&lt;br /&gt;
Statistics for the 41-point, 42-point, and 43-point solutions can be found [http://spreadsheets.google.com/ccc?key=p5T0SktZY9DuqNcxJ171Bbw&amp;amp;hl=en here].&lt;br /&gt;
&lt;br /&gt;
If a Moser set in &amp;lt;math&amp;gt;[3]^4&amp;lt;/math&amp;gt; contains 2222, then by the n=3 theory, any middle slice (i.e. 2***, *2**, **2*, or ***2) is missing at least one antipodal pair.  But each antipodal pair belongs to at most three middle slices, thus two of the 40 antipodal pairs must be completely missing.  As a consequence, any Moser set containing 2222 can have at most 39 points.&lt;br /&gt;
(A more refined analysis can be found at [http://www.ma.rhul.ac.uk/~elsholtz/WWW/blog/mosertablogv01.pdf found here].)&lt;br /&gt;
&lt;br /&gt;
We have the following inequalities connecting a,b,c,d,e:&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;math&amp;gt;4a+b \leq 64&amp;lt;/math&amp;gt;:  There are 32 lines connecting two &amp;quot;a&amp;quot; points with a &amp;quot;b&amp;quot; point; each &amp;quot;a&amp;quot; point belongs to four of these lines, and each &amp;quot;b&amp;quot; point belongs to one.  But each such line can have at most two points in the set, and the claim follows.&lt;br /&gt;
* This can be refined to &amp;lt;math&amp;gt;4a+b+\frac{2}{3} c \leq 64&amp;lt;/math&amp;gt;: There are 24 planes connecting four &amp;quot;a&amp;quot; points, four &amp;quot;b&amp;quot; points, and one &amp;quot;c&amp;quot; point; each &amp;quot;a&amp;quot; point belongs to six of these, each &amp;quot;b&amp;quot; point belongs to three, and each &amp;quot;c&amp;quot; point belongs to one.  For each of these planes, we have &amp;lt;math&amp;gt;2a + b + 2c \leq 8&amp;lt;/math&amp;gt; from the n=2 theory, and the claim follows.&lt;br /&gt;
* &amp;lt;math&amp;gt;6a+2c \leq 96&amp;lt;/math&amp;gt;:  There are 96 lines connecting two &amp;quot;a&amp;quot; points with a &amp;quot;c&amp;quot; point; each &amp;quot;a&amp;quot; point belongs to six of these lines, and each &amp;quot;c&amp;quot; point belongs to two.  But each such line can have at most two points in the set, and the claim follows.&lt;br /&gt;
* &amp;lt;math&amp;gt;3b+2c \leq 96&amp;lt;/math&amp;gt;:  There are 48 lines connecting two &amp;quot;b&amp;quot; points to a &amp;quot;c&amp;quot; point; each &amp;quot;b&amp;quot; point belongs to three of these points, and each &amp;quot;c&amp;quot; point belongs to two.  But each such line can have at most two points in the set, and the claim follows.&lt;br /&gt;
&lt;br /&gt;
The inequalities for n=3 imply inequalities for n=4.  Indeed, there are eight side slices of &amp;lt;math&amp;gt;[3]^4&amp;lt;/math&amp;gt;; each &amp;quot;a&amp;quot; point belongs to four of these, each &amp;quot;b&amp;quot; point belongs to three, each &amp;quot;c&amp;quot; point belongs to two, and each &amp;quot;d&amp;quot; point belongs to one.  Thus, any inequality of the form&lt;br /&gt;
:&amp;lt;math&amp;gt; \alpha a + \beta b + \gamma c + \delta d \leq M&amp;lt;/math&amp;gt;&lt;br /&gt;
in three dimensions implies the inequality&lt;br /&gt;
:&amp;lt;math&amp;gt; 4 \alpha a + 3 \beta b + 2 \gamma c + \delta d \leq 8M&amp;lt;/math&amp;gt;&lt;br /&gt;
in four dimensions.  Thus we have&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;math&amp;gt;8a+3b+4c+4d \leq 176&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;2a+b+c+d \leq 48&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;14a+3b+4c+4d \leq 244&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;4a+b+c+d \leq 64&amp;lt;/math&amp;gt; &lt;br /&gt;
* &amp;lt;math&amp;gt;3b+2c+3d \leq 96&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;a+c+d \leq 28&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;5a+2c+2d \leq 80&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;a+d \leq 16&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;b+2d \leq 32&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;2c+3d \leq 48&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Cubes also sit diagonally in the 4-dimensional cube.  They may have coordinates xxyz, where xx runs over (11,22,33) or (13,22,31), while y and z run over (1,2,3).  These cubes have a different distribution of 2s than the ordinary slices: (a,b,c,d,e) = (8,8,6,4,1) instead of (8,12,6,1,0) for the side slices and (0,8,12,6,1) for the middle slices.  So a different set of inequalities arise.  It is possible to run through the same procedure as described above for n=3, and the inequalities that arise are &amp;lt;math&amp;gt;2a+b+2c+2d+4e \le 24&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;4a+b+2c+2d+4e \le 32&amp;lt;/math&amp;gt; within the 3D cube, which when averaged becomes &amp;lt;math&amp;gt;4a+b+2c+4d+16e \le 96&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;8a+b+2c+4d+16e \le 128&amp;lt;/math&amp;gt; for the 4D cube.  A spreadsheet containing these statistics can be [http://spreadsheets.google.com/ccc?key=p5T0SktZY9DuKZ2DyzO9EOg&amp;amp;hl=en# found here] on sheet 2.  Other sheets of this spreadsheet contain results for a 3D cube sitting diagonally in a 5D or 6D cube.&lt;br /&gt;
&lt;br /&gt;
== n=5 ==&lt;br /&gt;
&lt;br /&gt;
Let (A,B,C,D,E,F) be the statistics of a five-dimensional Moser set, thus (A,B,C,D,E,F) varies between (0,0,0,0,0,0) and (32,80,80,40,10,1).&lt;br /&gt;
&lt;br /&gt;
There are several Moser sets with the statistics (4,40,80,0,0), which thus have 124 points.  Indeed, one can take&lt;br /&gt;
&lt;br /&gt;
* all points with two 1s;&lt;br /&gt;
* all points with one 1 and an even number of 0s; and&lt;br /&gt;
* Four points with no 1s and two or three 0s. Any two of these four points differ in three places, except for one pair of points that differ in one place.&lt;br /&gt;
&lt;br /&gt;
For the rest of this section, we assume that the Moser set &amp;lt;math&amp;gt;{\mathcal A}&amp;lt;/math&amp;gt; is a 125-point set.&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 1&#039;&#039;&#039;: F=0.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; If F is non-zero, then the Moser set contains 22222, then each of the 121 antipodal pairs can have at most one point in the set, leading to only 122 points. &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 2&#039;&#039;&#039;: Every middle slice of &amp;lt;math&amp;gt;{\mathcal A}&amp;lt;/math&amp;gt; has at most 41 points.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039;  Without loss of generality we may consider the 2**** slice.  There are two cases, depending on the value of c(2****).&lt;br /&gt;
&lt;br /&gt;
Suppose first that c is at least 17; thus there are at least 17 points of the form 222xy, 22xy2, 2xy22, or 2x22y, where the x, y denote 1 or 3.  This gives 36 &amp;quot;xy&amp;quot; wildcards in all in four coordinate slots; by the pigeonhole principle one of the slots sees at least 9 of the wildcards.  By symmetry, we may assume that the second coordinate slot sees at least 9 of these wildcards, thus there are at least 9 points of the form 2x22y, 2x2y2, 2xy22.  The x=1, x=3 cases can absorb at most six of these, thus each of these cases must absorb at least three points, with at least one absorbing at least five.  Let&#039;s say that it&#039;s the x=3 case that absorbs 5; thus &amp;lt;math&amp;gt;d(*1***) \geq 3&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;d(*3***) \geq 5&amp;lt;/math&amp;gt;.  From the n=4 theory this means that the *1*** slice has at most 41 points, and the *3*** slice has at most 40.  Meanwhile, the middle slice has at most 43, leading to 41+41+42=124 points in all.&lt;br /&gt;
&lt;br /&gt;
Now suppose c is less than 16; then by the n=4 theory the middle slice is one of the eight (6,24,12,0,0) sets.  Without loss of generality we may take it to be &amp;lt;math&amp;gt;\Gamma_{220}+\Gamma_{202}+\Gamma_{022}+\Gamma_{112}+\Gamma_{211}&amp;lt;/math&amp;gt;; in particular, the middle slice contains the points 21122 21212 21221 23322 23232 23223.  In particular, the *1*** and *3*** slices have a &amp;quot;d&amp;quot; value of at least three, and so have at most 41 points.  If the *2*** slice has at most 42 points, then we are at 41+42+41=124 points as needed, but if we have 43 or more, then we are back in the first case (as &amp;lt;math&amp;gt;c(*2***) \geq 17&amp;lt;/math&amp;gt;) after permuting the indices.&lt;br /&gt;
&amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Since 125=41+41+43, we thus have&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Corollary 1&#039;&#039;&#039;: Every side slice of &amp;lt;math&amp;gt;{\mathcal A}&amp;lt;/math&amp;gt; has at least 41 points.  If one side slice does have 41 points, then the other has 43.&lt;br /&gt;
&lt;br /&gt;
Combining this with the n=4 statistics, we conclude&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Corollary 2&#039;&#039;&#039;: Every side slice of &amp;lt;math&amp;gt;{\mathcal A}&amp;lt;/math&amp;gt; has e=0, and &amp;lt;math&amp;gt;d \leq 3&amp;lt;/math&amp;gt;.  Given two opposite side slices, e.g. 1**** and 3****, we have &amp;lt;math&amp;gt;d(1****)+d(3****) \leq 4&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Corollary 3&#039;&#039;&#039;: E=0.&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Corollary 4&#039;&#039;&#039;: Any middle slice has a &amp;quot;c&amp;quot; value of at most 8.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; Let&#039;s work with the 2**** slice.  By Corollary 2, there are at most four contributions to c(2****) of the form 21*** or 23***, and similarly for the other three positions.  Double counting then gives the claim. &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 3&#039;&#039;&#039;: &amp;lt;math&amp;gt;2B+C \leq 160&amp;lt;/math&amp;gt;.   &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039;: There are 160 lines connecting one &amp;quot;C&amp;quot; point to two &amp;quot;B&amp;quot; points (e.g. 11112, 11122, 11132); each &amp;quot;C&amp;quot; point lies in two of these, and each &amp;quot;B&amp;quot; point lies on four.  A Moser set can have at most two points out of each of these lines.  Double counting then gives the claim.  &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 4&#039;&#039;&#039; Given m A-points with &amp;lt;math&amp;gt;m \geq 5&amp;lt;/math&amp;gt;, there exists at least m-4 pairs (a,b) of such A-points with Hamming distance exactly two (i.e. b differs from a in exactly two places).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; It suffices to check this for m=5, since the case of larger m then follows by locating a pair, removing a point that contributes to that pair, and using the induction hypothesis.  Given 5 A-points, we may assume by the pigeonhole principle and symmetry that at least three of them have an odd number of 1s.  Suppose 11111 is one of the points, and that no pair has Hamming distance 2. All points with two 3s are excluded, so the only points allowed with an odd number of 1s are those with four 3s. But all those points differ from each other in two positions, so at most one of them is allowed.  &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Corollary 5&#039;&#039;&#039; &amp;lt;math&amp;gt;C \leq 79&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039;: Suppose for contradiction that C=80, then D=0 and &amp;lt;math&amp;gt;B \leq 40&amp;lt;/math&amp;gt;.  From Lemma 4 we also see that A cannot exceed 5, leading to the contradiction.&lt;br /&gt;
&amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Define the &#039;&#039;&#039;score&#039;&#039;&#039; of a Moser set in &amp;lt;math&amp;gt;[3]^4&amp;lt;/math&amp;gt; to be the quantity &amp;lt;math&amp;gt;a + 5b/4 + 5c/3 + 5d/2 + 5e&amp;lt;/math&amp;gt;.  Double-counting (and Lemma 2) gives&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 5&#039;&#039;&#039;  The total score of all the ten side-slices of &amp;lt;math&amp;gt;{\mathcal A}&amp;lt;/math&amp;gt; is equal to &amp;lt;math&amp;gt;5|{\mathcal A}| = 5 \times 125&amp;lt;/math&amp;gt;.  In particular, there exists a pair of opposite side-slices whose scores add up to at least 125.&lt;br /&gt;
&lt;br /&gt;
By Lemma 5 and symmetry, we may assume that the 1**** and 3**** slices have score adding up to at least 125.  By Lemma 2, the 2**** slice has at most 41 points, which imply that the 1**** and 3**** have 41, 42, or 43 points.  From the [http://spreadsheets.google.com/ccc?key=p5T0SktZY9DuqNcxJ171Bbw&amp;amp;hl=en n=4 statistics] we know that all 41-point, 42-point, 43-point slices have score less than 62, with the following exceptions:&lt;br /&gt;
&lt;br /&gt;
# (2,16,24,0,0) [42 points, score: 62]&lt;br /&gt;
# (4,16,23,0,0) [43 points, score: 62 1/3]&lt;br /&gt;
# (4,15,24,0,0) [43 points, score: 62 3/4]&lt;br /&gt;
# (3,16,24,0,0) [43 points, score: 63]&lt;br /&gt;
&lt;br /&gt;
Thus the 1**** and 3**** slices must from the above list.  Furthermore, if one of the slices is of type 1, then the other must be of type 4, and if one slice is of type 2, then the other must be of type 3 or 4.&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 6&#039;&#039;&#039; There exists one cut in which the side slices have total score strictly greater than 125 (i.e. they thus involve only Type 2, Type 3, and Type 4 slices, with at least one side slice not equal to Type 2, and the cut here is of the form 43+39+43).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; If not, then all cuts have side slices exactly equal to 125, which by the above table implies that one is Type 1 and one is Type 4, in particular all side slices have c=24.  But this forces C=80, contradicting Corollary 5. &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Adding up the corners we conclude&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Corollary 6&#039;&#039;&#039; &amp;lt;math&amp;gt;6 \leq A \leq 8&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 7&#039;&#039;&#039; &amp;lt;math&amp;gt;D=0&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; Firstly, from Lemma 6 we have a cut in which the two side slices are omitting at most one C-point between them (and have no D-point), which forces the middle slice to have at most one D-point; thus D is at most 1.&lt;br /&gt;
&lt;br /&gt;
Now suppose instead that D=1 (e.g. if 11222 was in the set); then there would be two choices of coordinates in which one of the side slices would have d=1 (e.g. 1**** and *1****). But the [http://spreadsheets.google.com/ccc?key=p5T0SktZY9DuqNcxJ171Bbw&amp;amp;hl=en n=4 statistics] show that such slices have a score of at most 59 7/12, so that the total score from those two coordinates is at most 63 + 59 7/12 = 122 7/12. On the other hand, the other three slices have a net score of at most 63+63 = 126. This averages out to at most 124.633... &amp;lt; 125, a contradiction.  &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Corollary 7&#039;&#039;&#039; Every middle slice has at most 40 points.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; From Lemma 7 we see that the middle slice must have c=0, but from the n=4 statistics this is not possible for any slice of size 41 or higher (alternatively, one can use the inequalities &amp;lt;math&amp;gt;4a+b \leq 64&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;b \leq 32&amp;lt;/math&amp;gt;). &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Each middle slice now has 39 or 40 points, with c=d=e=0, and so from the inequalities &amp;lt;math&amp;gt;4a+b \leq 64&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;b \leq 32&amp;lt;/math&amp;gt; must have statistics (8,32,0,0,0),(7,32,0,0,0), or (8,31,0,0,0).  In particular the &amp;quot;a&amp;quot; index of the middle slices is at most 8.  Summing over all middle slices we conclude&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 9&#039;&#039;&#039; B is at most 40.&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 10&#039;&#039;&#039; C is equal to 78 or 79.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; By Corollary 5, it suffices to show that &amp;lt;math&amp;gt;C \geq 78&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
As 125=43+39+43, we see that every center slice must have at least 39 points. By Lemma 2 and Lemma 7 the center slice has c=d=e=0, thus the center slice has a+b &amp;gt;= 39.  On the other hand, from the n=4 theory we have 4a+b &amp;lt;= 64, which forces b &amp;gt;= 31.&lt;br /&gt;
&lt;br /&gt;
By double counting, we see that 2C is equal to the sum of the b&#039;s of all the five center slices.  Thus C &amp;gt;= 5*31/2 = 77.5 and the claim follows.  &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
From Lemmas 9 and 10 we see that &amp;lt;math&amp;gt;B+C \leq 119&amp;lt;/math&amp;gt;, and thus &amp;lt;math&amp;gt;A \geq 6&amp;lt;/math&amp;gt;.  Also, if &amp;lt;math&amp;gt;A \geq 7&amp;lt;/math&amp;gt;, then by Lemma 4 we have at least three pairs of A points with Hamming distance 2.  At most two of these pairs eliminate the same C point, so we would have C=78 in that case.  &lt;br /&gt;
&lt;br /&gt;
Putting all the above facts together, we see that (A,B,C,D,E,F) must be one of the following triples:&lt;br /&gt;
&lt;br /&gt;
* (6,40,79,0,0,0)&lt;br /&gt;
* (7,40,78,0,0,0)&lt;br /&gt;
* (8,39,78,0,0,0)&lt;br /&gt;
&lt;br /&gt;
All three cases can be eliminated, giving &amp;lt;math&amp;gt;c&#039;_5=124&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== Elimination of (6,40,79,0,0,0) ===&lt;br /&gt;
&lt;br /&gt;
Look at the 6 A points.  From Lemma 4 we have at least two pairs (a,b), (c,d) of A-points that have Hamming separation 2.&lt;br /&gt;
&lt;br /&gt;
Now look at the midpoints of these two pairs; these midpoints are C-points cannot lie in the set.  But we have exactly one C-point missing from the set, thus the midpoints must be the same.  By symmetry, we may thus assume that the two pairs are (11111,11133) and (11113,11131).  Thus 11111,11133, 11113, 11131 are in the set, and so every C-point other than 11122 is in the set.  On the other hand, the B-points 11121, 11123, 11112, 11132 lie outside the set.&lt;br /&gt;
&lt;br /&gt;
At most one of 11312, 11332 lie in the set (since 11322 lies in the set).   Suppose that 11312 lies outside the set, then we have a pair (xy1z2, xy3z2) with x,y,z = 1,3 that is totally omitted from the set, namely (11112,11312).  On the other hand, every other pair of this form can have at most point in the set, thus there are at most seven points in the set of the form (xyzw2) with x,y,z,w = 1,3.  Similarly there are at most 8 points of the form xyz2w, or of xy2zw, x2yzw, 2xyzw, leading to at most 39 B-points in all, contradiction.&lt;br /&gt;
&lt;br /&gt;
=== Elimination of (7,40,78,0,0,0) ===&lt;br /&gt;
&lt;br /&gt;
By Lemma 4, we have at least three pairs of A-points of distance two apart that lie in the set.&lt;br /&gt;
The midpoints of these pairs are C-points that do not lie in the set; but there are only two such C-points, thus two pairs must have the same midpoint, so we may assume as before that 111xy lies in the set for x,y=1,3, which implies that 1112* and 111*2 lie outside the set.&lt;br /&gt;
&lt;br /&gt;
Now consider the 160 lines between 2 B points and one C point (cf. Lemma 3).  The sum of all the points in each such line (counting multiplicity) is 4B+2C = 316.  On the other hand, every one of the 160 lines can have at most two points, and four of these lines (namely 1112*, 111*2) have no points.  Thus all the other lines must have exactly two points.  &lt;br /&gt;
&lt;br /&gt;
We know that the C-point 11122 is missing from the set; there is one other missing C-point.  Since 1112x, 111x2 lie outside the set, we conclude from the previous paragraph that 1132x, 113x2 and 1312x, 131x2 lie in the set.  Taking midpoints we conclude that 11322 and 13122 lie outside the set.  But this is now three C-points missing (together with 11122), a contradiction.&lt;br /&gt;
&lt;br /&gt;
=== Elimination of (8,39,78,0,0,0) ===&lt;br /&gt;
&lt;br /&gt;
By Lemma 4 we have at least four pairs of A-points of distance two apart that lie in the set. The midpoints of these pairs are C-points that do not lie in the set; but there are only two such C-points, thus two pairs (a,b), (c,d) must have the same midpoint p, and the other two pairs (a&#039;,b&#039;), (c&#039;,d&#039;) must also have the same midpoint p&#039;.  (Note that every C-point is the midpoint of at most two such pairs.)&lt;br /&gt;
&lt;br /&gt;
Now consider the 160 lines between 2 B points and one C point (cf. Lemma 3).  The sum of all the points in each such line (counting multiplicity) is 4B+2C = 312.  Every one of the 160 lines can have at most two points, and four of these (those in the plane of (a,b,c,d) or of (a&#039;,b&#039;,c&#039;,d&#039;) have no points.  Thus all other lines must have exactly two points.&lt;br /&gt;
&lt;br /&gt;
Without loss of generality we have (a,b)=(11111,11133), (c,d) = (11113,11131), thus p = 11122.  By permuting the first three indices, we may assume that p&#039; is not of the form x2y2z, x2yz2, xy22z, xy2z2.  Then 1112x lies outside the set and 1122x lies in the set, so by the above paragraph 1132x lies in the set; similarly for 113x2, 1312x, 131x2.  This implies that 13122, 11322 lie outside the set, but this (together with 11122) shows that at least three C-points are missing, a contradiction.&lt;br /&gt;
&lt;br /&gt;
== General n ==&lt;br /&gt;
&lt;br /&gt;
General solution for &amp;lt;math&amp;gt;c&#039;_N&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* q 2s, all points from A(N-q,1)&lt;br /&gt;
* q-1 2s, points from A(N-q+1,2)&lt;br /&gt;
* q-2 2s, points from A(N-q+2,3)&lt;br /&gt;
* etc.&lt;br /&gt;
&lt;br /&gt;
where A(m,d) is a subset of &amp;lt;math&amp;gt;[1,3]^m&amp;lt;/math&amp;gt; for which any two points differ from each other in at least d places.&lt;br /&gt;
&lt;br /&gt;
Mathworld’s entry on error-correcting codes suggests it might be NP-complete to find the size of A(m,d) in general.&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;math&amp;gt;|A(m,1)| = 2^m&amp;lt;/math&amp;gt; because it includes all points in &amp;lt;math&amp;gt;[1,3]^m&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;|A(m,2)| = 2^{m-1}&amp;lt;/math&amp;gt; because it can include all points in &amp;lt;math&amp;gt;[1,3]^m&amp;lt;/math&amp;gt; with an odd number of 1s&lt;br /&gt;
&lt;br /&gt;
Here are some [[Maple calculations]].&lt;br /&gt;
&lt;br /&gt;
A [[genetic algorithm]] has provided the following examples:&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;math&amp;gt;c&#039;_6 \geq 353&amp;lt;/math&amp;gt; (26 examples; [http://twofoldgaze.wordpress.com/2009/03/10/353-element-solution/ here is one])&lt;br /&gt;
* &amp;lt;math&amp;gt;c&#039;_7 \geq 988&amp;lt;/math&amp;gt; [http://twofoldgaze.wordpress.com/2009/03/10/978-element-solution/ Here is the example]&lt;br /&gt;
&lt;br /&gt;
== Variants ==&lt;br /&gt;
&lt;br /&gt;
A lower bound for Moser’s cube &amp;lt;math&amp;gt;[4]^n&amp;lt;/math&amp;gt; (values 0,1,2,3) comes from the following set:  Pick all points where q entries are 1 or 2; and also pick those where q-1 entries are 1 or 2 and an odd number of entries are 0.  This is maximized when q is near n/2, giving a lower bound of&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\binom{n}{n/2} 2^n + \binom{n}{n/2-1} 2^{n-1}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
which is comparable to &amp;lt;math&amp;gt;4^n/\sqrt{n}&amp;lt;/math&amp;gt; by [[Stirling&#039;s formula]].&lt;br /&gt;
&lt;br /&gt;
For k=5 (values 0,1,2,3,4) If A, B, C, D, and E denote the numbers of 0-s, 1-s, 2-s, 3-s, and 4-s then the first three points of a geometric line form a 3-term arithmetic progression in A+E+2(B+D)+3C. So, for k=5 we have a similar lower bound for the Moser’s problem as for DHJ k=3, i.e. &amp;lt;math&amp;gt;5^{n - O(\sqrt{\log n})}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
The k=6 version of Moser implies DHJ(3).  Indeed, any k=3 combinatorial line-free set can be &amp;quot;doubled up&amp;quot; into a k=6 geometric line-free set of the same density by pulling back the set from the map &amp;lt;math&amp;gt;\phi: [6]^n \to [3]^n&amp;lt;/math&amp;gt; that maps 1, 2, 3, 4, 5, 6 to 1, 2, 3, 3, 2, 1 respectively; note that this map sends k=6 geometric lines to k=3 combinatorial lines.&lt;/div&gt;</summary>
		<author><name>121.220.134.232</name></author>
	</entry>
	<entry>
		<id>https://michaelnielsen.org/polymath/index.php?title=Moser%27s_cube_problem&amp;diff=892</id>
		<title>Moser&#039;s cube problem</title>
		<link rel="alternate" type="text/html" href="https://michaelnielsen.org/polymath/index.php?title=Moser%27s_cube_problem&amp;diff=892"/>
		<updated>2009-03-15T09:05:17Z</updated>

		<summary type="html">&lt;p&gt;121.220.134.232: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Define a &#039;&#039;Moser set&#039;&#039; to be a subset of &amp;lt;math&amp;gt;[3]^n&amp;lt;/math&amp;gt; which does not contain any [[geometric line]], and let &amp;lt;math&amp;gt;c&#039;_n&amp;lt;/math&amp;gt; denote the size of the largest Moser set in &amp;lt;math&amp;gt;[3]^n&amp;lt;/math&amp;gt;.  The first few values are (see [http://www.research.att.com/~njas/sequences/A003142 OEIS A003142]):&lt;br /&gt;
&lt;br /&gt;
: &amp;lt;math&amp;gt;c&#039;_0 = 1; c&#039;_1 = 2; c&#039;_2 = 6; c&#039;_3 = 16; c&#039;_4 = 43; c&#039;_5 = 124.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Beyond this point, we only have some upper and lower bounds, in particular &amp;lt;math&amp;gt;353 \leq c&#039;_5 \leq 360&amp;lt;/math&amp;gt;; see [http://spreadsheets.google.com/ccc?key=p5T0SktZY9DsU-uZ1tK7VEg this spreadsheet] for the latest bounds.&lt;br /&gt;
&lt;br /&gt;
The best known asymptotic lower bound for &amp;lt;math&amp;gt;c&#039;_n&amp;lt;/math&amp;gt; is&lt;br /&gt;
&lt;br /&gt;
: &amp;lt;math&amp;gt;c&#039;_n \gg 3^n/\sqrt{n}&amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
formed by fixing the number of 2s to a single value near n/3.  Is it possible to do any better?  Note that we have a [[Upper_and_lower_bounds#Asymptotics|significantly better bound]] for the DHJ(3) &amp;lt;math&amp;gt;c_n&amp;lt;/math&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
: &amp;lt;math&amp;gt;c_n \geq 3^{n-O(\sqrt{\log n})}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
A more precise lower bound is&lt;br /&gt;
&lt;br /&gt;
: &amp;lt;math&amp;gt;c&#039;_n \geq \binom{n+1}{q} 2^{n-q}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where q is the nearest integer to &amp;lt;math&amp;gt;n/3&amp;lt;/math&amp;gt;, formed by taking all strings with q 2s, together with all strings with q-1 2s and an odd number of 1s.  This for instance gives the lower bound &amp;lt;math&amp;gt;c&#039;_5 \geq 120&amp;lt;/math&amp;gt;, which compares with the upper bound &amp;lt;math&amp;gt;c&#039;_5 \leq 3 c&#039;_4 = 129&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Using [[DHJ(3)]], we have the upper bound&lt;br /&gt;
&lt;br /&gt;
: &amp;lt;math&amp;gt;c&#039;_n = o(3^n)&amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
but no effective decay rate is known. It would be good to have a combinatorial proof of this fact (which is weaker than [[DHJ(3)]], but implies [[Roth&#039;s theorem]]).&lt;br /&gt;
&lt;br /&gt;
Convenient notation: given a Moser set A in &amp;lt;math&amp;gt;[3]^n&amp;lt;/math&amp;gt;, we let a be the number of points in A with no 2s, b be the number of points in A with one 2, c the number of points with two 2s, etc.  We call (a,b,c,...) the &#039;&#039;statistics&#039;&#039; of A.  Given a slice S of &amp;lt;math&amp;gt;[3]^n&amp;lt;/math&amp;gt;, we let a(S), b(S), etc. denote the statistics of that slice (dropping the fixed coordinates).  Thus for instance if A = {11, 12, 22, 32}, then (a,b,c) = (1,2,1), and (a(1*),b(1*)) = (1,1).&lt;br /&gt;
&lt;br /&gt;
We call a statistic (a,b,c,...) &#039;&#039;attainable&#039;&#039; if it is attained by a Moser set.  We say that an attainable statistic is &#039;&#039;Pareto-optimal&#039;&#039; if it cannot be pointwise dominated by any other attainable statistic (a&#039;,b&#039;,c&#039;,...) (thus &amp;lt;math&amp;gt;a&#039; \geq a&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;b&#039; \geq b&amp;lt;/math&amp;gt;, etc.)  We say that it is &#039;&#039;extremal&#039;&#039; if it is not a convex combination of any other attainable statistic (this is a stronger property than Pareto-optimal).  For the purposes of maximising linear scores of attainable statistics, it suffices to check extremal statistics.&lt;br /&gt;
&lt;br /&gt;
We let &amp;lt;math&amp;gt;(\alpha_0,\alpha_1,\ldots)&amp;lt;/math&amp;gt; be the normalized version of &amp;lt;math&amp;gt;(a,b,\ldots)&amp;lt;/math&amp;gt;, in which one divides the number of points of a certain type in the set by the total number of points in the set.  Thus for instance &amp;lt;math&amp;gt;\alpha_0 = a/2^n, \alpha_1 = b/(n 2^{n-1}), \alpha_3 = c/(\binom{n}{2} 2^{n-2})&amp;lt;/math&amp;gt;, etc., and the &amp;lt;math&amp;gt;\alpha_i&amp;lt;/math&amp;gt; range between 0 and 1.  Averaging arguments show that any linear inequality obeyed by the &amp;lt;math&amp;gt;\alpha_i&amp;lt;/math&amp;gt; at one dimension is automatically inherited by higher dimensions, as are shifted versions of this inequality (in which &amp;lt;math&amp;gt;\alpha_i&amp;lt;/math&amp;gt; is replaced by &amp;lt;math&amp;gt;\alpha_{i+1}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== n=0 ==&lt;br /&gt;
&lt;br /&gt;
We trivially have &amp;lt;math&amp;gt;c&#039;_0=1.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== n=1 ==&lt;br /&gt;
&lt;br /&gt;
We trivially have &amp;lt;math&amp;gt;c&#039;_1=2.&amp;lt;/math&amp;gt;  The Pareto-optimal values of the statistics (a,b) are (1,1) and (2,0); these are also the extremals.  We thus have the inequality &amp;lt;math&amp;gt;a+b \leq 2&amp;lt;/math&amp;gt;, or in normalized notation&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;2\alpha_0 + \alpha_1 \leq 2&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== n=2 ==&lt;br /&gt;
&lt;br /&gt;
We have &amp;lt;math&amp;gt;c&#039;_2 = 6&amp;lt;/math&amp;gt;; the upper bound follows since &amp;lt;math&amp;gt;c&#039;_2 \leq 3 c&#039;_1&amp;lt;/math&amp;gt;, and the lower bound follows by deleting one of the two diagonals from &amp;lt;math&amp;gt;[3]^2&amp;lt;/math&amp;gt; (these are the only extremisers).&lt;br /&gt;
&lt;br /&gt;
The extremiser has statistics (a,b,c) = (2,4,0), which are of course Pareto-optimal.  If c=1 then we must have a, b at most 2 (look at the lines through 22).  This is attainable (e.g. {11, 12, 22, 23, 31}, and so (2,2,1) is another Pareto-optimal statistic.  If a=4, then b and c must be 0, so we get another Pareto-optimal statistic (4,0,0) (attainable by {11, 13, 31, 33} of course).  If a=3, then c=0 and b is at most 2, giving another Pareto-optimal statistic (3,2,0); but this is a convex combination of (4,0,0) and (2,4,0) and is thus not extremal.  Thus the complete set of extremal statistics are&lt;br /&gt;
&lt;br /&gt;
(4,0,0), (2,4,0), (2,2,1).&lt;br /&gt;
&lt;br /&gt;
The sharp linear inequalities obeyed by a,b,c (other than the trivial ones &amp;lt;math&amp;gt;a,b,c \geq 0&amp;lt;/math&amp;gt;) are then&lt;br /&gt;
&lt;br /&gt;
*&amp;lt;math&amp;gt;2a+b+2c \leq 8&amp;lt;/math&amp;gt;&lt;br /&gt;
*&amp;lt;math&amp;gt;b+2c \leq 4&amp;lt;/math&amp;gt;&lt;br /&gt;
*&amp;lt;math&amp;gt;a+2c \leq 4&amp;lt;/math&amp;gt;&lt;br /&gt;
*&amp;lt;math&amp;gt;c \leq 1&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
In normalized notation, we have&lt;br /&gt;
*&amp;lt;math&amp;gt;4\alpha_0 + 2\alpha_1 + \alpha_2 \leq 4&amp;lt;/math&amp;gt;&lt;br /&gt;
*&amp;lt;math&amp;gt;2\alpha_1 + \alpha_2 \leq 2&amp;lt;/math&amp;gt;&lt;br /&gt;
*&amp;lt;math&amp;gt;2\alpha_0 + \alpha_2 \leq 2&amp;lt;/math&amp;gt;&lt;br /&gt;
*&amp;lt;math&amp;gt;\alpha_2 \leq 1&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== n=3 ==&lt;br /&gt;
&lt;br /&gt;
We have &amp;lt;math&amp;gt;c&#039;_3 = 16&amp;lt;/math&amp;gt;.  The lower bound can be seen for instance by taking all the strings with one 2, and half the strings with no 2 (e.g. the strings with an odd number of 1s).  The upper bound can be deduced from the corresponding [[upper and lower bounds]] for &amp;lt;math&amp;gt;c_3 = 18&amp;lt;/math&amp;gt;; the 17-point and 18-point line-free sets each contain a geometric line.&lt;br /&gt;
&lt;br /&gt;
If a Moser set in &amp;lt;math&amp;gt;[3]^3&amp;lt;/math&amp;gt; contains 222, then it can have at most 14 points, since the remaining 26 points in the cube split into 13 antipodal pairs, and at most one of each pair can lie in the set.  By exhausting over the &amp;lt;math&amp;gt;2^{13} = 8192&amp;lt;/math&amp;gt; possibilities, it can be shown that it is impossible for a 14-point set to exist; any Moser set containing 222 must in fact omit at least one antipodal pair completely and thus have only 13 points.  (A human proof of this fact can be [http://www.ma.rhul.ac.uk/~elsholtz/WWW/blog/mosertablogv01.pdf found here].)&lt;br /&gt;
&lt;br /&gt;
The Pareto-optimal statistics are&lt;br /&gt;
&lt;br /&gt;
(3,6,3,1),(4,4,3,1),(4,6,2,1),(2,6,6,0),(3,6,5,0),(4,4,5,0),(3,7,4,0),(4,6,4,0), (3,9,3,0),(4,7,3,0),(5,4,3,0),(4,9,2,0),(5,6,2,0),(6,3,2,0),(3,10,1,0),(5,7,1,0), (6,4,1,0),(4,12,0,0),(5,9,0,0),(6,6,0,0),(7,3,0,0),(8,0,0,0).&lt;br /&gt;
&lt;br /&gt;
A spreadsheet containing these statistics can be [http://spreadsheets.google.com/ccc?key=p5T0SktZY9DuKZ2DyzO9EOg&amp;amp;hl=en# found here].&lt;br /&gt;
&lt;br /&gt;
The extremal statistics are&lt;br /&gt;
&lt;br /&gt;
(3,6,3,1),(4,4,3,1),(4,6,2,1),(2,6,6,0),(4,4,5,0),(4,6,4,0),(4,12,0,0),(8,0,0,0)&lt;br /&gt;
&lt;br /&gt;
The sharp linear bounds are :&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;math&amp;gt;2a+b+2c+4d \leq 22&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;3a+2b+3c+6d \leq 36&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;7a+2b+4c+8d \leq 56&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;6a+2b+3c+6d \leq 48&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;b+c+3d \leq 12&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;a+2c+4d \leq 14&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;5a+4c+8d \leq 40&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;a+4d \leq 8&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;b+6d \leq 12&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;c+3d \leq 6&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;d \leq 1&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In normalized notation,&lt;br /&gt;
* &amp;lt;math&amp;gt;8\alpha_0+ 6\alpha_1 + 6\alpha_2 + 2\alpha_3 \leq 11&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;4\alpha_0+4\alpha_1+3\alpha_2+\alpha_3 \leq 6&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;7\alpha_0+3\alpha_1+3\alpha_2+\alpha_3 \leq 7&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;8\alpha_0+3\alpha_1+3\alpha_2+\alpha_3 \leq 8&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;4\alpha_1+2\alpha_2+\alpha_3 \leq 4&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;4\alpha_0+6\alpha_2+2\alpha_3 \leq 7&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;5\alpha_0+3\alpha_2+\alpha_3 \leq 5&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;2\alpha_0+\alpha_3 \leq 2&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;2\alpha_1+\alpha_3 \leq 2&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;2\alpha_2+\alpha_3 \leq 2&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;\alpha_3 \leq 1&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== n=4 ==&lt;br /&gt;
&lt;br /&gt;
A [http://abel.math.umu.se/~klasm/extremal-moser-n=5-t=3 computer search] has obtained all extremisers to &amp;lt;math&amp;gt;c&#039;_4=43&amp;lt;/math&amp;gt;.  The 42-point solutions can be found [http://abel.math.umu.se/~klasm/moser-n=4-t=3-p=42.gz here].&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof that &amp;lt;math&amp;gt;c&#039;_4 \leq 43&amp;lt;/math&amp;gt;&#039;&#039;&#039;: &lt;br /&gt;
When e=1 (i.e. the 4D set contains 2222) then we have at most 41 points (in fact at most 39) by counting antipodal points, so assume e=0.&lt;br /&gt;
&lt;br /&gt;
Define the score of a 3D slice to be a/4+b/3+c/2+d.  Observe from double counting that the size of a 4D set is the sum of the scores of its eight side slices.&lt;br /&gt;
&lt;br /&gt;
But by [http://spreadsheets.google.com/ccc?key=p5T0SktZY9DuKZ2DyzO9EOg&amp;amp;hl=en looking at the extremals] we see that the largest score is 44/8, attained at only one point, namely when (a,b,c,d) = (2,6,6,0).  So the only way one can have a 44-point set is if all side slices are (2,6,6,0), or equivalently if the whole set has statistics (a,b,c,d,e) = (4,16,24,0,0).  But then we have all the points with two 2s, which means that the four &amp;quot;a&amp;quot; points cannot be separated by Hamming distance 2.  We conclude that we must have an antipodal pair among the &amp;quot;a&amp;quot; points with an odd number of 1s, and an antipodal pair among the &amp;quot;a&amp;quot; points with an even number of 1s.    By the symmetries of the cube, we may take the a-set to then be 1111, 3333, 1113, 3331.  But then the &amp;quot;b&amp;quot; set must exclude both 1112 and 3332, and so can have at most three points in the eight-point set xyz2 (with x,y,z=1,3) rather than four (to get four points one must alternate in a checkerboard pattern).  Adding this to the at most four points of the form xy2z, x2yz, 2xyz we see that b is at most 16, a contradiction. &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Given a subset of &amp;lt;math&amp;gt;[3]^4&amp;lt;/math&amp;gt;, let a be the number of points with no 2s, b be the number of points with 1 2, and so forth.  The quintuple (a,b,c,d,e) thus lies between (0,0,0,0,0) and (16,32,24,8,1).&lt;br /&gt;
&lt;br /&gt;
The 43-point solutions have distributions (a,b,c,d,e) as follows:&lt;br /&gt;
&lt;br /&gt;
* (5,20,18,0,0) [16 solutions]&lt;br /&gt;
* (4,16,23,0,0) [768 solutions]&lt;br /&gt;
* (3,16,24,0,0) [512 solutions]&lt;br /&gt;
* (4,15,24,0,0) [256 solutions]&lt;br /&gt;
&lt;br /&gt;
The 42-point solutions are [http://abel.math.umu.se/~klasm/Moser-42-stat.pdf distributed as follows]:&lt;br /&gt;
&lt;br /&gt;
* (6,24,12,0,0) [[http://abel.math.umu.se/~klasm/moser-n=4-42-12 8 solutions]] &lt;br /&gt;
* (5,20,17,0,0) [576 solutions]&lt;br /&gt;
* (5,19,18,0,0) [384 solutions]&lt;br /&gt;
* (6,16,18,2,0) [[http://abel.math.umu.se/~klasm/moser-n=4-42-e=2 192 solutions]]&lt;br /&gt;
* (4,20,18,0,0) [272 solutions]&lt;br /&gt;
* (5,17,20,0,0) [192 solutions]&lt;br /&gt;
* (5,16,21,0,0) [3584 solutions]&lt;br /&gt;
* (4,17,21,0,0) [768 solutions]&lt;br /&gt;
* (4,16,22,0,0) [26880 solutions]&lt;br /&gt;
* (5,15,22,0,0) [1536 solutions]&lt;br /&gt;
* (4,15,23,0,0) [22272 solutions]&lt;br /&gt;
* (3,16,23,0,0) [15744 solutions]&lt;br /&gt;
* (4,14,24,0,0) [4224 solutions]&lt;br /&gt;
* (3,15,24,0,0) [8704 solutions]&lt;br /&gt;
* (2,16,24,0,0) [896 solutions]&lt;br /&gt;
&lt;br /&gt;
Note how c is usually quite large, and d quite low.&lt;br /&gt;
&lt;br /&gt;
One of the (6,24,12,0,0) solutions is &amp;lt;math&amp;gt;\Gamma_{220}+\Gamma_{202}+\Gamma_{022}+\Gamma_{112}+\Gamma_{211}&amp;lt;/math&amp;gt; (i.e. the set of points containing exactly two 1s, and/or exactly two 3s).  The other seven are reflections of this set.&lt;br /&gt;
&lt;br /&gt;
There are 2,765,200 41-point solutions, [http://abel.math.umu.se/~klasm/solutions-4-t=3-41-moser.gz listed here].  The statistics for such points can be [http://abel.math.umu.se/~klasm/Moser-41-stat.pdf found here].  Noteworthy features of the statistics:&lt;br /&gt;
&lt;br /&gt;
* d is at most 3 (and, except for [http://abel.math.umu.se/~klasm/moser-n=3-t=3-41-d=3.gz 256 exceptional solutions] of the shape (5,15,18,3,0), have d at most 2; here are the [http://abel.math.umu.se/~klasm/moser-n=3-t=3-41-d=2.gz d=2 solutions] and [http://abel.math.umu.se/~klasm/moser-n=3-t=3-41-d=1.gz d=1 solutions])&lt;br /&gt;
* c is at least 6 (and, except for [http://abel.math.umu.se/~klasm/moser-n=3-t=3-41-c=6.gz 16 exceptional solutions] of the shape (7,28,6,0,0), have c at least 11).&lt;br /&gt;
&lt;br /&gt;
Statistics for the 41-point, 42-point, and 43-point solutions can be found [http://spreadsheets.google.com/ccc?key=p5T0SktZY9DuqNcxJ171Bbw&amp;amp;hl=en here].&lt;br /&gt;
&lt;br /&gt;
If a Moser set in &amp;lt;math&amp;gt;[3]^4&amp;lt;/math&amp;gt; contains 2222, then by the n=3 theory, any middle slice (i.e. 2***, *2**, **2*, or ***2) is missing at least one antipodal pair.  But each antipodal pair belongs to at most three middle slices, thus two of the 40 antipodal pairs must be completely missing.  As a consequence, any Moser set containing 2222 can have at most 39 points.&lt;br /&gt;
(A more refined analysis can be found at [http://www.ma.rhul.ac.uk/~elsholtz/WWW/blog/mosertablogv01.pdf found here].)&lt;br /&gt;
&lt;br /&gt;
We have the following inequalities connecting a,b,c,d,e:&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;math&amp;gt;4a+b \leq 64&amp;lt;/math&amp;gt;:  There are 32 lines connecting two &amp;quot;a&amp;quot; points with a &amp;quot;b&amp;quot; point; each &amp;quot;a&amp;quot; point belongs to four of these lines, and each &amp;quot;b&amp;quot; point belongs to one.  But each such line can have at most two points in the set, and the claim follows.&lt;br /&gt;
* This can be refined to &amp;lt;math&amp;gt;4a+b+\frac{2}{3} c \leq 64&amp;lt;/math&amp;gt;: There are 24 planes connecting four &amp;quot;a&amp;quot; points, four &amp;quot;b&amp;quot; points, and one &amp;quot;c&amp;quot; point; each &amp;quot;a&amp;quot; point belongs to six of these, each &amp;quot;b&amp;quot; point belongs to three, and each &amp;quot;c&amp;quot; point belongs to one.  For each of these planes, we have &amp;lt;math&amp;gt;2a + b + 2c \leq 8&amp;lt;/math&amp;gt; from the n=2 theory, and the claim follows.&lt;br /&gt;
* &amp;lt;math&amp;gt;6a+2c \leq 96&amp;lt;/math&amp;gt;:  There are 96 lines connecting two &amp;quot;a&amp;quot; points with a &amp;quot;c&amp;quot; point; each &amp;quot;a&amp;quot; point belongs to six of these lines, and each &amp;quot;c&amp;quot; point belongs to two.  But each such line can have at most two points in the set, and the claim follows.&lt;br /&gt;
* &amp;lt;math&amp;gt;3b+2c \leq 96&amp;lt;/math&amp;gt;:  There are 48 lines connecting two &amp;quot;b&amp;quot; points to a &amp;quot;c&amp;quot; point; each &amp;quot;b&amp;quot; point belongs to three of these points, and each &amp;quot;c&amp;quot; point belongs to two.  But each such line can have at most two points in the set, and the claim follows.&lt;br /&gt;
&lt;br /&gt;
The inequalities for n=3 imply inequalities for n=4.  Indeed, there are eight side slices of &amp;lt;math&amp;gt;[3]^4&amp;lt;/math&amp;gt;; each &amp;quot;a&amp;quot; point belongs to four of these, each &amp;quot;b&amp;quot; point belongs to three, each &amp;quot;c&amp;quot; point belongs to two, and each &amp;quot;d&amp;quot; point belongs to one.  Thus, any inequality of the form&lt;br /&gt;
:&amp;lt;math&amp;gt; \alpha a + \beta b + \gamma c + \delta d \leq M&amp;lt;/math&amp;gt;&lt;br /&gt;
in three dimensions implies the inequality&lt;br /&gt;
:&amp;lt;math&amp;gt; 4 \alpha a + 3 \beta b + 2 \gamma c + \delta d \leq 8M&amp;lt;/math&amp;gt;&lt;br /&gt;
in four dimensions.  Thus we have&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;math&amp;gt;8a+3b+4c+4d \leq 176&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;2a+b+c+d \leq 48&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;14a+3b+4c+4d \leq 244&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;4a+b+c+d \leq 64&amp;lt;/math&amp;gt; &lt;br /&gt;
* &amp;lt;math&amp;gt;3b+2c+3d \leq 96&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;a+c+d \leq 28&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;5a+2c+2d \leq 80&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;a+d \leq 16&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;b+2d \leq 32&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;2c+3d \leq 48&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Cubes also sit diagonally in the 4-dimensional cube.  They may have coordinates xxyz, where xx runs over (11,22,33) or (13,22,31), while y and z run over (1,2,3).  These cubes have a different distribution of 2s than the ordinary slices: (a,b,c,d,e) = (8,8,6,4,1) instead of (8,12,6,1,0) for the side slices and (0,8,12,6,1) for the middle slices.  So a different set of inequalities arise.  It is possible to run through the same procedure as described above for n=3, and the inequalities that arise are &amp;lt;math&amp;gt;2a+b+2c+2d+4e \le 24&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;4a+b+2c+2d+4e \le 32&amp;lt;/math&amp;gt; within the 3D cube, which when averaged becomes &amp;lt;math&amp;gt;4a+b+2c+4d+16e \le 96&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;8a+b+2c+4d+16e \le 128&amp;lt;/math&amp;gt; for the 4D cube.  A spreadsheet containing these statistics can be [http://spreadsheets.google.com/ccc?key=p5T0SktZY9DuKZ2DyzO9EOg&amp;amp;hl=en# found here] on sheet 2.  Other sheets of this spreadsheet contain results for a 3D cube sitting diagonally in a 5D or 6D cube.&lt;br /&gt;
&lt;br /&gt;
== n=5 ==&lt;br /&gt;
&lt;br /&gt;
Let (A,B,C,D,E,F) be the statistics of a five-dimensional Moser set, thus (A,B,C,D,E,F) varies between (0,0,0,0,0,0) and (32,80,80,40,10,1).&lt;br /&gt;
&lt;br /&gt;
There are several Moser sets with the statistics (4,40,80,0,0), which thus have 124 points.  Indeed, one can take&lt;br /&gt;
&lt;br /&gt;
* all points with two 1s;&lt;br /&gt;
* all points with one 1 and an even number of 0s; and&lt;br /&gt;
* Four points with no 1s and two or three 0s. Any two of these four points differ in three places, except for one pair of points that differ in one place.&lt;br /&gt;
&lt;br /&gt;
For the rest of this section, we assume that the Moser set &amp;lt;math&amp;gt;{\mathcal A}&amp;lt;/math&amp;gt; is a 125-point set.&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 1&#039;&#039;&#039;: F=0.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; If F is non-zero, then the Moser set contains 22222, then each of the 121 antipodal pairs can have at most one point in the set, leading to only 122 points. &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 2&#039;&#039;&#039;: Every middle slice of &amp;lt;math&amp;gt;{\mathcal A}&amp;lt;/math&amp;gt; has at most 41 points.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039;  Without loss of generality we may consider the 2**** slice.  There are two cases, depending on the value of c(2****).&lt;br /&gt;
&lt;br /&gt;
Suppose first that c is at least 17; thus there are at least 17 points of the form 222xy, 22xy2, 2xy22, or 2x22y, where the x, y denote 1 or 3.  This gives 36 &amp;quot;xy&amp;quot; wildcards in all in four coordinate slots; by the pigeonhole principle one of the slots sees at least 9 of the wildcards.  By symmetry, we may assume that the second coordinate slot sees at least 9 of these wildcards, thus there are at least 9 points of the form 2x22y, 2x2y2, 2xy22.  The x=1, x=3 cases can absorb at most six of these, thus each of these cases must absorb at least three points, with at least one absorbing at least five.  Let&#039;s say that it&#039;s the x=3 case that absorbs 5; thus &amp;lt;math&amp;gt;d(*1***) \geq 3&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;d(*3***) \geq 5&amp;lt;/math&amp;gt;.  From the n=4 theory this means that the *1*** slice has at most 41 points, and the *3*** slice has at most 40.  Meanwhile, the middle slice has at most 43, leading to 41+41+42=124 points in all.&lt;br /&gt;
&lt;br /&gt;
Now suppose c is less than 16; then by the n=4 theory the middle slice is one of the eight (6,24,12,0,0) sets.  Without loss of generality we may take it to be &amp;lt;math&amp;gt;\Gamma_{220}+\Gamma_{202}+\Gamma_{022}+\Gamma_{112}+\Gamma_{211}&amp;lt;/math&amp;gt;; in particular, the middle slice contains the points 21122 21212 21221 23322 23232 23223.  In particular, the *1*** and *3*** slices have a &amp;quot;d&amp;quot; value of at least three, and so have at most 41 points.  If the *2*** slice has at most 42 points, then we are at 41+42+41=124 points as needed, but if we have 43 or more, then we are back in the first case (as &amp;lt;math&amp;gt;c(*2***) \geq 17&amp;lt;/math&amp;gt;) after permuting the indices.&lt;br /&gt;
&amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Since 125=41+41+43, we thus have&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Corollary 1&#039;&#039;&#039;: Every side slice of &amp;lt;math&amp;gt;{\mathcal A}&amp;lt;/math&amp;gt; has at least 41 points.  If one side slice does have 41 points, then the other has 43.&lt;br /&gt;
&lt;br /&gt;
Combining this with the n=4 statistics, we conclude&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Corollary 2&#039;&#039;&#039;: Every side slice of &amp;lt;math&amp;gt;{\mathcal A}&amp;lt;/math&amp;gt; has e=0, and &amp;lt;math&amp;gt;d \leq 3&amp;lt;/math&amp;gt;.  Given two opposite side slices, e.g. 1**** and 3****, we have &amp;lt;math&amp;gt;d(1****)+d(3****) \leq 4&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Corollary 3&#039;&#039;&#039;: E=0.&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Corollary 4&#039;&#039;&#039;: Any middle slice has a &amp;quot;c&amp;quot; value of at most 8.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; Let&#039;s work with the 2**** slice.  By Corollary 2, there are at most four contributions to c(2****) of the form 21*** or 23***, and similarly for the other three positions.  Double counting then gives the claim. &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 3&#039;&#039;&#039;: &amp;lt;math&amp;gt;2B+C \leq 160&amp;lt;/math&amp;gt;.   &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039;: There are 160 lines connecting one &amp;quot;C&amp;quot; point to two &amp;quot;B&amp;quot; points (e.g. 11112, 11122, 11132); each &amp;quot;C&amp;quot; point lies in two of these, and each &amp;quot;B&amp;quot; point lies on four.  A Moser set can have at most two points out of each of these lines.  Double counting then gives the claim.  &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 4&#039;&#039;&#039; Given m A-points with &amp;lt;math&amp;gt;m \geq 5&amp;lt;/math&amp;gt;, there exists at least m-4 pairs (a,b) of such A-points with Hamming distance exactly two (i.e. b differs from a in exactly two places).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; It suffices to check this for m=5, since the case of larger m then follows by locating a pair, removing a point that contributes to that pair, and using the induction hypothesis.  Given 5 A-points, we may assume by the pigeonhole principle and symmetry that at least three of them have an odd number of 1s.  Suppose 11111 is one of the points, and that no pair has Hamming distance 2. All points with two 3s are excluded, so the only points allowed with an odd number of 1s are those with four 3s. But all those points differ from each other in two positions, so at most one of them is allowed.  &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Corollary 5&#039;&#039;&#039; &amp;lt;math&amp;gt;C \leq 79&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039;: Suppose for contradiction that C=80, then D=0 and &amp;lt;math&amp;gt;B \leq 40&amp;lt;/math&amp;gt;.  From Lemma 4 we also see that A cannot exceed 5, leading to the contradiction.&lt;br /&gt;
&amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Define the &#039;&#039;&#039;score&#039;&#039;&#039; of a Moser set in &amp;lt;math&amp;gt;[3]^4&amp;lt;/math&amp;gt; to be the quantity &amp;lt;math&amp;gt;a + 5b/4 + 5c/3 + 5d/2 + 5e&amp;lt;/math&amp;gt;.  Double-counting (and Lemma 2) gives&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 5&#039;&#039;&#039;  The total score of all the ten side-slices of &amp;lt;math&amp;gt;{\mathcal A}&amp;lt;/math&amp;gt; is equal to &amp;lt;math&amp;gt;5|{\mathcal A}| = 5 \times 125&amp;lt;/math&amp;gt;.  In particular, there exists a pair of opposite side-slices whose scores add up to at least 125.&lt;br /&gt;
&lt;br /&gt;
By Lemma 5 and symmetry, we may assume that the 1**** and 3**** slices have score adding up to at least 125.  By Lemma 2, the 2**** slice has at most 41 points, which imply that the 1**** and 3**** have 41, 42, or 43 points.  From the [http://spreadsheets.google.com/ccc?key=p5T0SktZY9DuqNcxJ171Bbw&amp;amp;hl=en n=4 statistics] we know that all 41-point, 42-point, 43-point slices have score less than 62, with the following exceptions:&lt;br /&gt;
&lt;br /&gt;
# (2,16,24,0,0) [42 points, score: 62]&lt;br /&gt;
# (4,16,23,0,0) [43 points, score: 62 1/3]&lt;br /&gt;
# (4,15,24,0,0) [43 points, score: 62 3/4]&lt;br /&gt;
# (3,16,24,0,0) [43 points, score: 63]&lt;br /&gt;
&lt;br /&gt;
Thus the 1**** and 3**** slices must from the above list.  Furthermore, if one of the slices is of type 1, then the other must be of type 4, and if one slice is of type 2, then the other must be of type 3 or 4.&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 6&#039;&#039;&#039; There exists one cut in which the side slices have total score strictly greater than 125 (i.e. they thus involve only Type 2, Type 3, and Type 4 slices, with at least one side slice not equal to Type 2, and the cut here is of the form 43+39+43).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; If not, then all cuts have side slices exactly equal to 125, which by the above table implies that one is Type 1 and one is Type 4, in particular all side slices have c=24.  But this forces C=80, contradicting Corollary 5. &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Adding up the corners we conclude&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Corollary 6&#039;&#039;&#039; &amp;lt;math&amp;gt;6 \leq A \leq 8&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 7&#039;&#039;&#039; &amp;lt;math&amp;gt;D=0&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; Firstly, from Lemma 6 we have a cut in which the two side slices are omitting at most one C-point between them (and have no D-point), which forces the middle slice to have at most one D-point; thus D is at most 1.&lt;br /&gt;
&lt;br /&gt;
Now suppose instead that D=1 (e.g. if 11222 was in the set); then there would be two choices of coordinates in which one of the side slices would have d=1 (e.g. 1**** and *1****). But the [http://spreadsheets.google.com/ccc?key=p5T0SktZY9DuqNcxJ171Bbw&amp;amp;hl=en n=4 statistics] show that such slices have a score of at most 59 7/12, so that the total score from those two coordinates is at most 63 + 59 7/12 = 122 7/12. On the other hand, the other three slices have a net score of at most 63+63 = 126. This averages out to at most 124.633... &amp;lt; 125, a contradiction.  &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Corollary 7&#039;&#039;&#039; Every middle slice has at most 40 points.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; From Lemma 7 we see that the middle slice must have c=0, but from the n=4 statistics this is not possible for any slice of size 41 or higher (alternatively, one can use the inequalities &amp;lt;math&amp;gt;4a+b \leq 64&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;b \leq 32&amp;lt;/math&amp;gt;). &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Each middle slice now has 39 or 40 points, with c=d=e=0, and so from the inequalities &amp;lt;math&amp;gt;4a+b \leq 64&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;b \leq 32&amp;lt;/math&amp;gt; must have statistics (8,32,0,0,0),(7,32,0,0,0), or (8,31,0,0,0).  In particular the &amp;quot;a&amp;quot; index of the middle slices is at most 8.  Summing over all middle slices we conclude&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 9&#039;&#039;&#039; B is at most 40.&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 10&#039;&#039;&#039; C is equal to 78 or 79.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; By Corollary 5, it suffices to show that &amp;lt;math&amp;gt;C \geq 78&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
As 125=43+39+43, we see that every center slice must have at least 39 points. By Lemma 2 and Lemma 7 the center slice has c=d=e=0, thus the center slice has a+b &amp;gt;= 39.  On the other hand, from the n=4 theory we have 4a+b &amp;lt;= 64, which forces b &amp;gt;= 31.&lt;br /&gt;
&lt;br /&gt;
By double counting, we see that 2C is equal to the sum of the b&#039;s of all the five center slices.  Thus C &amp;gt;= 5*31/2 = 77.5 and the claim follows.  &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
From Lemmas 9 and 10 we see that &amp;lt;math&amp;gt;B+C \leq 119&amp;lt;/math&amp;gt;, and thus &amp;lt;math&amp;gt;A \geq 6&amp;lt;/math&amp;gt;.  Also, if &amp;lt;math&amp;gt;A \geq 7&amp;lt;/math&amp;gt;, then by Lemma 4 we have at least three pairs of A points with Hamming distance 2.  At most two of these pairs eliminate the same C point, so we would have C=78 in that case.  &lt;br /&gt;
&lt;br /&gt;
Putting all the above facts together, we see that (A,B,C,D,E,F) must be one of the following triples:&lt;br /&gt;
&lt;br /&gt;
* (6,40,79,0,0,0)&lt;br /&gt;
* (7,40,78,0,0,0)&lt;br /&gt;
* (8,39,78,0,0,0)&lt;br /&gt;
&lt;br /&gt;
All three cases can be eliminated, giving &amp;lt;math&amp;gt;c&#039;_5=124&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== Elimination of (6,40,79,0,0,0) ===&lt;br /&gt;
&lt;br /&gt;
Look at the 6 A points.  From Lemma 4 we have at least two pairs (a,b), (c,d) of A-points that have Hamming separation 2.&lt;br /&gt;
&lt;br /&gt;
Now look at the midpoints of these two pairs; these midpoints are C-points cannot lie in the set.  But we have exactly one C-point missing from the set, thus the midpoints must be the same.  By symmetry, we may thus assume that the two pairs are (11111,11133) and (11113,11131).  Thus 11111,11133, 11113, 11131 are in the set, and so every C-point other than 11122 is in the set.  On the other hand, the B-points 11121, 11123, 11112, 11132 lie outside the set.&lt;br /&gt;
&lt;br /&gt;
At most one of 11312, 11332 lie in the set (since 11322 lies in the set).   Suppose that 11312 lies outside the set, then we have a pair (xy1z2, xy3z2) with x,y,z = 1,3 that is totally omitted from the set, namely (11112,11312).  On the other hand, every other pair of this form can have at most point in the set, thus there are at most seven points in the set of the form (xyzw2) with x,y,z,w = 1,3.  Similarly there are at most 8 points of the form xyz2w, or of xy2zw, x2yzw, 2xyzw, leading to at most 39 B-points in all, contradiction.&lt;br /&gt;
&lt;br /&gt;
=== Elimination of (7,40,78,0,0,0) ===&lt;br /&gt;
&lt;br /&gt;
By Lemma 4, we have at least three pairs of A-points of distance two apart that lie in the set.&lt;br /&gt;
The midpoints of these pairs are C-points that do not lie in the set; but there are only two such C-points, thus two pairs must have the same midpoint, so we may assume as before that 111xy lies in the set for x,y=1,3, which implies that 1112* and 111*2 lie outside the set.&lt;br /&gt;
&lt;br /&gt;
Now consider the 160 lines between 2 B points and one C point (cf. Lemma 3).  The sum of all the points in each such line (counting multiplicity) is 4B+2C = 316.  On the other hand, every one of the 160 lines can have at most two points, and four of these lines (namely 1112*, 111*2) have no points.  Thus all the other lines must have exactly two points.  &lt;br /&gt;
&lt;br /&gt;
We know that the C-point 11122 is missing from the set; there is one other missing C-point.  Since 1112x, 111x2 lie outside the set, we conclude from the previous paragraph that 1132x, 113x2 and 1312x, 131x2 lie in the set.  Taking midpoints we conclude that 11322 and 13122 lie outside the set.  But this is now three C-points missing (together with 11122), a contradiction.&lt;br /&gt;
&lt;br /&gt;
=== Elimination of (8,39,78,0,0,0) ===&lt;br /&gt;
&lt;br /&gt;
By Lemma 4 we have at least four pairs of A-points of distance two apart that lie in the set. The midpoints of these pairs are C-points that do not lie in the set; but there are only two such C-points, thus two pairs (a,b), (c,d) must have the same midpoint p, and the other two pairs (a&#039;,b&#039;), (c&#039;,d&#039;) must also have the same midpoint p&#039;.  (Note that every C-point is the midpoint of at most two such pairs.)&lt;br /&gt;
&lt;br /&gt;
Now consider the 160 lines between 2 B points and one C point (cf. Lemma 3).  The sum of all the points in each such line (counting multiplicity) is 4B+2C = 312.  Every one of the 160 lines can have at most two points, and four of these (those in the plane of (a,b,c,d) or of (a&#039;,b&#039;,c&#039;,d&#039;) have no points.  Thus all other lines must have exactly two points.&lt;br /&gt;
&lt;br /&gt;
Without loss of generality we have (a,b)=(11111,11133), (c,d) = (11113,11131), thus p = 11122.  By permuting the first three indices, we may assume that p&#039; is not of the form x2y2z, x2yz2, xy22z, xy2z2.  Then 1112x lies outside the set and 1122x lies in the set, so by the above paragraph 1132x lies in the set; similarly for 113x2, 1312x, 131x2.  This implies that 13122, 11322 lie outside the set, but this (together with 11122) shows that at least three C-points are missing, a contradiction.&lt;br /&gt;
&lt;br /&gt;
== General n ==&lt;br /&gt;
&lt;br /&gt;
General solution for &amp;lt;math&amp;gt;c&#039;_N&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* q 2s, all points from A(N-q,1)&lt;br /&gt;
* q-1 2s, points from A(N-q+1,2)&lt;br /&gt;
* q-2 2s, points from A(N-q+2,3)&lt;br /&gt;
* etc.&lt;br /&gt;
&lt;br /&gt;
where A(m,d) is a subset of &amp;lt;math&amp;gt;[1,3]^m&amp;lt;/math&amp;gt; for which any two points differ from each other in at least d places.&lt;br /&gt;
&lt;br /&gt;
Mathworld’s entry on error-correcting codes suggests it might be NP-complete to find the size of A(m,d) in general.&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;math&amp;gt;|A(m,1)| = 2^m&amp;lt;/math&amp;gt; because it includes all points in &amp;lt;math&amp;gt;[1,3]^m&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;|A(m,2)| = 2^{m-1}&amp;lt;/math&amp;gt; because it can include all points in &amp;lt;math&amp;gt;[1,3]^m&amp;lt;/math&amp;gt; with an odd number of 1s&lt;br /&gt;
&lt;br /&gt;
Here are some [[Maple calculations]].&lt;br /&gt;
&lt;br /&gt;
A [[genetic algorithm]] has provided the following examples:&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;math&amp;gt;c&#039;_6 \geq 353&amp;lt;/math&amp;gt; (26 examples; [http://twofoldgaze.wordpress.com/2009/03/10/353-element-solution/ here is one])&lt;br /&gt;
* &amp;lt;math&amp;gt;c&#039;_7 \geq 988&amp;lt;/math&amp;gt; [http://twofoldgaze.wordpress.com/2009/03/10/978-element-solution/ Here is the example]&lt;br /&gt;
&lt;br /&gt;
== Variants ==&lt;br /&gt;
&lt;br /&gt;
A lower bound for Moser’s cube &amp;lt;math&amp;gt;[4]^n&amp;lt;/math&amp;gt; (values 0,1,2,3) comes from the following set:  Pick all points where q entries are 1 or 2; and also pick those where q-1 entries are 1 or 2 and an odd number of entries are 0.  This is maximized when q is near n/2, giving a lower bound of&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\binom{n}{n/2} 2^n + \binom{n}{n/2-1} 2^{n-1}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
which is comparable to &amp;lt;math&amp;gt;4^n/\sqrt{n}&amp;lt;/math&amp;gt; by [[Stirling&#039;s formula]].&lt;br /&gt;
&lt;br /&gt;
For k=5 (values 0,1,2,3,4) If A, B, C, D, and E denote the numbers of 0-s, 1-s, 2-s, 3-s, and 4-s then the first three points of a geometric line form a 3-term arithmetic progression in A+E+2(B+D)+3C. So, for k=5 we have a similar lower bound for the Moser’s problem as for DHJ k=3, i.e. &amp;lt;math&amp;gt;5^{n - O(\sqrt{\log n})}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
The k=6 version of Moser implies DHJ(3).  Indeed, any k=3 combinatorial line-free set can be &amp;quot;doubled up&amp;quot; into a k=6 geometric line-free set of the same density by pulling back the set from the map &amp;lt;math&amp;gt;\phi: [6]^n \to [3]^n&amp;lt;/math&amp;gt; that maps 1, 2, 3, 4, 5, 6 to 1, 2, 3, 3, 2, 1 respectively; note that this map sends k=6 geometric lines to k=3 combinatorial lines.&lt;/div&gt;</summary>
		<author><name>121.220.134.232</name></author>
	</entry>
	<entry>
		<id>https://michaelnielsen.org/polymath/index.php?title=Moser%27s_cube_problem&amp;diff=891</id>
		<title>Moser&#039;s cube problem</title>
		<link rel="alternate" type="text/html" href="https://michaelnielsen.org/polymath/index.php?title=Moser%27s_cube_problem&amp;diff=891"/>
		<updated>2009-03-15T08:59:16Z</updated>

		<summary type="html">&lt;p&gt;121.220.134.232: /* Variants */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Define a &#039;&#039;Moser set&#039;&#039; to be a subset of &amp;lt;math&amp;gt;[3]^n&amp;lt;/math&amp;gt; which does not contain any [[geometric line]], and let &amp;lt;math&amp;gt;c&#039;_n&amp;lt;/math&amp;gt; denote the size of the largest Moser set in &amp;lt;math&amp;gt;[3]^n&amp;lt;/math&amp;gt;.  The first few values are (see [http://www.research.att.com/~njas/sequences/A003142 OEIS A003142]):&lt;br /&gt;
&lt;br /&gt;
: &amp;lt;math&amp;gt;c&#039;_0 = 1; c&#039;_1 = 2; c&#039;_2 = 6; c&#039;_3 = 16; c&#039;_4 = 43; c&#039;_5 = 124.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Beyond this point, we only have some upper and lower bounds, in particular &amp;lt;math&amp;gt;353 \leq c&#039;_5 \leq 360&amp;lt;/math&amp;gt;; see [http://spreadsheets.google.com/ccc?key=p5T0SktZY9DsU-uZ1tK7VEg this spreadsheet] for the latest bounds.&lt;br /&gt;
&lt;br /&gt;
The best known asymptotic lower bound for &amp;lt;math&amp;gt;c&#039;_n&amp;lt;/math&amp;gt; is&lt;br /&gt;
&lt;br /&gt;
: &amp;lt;math&amp;gt;c&#039;_n \gg 3^n/\sqrt{n}&amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
formed by fixing the number of 2s to a single value near n/3.  Is it possible to do any better?  Note that we have a [[Upper_and_lower_bounds#Asymptotics|significantly better bound]] for &amp;lt;math&amp;gt;c_n&amp;lt;/math&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
: &amp;lt;math&amp;gt;c_n \geq 3^{n-O(\sqrt{\log n})}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
A more precise lower bound is&lt;br /&gt;
&lt;br /&gt;
: &amp;lt;math&amp;gt;c&#039;_n \geq \binom{n+1}{q} 2^{n-q}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where q is the nearest integer to &amp;lt;math&amp;gt;n/3&amp;lt;/math&amp;gt;, formed by taking all strings with q 2s, together with all strings with q-1 2s and an odd number of 1s.  This for instance gives the lower bound &amp;lt;math&amp;gt;c&#039;_5 \geq 120&amp;lt;/math&amp;gt;, which compares with the upper bound &amp;lt;math&amp;gt;c&#039;_5 \leq 3 c&#039;_4 = 129&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Using [[DHJ(3)]], we have the upper bound&lt;br /&gt;
&lt;br /&gt;
: &amp;lt;math&amp;gt;c&#039;_n = o(3^n)&amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
but no effective decay rate is known. It would be good to have a combinatorial proof of this fact (which is weaker than [[DHJ(3)]], but implies [[Roth&#039;s theorem]]).&lt;br /&gt;
&lt;br /&gt;
Convenient notation: given a Moser set A in &amp;lt;math&amp;gt;[3]^n&amp;lt;/math&amp;gt;, we let a be the number of points in A with no 2s, b be the number of points in A with one 2, c the number of points with two 2s, etc.  We call (a,b,c,...) the &#039;&#039;statistics&#039;&#039; of A.  Given a slice S of &amp;lt;math&amp;gt;[3]^n&amp;lt;/math&amp;gt;, we let a(S), b(S), etc. denote the statistics of that slice (dropping the fixed coordinates).  Thus for instance if A = {11, 12, 22, 32}, then (a,b,c) = (1,2,1), and (a(1*),b(1*)) = (1,1).&lt;br /&gt;
&lt;br /&gt;
We call a statistic (a,b,c,...) &#039;&#039;attainable&#039;&#039; if it is attained by a Moser set.  We say that an attainable statistic is &#039;&#039;Pareto-optimal&#039;&#039; if it cannot be pointwise dominated by any other attainable statistic (a&#039;,b&#039;,c&#039;,...) (thus &amp;lt;math&amp;gt;a&#039; \geq a&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;b&#039; \geq b&amp;lt;/math&amp;gt;, etc.)  We say that it is &#039;&#039;extremal&#039;&#039; if it is not a convex combination of any other attainable statistic (this is a stronger property than Pareto-optimal).  For the purposes of maximising linear scores of attainable statistics, it suffices to check extremal statistics.&lt;br /&gt;
&lt;br /&gt;
We let &amp;lt;math&amp;gt;(\alpha_0,\alpha_1,\ldots)&amp;lt;/math&amp;gt; be the normalized version of &amp;lt;math&amp;gt;(a,b,\ldots)&amp;lt;/math&amp;gt;, in which one divides the number of points of a certain type in the set by the total number of points in the set.  Thus for instance &amp;lt;math&amp;gt;\alpha_0 = a/2^n, \alpha_1 = b/(n 2^{n-1}), \alpha_3 = c/(\binom{n}{2} 2^{n-2})&amp;lt;/math&amp;gt;, etc., and the &amp;lt;math&amp;gt;\alpha_i&amp;lt;/math&amp;gt; range between 0 and 1.  Averaging arguments show that any linear inequality obeyed by the &amp;lt;math&amp;gt;\alpha_i&amp;lt;/math&amp;gt; at one dimension is automatically inherited by higher dimensions, as are shifted versions of this inequality (in which &amp;lt;math&amp;gt;\alpha_i&amp;lt;/math&amp;gt; is replaced by &amp;lt;math&amp;gt;\alpha_{i+1}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== n=0 ==&lt;br /&gt;
&lt;br /&gt;
We trivially have &amp;lt;math&amp;gt;c&#039;_0=1.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== n=1 ==&lt;br /&gt;
&lt;br /&gt;
We trivially have &amp;lt;math&amp;gt;c&#039;_1=2.&amp;lt;/math&amp;gt;  The Pareto-optimal values of the statistics (a,b) are (1,1) and (2,0); these are also the extremals.  We thus have the inequality &amp;lt;math&amp;gt;a+b \leq 2&amp;lt;/math&amp;gt;, or in normalized notation&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;2\alpha_0 + \alpha_1 \leq 2&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== n=2 ==&lt;br /&gt;
&lt;br /&gt;
We have &amp;lt;math&amp;gt;c&#039;_2 = 6&amp;lt;/math&amp;gt;; the upper bound follows since &amp;lt;math&amp;gt;c&#039;_2 \leq 3 c&#039;_1&amp;lt;/math&amp;gt;, and the lower bound follows by deleting one of the two diagonals from &amp;lt;math&amp;gt;[3]^2&amp;lt;/math&amp;gt; (these are the only extremisers).&lt;br /&gt;
&lt;br /&gt;
The extremiser has statistics (a,b,c) = (2,4,0), which are of course Pareto-optimal.  If c=1 then we must have a, b at most 2 (look at the lines through 22).  This is attainable (e.g. {11, 12, 22, 23, 31}, and so (2,2,1) is another Pareto-optimal statistic.  If a=4, then b and c must be 0, so we get another Pareto-optimal statistic (4,0,0) (attainable by {11, 13, 31, 33} of course).  If a=3, then c=0 and b is at most 2, giving another Pareto-optimal statistic (3,2,0); but this is a convex combination of (4,0,0) and (2,4,0) and is thus not extremal.  Thus the complete set of extremal statistics are&lt;br /&gt;
&lt;br /&gt;
(4,0,0), (2,4,0), (2,2,1).&lt;br /&gt;
&lt;br /&gt;
The sharp linear inequalities obeyed by a,b,c (other than the trivial ones &amp;lt;math&amp;gt;a,b,c \geq 0&amp;lt;/math&amp;gt;) are then&lt;br /&gt;
&lt;br /&gt;
*&amp;lt;math&amp;gt;2a+b+2c \leq 8&amp;lt;/math&amp;gt;&lt;br /&gt;
*&amp;lt;math&amp;gt;b+2c \leq 4&amp;lt;/math&amp;gt;&lt;br /&gt;
*&amp;lt;math&amp;gt;a+2c \leq 4&amp;lt;/math&amp;gt;&lt;br /&gt;
*&amp;lt;math&amp;gt;c \leq 1&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
In normalized notation, we have&lt;br /&gt;
*&amp;lt;math&amp;gt;4\alpha_0 + 2\alpha_1 + \alpha_2 \leq 4&amp;lt;/math&amp;gt;&lt;br /&gt;
*&amp;lt;math&amp;gt;2\alpha_1 + \alpha_2 \leq 2&amp;lt;/math&amp;gt;&lt;br /&gt;
*&amp;lt;math&amp;gt;2\alpha_0 + \alpha_2 \leq 2&amp;lt;/math&amp;gt;&lt;br /&gt;
*&amp;lt;math&amp;gt;\alpha_2 \leq 1&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== n=3 ==&lt;br /&gt;
&lt;br /&gt;
We have &amp;lt;math&amp;gt;c&#039;_3 = 16&amp;lt;/math&amp;gt;.  The lower bound can be seen for instance by taking all the strings with one 2, and half the strings with no 2 (e.g. the strings with an odd number of 1s).  The upper bound can be deduced from the corresponding [[upper and lower bounds]] for &amp;lt;math&amp;gt;c_3 = 18&amp;lt;/math&amp;gt;; the 17-point and 18-point line-free sets each contain a geometric line.&lt;br /&gt;
&lt;br /&gt;
If a Moser set in &amp;lt;math&amp;gt;[3]^3&amp;lt;/math&amp;gt; contains 222, then it can have at most 14 points, since the remaining 26 points in the cube split into 13 antipodal pairs, and at most one of each pair can lie in the set.  By exhausting over the &amp;lt;math&amp;gt;2^{13} = 8192&amp;lt;/math&amp;gt; possibilities, it can be shown that it is impossible for a 14-point set to exist; any Moser set containing 222 must in fact omit at least one antipodal pair completely and thus have only 13 points.  (A human proof of this fact can be [http://www.ma.rhul.ac.uk/~elsholtz/WWW/blog/mosertablogv01.pdf found here].)&lt;br /&gt;
&lt;br /&gt;
The Pareto-optimal statistics are&lt;br /&gt;
&lt;br /&gt;
(3,6,3,1),(4,4,3,1),(4,6,2,1),(2,6,6,0),(3,6,5,0),(4,4,5,0),(3,7,4,0),(4,6,4,0), (3,9,3,0),(4,7,3,0),(5,4,3,0),(4,9,2,0),(5,6,2,0),(6,3,2,0),(3,10,1,0),(5,7,1,0), (6,4,1,0),(4,12,0,0),(5,9,0,0),(6,6,0,0),(7,3,0,0),(8,0,0,0).&lt;br /&gt;
&lt;br /&gt;
A spreadsheet containing these statistics can be [http://spreadsheets.google.com/ccc?key=p5T0SktZY9DuKZ2DyzO9EOg&amp;amp;hl=en# found here].&lt;br /&gt;
&lt;br /&gt;
The extremal statistics are&lt;br /&gt;
&lt;br /&gt;
(3,6,3,1),(4,4,3,1),(4,6,2,1),(2,6,6,0),(4,4,5,0),(4,6,4,0),(4,12,0,0),(8,0,0,0)&lt;br /&gt;
&lt;br /&gt;
The sharp linear bounds are :&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;math&amp;gt;2a+b+2c+4d \leq 22&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;3a+2b+3c+6d \leq 36&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;7a+2b+4c+8d \leq 56&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;6a+2b+3c+6d \leq 48&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;b+c+3d \leq 12&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;a+2c+4d \leq 14&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;5a+4c+8d \leq 40&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;a+4d \leq 8&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;b+6d \leq 12&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;c+3d \leq 6&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;d \leq 1&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In normalized notation,&lt;br /&gt;
* &amp;lt;math&amp;gt;8\alpha_0+ 6\alpha_1 + 6\alpha_2 + 2\alpha_3 \leq 11&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;4\alpha_0+4\alpha_1+3\alpha_2+\alpha_3 \leq 6&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;7\alpha_0+3\alpha_1+3\alpha_2+\alpha_3 \leq 7&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;8\alpha_0+3\alpha_1+3\alpha_2+\alpha_3 \leq 8&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;4\alpha_1+2\alpha_2+\alpha_3 \leq 4&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;4\alpha_0+6\alpha_2+2\alpha_3 \leq 7&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;5\alpha_0+3\alpha_2+\alpha_3 \leq 5&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;2\alpha_0+\alpha_3 \leq 2&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;2\alpha_1+\alpha_3 \leq 2&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;2\alpha_2+\alpha_3 \leq 2&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;\alpha_3 \leq 1&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== n=4 ==&lt;br /&gt;
&lt;br /&gt;
A [http://abel.math.umu.se/~klasm/extremal-moser-n=5-t=3 computer search] has obtained all extremisers to &amp;lt;math&amp;gt;c&#039;_4=43&amp;lt;/math&amp;gt;.  The 42-point solutions can be found [http://abel.math.umu.se/~klasm/moser-n=4-t=3-p=42.gz here].&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof that &amp;lt;math&amp;gt;c&#039;_4 \leq 43&amp;lt;/math&amp;gt;&#039;&#039;&#039;: &lt;br /&gt;
When e=1 (i.e. the 4D set contains 2222) then we have at most 41 points (in fact at most 39) by counting antipodal points, so assume e=0.&lt;br /&gt;
&lt;br /&gt;
Define the score of a 3D slice to be a/4+b/3+c/2+d.  Observe from double counting that the size of a 4D set is the sum of the scores of its eight side slices.&lt;br /&gt;
&lt;br /&gt;
But by [http://spreadsheets.google.com/ccc?key=p5T0SktZY9DuKZ2DyzO9EOg&amp;amp;hl=en looking at the extremals] we see that the largest score is 44/8, attained at only one point, namely when (a,b,c,d) = (2,6,6,0).  So the only way one can have a 44-point set is if all side slices are (2,6,6,0), or equivalently if the whole set has statistics (a,b,c,d,e) = (4,16,24,0,0).  But then we have all the points with two 2s, which means that the four &amp;quot;a&amp;quot; points cannot be separated by Hamming distance 2.  We conclude that we must have an antipodal pair among the &amp;quot;a&amp;quot; points with an odd number of 1s, and an antipodal pair among the &amp;quot;a&amp;quot; points with an even number of 1s.    By the symmetries of the cube, we may take the a-set to then be 1111, 3333, 1113, 3331.  But then the &amp;quot;b&amp;quot; set must exclude both 1112 and 3332, and so can have at most three points in the eight-point set xyz2 (with x,y,z=1,3) rather than four (to get four points one must alternate in a checkerboard pattern).  Adding this to the at most four points of the form xy2z, x2yz, 2xyz we see that b is at most 16, a contradiction. &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Given a subset of &amp;lt;math&amp;gt;[3]^4&amp;lt;/math&amp;gt;, let a be the number of points with no 2s, b be the number of points with 1 2, and so forth.  The quintuple (a,b,c,d,e) thus lies between (0,0,0,0,0) and (16,32,24,8,1).&lt;br /&gt;
&lt;br /&gt;
The 43-point solutions have distributions (a,b,c,d,e) as follows:&lt;br /&gt;
&lt;br /&gt;
* (5,20,18,0,0) [16 solutions]&lt;br /&gt;
* (4,16,23,0,0) [768 solutions]&lt;br /&gt;
* (3,16,24,0,0) [512 solutions]&lt;br /&gt;
* (4,15,24,0,0) [256 solutions]&lt;br /&gt;
&lt;br /&gt;
The 42-point solutions are [http://abel.math.umu.se/~klasm/Moser-42-stat.pdf distributed as follows]:&lt;br /&gt;
&lt;br /&gt;
* (6,24,12,0,0) [[http://abel.math.umu.se/~klasm/moser-n=4-42-12 8 solutions]] &lt;br /&gt;
* (5,20,17,0,0) [576 solutions]&lt;br /&gt;
* (5,19,18,0,0) [384 solutions]&lt;br /&gt;
* (6,16,18,2,0) [[http://abel.math.umu.se/~klasm/moser-n=4-42-e=2 192 solutions]]&lt;br /&gt;
* (4,20,18,0,0) [272 solutions]&lt;br /&gt;
* (5,17,20,0,0) [192 solutions]&lt;br /&gt;
* (5,16,21,0,0) [3584 solutions]&lt;br /&gt;
* (4,17,21,0,0) [768 solutions]&lt;br /&gt;
* (4,16,22,0,0) [26880 solutions]&lt;br /&gt;
* (5,15,22,0,0) [1536 solutions]&lt;br /&gt;
* (4,15,23,0,0) [22272 solutions]&lt;br /&gt;
* (3,16,23,0,0) [15744 solutions]&lt;br /&gt;
* (4,14,24,0,0) [4224 solutions]&lt;br /&gt;
* (3,15,24,0,0) [8704 solutions]&lt;br /&gt;
* (2,16,24,0,0) [896 solutions]&lt;br /&gt;
&lt;br /&gt;
Note how c is usually quite large, and d quite low.&lt;br /&gt;
&lt;br /&gt;
One of the (6,24,12,0,0) solutions is &amp;lt;math&amp;gt;\Gamma_{220}+\Gamma_{202}+\Gamma_{022}+\Gamma_{112}+\Gamma_{211}&amp;lt;/math&amp;gt; (i.e. the set of points containing exactly two 1s, and/or exactly two 3s).  The other seven are reflections of this set.&lt;br /&gt;
&lt;br /&gt;
There are 2,765,200 41-point solutions, [http://abel.math.umu.se/~klasm/solutions-4-t=3-41-moser.gz listed here].  The statistics for such points can be [http://abel.math.umu.se/~klasm/Moser-41-stat.pdf found here].  Noteworthy features of the statistics:&lt;br /&gt;
&lt;br /&gt;
* d is at most 3 (and, except for [http://abel.math.umu.se/~klasm/moser-n=3-t=3-41-d=3.gz 256 exceptional solutions] of the shape (5,15,18,3,0), have d at most 2; here are the [http://abel.math.umu.se/~klasm/moser-n=3-t=3-41-d=2.gz d=2 solutions] and [http://abel.math.umu.se/~klasm/moser-n=3-t=3-41-d=1.gz d=1 solutions])&lt;br /&gt;
* c is at least 6 (and, except for [http://abel.math.umu.se/~klasm/moser-n=3-t=3-41-c=6.gz 16 exceptional solutions] of the shape (7,28,6,0,0), have c at least 11).&lt;br /&gt;
&lt;br /&gt;
Statistics for the 41-point, 42-point, and 43-point solutions can be found [http://spreadsheets.google.com/ccc?key=p5T0SktZY9DuqNcxJ171Bbw&amp;amp;hl=en here].&lt;br /&gt;
&lt;br /&gt;
If a Moser set in &amp;lt;math&amp;gt;[3]^4&amp;lt;/math&amp;gt; contains 2222, then by the n=3 theory, any middle slice (i.e. 2***, *2**, **2*, or ***2) is missing at least one antipodal pair.  But each antipodal pair belongs to at most three middle slices, thus two of the 40 antipodal pairs must be completely missing.  As a consequence, any Moser set containing 2222 can have at most 39 points.&lt;br /&gt;
(A more refined analysis can be found at [http://www.ma.rhul.ac.uk/~elsholtz/WWW/blog/mosertablogv01.pdf found here].)&lt;br /&gt;
&lt;br /&gt;
We have the following inequalities connecting a,b,c,d,e:&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;math&amp;gt;4a+b \leq 64&amp;lt;/math&amp;gt;:  There are 32 lines connecting two &amp;quot;a&amp;quot; points with a &amp;quot;b&amp;quot; point; each &amp;quot;a&amp;quot; point belongs to four of these lines, and each &amp;quot;b&amp;quot; point belongs to one.  But each such line can have at most two points in the set, and the claim follows.&lt;br /&gt;
* This can be refined to &amp;lt;math&amp;gt;4a+b+\frac{2}{3} c \leq 64&amp;lt;/math&amp;gt;: There are 24 planes connecting four &amp;quot;a&amp;quot; points, four &amp;quot;b&amp;quot; points, and one &amp;quot;c&amp;quot; point; each &amp;quot;a&amp;quot; point belongs to six of these, each &amp;quot;b&amp;quot; point belongs to three, and each &amp;quot;c&amp;quot; point belongs to one.  For each of these planes, we have &amp;lt;math&amp;gt;2a + b + 2c \leq 8&amp;lt;/math&amp;gt; from the n=2 theory, and the claim follows.&lt;br /&gt;
* &amp;lt;math&amp;gt;6a+2c \leq 96&amp;lt;/math&amp;gt;:  There are 96 lines connecting two &amp;quot;a&amp;quot; points with a &amp;quot;c&amp;quot; point; each &amp;quot;a&amp;quot; point belongs to six of these lines, and each &amp;quot;c&amp;quot; point belongs to two.  But each such line can have at most two points in the set, and the claim follows.&lt;br /&gt;
* &amp;lt;math&amp;gt;3b+2c \leq 96&amp;lt;/math&amp;gt;:  There are 48 lines connecting two &amp;quot;b&amp;quot; points to a &amp;quot;c&amp;quot; point; each &amp;quot;b&amp;quot; point belongs to three of these points, and each &amp;quot;c&amp;quot; point belongs to two.  But each such line can have at most two points in the set, and the claim follows.&lt;br /&gt;
&lt;br /&gt;
The inequalities for n=3 imply inequalities for n=4.  Indeed, there are eight side slices of &amp;lt;math&amp;gt;[3]^4&amp;lt;/math&amp;gt;; each &amp;quot;a&amp;quot; point belongs to four of these, each &amp;quot;b&amp;quot; point belongs to three, each &amp;quot;c&amp;quot; point belongs to two, and each &amp;quot;d&amp;quot; point belongs to one.  Thus, any inequality of the form&lt;br /&gt;
:&amp;lt;math&amp;gt; \alpha a + \beta b + \gamma c + \delta d \leq M&amp;lt;/math&amp;gt;&lt;br /&gt;
in three dimensions implies the inequality&lt;br /&gt;
:&amp;lt;math&amp;gt; 4 \alpha a + 3 \beta b + 2 \gamma c + \delta d \leq 8M&amp;lt;/math&amp;gt;&lt;br /&gt;
in four dimensions.  Thus we have&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;math&amp;gt;8a+3b+4c+4d \leq 176&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;2a+b+c+d \leq 48&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;14a+3b+4c+4d \leq 244&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;4a+b+c+d \leq 64&amp;lt;/math&amp;gt; &lt;br /&gt;
* &amp;lt;math&amp;gt;3b+2c+3d \leq 96&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;a+c+d \leq 28&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;5a+2c+2d \leq 80&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;a+d \leq 16&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;b+2d \leq 32&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;2c+3d \leq 48&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Cubes also sit diagonally in the 4-dimensional cube.  They may have coordinates xxyz, where xx runs over (11,22,33) or (13,22,31), while y and z run over (1,2,3).  These cubes have a different distribution of 2s than the ordinary slices: (a,b,c,d,e) = (8,8,6,4,1) instead of (8,12,6,1,0) for the side slices and (0,8,12,6,1) for the middle slices.  So a different set of inequalities arise.  It is possible to run through the same procedure as described above for n=3, and the inequalities that arise are &amp;lt;math&amp;gt;2a+b+2c+2d+4e \le 24&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;4a+b+2c+2d+4e \le 32&amp;lt;/math&amp;gt; within the 3D cube, which when averaged becomes &amp;lt;math&amp;gt;4a+b+2c+4d+16e \le 96&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;8a+b+2c+4d+16e \le 128&amp;lt;/math&amp;gt; for the 4D cube.  A spreadsheet containing these statistics can be [http://spreadsheets.google.com/ccc?key=p5T0SktZY9DuKZ2DyzO9EOg&amp;amp;hl=en# found here] on sheet 2.  Other sheets of this spreadsheet contain results for a 3D cube sitting diagonally in a 5D or 6D cube.&lt;br /&gt;
&lt;br /&gt;
== n=5 ==&lt;br /&gt;
&lt;br /&gt;
Let (A,B,C,D,E,F) be the statistics of a five-dimensional Moser set, thus (A,B,C,D,E,F) varies between (0,0,0,0,0,0) and (32,80,80,40,10,1).&lt;br /&gt;
&lt;br /&gt;
There are several Moser sets with the statistics (4,40,80,0,0), which thus have 124 points.  Indeed, one can take&lt;br /&gt;
&lt;br /&gt;
* all points with two 1s;&lt;br /&gt;
* all points with one 1 and an even number of 0s; and&lt;br /&gt;
* Four points with no 1s and two or three 0s. Any two of these four points differ in three places, except for one pair of points that differ in one place.&lt;br /&gt;
&lt;br /&gt;
For the rest of this section, we assume that the Moser set &amp;lt;math&amp;gt;{\mathcal A}&amp;lt;/math&amp;gt; is a 125-point set.&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 1&#039;&#039;&#039;: F=0.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; If F is non-zero, then the Moser set contains 22222, then each of the 121 antipodal pairs can have at most one point in the set, leading to only 122 points. &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 2&#039;&#039;&#039;: Every middle slice of &amp;lt;math&amp;gt;{\mathcal A}&amp;lt;/math&amp;gt; has at most 41 points.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039;  Without loss of generality we may consider the 2**** slice.  There are two cases, depending on the value of c(2****).&lt;br /&gt;
&lt;br /&gt;
Suppose first that c is at least 17; thus there are at least 17 points of the form 222xy, 22xy2, 2xy22, or 2x22y, where the x, y denote 1 or 3.  This gives 36 &amp;quot;xy&amp;quot; wildcards in all in four coordinate slots; by the pigeonhole principle one of the slots sees at least 9 of the wildcards.  By symmetry, we may assume that the second coordinate slot sees at least 9 of these wildcards, thus there are at least 9 points of the form 2x22y, 2x2y2, 2xy22.  The x=1, x=3 cases can absorb at most six of these, thus each of these cases must absorb at least three points, with at least one absorbing at least five.  Let&#039;s say that it&#039;s the x=3 case that absorbs 5; thus &amp;lt;math&amp;gt;d(*1***) \geq 3&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;d(*3***) \geq 5&amp;lt;/math&amp;gt;.  From the n=4 theory this means that the *1*** slice has at most 41 points, and the *3*** slice has at most 40.  Meanwhile, the middle slice has at most 43, leading to 41+41+42=124 points in all.&lt;br /&gt;
&lt;br /&gt;
Now suppose c is less than 16; then by the n=4 theory the middle slice is one of the eight (6,24,12,0,0) sets.  Without loss of generality we may take it to be &amp;lt;math&amp;gt;\Gamma_{220}+\Gamma_{202}+\Gamma_{022}+\Gamma_{112}+\Gamma_{211}&amp;lt;/math&amp;gt;; in particular, the middle slice contains the points 21122 21212 21221 23322 23232 23223.  In particular, the *1*** and *3*** slices have a &amp;quot;d&amp;quot; value of at least three, and so have at most 41 points.  If the *2*** slice has at most 42 points, then we are at 41+42+41=124 points as needed, but if we have 43 or more, then we are back in the first case (as &amp;lt;math&amp;gt;c(*2***) \geq 17&amp;lt;/math&amp;gt;) after permuting the indices.&lt;br /&gt;
&amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Since 125=41+41+43, we thus have&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Corollary 1&#039;&#039;&#039;: Every side slice of &amp;lt;math&amp;gt;{\mathcal A}&amp;lt;/math&amp;gt; has at least 41 points.  If one side slice does have 41 points, then the other has 43.&lt;br /&gt;
&lt;br /&gt;
Combining this with the n=4 statistics, we conclude&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Corollary 2&#039;&#039;&#039;: Every side slice of &amp;lt;math&amp;gt;{\mathcal A}&amp;lt;/math&amp;gt; has e=0, and &amp;lt;math&amp;gt;d \leq 3&amp;lt;/math&amp;gt;.  Given two opposite side slices, e.g. 1**** and 3****, we have &amp;lt;math&amp;gt;d(1****)+d(3****) \leq 4&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Corollary 3&#039;&#039;&#039;: E=0.&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Corollary 4&#039;&#039;&#039;: Any middle slice has a &amp;quot;c&amp;quot; value of at most 8.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; Let&#039;s work with the 2**** slice.  By Corollary 2, there are at most four contributions to c(2****) of the form 21*** or 23***, and similarly for the other three positions.  Double counting then gives the claim. &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 3&#039;&#039;&#039;: &amp;lt;math&amp;gt;2B+C \leq 160&amp;lt;/math&amp;gt;.   &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039;: There are 160 lines connecting one &amp;quot;C&amp;quot; point to two &amp;quot;B&amp;quot; points (e.g. 11112, 11122, 11132); each &amp;quot;C&amp;quot; point lies in two of these, and each &amp;quot;B&amp;quot; point lies on four.  A Moser set can have at most two points out of each of these lines.  Double counting then gives the claim.  &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 4&#039;&#039;&#039; Given m A-points with &amp;lt;math&amp;gt;m \geq 5&amp;lt;/math&amp;gt;, there exists at least m-4 pairs (a,b) of such A-points with Hamming distance exactly two (i.e. b differs from a in exactly two places).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; It suffices to check this for m=5, since the case of larger m then follows by locating a pair, removing a point that contributes to that pair, and using the induction hypothesis.  Given 5 A-points, we may assume by the pigeonhole principle and symmetry that at least three of them have an odd number of 1s.  Suppose 11111 is one of the points, and that no pair has Hamming distance 2. All points with two 3s are excluded, so the only points allowed with an odd number of 1s are those with four 3s. But all those points differ from each other in two positions, so at most one of them is allowed.  &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Corollary 5&#039;&#039;&#039; &amp;lt;math&amp;gt;C \leq 79&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039;: Suppose for contradiction that C=80, then D=0 and &amp;lt;math&amp;gt;B \leq 40&amp;lt;/math&amp;gt;.  From Lemma 4 we also see that A cannot exceed 5, leading to the contradiction.&lt;br /&gt;
&amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Define the &#039;&#039;&#039;score&#039;&#039;&#039; of a Moser set in &amp;lt;math&amp;gt;[3]^4&amp;lt;/math&amp;gt; to be the quantity &amp;lt;math&amp;gt;a + 5b/4 + 5c/3 + 5d/2 + 5e&amp;lt;/math&amp;gt;.  Double-counting (and Lemma 2) gives&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 5&#039;&#039;&#039;  The total score of all the ten side-slices of &amp;lt;math&amp;gt;{\mathcal A}&amp;lt;/math&amp;gt; is equal to &amp;lt;math&amp;gt;5|{\mathcal A}| = 5 \times 125&amp;lt;/math&amp;gt;.  In particular, there exists a pair of opposite side-slices whose scores add up to at least 125.&lt;br /&gt;
&lt;br /&gt;
By Lemma 5 and symmetry, we may assume that the 1**** and 3**** slices have score adding up to at least 125.  By Lemma 2, the 2**** slice has at most 41 points, which imply that the 1**** and 3**** have 41, 42, or 43 points.  From the [http://spreadsheets.google.com/ccc?key=p5T0SktZY9DuqNcxJ171Bbw&amp;amp;hl=en n=4 statistics] we know that all 41-point, 42-point, 43-point slices have score less than 62, with the following exceptions:&lt;br /&gt;
&lt;br /&gt;
# (2,16,24,0,0) [42 points, score: 62]&lt;br /&gt;
# (4,16,23,0,0) [43 points, score: 62 1/3]&lt;br /&gt;
# (4,15,24,0,0) [43 points, score: 62 3/4]&lt;br /&gt;
# (3,16,24,0,0) [43 points, score: 63]&lt;br /&gt;
&lt;br /&gt;
Thus the 1**** and 3**** slices must from the above list.  Furthermore, if one of the slices is of type 1, then the other must be of type 4, and if one slice is of type 2, then the other must be of type 3 or 4.&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 6&#039;&#039;&#039; There exists one cut in which the side slices have total score strictly greater than 125 (i.e. they thus involve only Type 2, Type 3, and Type 4 slices, with at least one side slice not equal to Type 2, and the cut here is of the form 43+39+43).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; If not, then all cuts have side slices exactly equal to 125, which by the above table implies that one is Type 1 and one is Type 4, in particular all side slices have c=24.  But this forces C=80, contradicting Corollary 5. &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Adding up the corners we conclude&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Corollary 6&#039;&#039;&#039; &amp;lt;math&amp;gt;6 \leq A \leq 8&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 7&#039;&#039;&#039; &amp;lt;math&amp;gt;D=0&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; Firstly, from Lemma 6 we have a cut in which the two side slices are omitting at most one C-point between them (and have no D-point), which forces the middle slice to have at most one D-point; thus D is at most 1.&lt;br /&gt;
&lt;br /&gt;
Now suppose instead that D=1 (e.g. if 11222 was in the set); then there would be two choices of coordinates in which one of the side slices would have d=1 (e.g. 1**** and *1****). But the [http://spreadsheets.google.com/ccc?key=p5T0SktZY9DuqNcxJ171Bbw&amp;amp;hl=en n=4 statistics] show that such slices have a score of at most 59 7/12, so that the total score from those two coordinates is at most 63 + 59 7/12 = 122 7/12. On the other hand, the other three slices have a net score of at most 63+63 = 126. This averages out to at most 124.633... &amp;lt; 125, a contradiction.  &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Corollary 7&#039;&#039;&#039; Every middle slice has at most 40 points.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; From Lemma 7 we see that the middle slice must have c=0, but from the n=4 statistics this is not possible for any slice of size 41 or higher (alternatively, one can use the inequalities &amp;lt;math&amp;gt;4a+b \leq 64&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;b \leq 32&amp;lt;/math&amp;gt;). &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Each middle slice now has 39 or 40 points, with c=d=e=0, and so from the inequalities &amp;lt;math&amp;gt;4a+b \leq 64&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;b \leq 32&amp;lt;/math&amp;gt; must have statistics (8,32,0,0,0),(7,32,0,0,0), or (8,31,0,0,0).  In particular the &amp;quot;a&amp;quot; index of the middle slices is at most 8.  Summing over all middle slices we conclude&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 9&#039;&#039;&#039; B is at most 40.&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 10&#039;&#039;&#039; C is equal to 78 or 79.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; By Corollary 5, it suffices to show that &amp;lt;math&amp;gt;C \geq 78&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
As 125=43+39+43, we see that every center slice must have at least 39 points. By Lemma 2 and Lemma 7 the center slice has c=d=e=0, thus the center slice has a+b &amp;gt;= 39.  On the other hand, from the n=4 theory we have 4a+b &amp;lt;= 64, which forces b &amp;gt;= 31.&lt;br /&gt;
&lt;br /&gt;
By double counting, we see that 2C is equal to the sum of the b&#039;s of all the five center slices.  Thus C &amp;gt;= 5*31/2 = 77.5 and the claim follows.  &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
From Lemmas 9 and 10 we see that &amp;lt;math&amp;gt;B+C \leq 119&amp;lt;/math&amp;gt;, and thus &amp;lt;math&amp;gt;A \geq 6&amp;lt;/math&amp;gt;.  Also, if &amp;lt;math&amp;gt;A \geq 7&amp;lt;/math&amp;gt;, then by Lemma 4 we have at least three pairs of A points with Hamming distance 2.  At most two of these pairs eliminate the same C point, so we would have C=78 in that case.  &lt;br /&gt;
&lt;br /&gt;
Putting all the above facts together, we see that (A,B,C,D,E,F) must be one of the following triples:&lt;br /&gt;
&lt;br /&gt;
* (6,40,79,0,0,0)&lt;br /&gt;
* (7,40,78,0,0,0)&lt;br /&gt;
* (8,39,78,0,0,0)&lt;br /&gt;
&lt;br /&gt;
All three cases can be eliminated, giving &amp;lt;math&amp;gt;c&#039;_5=124&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== Elimination of (6,40,79,0,0,0) ===&lt;br /&gt;
&lt;br /&gt;
Look at the 6 A points.  From Lemma 4 we have at least two pairs (a,b), (c,d) of A-points that have Hamming separation 2.&lt;br /&gt;
&lt;br /&gt;
Now look at the midpoints of these two pairs; these midpoints are C-points cannot lie in the set.  But we have exactly one C-point missing from the set, thus the midpoints must be the same.  By symmetry, we may thus assume that the two pairs are (11111,11133) and (11113,11131).  Thus 11111,11133, 11113, 11131 are in the set, and so every C-point other than 11122 is in the set.  On the other hand, the B-points 11121, 11123, 11112, 11132 lie outside the set.&lt;br /&gt;
&lt;br /&gt;
At most one of 11312, 11332 lie in the set (since 11322 lies in the set).   Suppose that 11312 lies outside the set, then we have a pair (xy1z2, xy3z2) with x,y,z = 1,3 that is totally omitted from the set, namely (11112,11312).  On the other hand, every other pair of this form can have at most point in the set, thus there are at most seven points in the set of the form (xyzw2) with x,y,z,w = 1,3.  Similarly there are at most 8 points of the form xyz2w, or of xy2zw, x2yzw, 2xyzw, leading to at most 39 B-points in all, contradiction.&lt;br /&gt;
&lt;br /&gt;
=== Elimination of (7,40,78,0,0,0) ===&lt;br /&gt;
&lt;br /&gt;
By Lemma 4, we have at least three pairs of A-points of distance two apart that lie in the set.&lt;br /&gt;
The midpoints of these pairs are C-points that do not lie in the set; but there are only two such C-points, thus two pairs must have the same midpoint, so we may assume as before that 111xy lies in the set for x,y=1,3, which implies that 1112* and 111*2 lie outside the set.&lt;br /&gt;
&lt;br /&gt;
Now consider the 160 lines between 2 B points and one C point (cf. Lemma 3).  The sum of all the points in each such line (counting multiplicity) is 4B+2C = 316.  On the other hand, every one of the 160 lines can have at most two points, and four of these lines (namely 1112*, 111*2) have no points.  Thus all the other lines must have exactly two points.  &lt;br /&gt;
&lt;br /&gt;
We know that the C-point 11122 is missing from the set; there is one other missing C-point.  Since 1112x, 111x2 lie outside the set, we conclude from the previous paragraph that 1132x, 113x2 and 1312x, 131x2 lie in the set.  Taking midpoints we conclude that 11322 and 13122 lie outside the set.  But this is now three C-points missing (together with 11122), a contradiction.&lt;br /&gt;
&lt;br /&gt;
=== Elimination of (8,39,78,0,0,0) ===&lt;br /&gt;
&lt;br /&gt;
By Lemma 4 we have at least four pairs of A-points of distance two apart that lie in the set. The midpoints of these pairs are C-points that do not lie in the set; but there are only two such C-points, thus two pairs (a,b), (c,d) must have the same midpoint p, and the other two pairs (a&#039;,b&#039;), (c&#039;,d&#039;) must also have the same midpoint p&#039;.  (Note that every C-point is the midpoint of at most two such pairs.)&lt;br /&gt;
&lt;br /&gt;
Now consider the 160 lines between 2 B points and one C point (cf. Lemma 3).  The sum of all the points in each such line (counting multiplicity) is 4B+2C = 312.  Every one of the 160 lines can have at most two points, and four of these (those in the plane of (a,b,c,d) or of (a&#039;,b&#039;,c&#039;,d&#039;) have no points.  Thus all other lines must have exactly two points.&lt;br /&gt;
&lt;br /&gt;
Without loss of generality we have (a,b)=(11111,11133), (c,d) = (11113,11131), thus p = 11122.  By permuting the first three indices, we may assume that p&#039; is not of the form x2y2z, x2yz2, xy22z, xy2z2.  Then 1112x lies outside the set and 1122x lies in the set, so by the above paragraph 1132x lies in the set; similarly for 113x2, 1312x, 131x2.  This implies that 13122, 11322 lie outside the set, but this (together with 11122) shows that at least three C-points are missing, a contradiction.&lt;br /&gt;
&lt;br /&gt;
== General n ==&lt;br /&gt;
&lt;br /&gt;
General solution for &amp;lt;math&amp;gt;c&#039;_N&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* q 2s, all points from A(N-q,1)&lt;br /&gt;
* q-1 2s, points from A(N-q+1,2)&lt;br /&gt;
* q-2 2s, points from A(N-q+2,3)&lt;br /&gt;
* etc.&lt;br /&gt;
&lt;br /&gt;
where A(m,d) is a subset of &amp;lt;math&amp;gt;[1,3]^m&amp;lt;/math&amp;gt; for which any two points differ from each other in at least d places.&lt;br /&gt;
&lt;br /&gt;
Mathworld’s entry on error-correcting codes suggests it might be NP-complete to find the size of A(m,d) in general.&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;math&amp;gt;|A(m,1)| = 2^m&amp;lt;/math&amp;gt; because it includes all points in &amp;lt;math&amp;gt;[1,3]^m&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;|A(m,2)| = 2^{m-1}&amp;lt;/math&amp;gt; because it can include all points in &amp;lt;math&amp;gt;[1,3]^m&amp;lt;/math&amp;gt; with an odd number of 1s&lt;br /&gt;
&lt;br /&gt;
Here are some [[Maple calculations]].&lt;br /&gt;
&lt;br /&gt;
A [[genetic algorithm]] has provided the following examples:&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;math&amp;gt;c&#039;_6 \geq 353&amp;lt;/math&amp;gt; (26 examples; [http://twofoldgaze.wordpress.com/2009/03/10/353-element-solution/ here is one])&lt;br /&gt;
* &amp;lt;math&amp;gt;c&#039;_7 \geq 988&amp;lt;/math&amp;gt; [http://twofoldgaze.wordpress.com/2009/03/10/978-element-solution/ Here is the example]&lt;br /&gt;
&lt;br /&gt;
== Variants ==&lt;br /&gt;
&lt;br /&gt;
A lower bound for Moser’s cube &amp;lt;math&amp;gt;[4]^n&amp;lt;/math&amp;gt; (values 0,1,2,3) comes from the following set:  Pick all points where q entries are 1 or 2; and also pick those where q-1 entries are 1 or 2 and an odd number of entries are 0.  This is maximized when q is near n/2, giving a lower bound of&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\binom{n}{n/2} 2^n + \binom{n}{n/2-1} 2^{n-1}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
which is comparable to &amp;lt;math&amp;gt;4^n/\sqrt{n}&amp;lt;/math&amp;gt; by [[Stirling&#039;s formula]].&lt;br /&gt;
&lt;br /&gt;
For k=5 (values 0,1,2,3,4) If A, B, C, D, and E denote the numbers of 0-s, 1-s, 2-s, 3-s, and 4-s then the first three points of a geometric line form a 3-term arithmetic progression in A+E+2(B+D)+3C. So, for k=5 we have a similar lower bound for the Moser’s problem as for DHJ k=3, i.e. &amp;lt;math&amp;gt;5^{n - O(\sqrt{\log n})}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
The k=6 version of Moser implies DHJ(3).  Indeed, any k=3 combinatorial line-free set can be &amp;quot;doubled up&amp;quot; into a k=6 geometric line-free set of the same density by pulling back the set from the map &amp;lt;math&amp;gt;\phi: [6]^n \to [3]^n&amp;lt;/math&amp;gt; that maps 1, 2, 3, 4, 5, 6 to 1, 2, 3, 3, 2, 1 respectively; note that this map sends k=6 geometric lines to k=3 combinatorial lines.&lt;/div&gt;</summary>
		<author><name>121.220.134.232</name></author>
	</entry>
	<entry>
		<id>https://michaelnielsen.org/polymath/index.php?title=Moser%27s_cube_problem&amp;diff=890</id>
		<title>Moser&#039;s cube problem</title>
		<link rel="alternate" type="text/html" href="https://michaelnielsen.org/polymath/index.php?title=Moser%27s_cube_problem&amp;diff=890"/>
		<updated>2009-03-15T08:55:11Z</updated>

		<summary type="html">&lt;p&gt;121.220.134.232: /* n=4 */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Define a &#039;&#039;Moser set&#039;&#039; to be a subset of &amp;lt;math&amp;gt;[3]^n&amp;lt;/math&amp;gt; which does not contain any [[geometric line]], and let &amp;lt;math&amp;gt;c&#039;_n&amp;lt;/math&amp;gt; denote the size of the largest Moser set in &amp;lt;math&amp;gt;[3]^n&amp;lt;/math&amp;gt;.  The first few values are (see [http://www.research.att.com/~njas/sequences/A003142 OEIS A003142]):&lt;br /&gt;
&lt;br /&gt;
: &amp;lt;math&amp;gt;c&#039;_0 = 1; c&#039;_1 = 2; c&#039;_2 = 6; c&#039;_3 = 16; c&#039;_4 = 43; c&#039;_5 = 124.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Beyond this point, we only have some upper and lower bounds, in particular &amp;lt;math&amp;gt;353 \leq c&#039;_5 \leq 360&amp;lt;/math&amp;gt;; see [http://spreadsheets.google.com/ccc?key=p5T0SktZY9DsU-uZ1tK7VEg this spreadsheet] for the latest bounds.&lt;br /&gt;
&lt;br /&gt;
The best known asymptotic lower bound for &amp;lt;math&amp;gt;c&#039;_n&amp;lt;/math&amp;gt; is&lt;br /&gt;
&lt;br /&gt;
: &amp;lt;math&amp;gt;c&#039;_n \gg 3^n/\sqrt{n}&amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
formed by fixing the number of 2s to a single value near n/3.  Is it possible to do any better?  Note that we have a [[Upper_and_lower_bounds#Asymptotics|significantly better bound]] for &amp;lt;math&amp;gt;c_n&amp;lt;/math&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
: &amp;lt;math&amp;gt;c_n \geq 3^{n-O(\sqrt{\log n})}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
A more precise lower bound is&lt;br /&gt;
&lt;br /&gt;
: &amp;lt;math&amp;gt;c&#039;_n \geq \binom{n+1}{q} 2^{n-q}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where q is the nearest integer to &amp;lt;math&amp;gt;n/3&amp;lt;/math&amp;gt;, formed by taking all strings with q 2s, together with all strings with q-1 2s and an odd number of 1s.  This for instance gives the lower bound &amp;lt;math&amp;gt;c&#039;_5 \geq 120&amp;lt;/math&amp;gt;, which compares with the upper bound &amp;lt;math&amp;gt;c&#039;_5 \leq 3 c&#039;_4 = 129&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Using [[DHJ(3)]], we have the upper bound&lt;br /&gt;
&lt;br /&gt;
: &amp;lt;math&amp;gt;c&#039;_n = o(3^n)&amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
but no effective decay rate is known. It would be good to have a combinatorial proof of this fact (which is weaker than [[DHJ(3)]], but implies [[Roth&#039;s theorem]]).&lt;br /&gt;
&lt;br /&gt;
Convenient notation: given a Moser set A in &amp;lt;math&amp;gt;[3]^n&amp;lt;/math&amp;gt;, we let a be the number of points in A with no 2s, b be the number of points in A with one 2, c the number of points with two 2s, etc.  We call (a,b,c,...) the &#039;&#039;statistics&#039;&#039; of A.  Given a slice S of &amp;lt;math&amp;gt;[3]^n&amp;lt;/math&amp;gt;, we let a(S), b(S), etc. denote the statistics of that slice (dropping the fixed coordinates).  Thus for instance if A = {11, 12, 22, 32}, then (a,b,c) = (1,2,1), and (a(1*),b(1*)) = (1,1).&lt;br /&gt;
&lt;br /&gt;
We call a statistic (a,b,c,...) &#039;&#039;attainable&#039;&#039; if it is attained by a Moser set.  We say that an attainable statistic is &#039;&#039;Pareto-optimal&#039;&#039; if it cannot be pointwise dominated by any other attainable statistic (a&#039;,b&#039;,c&#039;,...) (thus &amp;lt;math&amp;gt;a&#039; \geq a&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;b&#039; \geq b&amp;lt;/math&amp;gt;, etc.)  We say that it is &#039;&#039;extremal&#039;&#039; if it is not a convex combination of any other attainable statistic (this is a stronger property than Pareto-optimal).  For the purposes of maximising linear scores of attainable statistics, it suffices to check extremal statistics.&lt;br /&gt;
&lt;br /&gt;
We let &amp;lt;math&amp;gt;(\alpha_0,\alpha_1,\ldots)&amp;lt;/math&amp;gt; be the normalized version of &amp;lt;math&amp;gt;(a,b,\ldots)&amp;lt;/math&amp;gt;, in which one divides the number of points of a certain type in the set by the total number of points in the set.  Thus for instance &amp;lt;math&amp;gt;\alpha_0 = a/2^n, \alpha_1 = b/(n 2^{n-1}), \alpha_3 = c/(\binom{n}{2} 2^{n-2})&amp;lt;/math&amp;gt;, etc., and the &amp;lt;math&amp;gt;\alpha_i&amp;lt;/math&amp;gt; range between 0 and 1.  Averaging arguments show that any linear inequality obeyed by the &amp;lt;math&amp;gt;\alpha_i&amp;lt;/math&amp;gt; at one dimension is automatically inherited by higher dimensions, as are shifted versions of this inequality (in which &amp;lt;math&amp;gt;\alpha_i&amp;lt;/math&amp;gt; is replaced by &amp;lt;math&amp;gt;\alpha_{i+1}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== n=0 ==&lt;br /&gt;
&lt;br /&gt;
We trivially have &amp;lt;math&amp;gt;c&#039;_0=1.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== n=1 ==&lt;br /&gt;
&lt;br /&gt;
We trivially have &amp;lt;math&amp;gt;c&#039;_1=2.&amp;lt;/math&amp;gt;  The Pareto-optimal values of the statistics (a,b) are (1,1) and (2,0); these are also the extremals.  We thus have the inequality &amp;lt;math&amp;gt;a+b \leq 2&amp;lt;/math&amp;gt;, or in normalized notation&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;2\alpha_0 + \alpha_1 \leq 2&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== n=2 ==&lt;br /&gt;
&lt;br /&gt;
We have &amp;lt;math&amp;gt;c&#039;_2 = 6&amp;lt;/math&amp;gt;; the upper bound follows since &amp;lt;math&amp;gt;c&#039;_2 \leq 3 c&#039;_1&amp;lt;/math&amp;gt;, and the lower bound follows by deleting one of the two diagonals from &amp;lt;math&amp;gt;[3]^2&amp;lt;/math&amp;gt; (these are the only extremisers).&lt;br /&gt;
&lt;br /&gt;
The extremiser has statistics (a,b,c) = (2,4,0), which are of course Pareto-optimal.  If c=1 then we must have a, b at most 2 (look at the lines through 22).  This is attainable (e.g. {11, 12, 22, 23, 31}, and so (2,2,1) is another Pareto-optimal statistic.  If a=4, then b and c must be 0, so we get another Pareto-optimal statistic (4,0,0) (attainable by {11, 13, 31, 33} of course).  If a=3, then c=0 and b is at most 2, giving another Pareto-optimal statistic (3,2,0); but this is a convex combination of (4,0,0) and (2,4,0) and is thus not extremal.  Thus the complete set of extremal statistics are&lt;br /&gt;
&lt;br /&gt;
(4,0,0), (2,4,0), (2,2,1).&lt;br /&gt;
&lt;br /&gt;
The sharp linear inequalities obeyed by a,b,c (other than the trivial ones &amp;lt;math&amp;gt;a,b,c \geq 0&amp;lt;/math&amp;gt;) are then&lt;br /&gt;
&lt;br /&gt;
*&amp;lt;math&amp;gt;2a+b+2c \leq 8&amp;lt;/math&amp;gt;&lt;br /&gt;
*&amp;lt;math&amp;gt;b+2c \leq 4&amp;lt;/math&amp;gt;&lt;br /&gt;
*&amp;lt;math&amp;gt;a+2c \leq 4&amp;lt;/math&amp;gt;&lt;br /&gt;
*&amp;lt;math&amp;gt;c \leq 1&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
In normalized notation, we have&lt;br /&gt;
*&amp;lt;math&amp;gt;4\alpha_0 + 2\alpha_1 + \alpha_2 \leq 4&amp;lt;/math&amp;gt;&lt;br /&gt;
*&amp;lt;math&amp;gt;2\alpha_1 + \alpha_2 \leq 2&amp;lt;/math&amp;gt;&lt;br /&gt;
*&amp;lt;math&amp;gt;2\alpha_0 + \alpha_2 \leq 2&amp;lt;/math&amp;gt;&lt;br /&gt;
*&amp;lt;math&amp;gt;\alpha_2 \leq 1&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== n=3 ==&lt;br /&gt;
&lt;br /&gt;
We have &amp;lt;math&amp;gt;c&#039;_3 = 16&amp;lt;/math&amp;gt;.  The lower bound can be seen for instance by taking all the strings with one 2, and half the strings with no 2 (e.g. the strings with an odd number of 1s).  The upper bound can be deduced from the corresponding [[upper and lower bounds]] for &amp;lt;math&amp;gt;c_3 = 18&amp;lt;/math&amp;gt;; the 17-point and 18-point line-free sets each contain a geometric line.&lt;br /&gt;
&lt;br /&gt;
If a Moser set in &amp;lt;math&amp;gt;[3]^3&amp;lt;/math&amp;gt; contains 222, then it can have at most 14 points, since the remaining 26 points in the cube split into 13 antipodal pairs, and at most one of each pair can lie in the set.  By exhausting over the &amp;lt;math&amp;gt;2^{13} = 8192&amp;lt;/math&amp;gt; possibilities, it can be shown that it is impossible for a 14-point set to exist; any Moser set containing 222 must in fact omit at least one antipodal pair completely and thus have only 13 points.  (A human proof of this fact can be [http://www.ma.rhul.ac.uk/~elsholtz/WWW/blog/mosertablogv01.pdf found here].)&lt;br /&gt;
&lt;br /&gt;
The Pareto-optimal statistics are&lt;br /&gt;
&lt;br /&gt;
(3,6,3,1),(4,4,3,1),(4,6,2,1),(2,6,6,0),(3,6,5,0),(4,4,5,0),(3,7,4,0),(4,6,4,0), (3,9,3,0),(4,7,3,0),(5,4,3,0),(4,9,2,0),(5,6,2,0),(6,3,2,0),(3,10,1,0),(5,7,1,0), (6,4,1,0),(4,12,0,0),(5,9,0,0),(6,6,0,0),(7,3,0,0),(8,0,0,0).&lt;br /&gt;
&lt;br /&gt;
A spreadsheet containing these statistics can be [http://spreadsheets.google.com/ccc?key=p5T0SktZY9DuKZ2DyzO9EOg&amp;amp;hl=en# found here].&lt;br /&gt;
&lt;br /&gt;
The extremal statistics are&lt;br /&gt;
&lt;br /&gt;
(3,6,3,1),(4,4,3,1),(4,6,2,1),(2,6,6,0),(4,4,5,0),(4,6,4,0),(4,12,0,0),(8,0,0,0)&lt;br /&gt;
&lt;br /&gt;
The sharp linear bounds are :&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;math&amp;gt;2a+b+2c+4d \leq 22&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;3a+2b+3c+6d \leq 36&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;7a+2b+4c+8d \leq 56&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;6a+2b+3c+6d \leq 48&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;b+c+3d \leq 12&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;a+2c+4d \leq 14&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;5a+4c+8d \leq 40&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;a+4d \leq 8&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;b+6d \leq 12&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;c+3d \leq 6&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;d \leq 1&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In normalized notation,&lt;br /&gt;
* &amp;lt;math&amp;gt;8\alpha_0+ 6\alpha_1 + 6\alpha_2 + 2\alpha_3 \leq 11&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;4\alpha_0+4\alpha_1+3\alpha_2+\alpha_3 \leq 6&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;7\alpha_0+3\alpha_1+3\alpha_2+\alpha_3 \leq 7&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;8\alpha_0+3\alpha_1+3\alpha_2+\alpha_3 \leq 8&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;4\alpha_1+2\alpha_2+\alpha_3 \leq 4&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;4\alpha_0+6\alpha_2+2\alpha_3 \leq 7&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;5\alpha_0+3\alpha_2+\alpha_3 \leq 5&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;2\alpha_0+\alpha_3 \leq 2&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;2\alpha_1+\alpha_3 \leq 2&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;2\alpha_2+\alpha_3 \leq 2&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;\alpha_3 \leq 1&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== n=4 ==&lt;br /&gt;
&lt;br /&gt;
A [http://abel.math.umu.se/~klasm/extremal-moser-n=5-t=3 computer search] has obtained all extremisers to &amp;lt;math&amp;gt;c&#039;_4=43&amp;lt;/math&amp;gt;.  The 42-point solutions can be found [http://abel.math.umu.se/~klasm/moser-n=4-t=3-p=42.gz here].&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof that &amp;lt;math&amp;gt;c&#039;_4 \leq 43&amp;lt;/math&amp;gt;&#039;&#039;&#039;: &lt;br /&gt;
When e=1 (i.e. the 4D set contains 2222) then we have at most 41 points (in fact at most 39) by counting antipodal points, so assume e=0.&lt;br /&gt;
&lt;br /&gt;
Define the score of a 3D slice to be a/4+b/3+c/2+d.  Observe from double counting that the size of a 4D set is the sum of the scores of its eight side slices.&lt;br /&gt;
&lt;br /&gt;
But by [http://spreadsheets.google.com/ccc?key=p5T0SktZY9DuKZ2DyzO9EOg&amp;amp;hl=en looking at the extremals] we see that the largest score is 44/8, attained at only one point, namely when (a,b,c,d) = (2,6,6,0).  So the only way one can have a 44-point set is if all side slices are (2,6,6,0), or equivalently if the whole set has statistics (a,b,c,d,e) = (4,16,24,0,0).  But then we have all the points with two 2s, which means that the four &amp;quot;a&amp;quot; points cannot be separated by Hamming distance 2.  We conclude that we must have an antipodal pair among the &amp;quot;a&amp;quot; points with an odd number of 1s, and an antipodal pair among the &amp;quot;a&amp;quot; points with an even number of 1s.    By the symmetries of the cube, we may take the a-set to then be 1111, 3333, 1113, 3331.  But then the &amp;quot;b&amp;quot; set must exclude both 1112 and 3332, and so can have at most three points in the eight-point set xyz2 (with x,y,z=1,3) rather than four (to get four points one must alternate in a checkerboard pattern).  Adding this to the at most four points of the form xy2z, x2yz, 2xyz we see that b is at most 16, a contradiction. &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Given a subset of &amp;lt;math&amp;gt;[3]^4&amp;lt;/math&amp;gt;, let a be the number of points with no 2s, b be the number of points with 1 2, and so forth.  The quintuple (a,b,c,d,e) thus lies between (0,0,0,0,0) and (16,32,24,8,1).&lt;br /&gt;
&lt;br /&gt;
The 43-point solutions have distributions (a,b,c,d,e) as follows:&lt;br /&gt;
&lt;br /&gt;
* (5,20,18,0,0) [16 solutions]&lt;br /&gt;
* (4,16,23,0,0) [768 solutions]&lt;br /&gt;
* (3,16,24,0,0) [512 solutions]&lt;br /&gt;
* (4,15,24,0,0) [256 solutions]&lt;br /&gt;
&lt;br /&gt;
The 42-point solutions are [http://abel.math.umu.se/~klasm/Moser-42-stat.pdf distributed as follows]:&lt;br /&gt;
&lt;br /&gt;
* (6,24,12,0,0) [[http://abel.math.umu.se/~klasm/moser-n=4-42-12 8 solutions]] &lt;br /&gt;
* (5,20,17,0,0) [576 solutions]&lt;br /&gt;
* (5,19,18,0,0) [384 solutions]&lt;br /&gt;
* (6,16,18,2,0) [[http://abel.math.umu.se/~klasm/moser-n=4-42-e=2 192 solutions]]&lt;br /&gt;
* (4,20,18,0,0) [272 solutions]&lt;br /&gt;
* (5,17,20,0,0) [192 solutions]&lt;br /&gt;
* (5,16,21,0,0) [3584 solutions]&lt;br /&gt;
* (4,17,21,0,0) [768 solutions]&lt;br /&gt;
* (4,16,22,0,0) [26880 solutions]&lt;br /&gt;
* (5,15,22,0,0) [1536 solutions]&lt;br /&gt;
* (4,15,23,0,0) [22272 solutions]&lt;br /&gt;
* (3,16,23,0,0) [15744 solutions]&lt;br /&gt;
* (4,14,24,0,0) [4224 solutions]&lt;br /&gt;
* (3,15,24,0,0) [8704 solutions]&lt;br /&gt;
* (2,16,24,0,0) [896 solutions]&lt;br /&gt;
&lt;br /&gt;
Note how c is usually quite large, and d quite low.&lt;br /&gt;
&lt;br /&gt;
One of the (6,24,12,0,0) solutions is &amp;lt;math&amp;gt;\Gamma_{220}+\Gamma_{202}+\Gamma_{022}+\Gamma_{112}+\Gamma_{211}&amp;lt;/math&amp;gt; (i.e. the set of points containing exactly two 1s, and/or exactly two 3s).  The other seven are reflections of this set.&lt;br /&gt;
&lt;br /&gt;
There are 2,765,200 41-point solutions, [http://abel.math.umu.se/~klasm/solutions-4-t=3-41-moser.gz listed here].  The statistics for such points can be [http://abel.math.umu.se/~klasm/Moser-41-stat.pdf found here].  Noteworthy features of the statistics:&lt;br /&gt;
&lt;br /&gt;
* d is at most 3 (and, except for [http://abel.math.umu.se/~klasm/moser-n=3-t=3-41-d=3.gz 256 exceptional solutions] of the shape (5,15,18,3,0), have d at most 2; here are the [http://abel.math.umu.se/~klasm/moser-n=3-t=3-41-d=2.gz d=2 solutions] and [http://abel.math.umu.se/~klasm/moser-n=3-t=3-41-d=1.gz d=1 solutions])&lt;br /&gt;
* c is at least 6 (and, except for [http://abel.math.umu.se/~klasm/moser-n=3-t=3-41-c=6.gz 16 exceptional solutions] of the shape (7,28,6,0,0), have c at least 11).&lt;br /&gt;
&lt;br /&gt;
Statistics for the 41-point, 42-point, and 43-point solutions can be found [http://spreadsheets.google.com/ccc?key=p5T0SktZY9DuqNcxJ171Bbw&amp;amp;hl=en here].&lt;br /&gt;
&lt;br /&gt;
If a Moser set in &amp;lt;math&amp;gt;[3]^4&amp;lt;/math&amp;gt; contains 2222, then by the n=3 theory, any middle slice (i.e. 2***, *2**, **2*, or ***2) is missing at least one antipodal pair.  But each antipodal pair belongs to at most three middle slices, thus two of the 40 antipodal pairs must be completely missing.  As a consequence, any Moser set containing 2222 can have at most 39 points.&lt;br /&gt;
(A more refined analysis can be found at [http://www.ma.rhul.ac.uk/~elsholtz/WWW/blog/mosertablogv01.pdf found here].)&lt;br /&gt;
&lt;br /&gt;
We have the following inequalities connecting a,b,c,d,e:&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;math&amp;gt;4a+b \leq 64&amp;lt;/math&amp;gt;:  There are 32 lines connecting two &amp;quot;a&amp;quot; points with a &amp;quot;b&amp;quot; point; each &amp;quot;a&amp;quot; point belongs to four of these lines, and each &amp;quot;b&amp;quot; point belongs to one.  But each such line can have at most two points in the set, and the claim follows.&lt;br /&gt;
* This can be refined to &amp;lt;math&amp;gt;4a+b+\frac{2}{3} c \leq 64&amp;lt;/math&amp;gt;: There are 24 planes connecting four &amp;quot;a&amp;quot; points, four &amp;quot;b&amp;quot; points, and one &amp;quot;c&amp;quot; point; each &amp;quot;a&amp;quot; point belongs to six of these, each &amp;quot;b&amp;quot; point belongs to three, and each &amp;quot;c&amp;quot; point belongs to one.  For each of these planes, we have &amp;lt;math&amp;gt;2a + b + 2c \leq 8&amp;lt;/math&amp;gt; from the n=2 theory, and the claim follows.&lt;br /&gt;
* &amp;lt;math&amp;gt;6a+2c \leq 96&amp;lt;/math&amp;gt;:  There are 96 lines connecting two &amp;quot;a&amp;quot; points with a &amp;quot;c&amp;quot; point; each &amp;quot;a&amp;quot; point belongs to six of these lines, and each &amp;quot;c&amp;quot; point belongs to two.  But each such line can have at most two points in the set, and the claim follows.&lt;br /&gt;
* &amp;lt;math&amp;gt;3b+2c \leq 96&amp;lt;/math&amp;gt;:  There are 48 lines connecting two &amp;quot;b&amp;quot; points to a &amp;quot;c&amp;quot; point; each &amp;quot;b&amp;quot; point belongs to three of these points, and each &amp;quot;c&amp;quot; point belongs to two.  But each such line can have at most two points in the set, and the claim follows.&lt;br /&gt;
&lt;br /&gt;
The inequalities for n=3 imply inequalities for n=4.  Indeed, there are eight side slices of &amp;lt;math&amp;gt;[3]^4&amp;lt;/math&amp;gt;; each &amp;quot;a&amp;quot; point belongs to four of these, each &amp;quot;b&amp;quot; point belongs to three, each &amp;quot;c&amp;quot; point belongs to two, and each &amp;quot;d&amp;quot; point belongs to one.  Thus, any inequality of the form&lt;br /&gt;
:&amp;lt;math&amp;gt; \alpha a + \beta b + \gamma c + \delta d \leq M&amp;lt;/math&amp;gt;&lt;br /&gt;
in three dimensions implies the inequality&lt;br /&gt;
:&amp;lt;math&amp;gt; 4 \alpha a + 3 \beta b + 2 \gamma c + \delta d \leq 8M&amp;lt;/math&amp;gt;&lt;br /&gt;
in four dimensions.  Thus we have&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;math&amp;gt;8a+3b+4c+4d \leq 176&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;2a+b+c+d \leq 48&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;14a+3b+4c+4d \leq 244&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;4a+b+c+d \leq 64&amp;lt;/math&amp;gt; &lt;br /&gt;
* &amp;lt;math&amp;gt;3b+2c+3d \leq 96&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;a+c+d \leq 28&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;5a+2c+2d \leq 80&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;a+d \leq 16&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;b+2d \leq 32&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;2c+3d \leq 48&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Cubes also sit diagonally in the 4-dimensional cube.  They may have coordinates xxyz, where xx runs over (11,22,33) or (13,22,31), while y and z run over (1,2,3).  These cubes have a different distribution of 2s than the ordinary slices: (a,b,c,d,e) = (8,8,6,4,1) instead of (8,12,6,1,0) for the side slices and (0,8,12,6,1) for the middle slices.  So a different set of inequalities arise.  It is possible to run through the same procedure as described above for n=3, and the inequalities that arise are &amp;lt;math&amp;gt;2a+b+2c+2d+4e \le 24&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;4a+b+2c+2d+4e \le 32&amp;lt;/math&amp;gt; within the 3D cube, which when averaged becomes &amp;lt;math&amp;gt;4a+b+2c+4d+16e \le 96&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;8a+b+2c+4d+16e \le 128&amp;lt;/math&amp;gt; for the 4D cube.  A spreadsheet containing these statistics can be [http://spreadsheets.google.com/ccc?key=p5T0SktZY9DuKZ2DyzO9EOg&amp;amp;hl=en# found here] on sheet 2.  Other sheets of this spreadsheet contain results for a 3D cube sitting diagonally in a 5D or 6D cube.&lt;br /&gt;
&lt;br /&gt;
== n=5 ==&lt;br /&gt;
&lt;br /&gt;
Let (A,B,C,D,E,F) be the statistics of a five-dimensional Moser set, thus (A,B,C,D,E,F) varies between (0,0,0,0,0,0) and (32,80,80,40,10,1).&lt;br /&gt;
&lt;br /&gt;
There are several Moser sets with the statistics (4,40,80,0,0), which thus have 124 points.  Indeed, one can take&lt;br /&gt;
&lt;br /&gt;
* all points with two 1s;&lt;br /&gt;
* all points with one 1 and an even number of 0s; and&lt;br /&gt;
* Four points with no 1s and two or three 0s. Any two of these four points differ in three places, except for one pair of points that differ in one place.&lt;br /&gt;
&lt;br /&gt;
For the rest of this section, we assume that the Moser set &amp;lt;math&amp;gt;{\mathcal A}&amp;lt;/math&amp;gt; is a 125-point set.&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 1&#039;&#039;&#039;: F=0.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; If F is non-zero, then the Moser set contains 22222, then each of the 121 antipodal pairs can have at most one point in the set, leading to only 122 points. &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 2&#039;&#039;&#039;: Every middle slice of &amp;lt;math&amp;gt;{\mathcal A}&amp;lt;/math&amp;gt; has at most 41 points.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039;  Without loss of generality we may consider the 2**** slice.  There are two cases, depending on the value of c(2****).&lt;br /&gt;
&lt;br /&gt;
Suppose first that c is at least 17; thus there are at least 17 points of the form 222xy, 22xy2, 2xy22, or 2x22y, where the x, y denote 1 or 3.  This gives 36 &amp;quot;xy&amp;quot; wildcards in all in four coordinate slots; by the pigeonhole principle one of the slots sees at least 9 of the wildcards.  By symmetry, we may assume that the second coordinate slot sees at least 9 of these wildcards, thus there are at least 9 points of the form 2x22y, 2x2y2, 2xy22.  The x=1, x=3 cases can absorb at most six of these, thus each of these cases must absorb at least three points, with at least one absorbing at least five.  Let&#039;s say that it&#039;s the x=3 case that absorbs 5; thus &amp;lt;math&amp;gt;d(*1***) \geq 3&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;d(*3***) \geq 5&amp;lt;/math&amp;gt;.  From the n=4 theory this means that the *1*** slice has at most 41 points, and the *3*** slice has at most 40.  Meanwhile, the middle slice has at most 43, leading to 41+41+42=124 points in all.&lt;br /&gt;
&lt;br /&gt;
Now suppose c is less than 16; then by the n=4 theory the middle slice is one of the eight (6,24,12,0,0) sets.  Without loss of generality we may take it to be &amp;lt;math&amp;gt;\Gamma_{220}+\Gamma_{202}+\Gamma_{022}+\Gamma_{112}+\Gamma_{211}&amp;lt;/math&amp;gt;; in particular, the middle slice contains the points 21122 21212 21221 23322 23232 23223.  In particular, the *1*** and *3*** slices have a &amp;quot;d&amp;quot; value of at least three, and so have at most 41 points.  If the *2*** slice has at most 42 points, then we are at 41+42+41=124 points as needed, but if we have 43 or more, then we are back in the first case (as &amp;lt;math&amp;gt;c(*2***) \geq 17&amp;lt;/math&amp;gt;) after permuting the indices.&lt;br /&gt;
&amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Since 125=41+41+43, we thus have&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Corollary 1&#039;&#039;&#039;: Every side slice of &amp;lt;math&amp;gt;{\mathcal A}&amp;lt;/math&amp;gt; has at least 41 points.  If one side slice does have 41 points, then the other has 43.&lt;br /&gt;
&lt;br /&gt;
Combining this with the n=4 statistics, we conclude&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Corollary 2&#039;&#039;&#039;: Every side slice of &amp;lt;math&amp;gt;{\mathcal A}&amp;lt;/math&amp;gt; has e=0, and &amp;lt;math&amp;gt;d \leq 3&amp;lt;/math&amp;gt;.  Given two opposite side slices, e.g. 1**** and 3****, we have &amp;lt;math&amp;gt;d(1****)+d(3****) \leq 4&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Corollary 3&#039;&#039;&#039;: E=0.&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Corollary 4&#039;&#039;&#039;: Any middle slice has a &amp;quot;c&amp;quot; value of at most 8.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; Let&#039;s work with the 2**** slice.  By Corollary 2, there are at most four contributions to c(2****) of the form 21*** or 23***, and similarly for the other three positions.  Double counting then gives the claim. &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 3&#039;&#039;&#039;: &amp;lt;math&amp;gt;2B+C \leq 160&amp;lt;/math&amp;gt;.   &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039;: There are 160 lines connecting one &amp;quot;C&amp;quot; point to two &amp;quot;B&amp;quot; points (e.g. 11112, 11122, 11132); each &amp;quot;C&amp;quot; point lies in two of these, and each &amp;quot;B&amp;quot; point lies on four.  A Moser set can have at most two points out of each of these lines.  Double counting then gives the claim.  &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 4&#039;&#039;&#039; Given m A-points with &amp;lt;math&amp;gt;m \geq 5&amp;lt;/math&amp;gt;, there exists at least m-4 pairs (a,b) of such A-points with Hamming distance exactly two (i.e. b differs from a in exactly two places).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; It suffices to check this for m=5, since the case of larger m then follows by locating a pair, removing a point that contributes to that pair, and using the induction hypothesis.  Given 5 A-points, we may assume by the pigeonhole principle and symmetry that at least three of them have an odd number of 1s.  Suppose 11111 is one of the points, and that no pair has Hamming distance 2. All points with two 3s are excluded, so the only points allowed with an odd number of 1s are those with four 3s. But all those points differ from each other in two positions, so at most one of them is allowed.  &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Corollary 5&#039;&#039;&#039; &amp;lt;math&amp;gt;C \leq 79&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039;: Suppose for contradiction that C=80, then D=0 and &amp;lt;math&amp;gt;B \leq 40&amp;lt;/math&amp;gt;.  From Lemma 4 we also see that A cannot exceed 5, leading to the contradiction.&lt;br /&gt;
&amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Define the &#039;&#039;&#039;score&#039;&#039;&#039; of a Moser set in &amp;lt;math&amp;gt;[3]^4&amp;lt;/math&amp;gt; to be the quantity &amp;lt;math&amp;gt;a + 5b/4 + 5c/3 + 5d/2 + 5e&amp;lt;/math&amp;gt;.  Double-counting (and Lemma 2) gives&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 5&#039;&#039;&#039;  The total score of all the ten side-slices of &amp;lt;math&amp;gt;{\mathcal A}&amp;lt;/math&amp;gt; is equal to &amp;lt;math&amp;gt;5|{\mathcal A}| = 5 \times 125&amp;lt;/math&amp;gt;.  In particular, there exists a pair of opposite side-slices whose scores add up to at least 125.&lt;br /&gt;
&lt;br /&gt;
By Lemma 5 and symmetry, we may assume that the 1**** and 3**** slices have score adding up to at least 125.  By Lemma 2, the 2**** slice has at most 41 points, which imply that the 1**** and 3**** have 41, 42, or 43 points.  From the [http://spreadsheets.google.com/ccc?key=p5T0SktZY9DuqNcxJ171Bbw&amp;amp;hl=en n=4 statistics] we know that all 41-point, 42-point, 43-point slices have score less than 62, with the following exceptions:&lt;br /&gt;
&lt;br /&gt;
# (2,16,24,0,0) [42 points, score: 62]&lt;br /&gt;
# (4,16,23,0,0) [43 points, score: 62 1/3]&lt;br /&gt;
# (4,15,24,0,0) [43 points, score: 62 3/4]&lt;br /&gt;
# (3,16,24,0,0) [43 points, score: 63]&lt;br /&gt;
&lt;br /&gt;
Thus the 1**** and 3**** slices must from the above list.  Furthermore, if one of the slices is of type 1, then the other must be of type 4, and if one slice is of type 2, then the other must be of type 3 or 4.&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 6&#039;&#039;&#039; There exists one cut in which the side slices have total score strictly greater than 125 (i.e. they thus involve only Type 2, Type 3, and Type 4 slices, with at least one side slice not equal to Type 2, and the cut here is of the form 43+39+43).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; If not, then all cuts have side slices exactly equal to 125, which by the above table implies that one is Type 1 and one is Type 4, in particular all side slices have c=24.  But this forces C=80, contradicting Corollary 5. &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Adding up the corners we conclude&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Corollary 6&#039;&#039;&#039; &amp;lt;math&amp;gt;6 \leq A \leq 8&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 7&#039;&#039;&#039; &amp;lt;math&amp;gt;D=0&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; Firstly, from Lemma 6 we have a cut in which the two side slices are omitting at most one C-point between them (and have no D-point), which forces the middle slice to have at most one D-point; thus D is at most 1.&lt;br /&gt;
&lt;br /&gt;
Now suppose instead that D=1 (e.g. if 11222 was in the set); then there would be two choices of coordinates in which one of the side slices would have d=1 (e.g. 1**** and *1****). But the [http://spreadsheets.google.com/ccc?key=p5T0SktZY9DuqNcxJ171Bbw&amp;amp;hl=en n=4 statistics] show that such slices have a score of at most 59 7/12, so that the total score from those two coordinates is at most 63 + 59 7/12 = 122 7/12. On the other hand, the other three slices have a net score of at most 63+63 = 126. This averages out to at most 124.633... &amp;lt; 125, a contradiction.  &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Corollary 7&#039;&#039;&#039; Every middle slice has at most 40 points.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; From Lemma 7 we see that the middle slice must have c=0, but from the n=4 statistics this is not possible for any slice of size 41 or higher (alternatively, one can use the inequalities &amp;lt;math&amp;gt;4a+b \leq 64&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;b \leq 32&amp;lt;/math&amp;gt;). &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Each middle slice now has 39 or 40 points, with c=d=e=0, and so from the inequalities &amp;lt;math&amp;gt;4a+b \leq 64&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;b \leq 32&amp;lt;/math&amp;gt; must have statistics (8,32,0,0,0),(7,32,0,0,0), or (8,31,0,0,0).  In particular the &amp;quot;a&amp;quot; index of the middle slices is at most 8.  Summing over all middle slices we conclude&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 9&#039;&#039;&#039; B is at most 40.&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Lemma 10&#039;&#039;&#039; C is equal to 78 or 79.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proof&#039;&#039;&#039; By Corollary 5, it suffices to show that &amp;lt;math&amp;gt;C \geq 78&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
As 125=43+39+43, we see that every center slice must have at least 39 points. By Lemma 2 and Lemma 7 the center slice has c=d=e=0, thus the center slice has a+b &amp;gt;= 39.  On the other hand, from the n=4 theory we have 4a+b &amp;lt;= 64, which forces b &amp;gt;= 31.&lt;br /&gt;
&lt;br /&gt;
By double counting, we see that 2C is equal to the sum of the b&#039;s of all the five center slices.  Thus C &amp;gt;= 5*31/2 = 77.5 and the claim follows.  &amp;lt;math&amp;gt;\Box&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
From Lemmas 9 and 10 we see that &amp;lt;math&amp;gt;B+C \leq 119&amp;lt;/math&amp;gt;, and thus &amp;lt;math&amp;gt;A \geq 6&amp;lt;/math&amp;gt;.  Also, if &amp;lt;math&amp;gt;A \geq 7&amp;lt;/math&amp;gt;, then by Lemma 4 we have at least three pairs of A points with Hamming distance 2.  At most two of these pairs eliminate the same C point, so we would have C=78 in that case.  &lt;br /&gt;
&lt;br /&gt;
Putting all the above facts together, we see that (A,B,C,D,E,F) must be one of the following triples:&lt;br /&gt;
&lt;br /&gt;
* (6,40,79,0,0,0)&lt;br /&gt;
* (7,40,78,0,0,0)&lt;br /&gt;
* (8,39,78,0,0,0)&lt;br /&gt;
&lt;br /&gt;
All three cases can be eliminated, giving &amp;lt;math&amp;gt;c&#039;_5=124&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== Elimination of (6,40,79,0,0,0) ===&lt;br /&gt;
&lt;br /&gt;
Look at the 6 A points.  From Lemma 4 we have at least two pairs (a,b), (c,d) of A-points that have Hamming separation 2.&lt;br /&gt;
&lt;br /&gt;
Now look at the midpoints of these two pairs; these midpoints are C-points cannot lie in the set.  But we have exactly one C-point missing from the set, thus the midpoints must be the same.  By symmetry, we may thus assume that the two pairs are (11111,11133) and (11113,11131).  Thus 11111,11133, 11113, 11131 are in the set, and so every C-point other than 11122 is in the set.  On the other hand, the B-points 11121, 11123, 11112, 11132 lie outside the set.&lt;br /&gt;
&lt;br /&gt;
At most one of 11312, 11332 lie in the set (since 11322 lies in the set).   Suppose that 11312 lies outside the set, then we have a pair (xy1z2, xy3z2) with x,y,z = 1,3 that is totally omitted from the set, namely (11112,11312).  On the other hand, every other pair of this form can have at most point in the set, thus there are at most seven points in the set of the form (xyzw2) with x,y,z,w = 1,3.  Similarly there are at most 8 points of the form xyz2w, or of xy2zw, x2yzw, 2xyzw, leading to at most 39 B-points in all, contradiction.&lt;br /&gt;
&lt;br /&gt;
=== Elimination of (7,40,78,0,0,0) ===&lt;br /&gt;
&lt;br /&gt;
By Lemma 4, we have at least three pairs of A-points of distance two apart that lie in the set.&lt;br /&gt;
The midpoints of these pairs are C-points that do not lie in the set; but there are only two such C-points, thus two pairs must have the same midpoint, so we may assume as before that 111xy lies in the set for x,y=1,3, which implies that 1112* and 111*2 lie outside the set.&lt;br /&gt;
&lt;br /&gt;
Now consider the 160 lines between 2 B points and one C point (cf. Lemma 3).  The sum of all the points in each such line (counting multiplicity) is 4B+2C = 316.  On the other hand, every one of the 160 lines can have at most two points, and four of these lines (namely 1112*, 111*2) have no points.  Thus all the other lines must have exactly two points.  &lt;br /&gt;
&lt;br /&gt;
We know that the C-point 11122 is missing from the set; there is one other missing C-point.  Since 1112x, 111x2 lie outside the set, we conclude from the previous paragraph that 1132x, 113x2 and 1312x, 131x2 lie in the set.  Taking midpoints we conclude that 11322 and 13122 lie outside the set.  But this is now three C-points missing (together with 11122), a contradiction.&lt;br /&gt;
&lt;br /&gt;
=== Elimination of (8,39,78,0,0,0) ===&lt;br /&gt;
&lt;br /&gt;
By Lemma 4 we have at least four pairs of A-points of distance two apart that lie in the set. The midpoints of these pairs are C-points that do not lie in the set; but there are only two such C-points, thus two pairs (a,b), (c,d) must have the same midpoint p, and the other two pairs (a&#039;,b&#039;), (c&#039;,d&#039;) must also have the same midpoint p&#039;.  (Note that every C-point is the midpoint of at most two such pairs.)&lt;br /&gt;
&lt;br /&gt;
Now consider the 160 lines between 2 B points and one C point (cf. Lemma 3).  The sum of all the points in each such line (counting multiplicity) is 4B+2C = 312.  Every one of the 160 lines can have at most two points, and four of these (those in the plane of (a,b,c,d) or of (a&#039;,b&#039;,c&#039;,d&#039;) have no points.  Thus all other lines must have exactly two points.&lt;br /&gt;
&lt;br /&gt;
Without loss of generality we have (a,b)=(11111,11133), (c,d) = (11113,11131), thus p = 11122.  By permuting the first three indices, we may assume that p&#039; is not of the form x2y2z, x2yz2, xy22z, xy2z2.  Then 1112x lies outside the set and 1122x lies in the set, so by the above paragraph 1132x lies in the set; similarly for 113x2, 1312x, 131x2.  This implies that 13122, 11322 lie outside the set, but this (together with 11122) shows that at least three C-points are missing, a contradiction.&lt;br /&gt;
&lt;br /&gt;
== General n ==&lt;br /&gt;
&lt;br /&gt;
General solution for &amp;lt;math&amp;gt;c&#039;_N&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* q 2s, all points from A(N-q,1)&lt;br /&gt;
* q-1 2s, points from A(N-q+1,2)&lt;br /&gt;
* q-2 2s, points from A(N-q+2,3)&lt;br /&gt;
* etc.&lt;br /&gt;
&lt;br /&gt;
where A(m,d) is a subset of &amp;lt;math&amp;gt;[1,3]^m&amp;lt;/math&amp;gt; for which any two points differ from each other in at least d places.&lt;br /&gt;
&lt;br /&gt;
Mathworld’s entry on error-correcting codes suggests it might be NP-complete to find the size of A(m,d) in general.&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;math&amp;gt;|A(m,1)| = 2^m&amp;lt;/math&amp;gt; because it includes all points in &amp;lt;math&amp;gt;[1,3]^m&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;|A(m,2)| = 2^{m-1}&amp;lt;/math&amp;gt; because it can include all points in &amp;lt;math&amp;gt;[1,3]^m&amp;lt;/math&amp;gt; with an odd number of 1s&lt;br /&gt;
&lt;br /&gt;
Here are some [[Maple calculations]].&lt;br /&gt;
&lt;br /&gt;
A [[genetic algorithm]] has provided the following examples:&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;math&amp;gt;c&#039;_6 \geq 353&amp;lt;/math&amp;gt; (26 examples; [http://twofoldgaze.wordpress.com/2009/03/10/353-element-solution/ here is one])&lt;br /&gt;
* &amp;lt;math&amp;gt;c&#039;_7 \geq 988&amp;lt;/math&amp;gt; [http://twofoldgaze.wordpress.com/2009/03/10/978-element-solution/ Here is the example]&lt;br /&gt;
&lt;br /&gt;
== Variants ==&lt;br /&gt;
&lt;br /&gt;
A lower bound for Moser’s cube k=4 (values 0,1,2,3) is:&lt;br /&gt;
q entries are 1 or 2; or q-1 entries are 1 or 2 and an odd number of entries are 0.  This gives a lower bound of&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\binom{n}{n/2} 2^n + \binom{n}{n/2-1} 2^{n-1}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
which is comparable to &amp;lt;math&amp;gt;4^n/\sqrt{n}&amp;lt;/math&amp;gt; by [[Stirling&#039;s formula]].&lt;br /&gt;
&lt;br /&gt;
For k=5 (values 0,1,2,3,4) If A, B, C, D, and E denote the numbers of 0-s, 1-s, 2-s, 3-s, and 4-s then the first three points of a geometric line form a 3-term arithmetic progression in A+E+2(B+D)+3C. So, for k=5 we have a similar lower bound for the Moser’s problem as for DHJ k=3, i.e. &amp;lt;math&amp;gt;5^{n - O(\sqrt{\log n})}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
The k=6 version of Moser implies DHJ(3).  Indeed, any k=3 combinatorial line-free set can be &amp;quot;doubled up&amp;quot; into a k=6 geometric line-free set of the same density by pulling back the set from the map &amp;lt;math&amp;gt;\phi: [6]^n \to [3]^n&amp;lt;/math&amp;gt; that maps 1, 2, 3, 4, 5, 6 to 1, 2, 3, 3, 2, 1 respectively; note that this map sends k=6 geometric lines to k=3 combinatorial lines.&lt;/div&gt;</summary>
		<author><name>121.220.134.232</name></author>
	</entry>
</feed>