Fact-checked by Grok 2 weeks ago

Major index

The major index, also known as the greater index, is a key combinatorial defined on permutations in the \mathfrak{S}_n, where it equals the sum of the positions j (for $1 \leq j < n) at which the permutation \sigma exhibits a descent, meaning \sigma(j) > \sigma(j+1). Formally, \operatorname{maj}(\sigma) = \sum_{\substack{1 \leq j < n \\ \sigma(j) > \sigma(j+1)}} j. This , introduced in the context of q-analogs of combinatorial objects, plays a central role in by providing a refined count of permutations that aligns with algebraic structures like the q-. One of the most notable properties of the major index is its equidistribution with the classical inversion number, another fundamental permutation statistic that counts the number of inverted pairs i < j with \sigma(i) > \sigma(j). Specifically, the generating function for the major index over all n-permutations is identical to that for inversions: \sum_{\sigma \in \mathfrak{S}_n} q^{\operatorname{maj}(\sigma)} = \sum_{\sigma \in \mathfrak{S}_n} q^{\operatorname{inv}(\sigma)} = \prod_{j=1}^n \frac{1 - q^j}{1 - q} = _q!, where _q! denotes the q-factorial. This equality underscores deep symmetries in permutation enumeration and has implications for the study of q-series and symmetric functions. The major index is intimately connected to Eulerian numbers \left\langle \begin{smallmatrix} n \\ k \end{smallmatrix} \right\rangle, which count the number of n-permutations with exactly k descents (or equivalently, k excedances or k+1 weak excedances). The Eulerian polynomial A_n(q) = \sum_{k=0}^{n-1} \left\langle \begin{smallmatrix} n \\ k \end{smallmatrix} \right\rangle q^{k+1} generates these counts, and while it differs from the major index , both contribute to broader frameworks in , such as the expansion of q-analogs of factorials and connections to the geometry of the permutohedron. Extensions of the major index have been generalized to other combinatorial objects, including standard Young tableaux and set partitions, facilitating refined enumerations in and actions.

Definition

Formal definition

In , a \pi of the set = \{1, 2, \dots, n\} is a bijective from $$ to itself, often represented as the \pi(1) \pi(2) \dots \pi(n). A position i with $1 \leq i < n is called a descent of \pi if \pi(i) > \pi(i+1). The major index of \pi, denoted \operatorname{maj}(\pi), is defined as the sum of all such positions: \operatorname{maj}(\pi) = \sum_{\substack{1 \leq i < n \\ \pi(i) > \pi(i+1)}} i. This statistic was originally introduced by Percy MacMahon in the context of generating functions for . The major index extends naturally to finite words (or sequences) over the positive integers. For a word w = w_1 w_2 \dots w_n of length n, the descents are the positions i where w_i > w_{i+1}, and \operatorname{maj}(w) is the sum of these positions, analogous to the permutation case.

Descent sets

In the context of permutations, a descent is defined as a position i in a permutation \pi of = \{1, 2, \dots, n\} such that \pi(i) > \pi(i+1). This condition identifies locations where the sequence decreases between consecutive elements. The descent set, denoted \operatorname{Des}(\pi) or D(\pi), is the set of all such descent positions \{i \mid \pi(i) > \pi(i+1), 1 \leq i \leq n-1\}. By construction, \operatorname{Des}(\pi) forms a subset of \{1, 2, \dots, n-1\}, capturing the structural drops in the permutation's order. For the identity permutation, which is strictly increasing, the descent set is empty, indicating no such decreases occur. The set provides the foundational combinatorial object for the major index, where \operatorname{maj}(\pi) is the sum of the elements in \operatorname{Des}(\pi). This relation underscores the set's role in aggregating positional information to yield the statistic.

Examples and computation

Basic examples

