Nimber

Get Nimber essential facts below. View Videos or join the Nimber discussion. Add Nimber to your PopFlock.com topic list for future reference or share this resource on social media.

## Uses

### Nim

### Cram

### Northcott's Game

### Hackenbush

## Addition

## Multiplication

## Addition and multiplication tables

## See also

## Notes

## References

This article uses material from the Wikipedia page available here. It is released under the Creative Commons Attribution-Share-Alike License 3.0.

Nimber

This article has multiple issues. Please help or discuss these issues on the talk page. (Learn how and when to remove these template messages)
(Learn how and when to remove this template message) |

In mathematics, the **nimbers**, also called **Grundy numbers**, are introduced in combinatorial game theory, where they are defined as the values of heaps in the game Nim. The nimbers are the ordinal numbers endowed with **nimber addition** and **nimber multiplication**, which are distinct from ordinal addition and ordinal multiplication.

Because of the Sprague-Grundy theorem which states that every impartial game is equivalent to a Nim heap of a certain size, nimbers arise in a much larger class of impartial games. They may also occur in partisan games like Domineering.

Nimbers have the characteristic that their Left and Right options are identical, following a certain schema, and that they are their own negatives, such that a positive ordinal may be added to another positive ordinal using **nimber addition** to find an ordinal of a lower value.^{[1]} The minimum excludant operation is applied to sets of nimbers.

Nim is a game in which two players take turns removing objects from distinct heaps. As moves depend only on the position and not on which of the two players is currently moving, and where the payoffs are symmetric, Nim is an impartial game. On each turn, a player must remove at least one object, and may remove any number of objects provided they all come from the same heap. The goal of the game is to avoid being the player who must remove the last object. Using nimber addition, each heap can be summed together to give a nim value for the heap. Furthermore, as all the heaps together can be summed using nim addition, one can calculate the nimber of the game as a whole. The winning strategy of this game is to force the cumulative nimber of the game to 0 for the opponents turn.^{[2]}

Cram is a game often played on a rectangular board in which players take turns placing dominoes either horizontally or vertically until no more dominoes can be placed. The first player that cannot make a move loses. As the possible moves for both players are the same, it is an impartial game and can have a nimber value. If each row and column is considered a heap, then the value of the game is the sum of all rows and columns using nimber addition. For example, any 2xn board will have a nimber of 0 for all even n and a nimber of 1 for all odd n.

A game where pegs for each player are placed along a column with a finite number of spaces. Each turn each player must move the piece up or down the column, but may not move past the other player's piece. Several columns are stacked together to add complexity. The player that can no longer make any moves loses. Unlike many other nimber related games, the number of spaces between the two tokens on each row are the sizes of the Nim heaps. If your opponent increases the number of spaces between two tokens, just decrease it on your next move. Else, play the game of Nim and make the Nim-sum of the number of spaces between the tokens on each row be 0.^{[3]}

Hackenbush is a game invented by mathematician John Horton Conway. It may be played on any configuration of colored line segments connected to one another by their endpoints and to a "ground" line. players take turns removing line segments. An impartial game version, thereby a game able to be analyzed using nimbers can be found by removing distinction from the lines, allowing either player to cut any branch. Any segments reliant on the newly removed segment in order to connect to the ground line are removed as well. In this way, each connection to the ground can be considered a nim heap with a nimber value. Additionally, all the separate connections to the ground line can also be summed for a nimber of the game state.

Nimber addition (also known as **nim-addition**) can be used to calculate the size of a single nim heap equivalent to a collection of nim heaps. It is defined recursively by

