Jim and Nim. Japheth Wood New York Math Circle. August 6, 2011

Similar documents
Sept. 26, 2012

Senior Math Circles February 10, 2010 Game Theory II

(b) In the position given in the figure below, find a winning move, if any. (b) In the position given in Figure 4.2, find a winning move, if any.

Definition 1 (Game). For us, a game will be any series of alternating moves between two players where one player must win.

On Modular Extensions to Nim

Grade 7/8 Math Circles Game Theory October 27/28, 2015

Game 0: One Pile, Last Chip Loses

CS 491 CAP Intro to Combinatorial Games. Jingbo Shang University of Illinois at Urbana-Champaign Nov 4, 2016

Grade 6 Math Circles Combinatorial Games - Solutions November 3/4, 2015

Grade 6 Math Circles Combinatorial Games November 3/4, 2015

SOME MORE DECREASE AND CONQUER ALGORITHMS

Take one! Rules: Two players take turns taking away 1 chip at a time from a pile of chips. The player who takes the last chip wins.

Game Theory and Algorithms Lecture 19: Nim & Impartial Combinatorial Games

Plan. Related courses. A Take-Away Game. Mathematical Games , (21-801) - Mathematical Games Look for it in Spring 11

Subtraction games with expandable subtraction sets

7. Suppose that at each turn a player may select one pile and remove c chips if c =1

Problem Solving By Cynthia Northrup

On Variations of Nim and Chomp

Contents. MA 327/ECO 327 Introduction to Game Theory Fall 2017 Notes. 1 Wednesday, August Friday, August Monday, August 28 6

Final Exam, Math 6105

Classic Dominoes. Number of Players: 2-4

Math Circle: Logic Puzzles

A Winning Strategy for the Game of Antonim

Combined Games. Block, Alexander Huang, Boao. icamp Summer Research Program University of California, Irvine Irvine, CA

NIM Games: Handout 1

Obliged Sums of Games

Problem F. Chessboard Coloring

Solutions to Part I of Game Theory

Three Pile Nim with Move Blocking. Arthur Holshouser. Harold Reiter.

Counters in a Cup In and Out. The student sets up the cup, drops the counters on it, and records how many landed in and out of the cup.

Background. Game Theory and Nim. The Game of Nim. Game is Finite 1/27/2011

Games, Triangulations, Theory

Table of Contents. Table of Contents 1


Sequential games. We may play the dating game as a sequential game. In this case, one player, say Connie, makes a choice before the other.

Surreal Numbers and Games. February 2010

Circular Nim Games. S. Heubach 1 M. Dufour 2. May 7, 2010 Math Colloquium, Cal Poly San Luis Obispo

Stat 155: solutions to midterm exam

Impartial Combinatorial Games Berkeley Math Circle Intermediate II Ted Alper Evans Hall, room 740 Sept 1, 2015

Fraction Race. Skills: Fractions to sixths (proper fractions) [Can be adapted for improper fractions]

Analyzing ELLIE - the Story of a Combinatorial Game

STAJSIC, DAVORIN, M.A. Combinatorial Game Theory (2010) Directed by Dr. Clifford Smyth. pp.40

Tutorial 1. (ii) There are finite many possible positions. (iii) The players take turns to make moves.

Meaningful Ways to Develop Math Facts

CHECKMATE! A Brief Introduction to Game Theory. Dan Garcia UC Berkeley. The World. Kasparov

On Variants of Nim and Chomp

PRIMES STEP Plays Games

Binary Games. Keep this tetrahedron handy, we will use it when we play the game of Nim.

Tangent: Boromean Rings. The Beer Can Game. Plan. A Take-Away Game. Mathematical Games I. Introduction to Impartial Combinatorial Games

Game, Set, and Match Carl W. Lee September 2016

Contest 1. October 20, 2009

QUIZ: Fill in the blank. Necessity is the Mother of.

Another Form of Matrix Nim

Multiples and Divisibility

NIM WITH A MODULAR MULLER TWIST. Hillevi Gavel Department of Mathematics and Physics, Mälardalen University, Västerås, Sweden

Crossing Game Strategies

arxiv: v2 [cs.cc] 18 Mar 2013

Classwork Example 1: Exploring Subtraction with the Integer Game

Game, Set, and Match A Personal Journey

FREE Math & Literacy Centers. Created by: The Curriculum Corner.

2. (a) Solve the following two-person zero-sum matrix game.

EXPLORING TIC-TAC-TOE VARIANTS

of Nebraska - Lincoln

SF2972 Game Theory Written Exam March 17, 2011

High-Impact Games and Meaningful Mathematical Dialog Grades 3-5

Wythoff s Game. Kimberly Hirschfeld-Cotton Oshkosh, Nebraska

Game, Set, and Match Carl W. Lee September 2016

100 square muddle. A game for two or three players

Bugs & Activity Pack. Blog Teachers Pay Teachers Facebook Pinterest

Building Multiplication Fact Fluency

