Submitted:
04 October 2026
Posted:
06 October 2026
You are already at the latest version
Abstract
We introduce a unified framework for computing nested sums involving products of q-binomial coefficients and q-integers, and organize their evaluation into explicit calculation formulas. The core of the framework is that every such sum admits three equivalent expansions in q-binomial coefficients, linked by explicit transformations. These transformations yield inversion formulas, orthogonality relations, and closed-form evaluations for weighted infinite series. The framework recovers many classical q-binomial theorems as special cases and systematically generates new summation formulas through parameter specialization. In the classical limit q → 1, the machinery reduces to ordinary binomial sums. It gives explicit formulas for the Stirling numbers of both kinds (with parameters N and N − M) and for the Eulerian numbers. In the modular setting, the same formalism provides a unified treatment of a broad family of congruences for nested sums modulo primes.
Keywords:
q-nested sum
; q-binomial
; q-analysis
; q-calculus
; Stirling numbers
; Eulerian numbers
MSC: 05A30; 05A19; 05-08; 11A07
1. Introduction
Consider the sum of products of M distinct numbers chosen from . If two consecutive chosen numbers differ by more than 1, we call it a gap. Grouping products by the position and number (named g) of gaps yields groups for each g, with groups in total.
We find that the sum over each group has a simple closed form,
When the , the result reduces to the classical identity
and that for groups with the same number g of gaps the coefficients can be combined. This yields the final formula for the M-distinct sum, stated in Section 7. Observing that each group is in fact a nested sum, we are led to extend this structure to binomial coefficients and then to q-binomial. In doing so, we find that every such sum admits three equivalent expansions, which together form the unified framework developed in this paper.
The core contributions of the present work consist of five facets: computational machinery for nested summations, the three-form equivalence property, mutual transformation relations among the coefficient families, the capability to match arbitrary target sequences, and an entirely new methodological viewpoint.
Many identities emerge as by-products of this machinery. A subset of these are well-known classical q-binomial theorems, which we extend to finite-form settings; this task is substantially more difficult and conceptually distinct from the original infinite-series treatments. We employ these classical results primarily as consistency checks: recovering them serves to verify the correctness of our formalism, rather than constituting primary objectives of this paper. Beyond such benchmark checks, the same framework systematically yields numerous apparently new identities.
Although the binomial framework was established earlier and q-binomial analogues are more complex, we develop the theory for q-binomial objects first in this manuscript. This presentation strategy avoids many duplicate definitions and proofs.
To place this observation in context, recall that the q-binomial coefficient is fundamental in combinatorics, featuring in partition theory, representation theory and quantum-group studies. Classical identities including the q-binomial theorem, q-Vandermonde convolution, and summations of Gauss, Cauchy and Jacobi form cornerstones of q-analysis. Nevertheless, nested sums built from q-binomial-coefficient and q-integer products are mostly treated by ad-hoc tricks, with no general computational framework for arbitrary such sums yet available [1,2,3]. We construct this missing framework using the recursive operator (for arbitrary-depth nested sums) together with the shift operator . Our main results (Theorems 2.1, 3.3) prove that every admissible nested sum possesses three equivalent q-binomial expansions connected by explicit transformations, yielding inversion formulas, orthogonality relations, and closed-form evaluations for weighted infinite series which subsume many classical q-identities.
The power of our framework is demonstrated through a wide range of applications. On one hand, many classical theorems—including Rothe’s q-binomial theorem, MacMahon’s q-binomial theorem, Gauss’s q-binomial theorem, Jacobi’s q-binomial theorem, and Cauchy’s identity—follow directly from our three-form equivalence, with proofs that are remarkably short and uniform. Beyond unifying the proofs of numerous classical q-binomial theorems, the framework presented here serves as a systematic identity generator: arbitrary specializations of the free parameters yield a vast family of new summation formulas, of which only a representative sample is included. This dual nature—both a unifying principle and a discovery tool—distinguishes our approach from previous ad hoc treatments.
The framework, however, extends well beyond the q-domain. In the classical limit , the three-form equivalence reduces to explicit summation formulas for the Stirling numbers of both kinds, as well as for the Eulerian numbers and their associated variants, providing a direct combinatorial interpretation in terms of set partitions and permutations. Moreover, since the framework yields exact summation formulas, it automatically enables the determination of congruences by simply reading off the modular behavior of the resulting binomial expansions. This yields a broad family of prime congruences that arise uniformly from the same mechanical procedure, revealing a natural yet unexpected bridge between nested summation and modular arithmetic.
The paper is organized as follows. Section 2 (Calculation Formula) recalls the necessary definitions, proves a key summation lemma, introduces the recursive operator , and presents the main calculation theorem. Section 3 (Properties) establishes the relations among the three forms. Section 4 (Inferences) derives simple consequences of the framework that nevertheless reveal important results, including inversion formulas and orthogonality relations. Section 5 (Applications) then presents a wide range of applications, including numerous new results and finite summation identities. Section 6 (Unified Conversion Formulas) establishes a unified framework and demonstrates its utility. Section 7 (The limiting case ) examines the classical degeneration and its connections to Stirling numbers, Eulerian numbers, and modular congruences.
2. Calculation Formula
The q-binomial coefficient is defined for non-negative integers by
For convenience, we write and . The q-shifted factorial is given by
The Kronecker delta is defined as usual: if and 0 otherwise.
denotes the falling factorial and denotes the rising factorial:
with the empty-product convention .
The following elementary identities are fundamental:
where denotes the inversion number of the binary word w (see [4]).
Lemma 2.1.
For integers and , the following three equivalent forms hold:
Proof.
We begin with the identity . Decompose it as
Using the identity , then the sum becomes
This proves the first equation.
Next, from the recurrence relation , we have
Substituting this into the first equation yields the second and third equations. □
Definition 2.1.
We now introduce a recursive operator and a family of nested sums that will serve as our main objects.
For , define the operator on functions by
Remark 2.1.
Equivalently, the operator can be written explicitly as
which is a normalized backward difference.
Let and . Define the nested sum recursively as follows:
and for ,
where (with ) and . Thus, p is determined by the common difference of the ’s.
To simplify notation, we adopt the following abbreviations:
and if , we simply write . In this paper, unless otherwise stated, we assume
The following special cases are particularly useful:
Now, let and . For each i, we choose . For all combinations in , define
For each i, write for the counts of T-choices and K-choices among the first i variables, and for those among the first variables. Then
Using this notation, we can now state the main calculation theorem.
Theorem 2.1.
Let , , and set for . Then
Where
and , with
Proof.
We prove the theorem by induction on M. Using the elementary summation formula (3):
Indeed, for , we have and . Then
and using together with (3), we obtain
which matches the three forms.
Assume now that the theorem holds for M variables. Consider the -variable case with
where . Set
By definition,
By the induction hypothesis, has the forms with ; applying (3) to gives
Now substitute the first form into the definition:
Using (3) and Lemma 2.1, we have
Therefore,
Since and , the first sum contributes to
After shifting the index g to in the second sum and re-indexing, we obtain
with the convention . This matches the definition of for in the theorem. Hence
The proofs for and are analogous. □
Example 2.1.
For , , direct expansion yields explicit coefficient:
Here, in corresponds to , , , .
Specifically, we have
Proceeding analogously to the case, we obtain by induction:
Theorem 2.2.
For constants ,
where
Now, taking the limit . We define
Since and , the nested summation formula for follows immediately.
Lemma 2.2
(Closed form for finite q-binomial sums). Let , , . Then
Proof.
We divide the proof into two parts.
Step 1: The case .
It suffices to prove
We proceed by induction on M and, for each fixed M, by induction on N.
Base case : The left-hand side is . For the right-hand side, we need
which follows from the identity
obtained by induction on M using .
Inductive step on N: Assume () holds for . Using for , we get
Using induction on N for the first sum and on for the second, then simplifying via the q-binomial recurrence, gives () for N, completing the case .
Step 2: Reduction to general .
Shifting , we have
Applying () (with N replaced by ) and simplifying the exponent of q yields the desired identity. □
Theorem 2.3.
Let , , and . Then:
- (1)
- The three coefficient forms share the common value
- (2)
- For finite N,
- (3)
- If , then
Proof.
We first record the three expansions from Theorem 2.1 with ,
Proof of (2).
Apply Lemma 2.2 to of . For fixed g, we have
Multiplying by and summing over g, the first term on the right becomes
The second term equals
Define this quantity as ; this is a temporary definition. Thus (2) holds.
Proof of (1).
Now apply the same argument to of . For each fixed g, Lemma 2.2 gives
After multiplying by and summing, the first term again becomes
because the same expression is obtained (with p shifted). The second term becomes
Since two identities are both equal to , thus the second terms are equal:
Applying Lemma 2.2 to similarly completes the proof of (1).
Proof of (3).
Taking in (2) (with ) gives
Setting and using the definition of (where the standard case is ) yields
□
3. Properties
In this section, we collect several useful properties of and the coefficients .
Definition 3.1.
Define the q-numbers
and their factorials:
Theorem 3.1 (Basic Properties)
The following properties hold.
- (1)
- For ,
- (2)
- The pairs may be permuted freely within each consecutive block of the ’s ().
- (3)
- For any integer p, with ,
- (4)
-
For any positive integers ,Thus can be greater than 1.
- (5)
- In particular,
- (6)
- For as defined in Theorem 2.1,
Proof.
- (1)
- Follows directly from the definition of .
- (2)
- Follows directly from the definition of (factors within the same nesting level commute).
- (3)
- This was established during the proof of Theorem 2.1; included here only for reference.
- (4)
- Observe the : when Q factors are prepended to , we have for , and for they equal . Hence the whole sum is multiplied by .
- (5)
- This is the special case of (4).
- (6)
- This is the combinatorial identitystated at the beginning of Section 1. With, this sum is precisely the generating function over binary words with zeros and g ones.
□
Using property (5) with , we obtain a nice closed form:
Theorem 3.2 (Basic q-binomial identities)
The following identities hold:
Proof.
(1) Take and . By definition,
Only is nonzero (all other since ). Hence the sum equals .
(2) follows from (A1) by shifting .
(3) follows by expanding the product:
The inner sum is evaluated by (2) as . □
Remark 3.1.
Part (1) is Cayley’s theorem:
where denotes the number of partitions of n into at most M parts, each at most N (see [5] [ p. 116]). Part (3) is Rothe’s q-binomial theorem(): .
We show that MacMahon’s q-binomial theorem follows directly from (2).
Multiplying these two expressions and extracting the coefficient of yields
After simplification and application of the q-Vandermonde identity, this reduces to
Thus we obtain the two-parameter identity
Setting gives MacMahon’s q-binomial theorem in its standard form:
Two variations of the q-binomial theorem.
The following identities, which will be used later in this paper, can be proved by induction on M using the standard recurrence for :
In light of the above preparations, we now present one of the main theorems of this paper.
Theorem 3.3 (Mutual transformations)
For ,
Proof.
We prove (1) in detail; the proofs of (2)–(4) are analogous.
Since the identities are homogeneous in each pair , we may first set for all i by replacing with ; the general case then follows by scaling back. Thus we prove (1) under the normalization .
For , direct computation verifies the identity. Assume (1) holds for M. Append a new pair with . Let and denote the coefficients for M variables. For , by the definition of ,
Substituting the induction hypothesis for and , we get
On the other hand, for ,
Hence
The difference between the two expressions vanishes: after substituting , the -terms cancel and the remaining terms reduce to zero by direct simplification of the q-binomial coefficients. Therefore , proving (1). The remaining identities (2)–(4) are obtained by the same induction.
In Theorem 2.3, take and . Define
By the standard Rothe identity,
Thus
Comparing coefficients of on both sides (interchanging the order of summation in the double sum) yields
which is (5).
From (5), replace g by r and set to obtain
Multiply both sides by and sum over r:
By (8) (with , , and ),
(For , ; the only non-zero term occurs when , yielding .)
Substituting this into the previous equation yields
Applying the substitution and relabelling r as k gives (6).
The inductive proof above assumes via a scaling substitution. When some , every selection with vanishes in the definitions of , so only branches with contribute. One may verify by direct substitution that all transformation identities (B1)–(B6) continue to hold in this degenerate setting. □
We also define the symmetric functions
and their q-analogues
Theorem 3.4.
Assume and . Then, for ,
Proof.
Recall the general expression for in Form 1:
Since and , , the factor simplifies to
For a fixed choice of g indices with , let their positions be . Then for the j-th such index, so
Thus the T-terms contribute a common factor independent of the specific positions. Therefore,
Now let the K-term indices be . For these indices, equals the number of T-terms preceding . Expanding the product over the K-terms,
The second sum is independent of the specific positions of the T-terms and equals . Hence
□
In this paper we frequently use the following triple representation: for ,
where we set and .
Now consider the special case and . From Theorem 2.1 () we have
The elementary symmetric functions are algebraically independent, so the parameter provide M degrees of freedom. By Theorem 3.4, the values for are independent and can be assigned arbitrarily by choosing the parameters . Therefore, given any sequence , we can choose and a constant c such that
and then the remaining coefficient determines c via (because ). Consequently,
Although this reduction is derived from , it extends naturally to all three forms. We obtain
for the same constant c. Since c is irrelevant in our applications, we identify . Thus, for any sequences obtained in this way, the relations in Theorem 3.3 are universally valid.
For any admissible , we may choose a new set of parameters ,
where C is a constant.
For , the construction above with and global scaling works. For the case , we may select some to achieve the target sequence. The key point is that any target sequence can be matched to , and we may then employ the recursive relations in Theorem 2.1 together with Theorem 3.3.
As a natural inference, we obtain the following necessary and sufficient condition for reducing the number of terms.
Theorem 3.5.
For a reduction by R terms (), the sum
is possible iff,
Here the conditions are equivalent to or . Analogous conditions hold for the other two forms.
4. Inferences
The following theorems are direct algebraic consequences of Theorem 3.3. They are self-contained structural results of the three-form framework, revealing the algebraic duality among the coefficient spaces and of independent interest.
Simplifying the mutual expressions yields the inversion formulas.
Theorem 4.1 (Inversion formula)
The following inversion relations hold; equivalently, in dual form:
- 1.
- . Then
- 2.
- . Then
- 3.
- . Then
The inversions are not equivalent to these standard formulas (see [6]).
Set , , or to and applying the inversion formulas in Theorem 4.1 and Theorem 3.3 to get:
Theorem 4.2 (Orthogonality relations)
For , the following identities hold:
Using the three-form equivalence and setting , , or to and Theorem 3.3 to get:
Theorem 4.3 (Generalized q-Vandermonde identities)
For and :
Binomial coefficient relations (limit ).
Assume all binomial arguments are non-negative integers. If
applying Theorem 4.3 together with Theorem 3.3, we obtain:
Theorem 2.3(1) gives, for ,
Under the substitution and `multiplying by , this becomes
In identity (A), is paired with (corresponding to ), while is paired with (corresponding to ). Accordingly
Analogous substitutions hold for the remaining relations.
5. Applications
Illustration of the computational technique.
As an application of Theorem 3.2 (1), consider the sum
Form 1 (detailed computation).
Recall the general expression for in Form 1:
Substituting :
Case :
Since implies , we have .
Case :
Now , implies . Hence
Therefore, Form 1 gives
The second branch contains i and coupled, so summing over all choices of T-positions is nontrivial and a closed form for is not easily obtained. The same complication occurs in .
Form 3 (detailed computation).
The general expression for in Form 3 is
For a fixed choice of g indices assigned to , say , we have at position . The product over all i is
Now
Thus, by Theorem 3.1(6),
Substituting this into Form 3, where , gives
Compared to Theorem 3.2 (1).
The Form 3 factors are
The product of the extracted factors over all gives . The remaining factors contribute as follows:
- gives ;
- gives ;
- , summed over all choices of g indices, gives
Hence(Theorem 3.2 (2)),
Using , we obtain
The classical q-Vandermonde identity.
By Theorem 3.1 (2) (4),
We now compute . For the i-th factor, . When ,
By Theorem 3.2 (2),
and multiplying by the contribution from the gT-terms, which is , we obtain
Since and , a direct simplification of the exponents gives
Therefore,
Now apply to both sides. By Theorem 3.1 (3), and . and replacing M with in the above identity, we obtain
Extension of Classical Theorems.
In view of the recurring occurrence of products such as in the preceding sections, we obtain the following generalizations.
The first equation extends the Gauss q-binomial theorem [5] [p. 61]: .
The fifth equation extends another Gauss identity [5] [p. 65]:
All identities above are derived by elementary induction and are presented here for reference.
Proposition 5.1.
The following identities hold:
- 1.
- For and ,
- 2.
- For and ,
- 3.
- With the same as above,
- 4.
- For general and , if we prepend a factor with a new T, we have
Proof.
For (1), from Theorem 3.1(3), we have
Using (22) , yields (1).
For (2), the proof is analogous to that of (22).
For (3), it follows directly from Theorem 3.4 and (2) ( does not affect the result).
For (4), by Theorem 3.1 (4), Expanding both sides in and comparing the coefficients of . □
Definition 5.1.
We define a new number,
with all . They satisfy
Proposition 5.2 (Three expansions of )
Proof.
Take
with , , and note that here .
First, by Theorem 3.1(1)(4),
We now compute . The factors are
The product over the T-terms is independent of their positions and equals
Thus
. Substituting it into gives
The substitution gives the first identity; the proof of the second is identical.
Now Set
Thus
the factors are
gives , gives , gives .
When , the factor first appears in . All leading are , and all after it are greater than 1. Thus
When appears for the second time, for with , and all later are greater than 2. At this point, , so
Continuing this way yields
Since the term vanishes when , we may assume and set ,
Thus
Substituting it into gives
, thus
Substituting and , gives the third identity. □
The first and third expansions correspond, respectively, to the classical q-Stirling numbers of the second kind and the q-Eulerian numbers (Carlitz [6,7,8]). The second expansion, however, appears less common in the literature.
Take the limit ,
Here and denoting Stirling and Eulerian numbers (the expression of the latter is the main result of [9]). Theorem 2.3(1) gives three expressions for the Eulerian polynomial (here q denotes the weight parameter a from Theorem 2.3).
Here is the classical Eulerian polynomial, with ,and . yields the classical representation.
Using the definition of a difference,
Recall the identity for Stirling numbers of the second kind
we obtain
Therefore
At , we have , so
This gives us the fourth expression for .
and more generally,
Therefore
From Theorem 2.3, we see that the Eulerian polynomial is merely a special case.
Proposition 5.3.
For nonnegative integers satisfying the stated conditions, the following identities hold:
- 1.
- If and , then
- 2.
- If and , then
- 3.
- If , then
Proof.
(1) Take
Applying Proposition 5.1(2) gives
On the other hand, using Theorem 3.1(2)(4), the same can be rewritten as
Applying Proposition 5.1(2) again yields
Comparing (*) and (**), and simplifying the q-factorial factors, gives exactly (1).
(2) follows from (1) by applying Theorem 3.5.
(3) Take
By (1), the coefficients are
Using the transformation formula in Theorem 3.3(3), which states
and taking , we obtain
On the other hand, from the definition of , a direct computation gives
Therefore,
Substituting the expression for and simplifying the product gives
Simplifying the product
Thus,
Multiply both sides by , we arrive at
which is exactly (3). □
Proposition 5.4 (A nested summation identity with step size 2)
Proof.
Take
By Proposition 5.1(2), the coefficients for this satisfy
And the definition of is
Thus for a choice of indices from (say, ), the product of the corresponding ’s is
This leads, after summing over all such choices and relabelling, to the multinomial expansion
This follows because the inversion statistic for the K-choices produces after the standard reduction; details are routine.
Comparing the two expressions yields
Now set and replace by M (i.e., take and reindex the sum). We get
Multiplying both sides by and noting that , , we obtain
which is exactly the claimed identity. □
In particular,
and for ,
Propositions 5.4 and 5.3 illustrate the new proof method developed in this paper.
6. Unified Conversion Formulas
The following theorem is a direct consequence of Theorem 3.3 and Theorem 3.2(3); it also generalizes Theorem 2.3(1).
Theorem 6.1.
For any integer A, the following hold:
- 1.
- .
- 2.
- .
- 3.
- .
Thus, any one of the three coefficient sequences determines the other two; the parameters may be chosen freely to produce further relations.
Three-form equivalence from special coefficients.
Taking the special choices
Substituting these into the three-form equivalence gives
Generating function identities and consequences.
Applying the first identity in Theorem 3.1(3), we obtain
This yields the equivalent expressions (Theorem 6.1(1))
Setting and replacing by z in the starred equation gives
When , we have
Jacobi’s q-binomial theorem.
Applying Theorem 6.1(1) to , we get
Thus
Replacing x by and z by , then multiplying through by , recovers Jacobi’s q-binomial theorem (see [5], p. 71):
Finite form of Jacobi’s Durfee square identity.
Take , Theorem 6.1(3) gives
or equivalently(),
Letting , this becomes the finite form of Jacobi’s Durfee square identity (see [5], pp. 158–159):
Special case .
Taking and using the identity
we obtain
Substituting these into the three-form equivalence gives
Consequences of the conversion formulas.
Computing from and gives
Conversely, computing and from yields
Application of Theorem 6.1(3).
From Theorem 6.1(3) and Theorem 3.2(3), we have
Euler’s identity.
Finally, by Theorem 6.1(2),
Replacing q by recovers Euler’s identity (see [5], p. 83): .
Parallel derivation from .
Starting from
() gives
Substituting these into Theorem 6.1(1)(2) yields:
, (1) yields
, (3) yields
Set , replace g by yields
Thus
Generalization to arbitrary and Cauchy’s identity.
In the preceding discussion we assumed . However, apart from the combinatorial interpretation of , may be arbitrary numbers. To illustrate this flexibility, set
Here a and b are independent by virtue of the free parameter T.
A direct computation using Theorem 2.1 gives the and coefficients:
and
With and , Thus
On the other hand (Theorem 6.1(3)), expressing the same sum in terms of gives ()
Equating the two expressions and dividing by , we obtain
Letting and using the standard limiting argument recovers Cauchy’s identity (see [5], p. 260):
The case .
Letting and taking then (Lemma 2.2)
we obtain from Theorem 6.1(1):
For , the right-hand side collapses to a finite sum:
Theorem 6.1(2):
For , the right-hand side collapses to a finite sum:
In summary, the framework above not only provides short proofs of classical q-binomial theorems (and their finite extensions), but also yields a substantial collection of apparently new identities. Moreover, by freely specializing the free parameters, one can systematically generate a vast further family of such identities, of which only a few representative examples are given here.
7. The Limiting Case
Taking the limit in Theorem 2.1, the three expansions reduce to the following binomial forms. Let .
where
We have
Here and denote the unsigned Stirling numbers of the first and second kind, respectively. These formulas enable the computation of and .
For completeness, we recall the definitions of the associated Stirling numbers used in this section.
The associated Stirling numbers of the first kind are defined by
and satisfy the recurrence
The associated Stirling numbers of the second kind are defined by
and satisfy
The terminology and systematic treatment of associated Stirling numbers are due to Howard [10].
Definition 7.1.
. Define the operation ⊙ by
Case 1: , .
For , when , we have . Hence
so
For , when , we have . Hence
For , we have already obtained in Proposition 5.2:
Case 2: ,
(Row 6 of Table 1).
Set
For , the recursive definition gives
With the initial condition at and the standard recurrence for , we obtain
A combinatorial interpretation is also available. Since
it represents the sum of products of M distinct numbers chosen from .
If , we call it a gap. Let denote the pattern in a group with g gaps, normalized so that and or 2. For example, when ,
By Theorem 3.1(5), the sum over each group is
The gap patterns allow one to read off the products entirely by visual inspection, without invoking any algebraic formula for the coefficients.
Thus , and each corresponds to a unique in some . This gives the explicit form
where the sum is over with . This is precisely the conclusion of [11].
For , the recurrence becomes
With the initial condition at and the recurrence for , we obtain
Indeed, substituting this into the recurrence gives
which simplifies to
matching the standard recurrence.
For , using the method from Proposition 5.2 , we can obtain
Table 1.
Summary of for various choices of and .
Here . See Proposition 5.1(4).
We observe that classical numbers such as Stirling and Eulerian numbers are not isolated special cases within our framework. Instead, they arise naturally as a specific realization of the general formulas we derived. This perspective enables straightforward generalizations to broader families of sequences. As an illustration of possible generalizations, we present the following generalized sequences.
For of this , there is no direct counterpart for . Nevertheless, using the notion of gaps, we obtain
where denotes gap-modified patterns, obtained by substituting selected entries with . For illustration, we write the product expansions for :
We can also define
Clearly,
Moreover, it follows easily from the definition that ,
which matches
From Theorem 3.3, we readily obtain
Proof of a classical identity
We can verify that
For and , the following identity holds:
As an example:
Since and , we obtain
This recovers the main result of [12].
We now derive classical congruences modulo a prime P. with , and all congruences are modulo P. We write for the modular inverse of , so that .
Theorem 7.1.
For :
- If , then
- If , then
-
If , thenFor and ,
Proof.
Let , so and . Then
where .
If , then every binomial coefficient is divisible by P, hence .
If , then only the term survives, , .
If , then , so the leading term vanishes and .
For , Theorem 3.4 gives
where we used , , and Wilson’s theorem . □
Nested summations are allowed here, but generally only is used.
Theorem 7.1 gives a uniform congruence criterion. The key is to sum up to P and then discard all terms containing P as a factor; the number of surviving terms is determined by the number of factors. For instance, for , we have
Thus the congruence is not proved case by case, but follows from the same uniform mechanism.
Congruences for Stirling numbers
Set , , and .
Recall the explicit representation
In this representation, whenever , the largest possible part occurs when , giving . Hence all in all distributions, so no denominator is divisible by P. Since the numerator contains a factor of P, it follows that
Consequently, in the sum over g, the only possible nonzero contributions modulo P come from terms with . For those terms, the binomial coefficient is divisible by P, since and ; Hence the entire sum is congruent to . Thus
Equivalently, for , , , and ,
Similar analysis applies elsewhere.
Proof of Wilson’s theorem.
By Theorem 3.1(1),
Using Theorem 3.4,
Since and for , we obtain
On the other hand, by the definition of ∇,
Therefore , which is Wilson’s theorem.
Proof of Wolstenholme’s theorem.
For , consider
To evaluate this modulo , use the explicit formula for ,
Thus
Hence . Since , and (by Wilson’s theorem), we conclude
This is Wolstenholme’s theorem [13], equivalently
Solving coefficients via matrices
Define an matrix,
Here . List from top to bottom, with g increasing from left to right. They correspond to . It is easy to prove by Gaussian elimination: Up to sign factors arising from column permutations,
If or is easy to obtain, treat as unknowns and apply Cramer’s rule:
, from which the following classical formulas may be recovered.
(M1) .
(M3) .
For , we obtain the fully matching generalized formulas, .
Where obtains from .
Conflicts of Interest
The authors declare that they have no conflict of interest.
References
- Wang, Y.; Li, Y. Some identities on q-binomial coefficients. J. Math. Anal. Appl. 2024, 529(no. 1), 127594. [Google Scholar]
- Guo, V.J.W.; Zhang, H. q-binomial identities revisited. Ramanujan J. 2023, 62, 1123–1142. [Google Scholar]
- Françoise, J.-P.; Naber, G.L.; Tsun, T.S. (Eds.) S.O. Warnaar, q-hypergeometric and related identities. In Encyclopedia of Mathematical Physics; Elsevier: Oxford, 2006; vol. 4, pp. 260–268. [Google Scholar]
- MacMahon, P.A. The indices of permutations and the derivation therefrom of functions of a single variable associated with the permutations of any assemblage of objects. Amer. J. Math. 1913, 35, 281–322. [Google Scholar] [CrossRef]
- W.P. Johnson, An Introduction to q-Analysis; American Mathematical Society: Providence, RI, 2020.
- Carlitz, L. q-Bernoulli and Eulerian numbers. Trans. Amer. Math. Soc. 1954, 76, 332–350. [Google Scholar] [CrossRef]
- Carlitz, L. A combinatorial property of q-Eulerian numbers. Amer. Math. Mon. 1975, 82, 51–54. [Google Scholar] [CrossRef]
- Carlitz, L. A note on q-Eulerian numbers. J. Combin. Theory Ser. A 1978, 25, 90–94. [Google Scholar]
- Qi, D.-J. A new explicit expression for the Eulerian numbers. J. Qingdao Univ. Sci. Technol. Nat. Sci. Ed. 2012, 4, 33. [Google Scholar]
- Howard, F. T. Associated Stirling Numbers. Fibonacci Q. 1980, 18, 303–315. [Google Scholar] [CrossRef]
- Deng-Ji, Q.I. Associated Stirling number of the first kind. J. Qingdao Univ. Sci. Technol. Nat. Sci. Ed. 2015, 05 36. [Google Scholar]
- Butler. S, P. Karasik, A note on nested sums. J. Integer Seq. 2010, 04 13. [Google Scholar]
- Wolstenholme, J. On Certain Properties of Prime Numbers. Q. J. Pure Appl. Math. 1862, 5, 35–39. [Google Scholar]
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2026 by the author. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license.
Copyright: This open access article is published under a Creative Commons CC BY 4.0 license, which permit the free download, distribution, and reuse, provided that the author and preprint are cited in any reuse.