On Modular Extensions to Nim

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

On Variations of Nim and Chomp

SOME MORE DECREASE AND CONQUER ALGORITHMS

On Variants of Nim and Chomp

PRIMES STEP Plays Games

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

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

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

Subtraction games with expandable subtraction sets

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

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

Equivalence classes of length-changing replacements of size-3 patterns

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

Throttling numbers for cop vs gambler

arxiv: v1 [math.co] 17 May 2016

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

Senior Math Circles February 10, 2010 Game Theory II

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

Number Theory - Divisibility Number Theory - Congruences. Number Theory. June 23, Number Theory

NIM Games: Handout 1

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

Counting Sudoku Variants

Problem F. Chessboard Coloring

Alternator Coins. Mentor: Dr. Tanya Khovanova. PRIMES CONFERENCE, May 21, PRIMES CONFERENCE, May 21,

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

Obliged Sums of Games

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

Final Exam, Math 6105

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

1.6 Congruence Modulo m

GEOGRAPHY PLAYED ON AN N-CYCLE TIMES A 4-CYCLE

ON SPLITTING UP PILES OF STONES

THE GAME CREATION OPERATOR

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

Crossing Game Strategies

Game 0: One Pile, Last Chip Loses

A Quick Introduction to Modular Arithmetic

Multiples and Divisibility

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

Introduction. and Z r1 Z rn. This lecture aims to provide techniques. CRT during the decription process in RSA is explained.

Surreal Numbers and Games. February 2010

Contest 1. October 20, 2009

arxiv: v1 [cs.dm] 13 Feb 2015

What is counting? (how many ways of doing things) how many possible ways to choose 4 people from 10?

8.2 Union, Intersection, and Complement of Events; Odds

On Quasirandom Permutations

Discrete Structures Lecture Permutations and Combinations

of Nebraska - Lincoln

Open Problems at the 2002 Dagstuhl Seminar on Algorithmic Combinatorial Game Theory

MAT Modular arithmetic and number theory. Modular arithmetic

A Combinatorial Game Mathematical Strategy Planning Procedure for a Class of Chess Endgames

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