The major index of a permutation can be illustrated through simple examples in the S_3, consisting of all permutations of the set {1, 2, 3}. A occurs at position i if \pi_i > \pi_{i+1}, and the major index is the sum of such positions i. Consider the \pi = [1](/page/1)\, [3\, 2](/page/3-2). There is a at i=2 since [3 > 2](/page/3-2), so the descent set is {2} and \maj(\pi) = [2](/page/1). For the \pi = [3\, 1\, 2](/page/3-2), there is a at i=1 since [3 > 1](/page/3-2), so the descent set is {1} and \maj(\pi) = [1](/page/1). The identity \pi = [1](/page/1)\, [2](/page/1)\, [3](/page/1) has no descents, so the descent set is empty and \maj(\pi) = 0. For a complete visualization in S_3, the table below lists all six permutations, their descent sets, and major indices:
PermutationDescent SetMajor Index
1230
132{2}2
213{1}1
231{2}2
312{1}1
321{1,2}3

Algorithmic computation

The major index of a permutation \pi = \pi_1 \pi_2 \cdots \pi_n \in S_n is computed by identifying the set D(\pi) = \{i \mid 1 \leq i \leq n-1, \pi_i > \pi_{i+1}\} and summing its elements, as defined by Stanley. A straightforward linear-time achieves this by performing a single pass through the , checking each adjacent pair for a and accumulating the i (using 1-based indexing) when one occurs. This approach directly implements the definition without requiring additional data structures beyond storage for \pi. The following illustrates the computation:
function major_index(π: array of size n):
    maj = 0
    for i = 1 to n-1:
        if π[i] > π[i+1]:
            maj += i
    return maj
This runs in O(n) , as it involves exactly n-1 comparisons and additions in the worst case, and uses O(1) additional space excluding the input . For practical implementation, the algorithm is well-suited to programming languages such as due to its simplicity and efficiency for large n. Edge cases include the empty permutation or n=1, where the major index is 0 by convention, as there are no possible descents.

Properties

Symmetry and equidistribution

The major index of a \pi \in S_n ranges from 0, achieved by the permutation, to \binom{n}{2}, achieved by the reverse permutation n \cdots 1. A fundamental symmetry of the major index is its equidistribution with the inversion number \mathrm{inv}(\pi), defined as the sum of the entries in the inversion table of \pi. Specifically, for each fixed n and k, the number of s \pi \in S_n with \mathrm{maj}(\pi) = k equals the number with \mathrm{inv}(\pi) = k. This equidistribution, originally established by MacMahon using generating functions, implies that the major index and inversion number share the same distribution over S_n. The common distribution is captured by the Mahonian numbers M_{n,k} = |\{\pi \in S_n \mid \mathrm{maj}(\pi) = k\}|, which count permutations by major index (or equivalently by inversions). The generating function for these numbers is the q-factorial _q! = \sum_{k=0}^{\binom{n}{2}} M_{n,k} q^k = \prod_{i=1}^n \frac{1 - q^i}{1 - q}, a q-analog of the factorial that interpolates the uniform distribution at q=1. This equidistribution can be established combinatorially via explicit bijections between permutations that preserve the respective statistics. One such bijective proof constructs a map using inversion tables: for a permutation of length n, the inversion table entries a_j (with $0 \leq a_j \leq j) satisfy \mathrm{inv}(\pi) = \sum a_j, and inserting the value n into the permutation increases \mathrm{maj}(\pi) by exactly a_{n-1} at the corresponding position, inductively matching the counts for all k.

q-analog connections

The generating function for the major index over all permutations in the symmetric group S_n is the q-analog of n!, expressed as \sum_{\pi \in S_n} q^{\mathrm{maj}(\pi)} = _q! = \prod_{k=1}^n \frac{1 - q^k}{1 - q}. This formula, originally established by MacMahon, demonstrates how the major index provides a combinatorial basis for the q-deformation of the factorial. The major index also connects to Kostka polynomials through the Robinson-Schensted-Knuth correspondence, which associates permutations \pi to pairs of standard Young tableaux; here, \mathrm{maj}(\pi) equals the major index of the insertion tableau, providing a weighting for terms in the q-Kostka polynomials. In particular, for the straight shape case with content (1^n), the generating function \sum_T q^{\mathrm{maj}(T)} over standard Young tableaux T of shape \lambda yields the Kostka-Foulkes polynomial K_{\lambda, (1^n)}(q). This q-analog refines the uniform distribution of permutations (recovered at q=1) by positionally weighting descents in the major index, thereby encoding additional structural about permutation descents.

Historical development

Origins in combinatorics

