department of mathematical sciences - conway’s …maths.dur.ac.uk/~bmjg46/conwaysarmy.pdfdept of...

44
Anthony Yeates Dept of Mathematical Sciences, March 2018 Conway’s Army

Upload: others

Post on 03-Aug-2020

3 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Department of Mathematical Sciences - Conway’s …maths.dur.ac.uk/~bmjg46/conwaysarmy.pdfDept of Mathematical Sciences, March 2018 Conway’s Army Conway’s Army Aim Reach target

Anthony Yeates

Dept of Mathematical Sciences, March 2018

Conway’s Army

Page 2: Department of Mathematical Sciences - Conway’s …maths.dur.ac.uk/~bmjg46/conwaysarmy.pdfDept of Mathematical Sciences, March 2018 Conway’s Army Conway’s Army Aim Reach target
Page 3: Department of Mathematical Sciences - Conway’s …maths.dur.ac.uk/~bmjg46/conwaysarmy.pdfDept of Mathematical Sciences, March 2018 Conway’s Army Conway’s Army Aim Reach target

Conway’s Army AimReach target x above the line. StartPlace as many pegs as you like, anywhere below the line. Legal movesJump left/right or up/down into empty square, with capture.

Page 4: Department of Mathematical Sciences - Conway’s …maths.dur.ac.uk/~bmjg46/conwaysarmy.pdfDept of Mathematical Sciences, March 2018 Conway’s Army Conway’s Army Aim Reach target

Conway’s Army AimReach target x above the line. StartPlace as many pegs as you like, anywhere below the line. Legal movesJump left/right or up/down into empty square, with capture.

Page 5: Department of Mathematical Sciences - Conway’s …maths.dur.ac.uk/~bmjg46/conwaysarmy.pdfDept of Mathematical Sciences, March 2018 Conway’s Army Conway’s Army Aim Reach target

Level 1

Page 6: Department of Mathematical Sciences - Conway’s …maths.dur.ac.uk/~bmjg46/conwaysarmy.pdfDept of Mathematical Sciences, March 2018 Conway’s Army Conway’s Army Aim Reach target

Level 2

Page 7: Department of Mathematical Sciences - Conway’s …maths.dur.ac.uk/~bmjg46/conwaysarmy.pdfDept of Mathematical Sciences, March 2018 Conway’s Army Conway’s Army Aim Reach target

Level 2

Page 8: Department of Mathematical Sciences - Conway’s …maths.dur.ac.uk/~bmjg46/conwaysarmy.pdfDept of Mathematical Sciences, March 2018 Conway’s Army Conway’s Army Aim Reach target

Level 2

Page 9: Department of Mathematical Sciences - Conway’s …maths.dur.ac.uk/~bmjg46/conwaysarmy.pdfDept of Mathematical Sciences, March 2018 Conway’s Army Conway’s Army Aim Reach target

Level 3

Page 10: Department of Mathematical Sciences - Conway’s …maths.dur.ac.uk/~bmjg46/conwaysarmy.pdfDept of Mathematical Sciences, March 2018 Conway’s Army Conway’s Army Aim Reach target

Level 1 2 pegs

Level 2 4 pegs

Level 3 8 pegs

Level 4 ?

Level 1 2 pegs

Level 2 4 pegs

Level 3 8 pegs

Level 4 20 pegs!

Minimum number of pegs required

Page 11: Department of Mathematical Sciences - Conway’s …maths.dur.ac.uk/~bmjg46/conwaysarmy.pdfDept of Mathematical Sciences, March 2018 Conway’s Army Conway’s Army Aim Reach target

Level 4

Page 12: Department of Mathematical Sciences - Conway’s …maths.dur.ac.uk/~bmjg46/conwaysarmy.pdfDept of Mathematical Sciences, March 2018 Conway’s Army Conway’s Army Aim Reach target

John Horton Conway (b. 1937)

Page 13: Department of Mathematical Sciences - Conway’s …maths.dur.ac.uk/~bmjg46/conwaysarmy.pdfDept of Mathematical Sciences, March 2018 Conway’s Army Conway’s Army Aim Reach target

Conway’s Game of Life

qualityswdev.com

Page 14: Department of Mathematical Sciences - Conway’s …maths.dur.ac.uk/~bmjg46/conwaysarmy.pdfDept of Mathematical Sciences, March 2018 Conway’s Army Conway’s Army Aim Reach target

Conway’s Game of Life

