Panmagic permutations and N-ary groups
Pith reviewed 2026-06-26 11:36 UTC · model grok-4.3
The pith
Affine panmagic permutations form special cosets of the dihedral group under composition.
A machine-rendered reading of the paper's core claim, the machinery that carries it, and where it could break.
Core claim
The sets of affine panmagic permutations are special cosets of the dihedral group in the group of all affine permutations. This gives them remarkable algebraic properties under the multiplication of three or more elements rather than just two. Their cycle decompositions connect to multiplicative orders, 4k+1 primes, primitive roots, and quadratic residues.
What carries the argument
Special cosets of the dihedral group formed by sets of affine panmagic permutations in the group of affine permutations, carrying the n-ary closure properties.
If this is right
- Composition of three affine panmagic permutations yields another in the same coset.
- The cycle structure of these permutations relates directly to multiplicative orders in the integers modulo the size.
- Panmagic properties interact with quadratic residues for certain primes.
- The structure extends naturally to higher n-ary operations beyond binary groups.
Where Pith is reading between the lines
- This suggests that combinatorial configurations like non-attacking queens can generate examples of n-ary groups.
- Further exploration of the number theory connections could classify all such permutations using primitive roots.
- The coset description may simplify enumeration or generation of panmagic squares.
Load-bearing premise
The sets of affine panmagic permutations exhibit genuine coset behavior under higher-arity multiplication that goes beyond what the linear modular definition alone would imply.
What would settle it
Finding three affine panmagic permutations whose composition is not an affine panmagic permutation in the corresponding coset would falsify the algebraic closure claim.
Figures
read the original abstract
Panmagic permutations are permutations whose matrices are panmagic squares. Positions of 1-s in the latter describe maximal configurations of non-attacking queens on a toroidal chessboard. Some of them, affine panmagic permutations, can be conveniently described by linear formulas of modular arithmetic, and we show that their sets have remarkable algebraic properties when one multiplies three or more of them rather than just two. In group-theoretic terms, they are special cosets of the dihedral group in the group of all affine permutations. We also investigate decomposition of panmagic permutations into disjoint cycles and find many connections with classical topics of number theory: multiplicative orders, 4k+1 primes, primitive roots and quadratic residues.
Editorial analysis
A structured set of objections, weighed in public.
Referee Report
Summary. The manuscript defines panmagic permutations via their associated panmagic square matrices (with 1-positions corresponding to maximal non-attacking toroidal queens placements). It focuses on the affine subclass, which admit linear modular descriptions, and asserts that the sets of such permutations exhibit 'remarkable algebraic properties' under composition of three or more elements; in group-theoretic language these sets are claimed to be special cosets of the dihedral group inside the affine permutation group. Additional results concern cycle decompositions of panmagic permutations and links to multiplicative orders, 4k+1 primes, primitive roots and quadratic residues.
Significance. If the coset and higher-arity closure claims were correct they would furnish concrete examples of n-ary group structures arising from combinatorial objects and new number-theoretic interpretations of permutation cycle types. The provided counterexamples, however, show that the central algebraic assertions are false for all odd primes p>5.
major comments (2)
- [Abstract] Abstract: the claim that the sets of affine panmagic permutations 'are special cosets of the dihedral group' cannot hold. For odd prime p the admissible coefficients form the set A=(Z/pZ)* ∖ {1,p-1} of cardinality p-3; the corresponding set of affine maps therefore has cardinality p(p-3). Any coset of the dihedral subgroup (order 2p) has size 2p. These cardinalities agree only for p=5; for p=13 the set has 130 elements while a coset has 26.
- [Abstract] Abstract: the asserted closure under ternary (or higher) multiplication likewise fails. For p=13 the coefficients 2,3,11 all lie in A (each satisfies gcd(a,13)=1, gcd(a-1,13)=1 and gcd(a+1,13)=1), yet 2·3·11≡1 (mod 13) and 1 otin A, so the composition of the three corresponding affine panmagic permutations has coefficient 1 and therefore lies outside the set.
Simulated Author's Rebuttal
We thank the referee for the detailed report and specific counterexamples. We have verified the cardinality and closure calculations and agree that the abstract's claims that the sets of affine panmagic permutations are special cosets of the dihedral group and are closed under ternary (or higher) multiplication do not hold for odd primes p>5. These were errors in our presentation. We will revise the manuscript to remove these incorrect assertions while retaining the combinatorial and number-theoretic results on cycle decompositions that do not rely on them.
read point-by-point responses
-
Referee: [Abstract] Abstract: the claim that the sets of affine panmagic permutations 'are special cosets of the dihedral group' cannot hold. For odd prime p the admissible coefficients form the set A=(Z/pZ)* ∖ {1,p-1} of cardinality p-3; the corresponding set of affine maps therefore has cardinality p(p-3). Any coset of the dihedral subgroup (order 2p) has size 2p. These cardinalities agree only for p=5; for p=13 the set has 130 elements while a coset has 26.
Authors: We agree with the referee's cardinality argument. The set of affine panmagic permutations has size p(p-3) while any coset of the dihedral group has size 2p, so equality holds only for p=5. This shows the claim as stated cannot be correct. We will revise the abstract and any corresponding statements in the body to remove the assertion that these sets are special cosets of the dihedral group. revision: yes
-
Referee: [Abstract] Abstract: the asserted closure under ternary (or higher) multiplication likewise fails. For p=13 the coefficients 2,3,11 all lie in A (each satisfies gcd(a,13)=1, gcd(a-1,13)=1 and gcd(a+1,13)=1), yet 2·3·11≡1 (mod 13) and 1 notin A, so the composition of the three corresponding affine panmagic permutations has coefficient 1 and therefore lies outside the set.
Authors: The provided counterexample is correct: for p=13 the elements with coefficients 2, 3 and 11 are in the set but their composition has coefficient 1, which is excluded. This demonstrates that the set is not closed under ternary composition. We acknowledge the error in claiming remarkable algebraic properties under n-ary multiplication and will revise the abstract and relevant sections to remove this claim. revision: yes
Circularity Check
No circularity: claims rest on explicit modular definitions and standard group operations
full rationale
The abstract and provided excerpts define affine panmagic permutations directly via linear modular formulas (positions of 1s in panmagic squares) and then claim to derive algebraic closure properties under ternary composition plus coset structure relative to the dihedral group inside the affine permutation group. These steps invoke ordinary composition of functions and standard subgroup/coset notions rather than redefining the input set in terms of the output properties. No equations or self-citations are shown that would make the coset or n-ary closure hold by construction; the derivation therefore remains independent of its conclusions and receives the default non-circularity finding.
Axiom & Free-Parameter Ledger
axioms (2)
- standard math The composition of permutations forms a group operation.
- domain assumption Panmagic squares exist and their 1-positions correspond to maximal non-attacking queens on a torus.
Reference graph
Works this paper leans on
-
[1]
Alvis, M
D. Alvis, M. Kinyon, Birkhoff’s theorem for panstochastic matrices, American Mathematical Monthly, 108 (2001) no. 1, 28-37
2001
-
[2]
J. Bell, B. Stevens, Constructing orthogonal pandiagonal Latin squares and panmagic squares from modularn-queens solutions, Journal of Combinatorial Designs, 15 (2007) no. 3, 221-234
2007
-
[3]
J. Bell, B. Stevens, A survey of known results and research areas forn-queens, Discrete Mathe- matics, 309 (2009) 1-31
2009
-
[4]
Bozovic, Z
V. Bozovic, Z. Kovijani´ c-Vuki´ cevi´ c, The cycle index of the automorphism group ofZn, Publica- tions de Institut Math´ ematique (Beograd), 101(115) (2017), 99-108
2017
-
[5]
Carpenter, On then-queens problem, British Chess Magazine, 20 (1900) no.3, 42-48
G. Carpenter, On then-queens problem, British Chess Magazine, 20 (1900) no.3, 42-48
1900
-
[6]
Engelhardt, A group-based search for solutions of then-queens problem, Discrete Mathemat- ics, 307 (2007) no
M. Engelhardt, A group-based search for solutions of then-queens problem, Discrete Mathemat- ics, 307 (2007) no. 21, 2535-2551
2007
-
[7]
van den Essen, Magic squares and linear algebra, American Mathematical Monthly, 97 (1990), no
A. van den Essen, Magic squares and linear algebra, American Mathematical Monthly, 97 (1990), no. 1, 60-62
1990
-
[8]
Gallian, Contemporary abstract algebra, Cengage Learning, Boston, 2017
J. Gallian, Contemporary abstract algebra, Cengage Learning, Boston, 2017
2017
-
[9]
Gal’mak, V
A. Gal’mak, V. Balan, G. Vorobiev, On Post-Gluskin-Hosszu theorem, Applied Sciences, 16 (2014) 11-22. 16
2014
-
[10]
X. Hou, A. Lecuona, G. Mullen, J. Sellers, On the dimension of the space of magic squares over a field, Linear Algebra and its Applications, 438 (2013) 3463-3475
2013
-
[11]
Hull and A
T. Hull and A. Dobell, Random number generators, SIAM Review, 4 (1962) no. 3, 230-254
1962
-
[12]
Ireland, M
K. Ireland, M. Rosen, A classical introduction to modern number theory, Springer-Verlag, New York-Berlin, 1982
1982
-
[13]
Lawden, Pan-Magic Squares of Even Order, Mathematical Gazette, 34 (1950) no
D. Lawden, Pan-Magic Squares of Even Order, Mathematical Gazette, 34 (1950) no. 309, 220-222
1950
-
[14]
Lehmer, On the Congruences Connected with Certain Magic Squares, Transactions of the American Mathematical Society, 31 (1929) no
D. Lehmer, On the Congruences Connected with Certain Magic Squares, Transactions of the American Mathematical Society, 31 (1929) no. 3, pp. 529-551
1929
-
[15]
Marsaglia, The structure of linear congruential sequences, inApplications of Number Theory to Numerical Analysis, S
G. Marsaglia, The structure of linear congruential sequences, inApplications of Number Theory to Numerical Analysis, S. Zaremba, editor, 1972, 249-285
1972
-
[16]
Mattingly, Even order regular magic squares are singular, American Mathematical Monthly, 107 (2000) no
B. Mattingly, Even order regular magic squares are singular, American Mathematical Monthly, 107 (2000) no. 9, 777-782
2000
-
[17]
Nordgren, On properties of special magic square matrices, Linear Algebra and its Applications, 437 (2012) 2009-2025
R. Nordgren, On properties of special magic square matrices, Linear Algebra and its Applications, 437 (2012) 2009-2025
2012
-
[18]
Rosen, Elementary number theory, Addison-Wesley, Boston, 2005
K. Rosen, Elementary number theory, Addison-Wesley, Boston, 2005
2005
-
[19]
Shahryari, Representations of finite polyadic groups, Communications in Algebra, 40 (2012) no
M. Shahryari, Representations of finite polyadic groups, Communications in Algebra, 40 (2012) no. 5, 1625-1631
2012
-
[20]
Thompson, Odd magic powers, American Mathematical Monthly, 101 (1994) no
A. Thompson, Odd magic powers, American Mathematical Monthly, 101 (1994) no. 4, 339-342
1994
-
[21]
Weiner, The Algebra of Semi-Magic Squares, American Mathematical Monthly, 62 (1955) no
L. Weiner, The Algebra of Semi-Magic Squares, American Mathematical Monthly, 62 (1955) no. 4, 237-239. 17
1955
discussion (0)
Sign in with ORCID, Apple, or X to comment. Anyone can read and Pith papers without signing in.