The major , originally termed the "greater index" by its introducer, emerged in the early as a key in , particularly for analyzing . Percy Alexander MacMahon, a mathematician and army major, first defined it in his 1913 paper on the indices of permutations, where he considered sequences of distinct or repeated and introduced two primary indices: the "lesser index" (the count of descents) and the greater index (the sum of the positions of those descents). The name "major index" was later suggested by Foata in honor of MacMahon's rank as a Major. This definition arose from MacMahon's broader investigations into generating functions associated with permutations of any assemblage of objects, motivated by the need to derive symmetric functions and probability-generating expressions for permutation . MacMahon's work built on foundational studies of descents, which trace back to earlier combinatorial explorations but gained prominence through his emphasis on their role in the cycle index of the symmetric group S_n and related generating functions. The greater index provided a weighted measure of descents, enabling the construction of q-analogues and refinements to classical enumerations, such as those for inversions. In this context, it linked permutation patterns to more general symmetric group statistics, including applications in plane partitions, where MacMahon extended descent-like concepts to multidimensional arrays in his contemporaneous research. The key publication formalizing these ideas appeared in MacMahon's two-volume "Combinatory Analysis" (1915–1916), where the major index appears implicitly through sums over descent positions in the enumeration of permutations and related structures. Early applications focused on enumerating permutations by their descent statistics, notably establishing that the for the major index equals that for the inversion number, a result MacMahon proved using algebraic manipulations of . This underscored the statistic's utility in partitioning the S_n and laid groundwork for subsequent combinatorial identities.

Key contributions

In the 1970s, Dominique Foata, in collaboration with Marcel-Paul Schützenberger, established a fundamental between permutations based on their major index and inversion table, providing a of the equidistribution of the major index and the inversion number over the . This work refined earlier approaches by MacMahon and introduced explicit transformations, such as the Foata bijection, that preserve these statistics while mapping between distinct combinatorial objects. Their results, published in 1978, solidified the major index as a tool for bijective proofs in enumeration. During the 1980s, Adriano Garsia and Jeffrey Remmel advanced the theory through q-analogs and multivariate extensions of the major index, particularly in the context of permutation shuffles and their connections to Kronecker products of representations. Their 1985 paper on shuffles of permutations demonstrated how the major index interacts with q-deformations in generating functions for actions, enabling refinements that track multiple descent-like features simultaneously. These contributions facilitated broader applications in , including interpretations of q-Mahonian distributions via placements and derangement analogs. Richard Stanley's 1986 monograph played a pivotal role in canonizing the major index as a core statistic, offering detailed expositions of its properties, equidistributions, and enumerative formulas alongside other statistics like inversions and descents. By integrating the major index into the broader framework of Mahonian numbers and q-series, Stanley's treatment emphasized its symmetry and utility in proving classical identities, such as those involving Eulerian polynomials. This survey work, updated in subsequent editions, has served as a foundational reference, influencing generations of research in the field. Post-2000 developments have extended the major index to within the , revealing connections to and crystal bases of . For instance, Jason Fulman's 1999 study of affine shuffles introduced modular refinements of the major index distribution over conjugacy classes, linking it to modular representations of the . Further, works like Carlsson, , and Lam's 2018 exploration of affine Schubert calculus incorporate the major index in q-analogs of double coinvariants, bridging combinatorial statistics with geometric and algebraic structures in quantum , including crystal operator actions on affine tableaux.

Applications

In permutation statistics