Page 15: Department of Mathematical Sciences - Conway’s …maths.dur.ac.uk/~bmjg46/conwaysarmy.pdfDept of Mathematical Sciences, March 2018 Conway’s Army Conway’s Army Aim Reach target

Conway’s Game of Life

Page 16: Department of Mathematical Sciences - Conway’s …maths.dur.ac.uk/~bmjg46/conwaysarmy.pdfDept of Mathematical Sciences, March 2018 Conway’s Army Conway’s Army Aim Reach target

Conway’s Game of Life

Page 17: Department of Mathematical Sciences - Conway’s …maths.dur.ac.uk/~bmjg46/conwaysarmy.pdfDept of Mathematical Sciences, March 2018 Conway’s Army Conway’s Army Aim Reach target

Conway’s Game of Life

Page 18: Department of Mathematical Sciences - Conway’s …maths.dur.ac.uk/~bmjg46/conwaysarmy.pdfDept of Mathematical Sciences, March 2018 Conway’s Army Conway’s Army Aim Reach target

John Horton Conway (b. 1937)

Claim. It is impossible to reach level 5 (or higher) with a finite number of pegs.

Page 19: Department of Mathematical Sciences - Conway’s …maths.dur.ac.uk/~bmjg46/conwaysarmy.pdfDept of Mathematical Sciences, March 2018 Conway’s Army Conway’s Army Aim Reach target

Proof?1. Create a polynomial to encode the board position.

Label all other holes by xd, where d is “taxicab distance” from target.

Label target hole 1 (= x0).x0

x1 x2x2

x2

x3x3

x3

x3

x3

x4x4

x4

x4

x4

x4

x4

x5x5

x5

x5

x5

x5

x5

x5

x5

x6

x6

x6

x6

x6

x6

x6

x6

x6

x7

x7

x7

x7

x7

x7

x7

x7

x7

To encode a position, add the terms for the corresponding pegs.

Page 20: Department of Mathematical Sciences - Conway’s …maths.dur.ac.uk/~bmjg46/conwaysarmy.pdfDept of Mathematical Sciences, March 2018 Conway’s Army Conway’s Army Aim Reach target

x2

x3

x3x4p(x) = x2 + 2x3 + x4

x3x4

x1

p(x) = x+ x3 + x4

x1

x2

p(x) = x+ x2

e.g.

p(x) = 1

x0

Page 21: Department of Mathematical Sciences - Conway’s …maths.dur.ac.uk/~bmjg46/conwaysarmy.pdfDept of Mathematical Sciences, March 2018 Conway’s Army Conway’s Army Aim Reach target

a) “Positive jump” - towards target.

2. Analyse the effect of the possible moves.

x3

x4

x5

pnew(x)� pold(x) = x3 � x4 � x5

Page 22: Department of Mathematical Sciences - Conway’s …maths.dur.ac.uk/~bmjg46/conwaysarmy.pdfDept of Mathematical Sciences, March 2018 Conway’s Army Conway’s Army Aim Reach target

a) “Positive jump” - towards target.

2. Analyse the effect of the possible moves.

xd-1xd

xd-2

pnew(x)� pold(x) = xd�2 � xd�1 � xd

= xd�2�1� x� x2)

Page 23: Department of Mathematical Sciences - Conway’s …maths.dur.ac.uk/~bmjg46/conwaysarmy.pdfDept of Mathematical Sciences, March 2018 Conway’s Army Conway’s Army Aim Reach target

b) “Negative jump” - away from target.

xd xd+1 xd+2

pnew(x)� pold(x) = xd+2 � xd+1 � xd

= xd�x2 � x� 1

Page 24: Department of Mathematical Sciences - Conway’s …maths.dur.ac.uk/~bmjg46/conwaysarmy.pdfDept of Mathematical Sciences, March 2018 Conway’s Army Conway’s Army Aim Reach target

c) “Neutral jump” - remain same distance from target.

xd-1 xd xd

pnew(x)� pold(x) = �xd�1

Page 25: Department of Mathematical Sciences - Conway’s …maths.dur.ac.uk/~bmjg46/conwaysarmy.pdfDept of Mathematical Sciences, March 2018 Conway’s Army Conway’s Army Aim Reach target

Positive jump:

pnew(x)� pold(x) = �xd�1

Negative jump:

Neutral jump:

pnew(x)� pold(x) = xd�2�1� x� x2

