on January 26, 2009 by lieven in games, numbers, Comments (0)
On2 : Conway’s nim-arithmetics
Last time we did recall Cantor’s addition and multiplication on ordinal numbers. Note that we can identify an ordinal number
with (the order type of) the set of all strictly smaller ordinals, that is,
. Given two ordinals
and
we will denote their Cantor-sums and products as
and
.
The reason for these square brackets is that John Conway constructed a well behaved nim-addition and nim-multiplication on all ordinals
by imposing the ’simplest’ rules which make
into a field. By this we mean that, in order to define the addition
we must have constructed before all sums
and
with
and
. If + is going to be a well-defined addition on
clearly
cannot be equal to one of these previously constructed sums and the ’simplicity rule’ asserts that we should take
the least ordinal different from all these sums
and
. In symbols, we define

where
stands for ‘minimal excluded value’. If you’d ever played the game of Nim you will recognize this as the Nim-addition, at least when
and
are finite ordinals (that is, natural numbers) (to nim-add two numbers n and m write them out in binary digits and add without carrying). Alternatively, the nim-sum n+m can be found applying the following two rules :
- the nim-sum of a number of distinct 2-powers is their ordinary sum (e.g.
, and, - the nim-sum of two equal numbers is 0.
So, all we have to do is to write numbers n and m as sums of two powers, scratch equal terms and add normally. For example,
(of course this is just digital sum without carry in disguise).
Here’s the beginning of the nim-addition table on ordinals. For example, to define
we have to look at all values in the first 7 entries of the row of 13 (that is,
) and the first 13 entries in the column of 7 (that is,
) and find the first number not included in these two sets (which is indeed
).
In fact, the above two rules allow us to compute the nim-sum of any two ordinals. Recall from last time that every ordinal can be written uniquely as as a finite sum of (ordinal) 2-powers :
, so to determine the nim-sum
we write both ordinals as sums of ordinal 2-powers, delete powers appearing twice and take the Cantor ordinal sum of the remaining sum.
Nim-multiplication of ordinals is a bit more complicated. Here’s the definition as a minimal excluded value
for all
. The rationale behind this being that both
and
are non-zero elements, so if
is going to be a field under nim-multiplication, their product should be non-zero (and hence strictly greater than 0), that is,
. Rewriting this we get
and again the ’simplicity rule’ asserts that
should be the least ordinal satisfying all these inequalities, leading to the
-definition above. The table gives the beginning of the nim-multiplication table for ordinals. For finite ordinals n and m there is a simple 2 line procedure to compute their nim-product, similar to the addition-rules mentioned before :
- the nim-product of a number of distinct Fermat 2-powers (that is, numbers of the form
) is their ordinary product (for example,
), and, - the square of a Fermat 2-power is its sesquimultiple (that is, the number obtained by multiplying with
in the ordinary sense). That is,
Using these rules, associativity and distributivity and our addition rules it is now easy to work out the nim-multiplication
: write out n and m as sums of (multiplications by 2-powers) of Fermat 2-powers and apply the rules. Here’s an example

Clearly, we’d love to have a similar procedure to calculate the nim-product
of arbitrary ordinals, or at least those smaller than
(recall that Conway proved that this ordinal is isomorphic to the algebraic closure
of the field of two elements). From now on we restrict to such ’small’ ordinals and we introduce the following special elements :
(these are the Fermat 2-powers) and for all primes
we define
where
is the number of primes strictly smaller than
(that is, for p=3 we have k=1, for p=5, k=2 etc.).
Again by associativity and distributivity we will be able to multiply two ordinals
if we know how to multiply a product
with
and
.
Now,
can be written uniquely as
with t and all
natural numbers. Write each
in base
where
is the
-th prime number, that is, we have for
an expression
with 
The point of all this is that any of the special elements we want to multiply can be written as a unique expression as a decreasing product
![[\omega^{\alpha}.2^{n_0}] = [ \prod_q \kappa_q^m(q) ] [\omega^{\alpha}.2^{n_0}] = [ \prod_q \kappa_q^m(q) ]](/latexrender/pictures/3c5c0b87c4fa32846314c8195419e7f5.gif)
where
runs over all prime powers. The crucial fact now is that for this decreasing product we have a rule similar to addition of 2-powers, that is Conway-products coincide with the Cantor-products
![[ \prod_q \kappa_q^m(q) ] = \prod_q \kappa_q^m(q) [ \prod_q \kappa_q^m(q) ] = \prod_q \kappa_q^m(q)](/latexrender/pictures/dce5e079397fc9f067b9469a4b803a8a.gif)
But then, using associativity and commutativity of the Conway-product we can ‘nearly’ describe all products
. The remaining problem being that it may happen that for some q we will end up with an exponent
. But this can be solved if we know how to take p-powers. The rules for this are as follows
, for 2-powers, and,
for a prime
and for
, and finally
for a prime
, where
is the smallest ordinal
which cannot be written as a p-power
with
. Summarizing : if we will be able to find these mysterious elements
for all prime numbers p, we are able to multiply in
.
Let us determine the first one. We have that
so we are looking for the smallest natural number
which cannot be written in num-multiplication as
for
(that is, also
a natural number). Clearly
but what about 2? Can 2 be a third root of a natural number wrt. nim-multiplication? From the tabel above we see that 2 has order 3 whence its cube root must be an element of order 9. Now, the only finite ordinals that are subfields of
are precisely the Fermat 2-powers, so if there is a finite cube root of 2, it must be contained in one of the finite fields
(of which the mutiplicative group has order
and one easily shows that 9 cannot be a divisor of any of the numbers
, that is, 2 doesn’t have a finte 3-th root in nim! Phrased differently, we found our first mystery number
. That is, we have the marvelous identity in nim-arithmetic

Okay, so what is
? Well, we have
and we have to look for the smallest ordinal which cannot be written as a 5-th root. By inspection of the finite nim-table we see that 1,2 and 3 have 5-th roots in
but 4 does not! The reason being that 4 has order 15 (check in the finite field [16]) and 25 cannot divide any number of the form
. That is,
giving another crazy nim-identity

And, surprises continue to pop up… Conway showed that
giving the nim-identity
. The proof of this already uses some clever finite field arguments. Because 7 doesn’t divide any number
, none of the finite subfields
contains a 7-th root of unity, so the 7-power map is injective whence surjective, so all finite ordinal have finite 7-th roots! That is,
. Because
lies in a cubic extension of the finite field [4], the field generated by
has 64 elements and so its multiplicative group is cyclic of order 63 and as
has order 9, it must be a 7-th power in this field. But, as the only 7th powers in that field are precisely the powers of
and by inspection
is not a 7-th power in that field (and hence also not in any field extension obtained by adjoining square, cube and fifth roots) so
.
Conway did stop at
but I’ve always been intrigued by that one line in ONAG p.61 : “Hendrik Lenstra has computed
for
“. Next time we will see how Lenstra managed to do this and we will use sage to extend his list a bit further, including the first open case :
.
For an enjoyable video on all of this, see Conway’s MSRI lecture on Infinite Games. The nim-arithmetic part is towards the end of the lecture but watching the whole video is a genuine treat!








No Comments
Leave a comment