The major index serves as a descent statistic on , defined for a permutation \sigma \in S_n as \operatorname{maj}(\sigma) = \sum_{i \in \operatorname{Des}(\sigma)} i, where \operatorname{Des}(\sigma) = \{i : 1 \leq i < n, \sigma(i) > \sigma(i+1)\} is the descent set. Unlike the descent number \operatorname{des}(\sigma) = |\operatorname{Des}(\sigma)|, which counts the total number of descents and is equidistributed with the excedance number to yield the Eulerian numbers, the major index weights each descent by its position, providing a refined measure that leads to the Mahonian numbers as its distribution over S_n. Refinements of the major index often involve joint distributions with other permutation statistics, such as the excedance number \operatorname{exc}(\sigma) = |\{i : \sigma(i) > i\}| or the cycle type. The bivariate generating function \sum_{\sigma \in S_n} q^{\operatorname{maj}(\sigma)} t^{\operatorname{exc}(\sigma)} admits a closed form involving q-exponential functions: \sum_{n \geq 0} A_{\operatorname{maj},\operatorname{exc},n}(q,t) \frac{z^n}{_q!} = (1 - tq) \exp_q(z) \exp_q(ztq) - tq \exp_q(z), highlighting equidistribution properties between major index and inversions alongside excedances. In the context of pattern avoidance, the major index has been studied on classes like 132-avoiding permutations S_n(132), where the bivariate \sum_{\sigma \in S_n(132)} q^{\operatorname{maj}(\sigma)} t^{\operatorname{des}(\sigma)} reveals non-unimodal and non-symmetric behaviors for certain counts; for instance, the for two descents is non-unimodal for n \geq 5. Explicit formulas include, for one , \sum_{i=1}^{n-1} (n-i) q^i t, and more complex expressions for higher descents that demonstrate the statistic's in this class. Recent work has extended the major index to colored permutation groups and other structures, including proofs of equidistribution conjectures over trees. For computational enumeration, the major index facilitates the generation of Mahonian distributions in software like , which supports efficient computation of statistics up to n=20 via its combinatorial class framework for S_n, allowing enumeration of the distribution without exhaustive generation of all n! elements.

In representation theory

In the representation theory of the symmetric group S_n, Specht modules S^\lambda indexed by partitions \lambda \vdash n provide the irreducible representations over \mathbb{C}. These modules admit a basis consisting of standard Young tableaux of shape \lambda, where a standard Young tableau T is a filling of the Young diagram of \lambda with numbers $1 through n increasing across rows and down columns. The major index extends naturally to such tableaux via the descent set: a descent in T occurs at position i if i+1 appears strictly below i in the diagram, and \maj(T) is defined as the sum of these descent positions. This statistic equips the Specht module with a grading that refines its structure, facilitating computations in character theory and connections to symmetric functions. A notable application arises in the analysis of the longest element w_0 \in S_n, the reverse sending i to n+1-i. Its descent set comprises all positions $1 \leq i < n, yielding \maj(w_0) = \sum_{i=1}^{n-1} i = \binom{n}{2}, which matches the Coxeter length \ell(w_0) in the symmetric group's presentation as a . This equality underscores the major index's alignment with the geometric and algebraic length functions central to Coxeter theory, bridging combinatorial statistics with the module's highest-weight structure. The major index further features in q-deformations of Frobenius characters via the cyclic sieving phenomenon. For the action of the cyclic subgroup C_n \leq S_n on the set of standard Young tableaux of shape \lambda, the polynomial \sum_{T \in \SYT(\lambda)} x^{\maj(T)} cyclically sieves under the cyclic action, with eigenvalues tied to roots of unity. Specifically, the Kraskiewicz–Weyman theorem equates the number of tableaux T with \maj(T) \equiv r \pmod{n} to the multiplicity \langle S^\lambda, \chi_r \uparrow^{S_n}_{C_n} \rangle, where \chi_r is the r-th cyclotomic character; this refines the Frobenius character by tracking modular major indices, resolving conjectures on the distribution and existence of such tableaux except for exceptional shapes like the hook or staircase partitions. In the H_n(q), the q-analog of the group algebra \mathbb{Q}[S_n], the major index generates key deformation parameters through its Mahonian distribution: the \sum_{\pi \in S_n} q^{\maj(\pi)} = !_q, the q-factorial, equals the Poincaré series of H_n(q) graded by the Coxeter , owing to the equidistribution of major index and inversions over S_n.