V. Adamchik Data Structures. Game Trees. Lecture 1. Apr. 05, Plan: 1. Introduction. 2. Game of NIM. 3. Minimax

The first player, Fred, turns on the calculator, presses a digit key and then presses the

COMPUTING STRATEGIES FOR GRAPHICAL NIM

Moose Mathematics Games Journal Table of Contents

Graph Nim. PURE Insights. Breeann Flesch Western Oregon University,

Eric Duchêne (Univ. Claude Bernard Lyon 1) Michel Rigo (University of Liège)

MORE TO FRACTIONS THAN JUST PIECES

Divisibility. Igor Zelenko. SEE Math, August 13-14, 2012

Course Syllabus - Online Prealgebra

Math 152: Applicable Mathematics and Computing

Activity 1: Play comparison games involving fractions, decimals and/or integers.

Formidable Fourteen Puzzle = 6. Boxing Match Example. Part II - Sums of Games. Sums of Games. Example Contd. Mathematical Games II Sums of Games

I.M.O. Winter Training Camp 2008: Invariants and Monovariants

Example: I predict odd, roll a 5, and then collect that many counters. Play until time is up. The player with the most counters wins.

Cross Out Singles. 3. Players then find the sums of the rows, columns, and diagonal, and record them in the respective circles.

Ultimately bipartite subtraction games

GAME THEORY. Thomas S. Ferguson

Final Project (Choose 1 of the following) Max Score: A

Chapter 2 Integers. Math 20 Activity Packet Page 1

Figure 1: The Game of Fifteen

GAMES AND STRATEGY BEGINNERS 12/03/2017

Game Simulation and Analysis

December Everyday Math Stations

Moneybags. by Will Chavis. Combinatorial Games. Instructor: Dr. Harold Reiter

Multiplication What s Inside?

Table of Contents. Game 2-8 Chunks Make It Easy Fluency Using Multiples of Ten (+/-)

ON SPLITTING UP PILES OF STONES

MATH 351 Fall 2009 Homework 1 Due: Wednesday, September 30

Mathematics Alignment Lesson

Number Bases. Ideally this should lead to discussions on polynomials see Polynomials Question Sheet.

Transcription:

Jim and Nim Japheth Wood New York Math Circle August 6, 2011

Outline 1. Games

Outline 1. Games 2. Nim

Outline 1. Games 2. Nim 3. Strategies

Outline 1. Games 2. Nim 3. Strategies 4. Jim

Outline 1. Games 2. Nim 3. Strategies 4. Jim 5. The Winning Strategy for Nim

Outline 1. Games 2. Nim 3. Strategies 4. Jim 5. The Winning Strategy for Nim 6. Addition of Games

Outline 1. Games 2. Nim 3. Strategies 4. Jim 5. The Winning Strategy for Nim 6. Addition of Games 7. Equivalence of Games

Outline 1. Games 2. Nim 3. Strategies 4. Jim 5. The Winning Strategy for Nim 6. Addition of Games 7. Equivalence of Games 8. The Sprague-Grundy Theorem

But First...

1 3 5 7 9 11 13 15 17 19 21 23 25 27 29 31 2 3 6 7 10 11 14 15 18 19 22 23 26 27 30 31 4 5 6 7 12 13 14 15 20 21 22 23 28 29 30 31 8 9 10 11 12 13 14 15 24 25 26 27 28 29 30 31 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31

13 =

13 = 8 + 4 + 1

13 = 8 + 4 + 1 = 011012

13 = 8 + 4 + 1 = 01101 2 0 1 1 0 1 16 8 4 2 1

13 = 8 + 4 + 1 = 01101 2 0 1 1 0 1 16 8 4 2 1 2 4 2 3 2 2 2 1 2 0

13 = 8 + 4 + 1 = 01101 2 0 1 1 0 1 16 8 4 2 1 2 4 2 3 2 2 2 1 2 0 8 9 10 11 12 13 14 15 24 25 26 27 28 29 30 31 01000 01001 01010 01011 01100 01101 01110 01111 11000 11001 11010 11011 11100 11101 11110 11111

Express in Binary 6 =

Express in Binary 6 = 4 +

Express in Binary 6 = 4 + 2

Express in Binary 6 = 4 + 2 = 1 2 2 + 1 2 1 + 0 2 0

Express in Binary 6 = 4 + 2 = 1 2 2 + 1 2 1 + 0 2 0 = 110 2

Express in Binary 6 = 4 + 2 = 1 2 2 + 1 2 1 + 0 2 0 = 110 2 5 =

Express in Binary 6 = 4 + 2 = 1 2 2 + 1 2 1 + 0 2 0 = 110 2 5 = 4 +

Express in Binary 6 = 4 + 2 = 1 2 2 + 1 2 1 + 0 2 0 = 110 2 5 = 4 + 1

Express in Binary 6 = 4 + 2 = 1 2 2 + 1 2 1 + 0 2 0 = 110 2 5 = 4 + 1 = 1 2 2 + 0 2 1 + 1 2 0

