you too can be a mathematician magician john bonomo westminster college

26
You Too Can be a Mathematician Magician John Bonomo Westminster College /////////// /////////// //

Post on 22-Dec-2015

217 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: You Too Can be a Mathematician Magician John Bonomo Westminster College

You Too Can be a Mathematician Magician

John Bonomo

Westminster College

////////////////////////

Page 2: You Too Can be a Mathematician Magician John Bonomo Westminster College

The Basic Trick

• Volunteer picks one of 15 cards (call this the “key” card)

• Cards dealt in three piles, volunteer identifies “key” pile

• Pick up piles with key pile in the middle

• After three passes, key card is in the middle of the deck

Page 3: You Too Can be a Mathematician Magician John Bonomo Westminster College

Two Modifications

• Place key card in any location of the deck

• Allow users to pick up the decks

Page 4: You Too Can be a Mathematician Magician John Bonomo Westminster College

Analysis

03

69

12

14

710

13

25

811

14

← Row 0← Row 1

← Row 2← Row 3

← Row 4

Page 5: You Too Can be a Mathematician Magician John Bonomo Westminster College

f(p) = 5 + p/3

• Let p = position prior to deal

• Then new position is given by

Page 6: You Too Can be a Mathematician Magician John Bonomo Westminster College

p3 = f(p2)

• Let p0 = initial position; p1, p2, p3, positions after deals 1, 2 and 3

= f(f(p1)) = f(f(f(p0)))

Page 7: You Too Can be a Mathematician Magician John Bonomo Westminster College

p3 =

• Let p0 = initial position; p1, p2, p3, positions after deals 1, 2 and 3

7 + 6 + p0

27

Page 8: You Too Can be a Mathematician Magician John Bonomo Westminster College

• Since 0 ≤ p0 ≤ 14, we have

p3 = 7 + 6 + p0

27

p3 = 7

Page 9: You Too Can be a Mathematician Magician John Bonomo Westminster College

= 5 + 2 + 6 + p0

27

p3 = 7 + 6 + p0

27

base offset

Page 10: You Too Can be a Mathematician Magician John Bonomo Westminster College

• Generalized position function:

• Where i = 0 (bottom pile),

1 (middle pile),

2 (top pile)

fi(p) = 5i + p/3

Page 11: You Too Can be a Mathematician Magician John Bonomo Westminster College

0

i1 1

2

0

i2

1 2

12 + p04 + 27

6 + p02 + 27

24 + p03 + 27

18 + p01 + 27

21 + p02 + 27

15 + p0 27

3 + p01 + 27

9 + p03 + 27

p0 27

0 ≤ p0 ≤ 14

Page 12: You Too Can be a Mathematician Magician John Bonomo Westminster College

0

i1 1

2

0

i2

1 2

24 + p03 + 27

18 + p01 + 27

21 + p02 + 27

15 + p0 27

0 ≤ p0 ≤ 14

0

1

2

3

4

Page 13: You Too Can be a Mathematician Magician John Bonomo Westminster College

What’s your favorite number? Nine

Page 14: You Too Can be a Mathematician Magician John Bonomo Westminster College

Nine

8 = 9 - 18 = 5 + 3

i1=0, i2=2, i3=1Bottom, top, middle

Page 15: You Too Can be a Mathematician Magician John Bonomo Westminster College

9 = 8 - 18 = 5 + 3

i1=0, i2=2, i3=1Bottom, top, middle

Why is your face so sweaty?

And pale?

Zzzzzzzzz…

Page 16: You Too Can be a Mathematician Magician John Bonomo Westminster College

0

i1 1

2

0

i2

1 2

24 + p03 + 27

18 + p01 + 27

21 + p02 + 27

15 + p0 27

0 ≤ p0 ≤ 14

0

1

2

3

4

Page 17: You Too Can be a Mathematician Magician John Bonomo Westminster College

0

i1 1

2

0

i2

1 2

24 + p03 + 27

18 + p01 + 27

21 + p02 + 27

0 ≤ p0 ≤ 14

0

1

2

3

4

0, 0 ≤ p0 ≤ 11

1, 12 ≤ p0 ≤ 14

Page 18: You Too Can be a Mathematician Magician John Bonomo Westminster College

0

i1 1

2

0

i2

1 2

0 ≤ p0 ≤ 14

0

1

2

3

4

0, 0 ≤ p0 ≤ 11

1, 12 ≤ p0 ≤ 14

1, 0 ≤ p0 ≤ 8

2, 9 ≤ p0 ≤ 14

2, 0 ≤ p0 ≤ 5

3, 6 ≤ p0 ≤ 14

3, 0 ≤ p0 ≤ 2

4, 3 ≤ p0 ≤ 14

Page 19: You Too Can be a Mathematician Magician John Bonomo Westminster College

0

i1 1

2

0

i2

1 2

0 ≤ p0 ≤ 14

0: 100%

1: 100%

2: 100%

3: 100%

4: 100%

0, 0 ≤ p0 ≤ 11

1, 12 ≤ p0 ≤ 14

1, 0 ≤ p0 ≤ 8

2, 9 ≤ p0 ≤ 14

2, 0 ≤ p0 ≤ 5

3, 6 ≤ p0 ≤ 14

3, 0 ≤ p0 ≤ 2

4, 3 ≤ p0 ≤ 14

Page 20: You Too Can be a Mathematician Magician John Bonomo Westminster College

0

i1 1

2

0

i2

1 2

0 ≤ p0 ≤ 14

0: 100%

1: 100%

2: 100%

3: 100%

4: 100%

1, 0 ≤ p0 ≤ 8

2, 9 ≤ p0 ≤ 14

2, 0 ≤ p0 ≤ 5

3, 6 ≤ p0 ≤ 14

3, 0 ≤ p0 ≤ 2

4, 3 ≤ p0 ≤ 14

0: 80%

1: 20%

Page 21: You Too Can be a Mathematician Magician John Bonomo Westminster College

0

i1 1

2

0

i2

1 2

0 ≤ p0 ≤ 14

0: 100%

1: 100%

2: 100%

3: 100%

4: 100%

0: 80%

1: 20%

1: 60%

2: 40%

2: 40%

3: 60%

3: 20%

4: 80%

Page 22: You Too Can be a Mathematician Magician John Bonomo Westminster College

Always pick the “best” card

• 87% chance of selecting key card on first pick

• 100% chance of selecting key card on second pick (if necessary)

Page 23: You Too Can be a Mathematician Magician John Bonomo Westminster College

Generalize “Any Position” Trick

• n piles of m cards each

• still use only three deals

• Two questions:

– What values of n and m work?

– How do we determine i1, i2 and i3?

Page 24: You Too Can be a Mathematician Magician John Bonomo Westminster College

m ≤n2 + gcd(n2,m)

2

n

(piles)

m

(cards in pile)

3 1,…,6,9

5 1,…,13,15,25

6 1,…,18,20,24,36

m ≤n2 + 1

2(n,m relatively prime)

Valid n,m pairs

Page 25: You Too Can be a Mathematician Magician John Bonomo Westminster College

Determine i1,i2 and i3 for a given location L

Let s = (L mod m) n2

m

Then i1 = s mod n

i2 = s/n

i3 = L/m

Page 26: You Too Can be a Mathematician Magician John Bonomo Westminster College

Example: n=5, m=11 L = 40-1 = 39

i1 = 14 mod 5 = 4

i2 = 14/5 = 2

i3 = 39/11 = 3

s =(39 mod 11) 52

11= 14