REVIEW 5 minor 14 references
A look at generalized perfect shuffles
T0 review · 0 major / 5 minor · reviewed 2026-08-27 · deepseek-v4-flash
Pith's one-line read For an $m^k$-card deck, the group generated by in and out $m^y$-shuffles is a semidirect product whose order and isomorphism type depend only on $k/\gcd(y,k)$ and the parity of $y/\gcd(y,k)$, not on $m$.
desk verdict A clean, correct classification of generalized shuffle groups for power-of-m decks; the reader's main worry is already covered by Lemma 3. read the letter →
The pith
A machine-rendered reading of the paper's core claim, the machinery that carries it, and where it could break.
The reading
What carries the argument
The load-bearing device is the base-$m$ digit representation of card positions. Writing a card's index as a $k$-tuple $(x_1,\dots,x_k)$ in base $m$, the out shuffle $O_m$ is a left cyclic rotation and the in shuffle $I_m$ is the same rotation with the first digit flipped to $(m-1)-x_1$. The proof builds conjugates $B_j=O_m^{j-1}I_mO_m^{-j}$ that flip exactly one digit, showing the flips generate $(\mathbb{Z}_2)^k$, while $O_m$ rotates them, giving the semidirect product. In the even case, analogous conjugates $C_j$ flip adjacent pairs, and the relation $C_1\cdots C_k=\mathrm{id}$ reduces the flip group to $(\mathbb{Z}_2)^{k-1}$ with the twisted action described in Theorem 7.
What would settle it
On a 16-card deck, explicitly write the in 4-shuffle and out 4-shuffle (the case $m=2$, $k=4$, $y=2$) and compute the order of the group they generate; Theorem 2 predicts a group of order $8$, isomorphic to the dihedral group $D_4$, so any other order would refute the claim.
Extended reading notes
Core claim
On its own terms, the paper's central result (Theorem 2) is that for a deck of $m^k$ cards, with $m,k>1$ and $0<y<k$, letting $c=\gcd(y,k)$, the group $\langle I_{m^y},O_{m^y}\rangle$ is isomorphic to $(\mathbb{Z}_2)^{k/c}\rtimes \mathbb{Z}_{k/c}$ with a cyclic-shift action when $y/c$ is odd, and to $(\mathbb{Z}_2)^{k/c-1}\rtimes \mathbb{Z}_{k/c}$ with the specific action $\varphi(1)(a_1,\dots,a_{k/c-1})=(a_{k/c-1},a_1+a_{k/c-1},\dots,a_{k/c-2}+a_{k/c-1})$ when $y/c$ is even. The order is therefore $2^{k/c}(k/c)$ in the odd case and $2^{k/c-1}(k/c)$ in the even case. The authors prove the coprime cases $y$ odd and $y$ even separately, then reduce the non-coprime cases by re-expressing card indices in base $m^c$, so that an $m^y$-shuffle becomes an $m^c$-shuffle repeated $y/c$ times.
Load-bearing premise
The proof assumes without proof or citation that an $m^y$-shuffle on $m^k$ cards is exactly the same permutation as performing the basic $m$-shuffle $y$ times, so if that equality ever fails, the stated group structures would not follow.
Editorial extensions
If this is right
- The order of $\langle I_{m^y},O_{m^y}\rangle$ is $2^{k/c}(k/c)$ when $y/c$ is odd and $2^{k/c-1}(k/c)$ when $y/c$ is even, so the group is minuscule compared with the full symmetric group on $m^k$ cards.
- Taking $m=2$ and $y=1$ recovers the known Diaconis–Graham–Kantor result for power-of-two decks, now as one case of a uniform theorem.
- Every non-coprime $(k,y)$ case reduces to a coprime case by reblocking in base $m^c$, so only coprime pairs need separate analysis.
- The Cayley graph of the $m^2$-deck shuffle group is a cube, and that of the $m^3$-deck group with $m^2$-shuffles is a cuboctahedron, giving geometric models of the same abstract groups.
- The paper's computed orders for small non-power decks, such as 12 cards with $m=3$ giving order 60, provide a base of data for the still-open general-deck problem.
Reading between the lines
- Because the proof only uses base-$m$ arithmetic, the same digit-rotation model should determine shuffle groups for decks of size $q^r$ with any integer base $q$, so the group may depend on the exponent structure of the deck size rather than on the particular $q$; one could test this by enumerating groups for decks of size $4^3$, $6^3$, or $9^3$.
- The unproved identity $O_{m^y}=(O_m)^y$ could be verified or falsified by a short computer search for small composite $m$; if it holds there, the theorem's scope is confirmed, and if not, the failure isolates exactly which cases need a separate argument.
- The smallness of these groups suggests that card tricks built on generalized shuffles can guarantee reachable states independent of the number of stacks, an implication the paper does not discuss.
Formalized claims in Lean
-
Claim #1: On its own terms, the paper's central result (Theorem 2) is that for a deck of $m^k$ cards, with $m,k>1$ and $0<y<k$, letting $c=\gcd(y,k)$, the group $\langle I_{m^y},O_{m^y}\rangle$ is isomorphic to $(\mathbb{Z}_2)^{k/c}\rtimes \mathbb{Z}_{k/c}$ with a cyclic-shift action when $y/c$ is odd, and to $(\mathbb{Z}_2)^{k/c-1}\rtimes \mathbb{Z}_{k/c}$ with the specific action $\varphi(1)(a_1,\dots,a_{
/-- @claim 1 On its own terms, the paper's central result (Theorem 2) is that for a deck of $m^k$ cards, with $m,k>1$ and $0<y<k$, letting $c=\gcd(y,k)$, the group $\langle I_{m^y},O_{m^y}\rangle$ is isomorphic to $(\mathbb{Z}_2)^{k/c}\rtimes \mathbb{Z}_{k/c}$ with a cyclic-shift action when $y/c$ is odd, and to $(\mathbb{Z}_2)^{k/c-1}\rtimes \mathbb{Z}_{k/c}$ with the specific action $\varphi(1)(a_1,\dots,a_{ -/ def central_claim : Prop :=
Signed reviews
Editorial analysis
A structured set of objections, weighed in public.
Referee Report
Summary. The paper studies generalized perfect shuffles (in and out m-shuffles) on decks of m^k cards, and more generally m^y-shuffles with 0<y<k. The main theorem (Theorem 2) asserts that the group ⟨I_{m^y},O_{m^y}⟩ is isomorphic to Z_2^{k/c} ⋊ Z_{k/c} when y/c is odd and to Z_2^{k/c-1} ⋊ Z_{k/c} with the stated action when y/c is even, where c=gcd(y,k). The proof proceeds by expressing indices in base m (Lemma 4), so that O_m is a cyclic shift and I_m is a cyclic shift plus a flip; constructing flip-only generators B_j (resp. C_j) in the odd (resp. even) coprime case; showing these generate a normal elementary abelian 2-subgroup intersecting ⟨O_m⟩ trivially; and then handling the non-coprime case by reblocking in base m^c (Corollary 8).
Significance. This is a clean, self-contained contribution. If the main theorem is correct, it answers the Diaconis-Graham-Kantor question for the infinite family of deck sizes m^k and completely determines the group in terms of k/gcd(y,k) and parity, independent of m. The explicit generators B_j and C_j and the elementary digit-action argument are strengths. I also verified that the key equivalence O_{m^y}=(O_m)^y and I_{m^y}=(I_m)^y, which is asserted in Section 3, follows directly from the iteration formulas derived in the proof of Lemma 3, so I do not regard this as a gap. The paper's limitations are presentational: a few group-theoretic claims are stated without proof and there are minor typos.
minor comments (5)
- [Section 3, before Eqs. (5)-(6)] The assertion that an m^y-shuffle is equivalent to y applications of an m-shuffle is made without proof or citation; please add a sentence pointing to the iterated formulas established in the proof of Lemma 3, since Theorems 6, 7, and Corollary 8 rely on it.
- [Section 4, Corollary 8 proof] The statement that the base-m^c formulas are 'identical' to Equations (5)-(6) is imprecise: the flip operation is x_i ↦ (m^c-1)-x_i rather than x_i ↦ (m-1)-x_i. The structural conclusion is unaffected because the flips remain involutions, but the wording should be corrected.
- [Section 4, Theorem 6 proof] The claim ⟨B_1,...,B_k⟩∩⟨O_m⟩={id} is asserted without argument; it follows because any nontrivial product of the B_j moves the all-zero k-tuple to a nonzero tuple, whereas every power of O_m fixes it. Please include this justification.
- [Section 4, Theorem 7 proof] The same trivial-intersection claim for ⟨C_1,...,C_{k-1}⟩ and ⟨O_m⟩ should be justified explicitly; the all-zero tuple argument works here as well.
- [Throughout] There are several typographical errors: 'acts on on' in Theorem 2, 'for of' in the proof of Corollary 8, and Figure 4's caption writes x_i=m-x_i where it should be x_i=(m-1)-x_i. Also, gcd[y,k] should be written gcd(y,k).
Circularity Check
No circularity: Theorem 2 is derived from explicit permutation formulas and group actions, not assumed or fitted.
full rationale
The derivation chain is self-contained. Lemma 3 derives the modular formulas for O_m and I_m directly from the array definition of m-shuffles, and its proof also gives the iterated forms (multiplication by m^r and affine maps m^l i + m^l - 1). Section 3's claim that an m^y-shuffle equals y iterations of an m-shuffle is therefore supported by Lemma 3, and it is not an input that secretly contains the target group structure. Lemma 4 converts these formulas into explicit base-m digit shifts and flips, and Theorems 6 and 7 construct the groups by exhibiting commuting involutions B_j and C_j and computing the conjugation action of O_m. The semidirect product decompositions follow from these explicit actions, with no fitted parameters and no appeal to the theorem being proved. The citations to Diaconis-Graham-Kantor and Medvedoff-Morrison are contextual or for results independently reproved in the paper; no load-bearing self-citation chain exists. Corollary 8's reblocking in base m^c has a minor wording imprecision about the size of the alphabet in the flip operation, but the abstract group generated by cyclic shifts and flips is alphabet-independent, so the structural conclusion does not circularly depend on that wording. Overall, no step reduces by construction to its own inputs.
Assumptions & free parameters
assumptions (3)
- domain assumption An m^y-shuffle on m^k cards is identical to applying the basic m-shuffle y times.
- standard math If K=HG with H≅Z_2^d normal, G cyclic of order n, H∩G=1, and G conjugates H as stated, then K≅Z_2^d ⋊ Z_n.
- standard math Base-m digit arithmetic and congruences modulo m^k±1 correctly model card positions.
Cite this review
Pith. "Pith review of A look at generalized perfect shuffles." pith.science (2026). https://pith.science/paper/HJ6WQUQM
@misc{pith2026200909349,
author = {Pith},
title = {Pith review of: A look at generalized perfect shuffles},
year = {2026},
howpublished = {\url{https://pith.science/paper/HJ6WQUQM}},
note = {Machine review of arXiv:2009.09349}
}
abstract
Standard perfect shuffles involve splitting a deck of $2n$ cards into two stacks and interlacing the cards from the stacks. There are two ways that this interlacing can be done, commonly referred to as an in shuffle and an out shuffle, respectively. In 1983, Diaconis, Graham, and Kantor determined the permutation group generated by in and out shuffles on a deck of $2n$ cards for all $n$. Diaconis et al. concluded their work by asking whether similar results can be found for so-called generalized perfect shuffles. For these new shuffles, we split a deck of $mn$ cards into $m$ stacks and similarly interlace the cards with an in $m$-shuffle or out $m$-shuffle (denoted $I_m$ and $O_m$, respectively). In this paper, we find the structure of the group generated by these two shuffles for a deck of $m^k$ cards, together with $m^y$-shuffles, for all possible values of $m$, $k$, and $y$. The group structure is completely determined by $k/\gcd(y,k)$ and the parity of $y/\gcd(y,k)$. In particular, the group structure is independent of the value of $m$.
Figures
Figures from the paper (3 more)
Reference graph
Works this paper leans on
-
[4]
Persi Diaconis, R. L. Graham, and William M. Kantor. The mathematics of perfect shuffles. Adv. in Appl. Math. , 4(2):175–196, 1983
work page 1983
-
[10]
Steve Medvedoff and Kent Morrison. Groups of perfect shuffles. Math. Mag., 60(1):3–14, 1987
work page 1987
-
[12]
S. Brent Morris and Robert E. Hartwig. The generalized faro shuffle. Discrete Math., 15(4):333–346, 1976
work page 1976
-
[1]
Carmen Amarra, Luke Morgan, and Cheryl E. Praeger. Generalised shuffle groups , 2019. https://arxiv.org/abs/ 1908.05128
work page Pith review arXiv 2019
-
[2]
Trailing the dovetail shuffle to its lair
Dave Bayer and Persi Diaconis. Trailing the dovetail shuffle to its lair. Ann. Appl. Probab., 2(2):294–313, 1992
work page 1992
-
[3]
The mathematics of the flip and horseshoe shuffles
Steve Butler, Persi Diaconis, and Ron Graham. The mathematics of the flip and horseshoe shuffles. Amer. Math. Monthly, 123(6):542–556, 2016
work page 2016
-
[5]
The solutions to Elmsley’s problem
Persi Diaconis and Ron Graham. The solutions to Elmsley’s problem. Math Horizons, 14(3):22–27, 2007
work page 2007
-
[6]
Unshuffling for the imperfect magician
Doug Ensley. Unshuffling for the imperfect magician. Math Horizons, 11(3):13–16, 2004
work page 2004
Show all 14 references
-
[7]
Solomon W. Golomb. Permutations by cutting and shuffling. SIAM Rev., 3:293–297, 1961. A LOOK AT GENERALIZED PERFECT SHUFFLES 13
1961
-
[8]
Perfect shuffles and their relation to math
Gina Kolata. Perfect shuffles and their relation to math. Science, 216(4545):505–506, 1982
1982
-
[9]
The Monge shuffle for two-power decks
Arne Ledet. The Monge shuffle for two-power decks. Math. Scand., 98(1):5–11, 2006
2006
-
[11]
Brent Morris
S. Brent Morris. Magic tricks, card shuffling and dynamic computer memories . MAA Spectrum. Mathematical As- sociation of America, Washington, DC, 1998. With an introduction by Martin Gardner
1998
-
[13]
Moving card i to position j with perfect shuffles
Sarnath Ramnath and Daniel Scully. Moving card i to position j with perfect shuffles. Math. Mag. , 69(5):361–365, 1996
1996
-
[14]
Rosenthal
John W. Rosenthal. Card shuffling. Math. Mag., 54(2):64–67, 1981
1981
Reviewed August 27, 2026 · model on record in the stance chip above.
Discussion (0). Continue with ORCID to comment.