*?*?*?*= mex({*?*? ?*?*:*?'*<*?*} ? {*?*?*?*? :*?*? <*?*}),

where the minimum excludant mex(*S*) of a set *S* of ordinals is defined to be the smallest ordinal that is *not* an element of *S*.

For finite ordinals, the **nim-sum** is easily evaluated on a computer by taking the bitwise exclusive or (XOR, denoted by ?) of the corresponding numbers. For example, the nim-sum of 7 and 14 can be found by writing 7 as 111 and 14 as 1110; the ones place adds to 1; the twos place adds to 2, which we replace with 0; the fours place adds to 2, which we replace with 0; the eights place adds to 1. So the nim-sum is written in binary as 1001, or in decimal as 9.

This property of addition follows from the fact that both mex and XOR yield a winning strategy for Nim and there can be only one such strategy; or it can be shown directly by induction: Let *?* and *?* be two finite ordinals, and assume that the nim-sum of all pairs with one of them reduced is already defined. The only number whose XOR with *?* is *?* ? *?* is *?*, and vice versa; thus *?* ? *?* is excluded. On the other hand, for any ordinal *?* < *?* ? *?*, XORing *?* ? *?* ? *?* ? *?* with all of *?*, *?* and *?* must lead to a reduction for one of them (since the leading 1 in *?* must be present in at least one of the three); since *?* ? *?* = *?* ? *?* > *?*, we must have *?* > *?* ? *?* = *?* ? *?* or *?* > *?* ? *?* = *?* ? *?*; thus *?* is included as (*?* ? *?*) ? *?* or as ? ? (? ? ?), and hence *?* ? *?* is the minimum excluded ordinal.

Nimber multiplication (**nim-multiplication**) is defined recursively by

*?**?*= mex({*?*?*?*?*?**?*? ?*?'**?*? :*?*? <*?*,*?*? <*?*}).

Except for the fact that nimbers form a proper class and not a set, the class of nimbers determines an algebraically closed field of characteristic 2. The nimber additive identity is the ordinal 0, and the nimber multiplicative identity is the ordinal 1. In keeping with the characteristic being 2, the nimber additive inverse of the ordinal *?* is *?* itself. The nimber multiplicative inverse of the nonzero ordinal *?* is given by 1/*?* = mex(*S*), where *S* is the smallest set of ordinals (nimbers) such that

- 0 is an element of
*S*; - if 0 <
*?*? <*?*and*?*? is an element of*S*, then [1 + ( - ?) ] / is also an element of*S*.

For all natural numbers *n*, the set of nimbers less than 2^{2n} form the Galois field GF(2^{2n}) of order 2^{2n}.

In particular, this implies that the set of finite nimbers is isomorphic to the direct limit as *n* -> ? of the fields GF(2^{2n}). This subfield is not algebraically closed, since no other field GF(2^{k}) (so with *k* not a power of 2) is contained in any of those fields, and therefore not in their direct limit; for instance the polynomial *x*^{3} + *x* + 1, which has a root in GF(2^{3}), does not have a root in the set of finite nimbers.

Just as in the case of nimber addition, there is a means of computing the nimber product of finite ordinals. This is determined by the rules that

- The nimber product of a Fermat 2-power (numbers of the form 2
^{2n}) with a smaller number is equal to their ordinary product; - The nimber square of a Fermat 2-power
*x*is equal to 3*x*/2 as evaluated under the ordinary multiplication of natural numbers.

The smallest algebraically closed field of nimbers is the set of nimbers less than the ordinal *?*^{??}, where *?* is the smallest infinite ordinal. It follows that as a nimber, *?*^{??} is transcendental over the field.^{[4]}

The following tables exhibit addition and multiplication among the first 16 nimbers.

This subset is closed under both operations, since 16 is of the form 2^{2n}.
(If you prefer simple text tables, they are here.)

**^***Advances in computer games : 14th International Conference, ACG 2015, Leiden, the Netherlands, July 1-3, 2015, Revised selected papers*. Herik, Jaap van den,, Plaat, Aske,, Kosters, Walter. Cham. 2015-12-24. ISBN 978-3319279923. OCLC 933627646.CS1 maint: others (link)**^**Anany., Levitin (2012).*Introduction to the design & analysis of algorithms*(3rd ed.). Boston: Pearson. ISBN 9780132316811. OCLC 743298766.**^**"Theory of Impartial Games" (PDF). Feb 3, 2009.**^**Conway 1976, p. 61.

- Conway, John Horton (1976).
*On Numbers and Games*. Academic Press Inc. (London) Ltd. - Lenstra, H. W. (1978).
*Nim multiplication*. Report IHES/M/78/211. Institut des hautes études scientifiques. hdl:1887/2125. - Schleicher, Dierk; Stoll, Michael (2004). "An Introduction to Conway's Games and Numbers". arXiv:math.DO/0410026. which discusses games, surreal numbers, and nimbers.

This article uses material from the Wikipedia page available here. It is released under the Creative Commons Attribution-Share-Alike License 3.0.

Popular Products

Music Scenes

Popular Artists