(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.

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

Peeking at partizan misère quotients

Math Circle: Logic Puzzles

Games, Triangulations, Theory

Analyzing ELLIE - the Story of a Combinatorial Game

An interesting class of problems of a computational nature ask for the standard residue of a power of a number, e.g.,

IMOK Maclaurin Paper 2014

Number Theory/Cryptography (part 1 of CSC 282)

Modular Arithmetic. Kieran Cooney - February 18, 2016

arxiv: v2 [cs.cc] 18 Mar 2013

Applications of Fermat s Little Theorem and Congruences

Mathematical Investigation of Games of "Take-Away"

A Winning Strategy for the Game of Antonim

GAMES AND STRATEGY BEGINNERS 12/03/2017

Section Summary. Permutations Combinations Combinatorial Proofs

To be able to determine the quadratic character of an arbitrary number mod p (p an odd prime), we. The first (and most delicate) case concerns 2

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.

Chameleon Coins arxiv: v1 [math.ho] 23 Dec 2015

Week 1. 1 What Is Combinatorics?

The strange algebra of combinatorial games

BmMT 2013 TEAM ROUND SOLUTIONS 16 November 2013

7.1 Chance Surprises, 7.2 Predicting the Future in an Uncertain World, 7.4 Down for the Count

SF2972 Game Theory Written Exam March 17, 2011

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

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

6.2 Modular Arithmetic

AI Approaches to Ultimate Tic-Tac-Toe

One-Dimensional Peg Solitaire, and Duotaire

Math236 Discrete Maths with Applications

2. Tell your partner to examine the cards, and give you the cards on which the number

Fall. Spring. Possible Summer Topics

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

Math 255 Spring 2017 Solving x 2 a (mod n)

Analysis of Don't Break the Ice

arxiv: v1 [math.gt] 21 Mar 2018

Course Syllabus - Online Prealgebra

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

Wythoff s Game. Kimberly Hirschfeld-Cotton Oshkosh, Nebraska

2-PILE NIM WITH A RESTRICTED NUMBER OF MOVE-SIZE IMITATIONS

Generalized Ordered Whist Tournaments for 6n+1 Players

Problem Set 10 2 E = 3 F

Sec$on Summary. Permutations Combinations Combinatorial Proofs

Balanced Number System Application to Mathematical Puzzles

GAME THEORY. Thomas S. Ferguson

Sequential games. Moty Katzman. November 14, 2017

An Enhanced Fast Multi-Radio Rendezvous Algorithm in Heterogeneous Cognitive Radio Networks

Modular Arithmetic: refresher.

Transcription:

On Modular Extensions to Nim Karan Sarkar Mentor: Dr. Tanya Khovanova Fifth Annual Primes Conference 16 May 2015

An Instructive Example: Nim The Rules Take at least one token from some chosen pile. Player who takes last token wins.

An Instructive Example: Nim The Rules Take at least one token from some chosen pile. Player who takes last token wins.

An Instructive Example: Nim The Rules Take at least one token from some chosen pile. Player who takes last token wins.

An Instructive Example: Nim The Rules Take at least one token from some chosen pile. Player who takes last token wins.

An Instructive Example: Nim The Rules Take at least one token from some chosen pile. Player who takes last token wins.

Nim Positions Position Notation A position with piles of sizes a 1, a 2,..., a n is denoted as the ordered n-tuple: (a 1, a 2,..., a n ). Definition A P-position is a position that guarantees a loss given optimal play Definition An N-position is a position that guarantees a win given optimal play

The Winning Strategy for Nim Theorem (Bouton s Theorem) The position (a 1, a 2,..., a n ) is a P-position in Nim if and only if n a i = 0. i=1 Definition (Bitwise XOR) The symbol denotes the bitwise XOR operation. 1 Write both numbers in binary. 2 Add without carrying over.

m-modular Nim The Rules Take at least one token from some chosen pile or km tokens total. Player who takes last token wins.

An Example: 3-Modular Nim with 2 Piles

An Example: 3-Modular Nim with 2 Piles

An Example: 3-Modular Nim with 2 Piles

An Example: 3-Modular Nim with 2 Piles

An Example: 3-Modular Nim with 2 Piles

An Example: 3-Modular Nim with 2 Piles (0,0) (1,1) (2,2)

An Example: 3-Modular Nim with 2 Piles (0,0) (1,1) (2,2)

An Example: 3-Modular Nim with 2 Piles (0,0) (1,1) (2,2)

2 Heap m-modular Nim for Odd m Theorem For odd m, a position of m-modular Nim with 2 heaps is a P-position if and only it is of the form (i, i) for integers i where 0 i < m.

An Example: 6-Modular Nim with 2 Piles (0,0) (1,1) (2,2)

An Example: 6-Modular Nim with 2 Piles (7,8) (8,7) (5,6) (6,5) (3,4) (4,3) (2,2) (1,1) (0,0)

An Example: 6-Modular Nim with 2 Piles (7,8) (8,7) (5,6) (6,5) (3,4) (4,3) (2,2) (1,1) (0,0)

Another Example: 12-Modular Nim with 2 Piles

Another Example: 12-Modular Nim with 2 Piles

Another Example: 12-Modular Nim with 2 Piles

m-modular Nim for 2 Heaps Theorem Let m = 2 i k where k is odd. A position is a P-position if and only if it is of the form: (2 j 1 b + a, (k + 1)2 j 1 1 a) for all 0 a < 2 j 1, k b < 2k and 0 j < i. Corollary Let m = 2 i k where k is odd. There are ( ) i m 2 + 1 P-positions in m-modular Nim with 2 heaps.

7-Modular Nim with 3 Heaps

A Snapshot of Nim with 3 Heaps

A Snapshot of Nim with 3 Heaps

A Snapshot of Nim with 3 Heaps

7-Modular Nim with 3 Heaps

m-modular Nim for odd m Theorem A position (a 1, a 2,..., a n ) is a P-position if and only if: n 1 a i = 0. 2 i=1 n i=1 a i < 2m.

14-Modular Nim with 3 Heaps

14-Modular Nim with 3 Heaps

14-Modular Nim with 3 Heaps

7-Modular Nim with 3 Heaps

m-modular Nim for Even m: A Partial Result Theorem If a position (a 1, a 2,..., a n ) is a P-position in m-modular Nim for m odd, then it is a P-position in 2m-Modular Nim.

Future Research What happens in Miseré Modular Nim? How do the P-positions for even m behave? What happens one can take away km + r tokens for other values of r? What about other polynomials?

Acknowledgments I would like to thank My mentor, Dr. Khovanova: for her suggestion of the project and guidance MIT PRIMES: for the opportunity to conduct research My parents: for their encouragement and transportation