The Game of Euclid:
This is a game played by two people. Beginning with two positive integers, the players alternate turns making moves of the following type:
A player can move from the pair of positive integers {x,y} to any of the pairs {x-ty,y} whereThe winner is the one that first makes one element zero.is an integer and
. Thus, you can subtract any multiple of the smaller number from the larger number, provided you still have two nonnegative numbers.
The question of who wins depends on the ratio x/y and the golden ratio
.
Define nonnegative integers m and r such that x=my+r,
with
and
.
Proof: If
then
Proof: Follows from Lemma 1:
we have x=y+r so
since
.
Proof: If m=1 then leaving y and x-y=r satisfies the conclusion.
If m>1 then leaving y and r or leaving y and y+r are
both valid moves.
The conclusion follows from Lemma 1.