References

  1. [1]
    DLMF: §26.14 Permutations: Order Notation ‣ Properties ‣ Chapter ...
    The major index is also called the greater index of the permutation. The Eulerian number, denoted ⟨ n k ⟩ , is the number ...
  2. [2]
    [PDF] a generalized major index statistic
    It is also natural to define a major index statistic on standard Young tableaux, which are central objects in the study of symmetric functions. Recently, ...
  3. [3]
    [PDF] Major Index and Inversion Number of Permutations
    ... defined as the number of pairs (i, j) such that 1 i<j=n and s(i)>s(j). One also defines the down set of s by. DOWN si: 1in-1, s(i)s (i+1)}, and the major index ...
  4. [4]
    [PDF] A Major Index for Matchings and Set Partitions - Texas A&M University
    The sum of the elements of D(π) is called the major index of π (also called the greater index) and denoted maj(π). Similarly one can define the notions of ...<|control11|><|separator|>
  5. [5]
    [PDF] Permutation Statistics of Indexed Permutations
    The definitions of descent, excedance, major index, inversion index and Denert's statistic for the elements of the symmetric group Sd are generalized to ...Missing: formal | Show results with:formal
  6. [6]
    [PDF] Enumerative Combinatorics Volume 1 second edition - Mathematics
    Chapter 1. What is Enumerative Combinatorics? 1.1. How to count. 9. 1.2. Sets and multisets. 23. 1.3. Cycles and inversions.
  7. [7]
    A Simple Proof that Major Index and Inversions are Equidistributed
    Jul 11, 2022 · We present a short proof of MacMahon's classic result that the number of permutations with k inversions equals the number whose major index (sum of positions ...
  8. [8]
    Bernoulli Trials and Mahonian Statistics: A Tale of Two q's - jstor
    The proof is trivial: Since the coefficient of qk in the generating function [n]! is unique, it follows from Theorem 3 that b(n, k) = a(n, k). Although ...
  9. [9]
    A Relationship between the Major Index for Tableaux and the ...
    Sep 5, 2005 · ... Kostka-Foulkes polynomials, and it gives the generating function for the major index statistic on standard Young tableaux. Similarly, the q ...
  10. [10]
    Combinatory analysis : MacMahon, Percy Alexander, 1854-1929
    Feb 29, 2008 · Publication date: 1915-16 ; Topics: Combinations, Number theory, Partitions (Mathematics), Permutations ; Publisher: Cambridge University Press.Missing: major | Show results with:major
  11. [11]
    A poset view of the major index - ScienceDirect.com
    As an example, the word w = a a b a b b a is written as ... In the second half of Section 7, before Corollary 7.3, we offer one way to define a major index for ...<|control11|><|separator|>
  12. [12]
    [math/9910087] Affine shuffles, shuffles with cuts, the Whitehouse ...
    May 12, 2000 · This gives rise to interesting combinatorics concerning the modular equidistribution by major index of permutations in a given conjugacy class ...
  13. [13]
    [PDF] q-EULERIAN POLYNOMIALS: EXCEDANCE NUMBER AND ...
    Our q-Eulerian polynomials are the enumerators for the joint distribution of the excedance statistic and the major index. There is a vast literature on q- ...
  14. [14]
    [PDF] Counting permutations by peaks, descents, and cycle type
    The descent number des and major index maj are classical permutation ... and the joint distribution of the descent number and major index by the nth q-Eulerian.
  15. [15]
    [PDF] integers 18 (2018) major index over descent for pattern-avoiding ...
    Jun 5, 2018 · The major index of a permutation is the statistic maj(σ) = "i ... [11] R. P. Stanley, Enumerative Combinatorics, Vol. 2, Volume 62 of ...<|control11|><|separator|>
  16. [16]
    Permutations - Combinatorics - SageMath Documentation
    Return the inverse major index of the permutation self . to_major_code ... A permutation is regarded as a word (using one-line notation), and thus a ...
  17. [17]
    [PDF] Major Index Statistic: Cyclic Sieving, Branching Rules, and ...
    Definition 2.10. The major index of T is the sum of the descents. In fact, SYT(λ) indexes a basis for Sλ. The number fλ := # SYT(λ) = dim Sλ is usually very ...
  18. [18]
    Algebra of coinvariants and the action of a Coxeter element
    Algebra of coinvariants and the action of a Coxeter element. January 2001. Authors: Witold Kraśkiewicz at Nicolaus Copernicus University. Witold Kraśkiewicz.
  19. [19]
    [PDF] ASYMPTOTICS OF q-PLANCHEREL MEASURES - HAL
    where imaj(σ), called major index, is the sum of ... In the next two paragraphs, we explain why this q-analog is natural in the context of Hecke algebras.