pnew(x)� pold(x) = xd�x2 � x� 1

Page 26: Department of Mathematical Sciences - Conway’s …maths.dur.ac.uk/~bmjg46/conwaysarmy.pdfDept of Mathematical Sciences, March 2018 Conway’s Army Conway’s Army Aim Reach target

3. Choose a helpful value of x.

Positive jump:

pnew(x⇤)� pold(x⇤) = �xd�2⇤

�x2⇤ + x⇤ � 1

�= 0

x2⇤ + x⇤ � 1 = 0

Choose so total never increases.x = x⇤ > 0 p(x⇤)

Negative jump:pnew(x⇤)� pold(x⇤) = xd

⇤�x2⇤ � x⇤ � 1

= xd⇤�x2⇤ + x⇤ � 1� 2x⇤

= �2xd+1⇤ < 0

pnew(x⇤)� pold(x⇤) = �xd�2⇤

�x2⇤ + x⇤ � 1

�= 0

= �2xd+1⇤ < 0

pnew(x⇤)� pold(x⇤) = �xd�1⇤ < 0

Neutral jump:pnew(x⇤)� pold(x⇤) = �xd�1

⇤ < 0

Page 27: Department of Mathematical Sciences - Conway’s …maths.dur.ac.uk/~bmjg46/conwaysarmy.pdfDept of Mathematical Sciences, March 2018 Conway’s Army Conway’s Army Aim Reach target

x2⇤ + x⇤ � 1 = 0 =) x =

�1±p1 + 4

2

Positive root:

x =

p5� 1

2= 0.618 . . .

Page 28: Department of Mathematical Sciences - Conway’s …maths.dur.ac.uk/~bmjg46/conwaysarmy.pdfDept of Mathematical Sciences, March 2018 Conway’s Army Conway’s Army Aim Reach target

b

a=

a

a+ b

b(a+ b) = a2

ab+ b2 = a2

b

a+

✓b

a

◆2

= 1

✓b

a

◆2

+b

a� 1 = 0

Aside: the golden ratio

x2⇤ + x⇤ � 1 = 0

Page 29: Department of Mathematical Sciences - Conway’s …maths.dur.ac.uk/~bmjg46/conwaysarmy.pdfDept of Mathematical Sciences, March 2018 Conway’s Army Conway’s Army Aim Reach target
Page 30: Department of Mathematical Sciences - Conway’s …maths.dur.ac.uk/~bmjg46/conwaysarmy.pdfDept of Mathematical Sciences, March 2018 Conway’s Army Conway’s Army Aim Reach target
Page 31: Department of Mathematical Sciences - Conway’s …maths.dur.ac.uk/~bmjg46/conwaysarmy.pdfDept of Mathematical Sciences, March 2018 Conway’s Army Conway’s Army Aim Reach target
Page 32: Department of Mathematical Sciences - Conway’s …maths.dur.ac.uk/~bmjg46/conwaysarmy.pdfDept of Mathematical Sciences, March 2018 Conway’s Army Conway’s Army Aim Reach target
Page 33: Department of Mathematical Sciences - Conway’s …maths.dur.ac.uk/~bmjg46/conwaysarmy.pdfDept of Mathematical Sciences, March 2018 Conway’s Army Conway’s Army Aim Reach target
Page 34: Department of Mathematical Sciences - Conway’s …maths.dur.ac.uk/~bmjg46/conwaysarmy.pdfDept of Mathematical Sciences, March 2018 Conway’s Army Conway’s Army Aim Reach target
Page 35: Department of Mathematical Sciences - Conway’s …maths.dur.ac.uk/~bmjg46/conwaysarmy.pdfDept of Mathematical Sciences, March 2018 Conway’s Army Conway’s Army Aim Reach target

4. Calculate the value of an infinite starting position.

p(x) = x5 + 3x6 + 5x7 + 7x8 + . . .p(x) = x5 + 3x6 + 5x7 + 7x8 + . . .

x5

p(x) = x5 + 3x6 + 5x7 + 7x8 + . . .

x6

x6 x6

p(x) = x5 + 3x6 + 5x7 + 7x8 + . . .

x7

x7x7

x7x7

p(x) = x5 + 3x6 + 5x7 + 7x8 + . . .

x8

x8

x8

x8

x8

x8

x8

p(x) = x5 + 3x6 + 5x7 + 7x8 + . . .

