Professional Documents
Culture Documents
car car!
goat 2 goat 2
Swap? initial guess final guess
car a goat
goat 1 car!
Swap
goat 2 car!
(1/4)
m
= (1/2)
2m
= (1/2)
n
, and so w(2m, m) = 1– (1/2)
n
.
⎧1 if m > n − m
⎪
n
⎪
⎪
1
⎪ 1– ( ) if m = n − m
⎨ 2
w(n, m) =
⎪
⎪
m n − m
⎪
⎩
⎪ w(n − 2, m − 1) + w(n − 2, m) otherwise.
n n
0 if n is even
n (mod 2) = { (3)
1 if n is odd.
Proof by induction
We use w(2, 1) and w(3, 1) as our base case. Our inductive
hypothesis is that w(2k + 1, 1) > w(2k, 1). Let’s now
consider
2k + 2
w(2k + 3, 1) = w(2k + 1, 1).
2k + 3
2k + 1
w(2k + 3, 1) > w(2k, 1)
2k + 2
= w(2k + 2, 1)
m
m (n − i)!!
w(n, m) = 1– ∑ ( ) .
i n!!((n (mod 2)– i)!!
i=0
(n − 1)!!
w(n, m) ≈ m . (4)
n!!
To write this in a nicer form involves a few neat ideas. One fact
that will prove very useful is that for any k,
(2k + 1)!! = (2k + 1)(2k − 1)!! (using the definition of double
factorial above).
2
1
= m . (5)
2k + 1
2
(2k)!!
=
(2k + 1)!!(2k − 1)!!
2
(2k)!!
=
2
(2k + 1)(2k − 1)!!
2
(2k)!! 1
= ( ) . (6)
(2k − 1)!! 2k + 1
At this point, you’d be forgiven for having your doubts that I’m
making anything more simple here. Fear not! It all becomes
clear with the introduction of the Wallis formula:
2
π (2k)!! 1
= lim ( ) .
2 x→∞ 2k + 1
(2k − 1)!!
w(2k + 1, m) π
≈ . (7)
w(2k, m) 2
−1/2
⎧ w(2k + 1, m)
⎪
⎪
( ) √w(2k + 1, m)w(2k, m) for n = 2k (ie n is even)
⎪
⎪
w(2k, m)
⎪
w(n, m) = ⎨
⎪
⎪
1/2
⎪
w(2k + 1, m)
⎪
⎪
( ) √w(2k + 1, m)w(2k, m) for n = 2k + 1 (ie n is odd).
⎩
⎪
w(2k, m)
Substituting in our values from (5) and (7) above gives
⎧ −1/2 2
⎪
⎪
π m
⎪
⎪
√
⎪
( ) for n = 2k
⎪
⎪
2
⎪
2k + 1
⎪
w(n, m) ≈ ⎨
⎪
⎪
π 1/2
m
2
⎪
⎪
( ) √ for n = 2k + 1.
⎪
⎩
2 2k + 1
This can be put in to a single line by recalling (3), and using the
fact that for large k, 2k + 1 ≈ 2k:
n (mod 2)–1/2
π m
w(n, m) ≈ ( ) . (8)
2 √n
n (mod 2)+1/2
√n π
( ) .
2 2
One final thing that I’d like to point out is the effect of the
parity of n on w(m, n) and the optimal value of m. We saw in
the case of one mafia member how much of difference it makes,
and we see it again here. It becomes even clearer when we plot
the optimal value of m against n:
A graph of the optimal value of mafia m against n for n odd (green), and n
even (blue)
Sophie Maclean
Sophie Maclean is a recent maths graduate from
the University of Cambridge and very much
misses her degree. She has no free time—she is a
Chalkdust editor.
On conditional probabili
Cards, Covid, and Crazy
Rich Asians
Madeleine Hall explores the s
times counterintuitive con-
sequences of conditional prob
ity to our everyday lives.
@chalkdustmag
Tweets by
@chalkdustmag
chalkdust Retweeted
John Golden
@mathhombre
Dear Diri…
Football, …
chalkdust…
27 Nov 2021
chalkdust Retweeted
Peter Rowlett
@peterrowlett
Chalkdust is published by Chalkdust Magazine, UCL, Gower Street, London WC1E 6BT, United Kingdom. ISSN 2059-3805
(Print). ISSN 2059-3813 (Online).