Express in Binary 6 = 4 + 2 = 1 2 2 + 1 2 1 + 0 2 0 = 110 2 5 = 4 + 1 = 1 2 2 + 0 2 1 + 1 2 0 = 101 2

Express in Binary 6 = 4 + 2 = 1 2 2 + 1 2 1 + 0 2 0 = 110 2 5 = 4 + 1 = 1 2 2 + 0 2 1 + 1 2 0 = 101 2 3 =

Express in Binary 6 = 4 + 2 = 1 2 2 + 1 2 1 + 0 2 0 = 110 2 5 = 4 + 1 = 1 2 2 + 0 2 1 + 1 2 0 = 101 2 3 = 2 +

Express in Binary 6 = 4 + 2 = 1 2 2 + 1 2 1 + 0 2 0 = 110 2 5 = 4 + 1 = 1 2 2 + 0 2 1 + 1 2 0 = 101 2 3 = 2 + 1

Express in Binary 6 = 4 + 2 = 1 2 2 + 1 2 1 + 0 2 0 = 110 2 5 = 4 + 1 = 1 2 2 + 0 2 1 + 1 2 0 = 101 2 3 = 2 + 1 = 0 2 2 + 1 2 1 + 1 2 0

Express in Binary 6 = 4 + 2 = 1 2 2 + 1 2 1 + 0 2 0 = 110 2 5 = 4 + 1 = 1 2 2 + 0 2 1 + 1 2 0 = 101 2 3 = 2 + 1 = 0 2 2 + 1 2 1 + 1 2 0 = 011 2

Which is Bigger?

Which is Bigger? Base 10:

Which is Bigger? Base 10: 1894 or 2011

Which is Bigger? Base 10: 1894 or 2011 1920 or 1993

Which is Bigger? Base 10: 1894 or 2011 1920 or 1993 Base 2:

Which is Bigger? Base 10: 1894 or 2011 1920 or 1993 Base 2: 00101 or 10101

Which is Bigger? Base 10: 1894 or 2011 1920 or 1993 Base 2: 00101 or 10101 10101 or 10011

And now back to our talk...

Nim

Nim Challenges Who has the winning strategy?

Nim Challenges Who has the winning strategy?

Nim Challenges Who has the winning strategy?

Nim Challenges Who has the winning strategy?

Nim Challenges Who has the winning strategy?

Nim Challenges Who has the winning strategy?

Nim Challenges Who has the winning strategy?

Nim Challenges Who has the winning strategy?

Nim Challenges Who has the winning strategy?

Nim Challenges Which two pile Nim games are L positions?

W and L games L W W W W

W and L games L W W W W W W L W W

W and L games L W

W and L games L W L W

W and L games L W

Jim

Jim Challenges Who has the winning strategy?

Jim Challenges Who has the winning strategy?

Jim Challenges Who has the winning strategy?

Jim Challenges Who has the winning strategy?

Jim Challenges Who has the winning strategy?

Jim Challenges Who has the winning strategy?

Jim Challenges Who has the winning strategy?

Jim Challenges Who has the winning strategy?

Jim Challenges Who has the winning strategy?

Jim Challenges Which two row Jim games are L positions?

3-Row Jim Show this is an L position.

3-Row Jim Goal: Describe all 3-Row Jim L positions.

Jim and Nim Can a Strategy for Jim help solve Nim?

Jim and Nim 6 5 3 1 1 0 1 0 1 0 1 1 Can a Strategy for Jim help solve Nim?

Thank You! Nim and Jim Japheth Wood, New York Math Circle japheth@nymathcircle.org

Some Games Collected by David Hankin There are 5 checkers on a table. A move consists of taking one or two checkers from the table. The winner is the one who takes the last checker.

Some Games Collected by David Hankin There are 100 checkers on a table. A move consists of taking m checkers from the table, where m is a positive integer power of 2. The winner is the one who takes the last checker. Find the set L of losing positions.

Some Games Collected by David Hankin There are 100 checkers on a table. A move consists of taking m checkers from the table, where m is a prime or m = 1. The winner is the one who takes the last checker. Find the set L of losing positions.

Some Games Collected by David Hankin There are 100 checkers on a table. A move consists of taking 1, 3, or 8 checkers from the table. The winner is the one who takes the last checker. Find the set L of losing positions.

Some Games Collected by David Hankin There are two piles of checkers on a table. A move consists of taking any number of checkers from one pile or the same number of checkers from each. The winner is the one who takes the last checker. Find the set L of losing positions.

Some Games Collected by David Hankin Given an initial integer n 0 > 1, two players, A and B, choose integers n 1, n 2, n 3,... alternately according to the following rules. Knowing n 2k, A chooses any integer n 2k+1 such that n 2k n 2k+1 n 2 2k. Knowing n 2k+1, B chooses any integer n 2k+2 such that n 2k+1 /n 2k+2 is a positive power of a prime. Player A wins by choosing the number 1990, player B wins by choosing the number 1. For which n 0 does A have a winning strategy, B have a winning strategy, neither player have a winning strategy?