Page 36: Department of Mathematical Sciences - Conway’s …maths.dur.ac.uk/~bmjg46/conwaysarmy.pdfDept of Mathematical Sciences, March 2018 Conway’s Army Conway’s Army Aim Reach target

p(x) = x5 + 3x6 + 5x7 + 7x8 + . . .

= x5�1 + 3x+ 5x2 + 7x3 + . . .

S = 1 + 3x+ 5x2 + 7x3 + . . .

“arithmetic-geometric series”

Page 37: Department of Mathematical Sciences - Conway’s …maths.dur.ac.uk/~bmjg46/conwaysarmy.pdfDept of Mathematical Sciences, March 2018 Conway’s Army Conway’s Army Aim Reach target

S = 1 + 3x+ 5x2 + 7x3 + . . .

xS = x+ 3x2 + 5x3 + 7x4 + . . .

= 1 + 2�x+ x2 + x3 + . . .

= 1 +2x

1� x

=1 + x

1� xS =

1 + x

(1� x)2

S � xS = (1� x)S = 1 + 2x+ 2x2 + 2x3xS = x+ 3x2 + 5x3 + 7x4 + . . .

Page 38: Department of Mathematical Sciences - Conway’s …maths.dur.ac.uk/~bmjg46/conwaysarmy.pdfDept of Mathematical Sciences, March 2018 Conway’s Army Conway’s Army Aim Reach target

Now put in our value of x:

p(x) = x5S =x5(1 + x)

(1� x)2

x2⇤ + x⇤ � 1 = 0

x2⇤ = 1� x⇤

=) x⇤(x⇤ + 1) = 1

p(x⇤) = 1

So the infinite starting configuration has

Page 39: Department of Mathematical Sciences - Conway’s …maths.dur.ac.uk/~bmjg46/conwaysarmy.pdfDept of Mathematical Sciences, March 2018 Conway’s Army Conway’s Army Aim Reach target

5. Put everything together.

We need to reach the target .p(x⇤) = 1

Any finite start must have , since it has fewer pegs than the infinite configuration with .

p(x⇤) < 1p(x⇤) = 1

Since no move can increase , we can never reach level 5 with a finite number of pegs!

p(x⇤)

Q.E.D.

Page 40: Department of Mathematical Sciences - Conway’s …maths.dur.ac.uk/~bmjg46/conwaysarmy.pdfDept of Mathematical Sciences, March 2018 Conway’s Army Conway’s Army Aim Reach target

Why does this argument fail for levels 1, 2, 3, 4?

The infinite starting configuration has . p(x⇤) > 1

e.g. level 4:

p(x) = x4S =x4(1 + x)

(1� x)2

p(x⇤) =1

x⇤= 1.618 . . .

Page 41: Department of Mathematical Sciences - Conway’s …maths.dur.ac.uk/~bmjg46/conwaysarmy.pdfDept of Mathematical Sciences, March 2018 Conway’s Army Conway’s Army Aim Reach target

Infinite number of pegs

Page 42: Department of Mathematical Sciences - Conway’s …maths.dur.ac.uk/~bmjg46/conwaysarmy.pdfDept of Mathematical Sciences, March 2018 Conway’s Army Conway’s Army Aim Reach target

Infinite number of pegs

Simon Tatham & Geoff Taylor

Page 43: Department of Mathematical Sciences - Conway’s …maths.dur.ac.uk/~bmjg46/conwaysarmy.pdfDept of Mathematical Sciences, March 2018 Conway’s Army Conway’s Army Aim Reach target

Adding diagonal jumps

Maximum possible is level 8 (needs 123 pegs):

Page 44: Department of Mathematical Sciences - Conway’s …maths.dur.ac.uk/~bmjg46/conwaysarmy.pdfDept of Mathematical Sciences, March 2018 Conway’s Army Conway’s Army Aim Reach target

References

Havil, J., Nonplussed! (Princeton University Press)

Berlekamp, E. R., Winning ways for your mathematical plays Vol 4 (Routledge)

Tatham, S. & Taylor, G., Reaching row five in solitaire army, (http://www.chiark.greenend.org.uk/~sgtatham/solarmy/)

Bell, G. I., Hirschberg, D. & Guerrero-Garcia P., The minimum size required of a solitaire army, INTEGERS G7, 2007. http://www.gibell.net/pegsolitaire/army/index.html

A life in games: the playful genius of John Conway, Wired, http://www.wired.com/2015/09/life-games-playful-genius-john-conway/