Professional Documents
Culture Documents
Bibliography
Cristopher Cuevas
Jorge Flores
Jesús Liceaga
Universidad de Guanajuato
1 / 38
Introduction Perfect Faro Shuffles Generalize! Bibliography
Magic Tricks
2 / 38
Introduction Perfect Faro Shuffles Generalize! Bibliography
3 / 38
Introduction Perfect Faro Shuffles Generalize! Bibliography
6 7 8 9 10 J Q 7 8 9 10 J Q
4 5 K 5 6 K
3 4 JOK
ER
2 3
ER A 2
JOK
65432A
987
σ13 A
98765432A
ER
JOK
J 10 J 10
KQ KKERQ
JO
4 / 38
Introduction Perfect Faro Shuffles Generalize! Bibliography
5 / 38
Introduction Perfect Faro Shuffles Generalize! Bibliography
6 / 38
Introduction Perfect Faro Shuffles Generalize! Bibliography
7 / 38
Introduction Perfect Faro Shuffles Generalize! Bibliography
6 7 8 9 10 J Q 10 3 4 5 J 6 Q
4 5 K 9 2 K
3 8
2 A
ER A ER 7
JOK
65432A
987
σRif JOK
4 3 10 2 9 8 A 7 JO 5
JOK
ER J 10 KER
6J
KQ KQ
In addition, so are
0 1 2 3 4 0 1 2 3 4 0 1 2 3 4
, and .
0 3 1 2 4 2 4 0 1 3 1 3 0 2 4
9 / 38
Introduction Perfect Faro Shuffles Generalize! Bibliography
10 3 4 5 J 6 Q 6 7 8 9 10 J Q
9 2 K 4 5 K
8 3
A 2
JOK
ER 7 ∗
σRif JOK
ER A
4 3 10 2 9 8 A 7 JO 5 JOK
65432A
987
KER
6J ER J 10
KQ KQ
Perfect Shuffles
The perfect faro shuffle is a shuffling method that has been widely
used for magic tricks, and cheating in gambling.
Definition 2.1
A perfect n-faro shuffle consists of an order preserving card shuffle
and a cut of size n such that the first n cards are interlaced with
the next n cards by repeatedly placing the top card from one half
below the top one from the other half.
11 / 38
Introduction Perfect Faro Shuffles Generalize! Bibliography
Definition 2.2
A perfect shuffle that leaves the top card in the top. This is, the
first card we take is from the first cut. We will denote an out
shuffle of a card deck of 2n cards as O2n .
12 / 38
Introduction Perfect Faro Shuffles Generalize! Bibliography
Example 2.1
Consider a deck of size 6 and label the cards from 0 to 5. Applying
O6 reorders the cards in the following way
5 5
3 4 4 2
2 A
JOK
A
ER
JOK
3
ER
OKE
5 4 3 2 AJ O6 OKE
52 4 A3J
R R
Thus,
0 1 2 3 4 5
O6 = .
0 2 4 1 3 5
13 / 38
Introduction Perfect Faro Shuffles Generalize! Bibliography
In Perfect Shuffles
Definition 2.3
A perfect shuffle that leaves the top card in the second position.
This is, the first card we take is from the second cut. We will
denote an in shuffle of a card deck of 2n cards as I2n .
14 / 38
Introduction Perfect Faro Shuffles Generalize! Bibliography
Example 2.2
Consider a deck of size 6 and label the cards from 0 to 5. Applying
I6 reorders the cards in the following way:
5 5
3 4 4 2
2 JOKE
R A
JOK
A
ER
3
R
OKE
5 4 3 2 AJ I6 5 2 4 A JOK3
ER
Thus,
0 1 2 3 4 5
I6 = .
1 3 5 0 2 4
15 / 38
Introduction Perfect Faro Shuffles Generalize! Bibliography
Proposition 2.1
Consider a deck with 2n cards and take i ∈ {0, . . . , 2n − 1}. Then
(
(2i + 1) mod 2n if 0 ≤ i < n
I2n (i) =
2i mod (2n) if n ≤ i < 2n
(
2i mod (2n) if 0 ≤ i < n
O2n (i) =
(2i + 1) mod 2n if n ≤ i < 2n
16 / 38
Introduction Perfect Faro Shuffles Generalize! Bibliography
Since I2n and O2n are elements of S2n , they have a finite order. To
compute it, the following Proposition is often useful.
Proposition 2.2
The order of I2n is the order of [2]2n+1 and the order of O2n is the
order of [2]2n−1 .
It turns out that the order of [2]51 is just 8. This number is even
lower for other deck sizes: for 16 cards we only need 3 out shuffles!
17 / 38
Introduction Perfect Faro Shuffles Generalize! Bibliography
Now that we know what are the perfect shuffles, one can ask if
there is an efficient way to “move” a card from a position of the
deck to another using only these type of shuffle. Before tackling the
problem for in and out shuffles, we will solve it for other functions,
and we will see how we can use this for achieving our goal.
x = x1 · 2k−1 + x2 · 2k−2 + · · · + xk · 20 .
18 / 38
Introduction Perfect Faro Shuffles Generalize! Bibliography
Now, we construct a binary tree with root 0, which will reflect all
the possible sequences of compositions of D and E applied to 0.
Moving down the tree, a step to the left indicates the application
of D, and a step to the right indicates E . By our former
observation, it is clear that we can arrive to all integers from 0
applying only D and E .
19 / 38
Introduction Perfect Faro Shuffles Generalize! Bibliography
The following figure shows the tree upon 3 functions are applied.
As an example, 0 is sent to 4 by applying E followed by two D’s.
0
D E
0 1
D E D E
0 1 2 3
D E D E D E D E
0 1 2 3 4 5 6 7
20 / 38
Introduction Perfect Faro Shuffles Generalize! Bibliography
21 / 38
Introduction Perfect Faro Shuffles Generalize! Bibliography
22 / 38
Introduction Perfect Faro Shuffles Generalize! Bibliography
Example 2.3
Find the shortest possible sequence of compositions of the
functions Dm and Em that takes i = 6 to j = 47 in Z52 .
23 / 38
Introduction Perfect Faro Shuffles Generalize! Bibliography
24 / 38
Introduction Perfect Faro Shuffles Generalize! Bibliography
25 / 38
Introduction Perfect Faro Shuffles Generalize! Bibliography
26 / 38
Introduction Perfect Faro Shuffles Generalize! Bibliography
27 / 38
Introduction Perfect Faro Shuffles Generalize! Bibliography
28 / 38
Introduction Perfect Faro Shuffles Generalize! Bibliography
29 / 38
Introduction Perfect Faro Shuffles Generalize! Bibliography
Example 3.1
Let N, H two groups and φ : H −→ Aut(N) the trivial morphism.
This is, φh is the identity automorphism of N for all h ∈ H. Then,
N ⋊φ H is just the direct product N × H.
Example 3.2
Take Zk2 , Zk and let θ : Zk −→ Aut(Zk2 ) such that θ[i]k = ri , where
ri : Zk2 −→ Z2k is given by
30 / 38
Introduction Perfect Faro Shuffles Generalize! Bibliography
Definition 3.2
Let S2n be the symmetric group defined over the set
{0, . . . , 2n − 1}. We say that a permutation σ ∈ S2n is centrally
symmetric if, for all i ∈ {0, . . . , 2n − 1},
σ(i) + σ(2i − 1 − i) = 2i − 1.
31 / 38
Introduction Perfect Faro Shuffles Generalize! Bibliography
Example 3.3
0 1 2 3 4 5
σ= .
2 4 0 5 1 3
5 3
3 4 5 A
JOKER
2
JOK
A
ER 4
2
OKE
R
5 4 3 2 AJ σ 3 A 5 JOK4E 2
R
32 / 38
Introduction Perfect Faro Shuffles Generalize! Bibliography
Proposition 3.1
Let Bn the set of centrally symmetric permutations of S2n . Then
Bn is a subgroup of S2n .
33 / 38
Introduction Perfect Faro Shuffles Generalize! Bibliography
Sign functions
34 / 38
Introduction Perfect Faro Shuffles Generalize! Bibliography
Proposition 3.2
Let φ : Bn −→ Sn such that φ(σ) = σ, where
(
σ(i), if σ(i) ≤ n − 1,
σ(i) =
2n − 1 − σ(i), if σ ≥ n,
Definition 3.3
Let sgn : Bn −→ {1, −1} such that sgn = sgn ◦φ, where φ is the
morphism of proposition 4.2.
35 / 38
Introduction Perfect Faro Shuffles Generalize! Bibliography
Example 3.4
Let us calculate sgn(σ), where σ is the permutation from example
4.4.
0 1 2 3 4 5 0 1 2
σ= =⇒ σ = .
2 4 0 5 1 3 2 1 0
Since σ = (0 2), which is a transposition, sgn(σ) = −1, from
where sgn(σ) = −1.
36 / 38
Introduction Perfect Faro Shuffles Generalize! Bibliography
37 / 38
Introduction Perfect Faro Shuffles Generalize! Bibliography
Bibliography
38 / 38