Next Article in Journal
Neural Network-Based Symbolic Computation Algorithm for Solving (2+1)-Dimensional Yu-Toda-Sasa-Fukuyama Equation
Previous Article in Journal
Dicke State Quantum Search for Solving the Vertex Cover Problem
Previous Article in Special Issue
Promotion of Lattice Paths by Riordan Arrays
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

The Janjić–Petković Inset Counting Function: Riordan Array Properties and a Thermodynamic Application

Theoretische Physik III, Center for Electronic Correlations and Magnetism, University of Augsburg, 86135 Augsburg, Germany
Mathematics 2025, 13(18), 3007; https://doi.org/10.3390/math13183007
Submission received: 31 May 2025 / Revised: 3 September 2025 / Accepted: 11 September 2025 / Published: 17 September 2025

Abstract

Let q 1 + + q n + m objects be arranged in n rows with q 1 , , q n objects and one last row with m objects. The Janjić–Petković counting function denotes the number of ( n + k ) -insets, defined as subsets containing n + k objects such that at least one object is chosen from each of the first n rows, generalizing the binomial coefficient that is recovered for q 1 = = q n = 1, as then only the last row matters. Here, we discuss two explicit forms, combinatorial interpretations, recursion relations, an integral representation, generating functions, convolutions, special cases, and inverse pairs of summation formulas. Based on one of the generating functions, we show that the Janjić–Petković counting function, like the binomial coefficients that it generalizes, may be regarded as a Riordan array, leading to additional identities. As an application to a physical system, we calculate the heat capacity of a many-body system for which the configurations are constrained as described by the Janjić–Petković counting function, resulting in a modified Schottky anomaly.

1. Introduction

Suppose that q 1 + + q n + m objects are arranged in n rows with q 1 , , q n objects and one last row with m objects. The Janjić–Petković counting function m , n k , { q 1 , , q n } denotes the number of ( n + k ) -insets, defined in this context as subsets containing n + k objects such that at least one object is chosen from each of the first n rows, as in Figure 1. This function was introduced by Janjić in Ref. [1] and developed further in Refs. [2,3]. It reduces to the binomial coefficient m k for q 1 = = q n = 1, as then k objects are chosen only from the m objects in the last row. Note that the order of the numbers q 1 , q n does not matter in m , n k , { q 1 , , q n } . By convention, m , n k , { q 1 , , q n } = 0 for k < 0 or n + k > m + q 1 + + q n . From the many properties and applications of m , n k , { q 1 , , q n } presented in Refs. [1,2,3], we will start from the special case n = 1 (see (3) in [1], (6) in [2]),
m , 1 k , q = m + q k + 1 m k + 1 ,
and, for n 2 , the recursion relation (see (13) in [2])
m , n k , { q 1 , , q n } = p n = 0 q n 1 m + p n , n 1 k , { q 1 , , q n 1 } .
Combinatorially, (1) means that, for n = 1, one chooses n + k = k + 1 out of a total of m + q objects, of which the choices only from the last row do not count and are therefore subtracted. The combinatorial meaning of (2) was given in Ref. [2] and may be paraphrased as follows: in row n, let r n (1 ≤ r n q n ) be the index of the selected object with the highest index; then, n + k 1 objects remain to be selected, namely at least one object each from the first n 1 rows, as well as m + r n 1 objects from the last row and the rest of row n, for which there are m + r n 1 , n 1 k , { q 1 , , q n 1 } choices. Summing this over p n = r n 1 = 0 q n 1 yields m , n k , { q 1 , , q n } .
Below, we use (1) and (2) to establish several properties and applications related to m , n k , { q 1 , , q n } . In Section 2, two explicit forms and an integral representation are obtained and checked against the recursion relations of Refs. [1,2]. In Section 3, a generating function appearing in [3] is obtained, leading to several convolution identities involving the number p Q n ( m ) of partitions of m into parts from Q n . In [2], the special set Q n = { 1 , , n } was related to Euler’s pentagonal number theorem, which we extend in Section 4 to the case where this set contains gaps. Using the generating function from Section 3, in Section 5, further relations for m , n k , { q 1 , , q n } are obtained by regarding it as a Riordan array. In Section 6, we obtain another type of generating function and use it to obtain inverse relations for a set of linear equations. Finally, in Section 7, the thermodynamic properties of a many-body system with restricted configurations as in m , n k , { q 1 , , q n } are discussed, leading to a generalized Schottky anomaly in the heat capacity.
For brevity, similarly to [3], we write
Q n = { q 1 , , q n } , Q n = j = 1 n q j , p < Q n = p 1 = 0 q 1 1 p n = 0 q n 1 , P n = j = 1 n p j .
Note also that, if a list Q has more than n elements, then, by convention, m , n k , Q = m , n k , { q 1 , , q n } , where { q 1 , , q n } are the first n elements of Q.

2. Explicit Forms, Row Extension, and Integral Representation

Proposition 1 
(Explicit form). For integers n , q 1 , q n 1 , m , k 0 ,
m , n k , Q n = p < Q n m + P n k .
Proof. 
For n = 1, we use r = 0 s r k = s + 1 k + 1 for k ≥ 0 (proven by induction in s, or by multiplying both sides with x k + 1 and summing over k 0 ) to rewrite (1) as
m , 1 k , q 1 = m + q 1 k + 1 m k + 1 = r = m q 1 + m 1 r k = p 1 = 0 q 1 1 m + p 1 k ,
while, for n ≥ 2, we apply (2) n 1 times and insert (5),
m , n k , Q n = p n = 0 q n 1 p 2 = 0 q 2 1 m + p n + + p 2 , 1 k , q 1 = p n = 0 q n 1 p 1 = 0 q 1 1 m + p n + + p 1 k ,
completing the proof of (4). □
Combinatorially, the explicit form (4) can be understood in a similar fashion as (2): in each of the rows j = 1 n , let r j (1 ≤ r j q j ) be the index of the selected object with the highest index; then, k objects remain to be selected from the m + r 1 + + r n n objects in the last row and the rest of the rows 1 n , for which there are m + r 1 + + r n n k choices. Summing this over all p j = r j 1 = 0 q j 1 yields m , n k , Q n .
As mentioned at the beginning, m , n k , Q n is nonzero if m + Q n n + k . However, it should be noted that, if, as in (1) or (4), m , n k , Q n is expressed in terms of binomial coefficients, then some of them may not contribute because their upper argument is smaller than the lower one. For example, for n = 1, m , 1 k , q is nonzero if m + q 1 + k , but the second binomial coefficient in (1) is zero for k > m, which can happen for q > 1, e.g.,
m , 1 m , 2 = m + 2 m + 1 m m + 1 = m + 2 m + 1 = m + 2 .
From (4) follow several properties of m , n k , Q n that are known from Refs. [1,2], such as the special cases (see Section 1 in [2])
m , n k , { 1 , , 1 } = m k ,
m , n 0 , { q 1 , , q n } = j = 1 n q j .
The recursion relation for the binomial coefficients,
m + 1 k + 1 = m k + 1 + m k ,
when inserted in (4), leads to a similar relation for the generalized coefficients (see (9) in [2]):
m + 1 , n k + 1 , Q n = p < Q n m + 1 + P n k + 1 + m + P n k = m , n k + 1 , Q n + m , n k , Q n .
Further recursion relations are obtained from (4) by exchanging the order of summations, such as (see (4) in [1], (10) in [2])
j = 0 m m j 0 , n k j , Q n = p < Q n j = 0 m m j P n k j = p < Q n m + P n k = m , n k , Q n ,
where the inner sum in the first line is a Chu–Vandermonde sum. For n 2 , we also have (see (16) in [1], (13) in [2])
j = 1 q n q n j m , n 1 k + 1 j , Q n 1 = p < Q n 1 j = 1 q n q n j m + P n 1 k + 1 j = p < Q n 1 q n + m + P n 1 k + 1 m + P n 1 k + 1 = p < Q n 1 m + P n 1 , 1 k , q n = m , n k , Q n ,
where the inner sum in the first line is a Chu–Vandermonde sum with the first term missing, while (5) and (4) are used in the third line.
On the other hand, a different type of recursion relation is obtained from (4) if we add r objects to row n, i.e., if we increase q n by r.
Proposition 2 
(Row extension). For integers n , q 1 , q n , r 1 , m , k 0 ,
m , n k , { q 1 , , q n 1 , q n + r } = m , n k , Q n + m + q n , n k , { q 1 , , q n 1 , r }
= m + r , n k , Q n + m , n k , { q 1 , , q n 1 , r } .
Proof. 
Using (4) and splitting the sum in two ways,
m , n k , { q 1 , , q n 1 , q n + r } = p < Q n 1 p n = 0 q n 1 + p n = q n q n + r 1 m + P n k
= p < Q n 1 p n = 0 r 1 + p n = r q n + r 1 m + P n k ,
gives (14) and (15), respectively.  □
The combinatorial meaning of (14) is the following. One can first ignore the r additional objects in the extended row, which gives m , n k , Q n choices, and then select ( n + k ) -insets considering only the r additional objects in row n (but grouping the other q n objects in this row with the m unrestricted objects in the last row), which gives an additional m + q n , n k , { q 1 , , q n 1 , r } choices. In (15), the roles of q n and r are interchanged.
Proposition 3 
(Integral representation). For integers n , q 1 , q n 1 , m , k 0 ,
m , n k , Q n = π π d t 2 π ( 1 + e i t ) m e i ( n + k ) t j = 1 n [ ( 1 + e i t ) q j 1 ] .
Proof. 
We use an integral representation of the binomial coefficients in (4),
m k = π π d t 2 π ( 1 + e i t ) m e i k t ,
m , n k , Q n = p < Q n m + P n k = π π d t 2 π p < Q n ( 1 + e i t ) m + P n e i k t ,
and perform n geometric sums (setting e i t = x ≠ 0),
p j = 0 q j 1 ( 1 + x ) p j = ( 1 + x ) q j 1 ( 1 + x ) 1 ,
which results in (18) after replacing x = e i t .  □
The integral representation (18) reduces to (19) for q 1 = = q n = 1, in agreement with (8). Next, we use it to obtain a different type of explicit form of the counting function.
Proposition 4 
(Alternative explicit form). For integers n , q 1 , q n 1 , m , k 0 ,
m , n k , Q n = p < Q n m k P n j = 1 n q j p j + 1 .
Proof. 
We start from (18), abbreviate e i t = x for the moment, and expand the binomials in the product,
j = 1 n [ ( 1 + x ) q j 1 ] = j = 1 n p j = 1 q j q j p j x p j = x n p < Q n x P n j = 1 n q j p j + 1 ,
after which we replace x = e i t , integrate over t using (19), and arrive at (22).  □
The combinatorial interpretation of (22) is straightforward: set r j = p j + 1 ≥ 1; for j = 1 n , select r j elements from the q j elements in row j; then, select the remaining n + k j = 1 n r j (= k P n ≥ 0) elements from the m elements in the last row.

3. Generating Function for a Fixed Number of Selected Objects and Convolutions with Partition Counts

The following generating function for a fixed number of selected objects appears as Theorem 1 in [3] with a proof by induction. Here, we provide a short alternative proof using the explicit representation (4).
Proposition 5 
(Janjić: Generating functions for fixed number of selected objects n + k ). For | x | < 1 and integers n , q 1 , q n 1 , k ≥ Q n n ,
F k , n , Q ( x ) = = 0 + s , n k , Q n x = 1 ( 1 x ) n + k + 1 j = 1 n 1 x q j ,
with the abbreviation s = k Q n + n ≥ 0.
Proof. 
We use (4), omitting the initial terms in the sum for which the binomial coefficient vanishes,
F k , n , Q n ( x ) = = 0 + k Q n + n , n k , Q n x = p < Q n = Q n n P n + k Q n + n + P n k x = p < Q n x Q n n P n m = 0 m + k k x m ,
where m = 0 m + k k x k = ( 1 x ) k 1 , and
p < Q n x Q n n P n = j = 1 n p j = 0 q j 1 x q j 1 p j = j = 1 n 1 x q j 1 x ,
arriving at (24). □
As discussed in [3], the generating function (24) implies the connection of m , n k , Q n to p Q n | ( m ) , the number of partitions of the integer m into parts taken from Q n [4]; by definition, p Q n | ( m ) = 0 for m < 0. These partitions are generated by the generating function P Q n ( x ) ,
p Q n | ( m ) = s 1 , , s n 0 m = j = 1 n s j q j 1 , P Q n ( x ) = m = 0 p Q n | ( m ) x m = j = 1 n 1 1 x q j ,
in the denominator of which the product j = 1 n ( 1 x q j ) appears, which characterizes the rows Q n and appears in the numerator of F k , n , Q n ( x ) . This relation suggests that we should eliminate this product from the two generating functions, providing convolutions of m , n k , Q n and p Q n | ( m ) .
Proposition 6 
(Convolutions). For integers n , q 1 , q n 1 , k ≥ Q n n , and integer r ≥ 0,
( 1 ) m r m = = 0 m i = 0 m + k Q n + n , n k , Q n p Q n | ( m i ) ( 1 ) i n + k + r + 1 i ,
δ m 0 = 0 m = = 0 m i = 0 m + k Q n + n , n k , Q n p Q n | ( m i ) ( 1 ) i n + k + 1 i ,
m + r m = = 0 m i = 0 m + k Q n + n , n k , Q n p Q n | ( m i ) ( 1 ) i n + k r i ,
m + n + k m = = 0 m i = 0 m + k Q n + n , n k , Q n p Q n | ( m ) .
Here, (29) is equivalent to [3] (Theorem 2).
Proof. 
From (24) and (27), we have
( 1 x ) r = F k , n , Q n ( x ) P Q n ( x ) ( 1 x ) n + k + r + 1 ,
1 ( 1 x ) r + 1 = F k , n , Q n ( x ) P Q n ( x ) ( 1 x ) n + k r ,
and, taking the coefficients of x m in each of these, respectively, gives (28), which becomes (29) for r = 0, and (30), which becomes (31) for r = n + k . □

4. Linearly Increasing Number of Objects per Row with Gaps and Connection to Pentagonal and Related Numbers

In this section, special sets of Q n will be considered, namely the first n = 3 N + 1 entries (for integer N ≥ 1) of one of the following lists:
L 2 = { 1 , 1 , 2 , 3 , 3 , 4 , 5 , 5 , , 2 j , 2 j + 1 , 2 j + 1 , } ,
N = L 3 = { 1 , 2 , 3 , , j , } ,
L 4 = { 1 , 3 , 4 , 5 , 7 , 8 , 9 , , 4 j 1 , 4 j , 4 j + 1 , } ,
L 5 = { 1 , 4 , 5 , 6 , 9 , 10 , 11 , , 5 j 1 , 5 j , 5 j + 1 , } ,
L r = { 1 , r j 1 , r j , r j + 1 , } , ( r 4 )
i.e., for integer r ≥ 4, there are repeating gaps in L r of r 3 missing entries on the list of consecutive integers (namely r ( j 1 ) + 2 , , r j 2 ), while, for r = 2, each of the odd entries is once repeated. In other words, L r is a lacunary list of triples r j 1 , r j , r j + 1 centered around multiples of r. For this set Q n = Q 3 N + 1 , the first and last entries are thus q 1 = 1 and q n = r N + 1 , and the sum of all entries is
Q n = 1 + j = 1 N [ ( r j 1 ) + r j + ( r j + 1 ) ] = 1 + 3 r N ( N + 1 ) 2 = 1 + r ( n 1 ) ( n + 2 ) 6 .
The reason for choosing Q n from these lists is that their entries occur precisely in the power series exponents in a lacunary product identity (see (42) below) that generalizes Euler’s pentagonal number theorem, the connection of which to m , n k , N was already discussed in [3]. To derive this identity, we follow [5] and start from Jacobi’s triple product identity [4], which reads, for | u | < 1 and v ≠ 0,
j = 0 ( 1 u 2 j + 2 ) ( 1 + u 2 j + 1 v ) ( 1 + u 2 j + 1 v 1 ) = m = u m 2 v m .
It reduces to the pentagonal number theorem for u = x 3 / 2 , v = x 1 / 2 , | x | < 1,
j = 1 ( 1 x j ) = m = ( 1 ) m x m ( 3 m 1 ) / 2 ,
which is well known for the cancellation of powers of x in the series and the fact it involves only coefficients 1 , 0 , 1 . It may be regarded as the special case (r = 3) of the identity that follows from letting instead u = x r / 2 and v = x 1 r / 2 in (40), with integer r ≥ 2,
( 1 x ) j = 1 ( 1 x r j 1 ) ( 1 x r j ) ( 1 x r j + 1 ) = m = ( 1 ) m x r m ( m 1 ) / 2 + m = 1 + m = 1 ( 1 ) m x [ r m 2 ( r 2 ) m ] / 2 + x [ r m 2 + ( r 2 ) m ] / 2 .
For r ≥ 4, the factors with exponents r ( j 1 ) + 2 , , r j 2 are absent in (42), resulting in a lacunary product, while, for r = 2, factors with odd powers occur twice,
j = 1 ( 1 x 2 j 1 ) 2 ( 1 x 2 j ) = 1 + 2 m = 1 ( 1 ) m x m 2 ,
and even more powers of x are cancelled in the series than in (41).
The cancellation of summands in the pentagonal number theorem requires an infinite product. If, instead, the product in (41) is finite, i.e., terminating with ( 1 x n ) , then the expansion into a polynomial only agrees with the power series in (41) up to order x n , while, for exponents in the range n + 1 to ( n + 1 ) n / 2 other than pentagonal numbers 1 , 5 , 12 , 22 , and coefficients other than 1 , 0 , 1 , we have, e.g.,
j = 1 4 ( 1 x j ) = 1 x x 2 + 2 x 5 x 8 x 9 + x 10 ,
and similar cases occur for truncated lacunary products (42).
However, the generating function (24) for our Q n (i.e., by the first n = r N + 1 elements of L r ) gives us
( 1 x ) n + k + 1 F k , n , Q n ( x ) = ( 1 x ) n + k + 1 = 0 + s , n k , L r x = ( 1 x ) j = 1 N ( 1 x r j 1 ) ( 1 x r j ) ( 1 x r j + 1 )
provided that k Q n n = 3 [ r ( N + 1 ) 2 ] N / 2 = [ r ( n + 2 ) 6 ] ( n 1 ) / 6 . Before taking coefficients of x i for 0 ≤ in, we replace the product on the right-hand side with (42), as the extra factors result in a difference only for higher exponents.
Proposition 7 
(Linearly increasing number of objects per row with gaps). For the set Q r N + 1 = { 1 , , r N + 1 } L r with integers r ≥ 2, N ≥ 1, n = 3 N + 1 , k ≥ Q n − n (see (39)), 0 ≤ i ≤ n,
= 0 i + k Q n + n , n k , Q n ( 1 ) i + n + k + 1 i = 1 i f i = 0 , 2 ( 1 ) m i f r = 2 , i = m 2 1 , ( 1 ) m i f r 3 , i = [ r m 2 ± ( r 2 ) m ] / 2 1 .
Proof. 
Equate the coefficients of x i on the left-hand side of (45) and right-hand side of (42). □

5. The Janjić–Petković Counting Function as a Riordan Array

As discussed above, the counting function m , n k , Q n is a generalization of the binomial coefficients m k . As shown in this section, the former may be regarded as a Riordan array, like the latter, which is also suggested the by the Pascal triangle analog (11) discussed in [2], as well as by the generating functions occurring in the previous two sections.
Let us first recall the essential properties of Riordan arrays [6,7,8], using slightly unconventional lettering (i.e., N, K, x instead of the usual n, k, t) for better compatibility with the notation used here for m , n k , Q n and its generating functions. An infinite lower triangular matrix d with entries d N , K = ( d ) N 0 , K 0 and generating function
N = 0 d N , K x N = d ( x ) D ( x ) K , d ( 0 ) = d 0 , 0 0 , D ( 0 ) = d N ( < K ) , K = 0 ,
is called a Riordan array and denoted as d = ^   d ( x ) , D ( x ) , referring either to the matrix or the pair of formal power series. They form the Riordan group, so called because the matrix multiplication c = a · b of two Riordan arrays a and b gives again a Riordan array,
c N , K = j = 0 a N , j b j , K ,
( c ( x ) , C ( x ) ) a ( x ) , A ( x ) b ( x ) , B ( x ) = a ( x ) b ( A ( x ) ) , B ( A ( x ) ) ,
with the identity element given by unit array 1   = ^ 1 , x with ones on the diagonal as the only nonzero entries. A useful case corresponds to the matrix times vector, i.e., for a Riordan array d ,
w N = K = 0 N d N , K v K , v ( x ) = K = 0 v K x K , N = 0 w N x N = d ( x ) v ( D ( x ) ) .
Furthermore, the matrix inverse d 1 = ^   d ( x ) , D ( x ) 1 is also a Riordan array,
j = 0 ( d ) N , j ( d 1 ) j , K = 1 N , K ,
d ( x ) , D ( x ) 1 = 1 d ( D ¯ ( x ) ) , D ¯ ( x ) ,
d ( x ) , D ( x ) d ( x ) , D ( x ) 1 = d ( x ) , D ( x ) 1 d ( x ) , D ( x ) = ( 1 , x ) .
where D ¯ ( x ) is the compositional inverse of D ( x ) , defined by x = D ¯ ( D ( x ) ) = D ( D ¯ ( x ) ) . The binomial coefficients are a well-known example of a Riordan array:
( b ) N , K = N K , N = 0 N K x N = 1 ( 1 x ) K + 1 , b = ^ 1 1 x , x 1 x .
Let us now return to the counting function m , n k , Q n , which is found to fit within the Riordan array framework.
Proposition 8 
(Janjić–Petković counting function as Riordan array). For integers N , K ≥ 0, n , q 1 , q n 1 , we have the Riordan arrays
f = ^ ( f ( x ) , F ( x ) ) = j = 1 n 1 x q j ( 1 x ) n + 1 , x 1 x ,
f 1 = ^ 1 f ( F ¯ ( x ) ) , F ¯ ( x ) = 1 ( 1 + x ) n + 1 j = 1 n 1 x q j / ( 1 + x ) q j , x 1 + x ,
( f ) N , K = N Q n + n , n K , Q n ,
( f 1 ) N , K = i = 0 N K p Q n | ( N K i ) N + n i ( 1 ) i ,
for fixed n and Q n , with ( f 1 ) N , K = ( f 1 ) N , K = 0 if K > N. Furthermore,
δ N , M = K = 0 N Q n + n , n K , Q n i = 0 K M p Q n | ( K M i ) K + n i ( 1 ) i
= K = 0 N K Q n + n , n M , Q n i = 0 N K p Q n | ( N K i ) N + n i ( 1 ) i .
Proof. 
Setting N = + k and K = k in (24), we obtain a generating function of the form (47),
x K F K , n , Q n ( x ) = = 0 + K Q n + n , n k , Q n x + K = N = 0 N Q n + n , n K , Q n x N = x K ( 1 x ) n + K + 1 j = 1 n 1 x q j = f ( x ) F ( x ) K ,
where we use the fact that m , n k , Q n = 0 for m + Q n < n + k to start the second summation at N = 0. This establishes (55) and (57). Then, (56) follows by applying (53), using the fact that the compositional inverse of F ( x ) = x / ( 1 x ) is F ¯ ( x ) = x / ( 1 + x ) . Then, from (56), together with the generating functions (27) and (54), we have
N = 0 ( f 1 ) N , K x N = F ¯ ( x ) K f ( F ¯ ( x ) ) = x K ( 1 + x ) n + K + 1 j = 1 n 1 x q j / ( 1 + x ) q j = x K P Q n ( x / ( 1 + x ) ) ( 1 + x ) n + K + 1 = m = 0 p Q n | ( m ) x K + m ( 1 + x ) n + K + m + 1 = m , i = 0 p Q n | ( m ) x K + m + i i + n + K + m i ( 1 ) i = N = K x N i = 0 N K p Q n | ( N K i ) N + n i ( 1 ) i ,
and taking the coefficients yields (58). Then, (59) and (60) follow from (53),
δ N , M = K = 0 ( f ) N , K ( f 1 ) K , M = K = 0 ( f 1 ) N , K ( f ) K , M ,
upon inserting (57) and (58). □
The Riordan array property also entails the following inverse pair of summation formulas involving the counting function m , n k , Q n .
Proposition 9 
(Inverse relations I). For fixed integers n , q 1 , q n 1 , the following sets of linear equations for two sequences { a N } and { b N } (for all N ≥ 0) are equivalent:
b N = K = 0 N N Q n + n , n K , Q n a K ,
a N = K = 0 N i = 0 N K p Q n | ( N K i ) N + n i ( 1 ) i b K .
Proof. 
The claim corresponds to b N = K = 0 N ( f ) N , K a K a N = K = 0 N ( f 1 ) N , K b K , which corresponds to (63). □

6. Generating Function for Fixed Number of Rows, Inverse Pair of Summation Formulas, and Restricted Power Set

The representation (4) also provides a generating function for a fixed number of rows.
Proposition 10 
(Generating functions for fixed number of rows m). For integers n , q 1 , , q n 1 , m 0 ,
G m , n , Q n ( x ) = k = 0 m , n k , Q n x n + k = ( 1 + x ) m j = 1 n [ ( 1 + x ) q j 1 ] ,
where the sum in fact terminates, i.e., 0 ≤ k ≤ m + Q n n .
Proof. 
For x = 0, Equation (66) is trivially true (because n ≥ 1). Hence, we assume that x ≠ 0 and find from (4), using the summation (21),
k = 0 m , n k , Q n x k = k = 0 p < Q n m + P n k x k = p < Q n ( 1 + x ) m + P n = ( 1 + x ) m j = 1 n p j = 0 q j 1 ( 1 + x ) p j = ( 1 + x ) m j = 1 n ( 1 + x ) q j 1 ( 1 + x ) 1 ,
establishing (66) for all x. □
For the example in Figure 1, we find from (66) that
k = 0 3 , 4 k , { 5 , 3 , 4 , 1 } x k = x 3 G 3 , 4 , { 5 , 3 , 4 , 1 } = ( x + 1 ) 3 ( x + 1 ) 3 1 x ( x + 1 ) 4 1 x ( x + 1 ) 5 1 x = ( x + 1 ) 3 ( x + 2 ) ( x 2 + 2 x + 2 ) ( x 2 + 3 x + 3 ) ( x 4 + 5 x 3 + 10 x 2 + 10 x + 5 ) = 60 + 450 x + 1580 x 2 + 3445 x 3 + 5202 x 4 + 5731 x 5 + 4720 x 6 + 2925 x 7 + 1352 x 8 + 454 x 9 + 105 x 10 + 15 x 11 + x 12 ,
the coefficients of which are listed in the figure caption.
The product appearing in (66) is reminiscent of the denominator of P Q n ( x ) in (27). This is expressed in the following pair of summation formulas.
Proposition 11 
(Inverse relations II). For fixed integers n , q 1 , , q n 1 , the following sets of linear equations for two sequences { a k } and { b k } (for all k ≥ 0) are equivalent:
b k = ( 1 ) k m 0 m , n k , Q n a m a k = ( 1 ) k m 0 b m s = 0 k ( 1 ) s p Q n ( s ) n + m k s .
Proof. 
In terms of the generating functions A ( x ) = k 0   a k x k and B ( x ) = k 0 b k x k , we have from (66)
B ( x ) = x n A ( 1 x ) j = 1 n [ 1 ( 1 x ) q j ] .
Replacing x with 1 x , this is equivalent to
A ( x ) = ( 1 x ) n B ( 1 x ) P Q n ( x ) = m = 0 b m r = 0 n + m r ( x ) r s = 0 p Q n ( s ) x s = k = 0 x k m = 0 b m s = 0 k n + m k s ( 1 ) k s p Q n ( s ) ,
and the claim follows by taking the coefficients of x k . □
Note that, for Q n = { 1 , , 1 } , the equivalence (69) reduces to the standard binomial inversion formula [9]
b k = ( 1 ) k m 0 m k a m a k = ( 1 ) k m 0 m k b m .
As a simple application, the total number of ( n + k ) -insets, setting x = 1 in (66), is
k = 0 m + Q n n m , n k , Q n = ( 2 q 1 1 ) ( 2 q n 1 ) 2 m .
Combinatorially, this means that, in each row, each object can either be selected or not, but zero objects must not be selected from any of the first n rows. Therefore, this restricted power set has fewer than the 2 m + q 1 + + q n elements of the unrestricted power set.

7. Thermodynamic Properties of a Many-Body System with Janjić–Petković Interaction: A Generalized Schottky Anomaly

Statistical mechanics describes the macroscopic properties of many-body systems in thermodynamic equilibrium [10]. One of the simplest such systems is given by L noninteracting quantum particles, each of which may be in a state 0 or 1 with respective energies ϵ 0 and ϵ 1 , e.g., a collection of spins- 1 2 with Zeeman coupling to a magnetic field. The Hamiltonian for such a system reads
H ^ = i = 1 L [ ϵ 1 n ^ i + ϵ 0 ( 1 n ^ i ) ] ,
where each number operator n ^ i has eigenvalues 0 and 1. The canonical partition function at temperature T for this system, with the abbreviation β = 1 / ( k B T ) and the Boltzmann constant k B , is
Z L ( T ) = Tr e β H ^ = n 1 = 0 , 1 n L = 0 , 1 e β i = 1 L [ ϵ 1 n i + ϵ 0 ( 1 n i ) ] = n = 0 , 1 e β [ ϵ 1 n + ϵ 0 ( 1 n ) ] L = ( e β ϵ 1 + e β ϵ 0 ) L = = 0 L L e β [ ϵ 1 + ϵ 0 ( L ) ] .
where the trace is over all microstates. Here, the two types of summations correspond to either choosing each of the L particles to be in state 0 or 1 or alternatively choosing particles to be in state 0 and the remaining L particles to be in state 0, for which there are L possibilities. Although this is one of the most elementary thermodynamic model systems, it nevertheless has observable consequences, e.g., for the heat capacity C L ( T ) , given by the derivative with respect to T of the average internal energy E L ( T ) ,
E L ( T ) = 1 Z L ( T ) Tr H ^ e β H ^ = β ln Z L ( T ) = L ϵ 1 e β ϵ 1 + ϵ 0 e β ϵ 0 e β ϵ 1 + e β ϵ 0 = L ( ϵ 0 + e 1 ( T ) ) ,
C L ( T ) = E T = L c 1 ( T ) ,
which are both extensive in L. Here, e 1 ( T ) and c 1 ( T ) are the energy and heat capacity contributions of a single particle, respectively,
e 1 ( T ) = Δ 1 + e β Δ ,
c 1 ( T ) = e 1 T = k B Δ 2 / ( k B T ) 2 4 cosh 2 Δ 2 k B T ,
with the energy gap Δ = ϵ 1 ϵ 0 . The specific heat c 1 ( T ) = C L ( T ) / L is shown in Figure 2. The maximum of c 1 ( T ) as a function of T is known as the Schottky anomaly [10], a feature that is qualitatively different from the monotonous increase typical for continuum systems. It is due to the limited number of available states and is observed, e.g., in paramagnetic materials or materials with paramagnetic impurities.
Let us now consider a slightly different setting that will require use of the Janjić–Petković counting function. Suppose that we cannot freely choose out of L particles to have energy ϵ 1 as before. Rather, the L particles are arranged into n groups (e.g., magnetic domains), each with size q 1 , , q n , and at least one particle must be in state 1 in each of these domains, e.g., because the particles are strongly (magnetically) interacting. We also suppose that there is a nonmagnetic domain of m = L Q n ≥ 0 particles that are not constrained in this way. The canonical partition function for a system with this Janjić–Petković interaction is then
Z L , Q n ( T ) = = n L L Q n , n n , Q n e β [ ϵ 1 + ϵ 0 ( L ) ] = e β ϵ 0 L k = 0 L n L Q n , n k , Q n ( e β Δ ) n + k ,
which corresponds to a generating function for a fixed number of rows (66),
Z L , Q n ( T ) = e β ϵ 0 L G L Q n , n , Q n ( e β Δ ) = e β ϵ 0 L ( 1 + e β Δ ) L Q n j = 1 n [ ( 1 + e β Δ ) q j 1 ] = Z L ( T ) j = 1 n [ 1 ( 1 + e β Δ ) q j ] .
The average internal energy E L , Q n ( T ) in this case can be written as
E L , Q n ( T ) = β ln Z L , Q n ( T ) = E L ( T ) + Δ 1 + e β Δ j = 1 n q j ( 1 + e β Δ ) q j 1 = L ϵ 0 + ( L Q n ) e 1 ( T ) + Δ j = 1 n q j E q j e 1 ( T ) Δ ,
E q ( x ) = x 1 ( 1 x ) q ,
where the unconstrained magnetic domain of size m = L Q n contributes energy m e 1 ( T ) , while the constrained magnetic domains for each q j contribute energy Δ q j E q j , written in terms of an auxiliary function E q ( T ) ; note that E 1 ( x ) = 1. We then obtain, for the heat capacity C L , Q n ( T ) of the constrained system,
C L , Q n ( T ) = E L , Q n ( T ) T = ( L Q n ) c 1 ( T ) + j = 1 n q j c 1 ( q j ) ( T ) ,
c 1 ( q j ) ( T ) = c 1 ( T ) E q 1 1 + e Δ k B T , E q ( x ) = 1 1 ( 1 x ) q q x ( 1 x ) q 1 1 ( 1 x ) q 2 ,
where m = L Q n unconstrained contributions c 1 ( T ) are supplemented by contributions c 1 ( q j ) ( T ) for each q j . The functions c 1 ( q ) ( T ) are shown in Figure 2 for several q ≥ 2. They increase with q, with each c 1 ( q ) ( T ) featuring a Schottky-like maximum as a function of temperature T, expressing the restricted availability of states. Note that c 1 ( 1 ) ( T ) = 0, i.e., magnetic domains with q j = 1 must be in state 1 and thus cannot contribute to the heat capacity. On the other hand, we have lim q E q ( x ) = 1, as its argument lies in the interval 0 < x < 1 for T > 0; hence, c 1 ( q ) ( T ) approaches the unrestricted case c 1 ( T ) , because the constraint becomes irrelevant in this limit.
Finally, let us illustrate the physical meaning of the generalized Schottky anomaly due to the terms c 1 ( q j ) ( T ) in (84). Suppose, for this purpose, that there is no nonmagetic domain, m = L Q n = 0, and all q j = q are equal, so that L = n q with n ≥ 1 and q ≥ 2. In this case, c 1 ( q ) ( T ) = C L , Q n ( T ) / L equals the specific heat of the system, i.e., we may regard c 1 ( L / n ) ( T ) as replacing c 1 ( T ) if the system consists of n interacting domains of equal size L / n .

Funding

This research received no external funding.

Data Availability Statement

The original contributions presented in this study are included in the article. Further inquiries can be directed to the corresponding author.

Conflicts of Interest

The authors declare no conflicts of interest.

References

  1. Janjić, M. An Enumerative Function. arXiv 2008, arXiv:0801.1976. [Google Scholar] [CrossRef]
  2. Janjic, M.; Petkovic, B. A Counting Function Generalizing Binomial Coefficients and Some Other Classes of Integers. J. Int. Seq. 2014, 17, 14.3.5. [Google Scholar]
  3. Janjić, M. A Generating Function for Numbers of Insets. J. Int. Seq. 2014, 17, 14.9.7. [Google Scholar]
  4. Andrews, G.E. The Theory of Partitions; Cambridge University Press: Cambridge, UK, 1998. [Google Scholar]
  5. Generalizations of the Pentagonal Number Theorem, Mathematics Stack Exchange. 2017. Available online: https://math.stackexchange.com/questions/1477145/generalizations-of-the-pentagonal-number-theorem (accessed on 21 May 2025).
  6. Shapiro, L.W.; Getu, S.; Woan, W.J.; Woodson, L.C. The Riordan group. Discret. Appl. Math. 1991, 34, 229. [Google Scholar] [CrossRef]
  7. Sprugnoli, R. Riordan arrays and combinatorial sums. Discret. Math. 1994, 132, 267. [Google Scholar] [CrossRef]
  8. Merlini, D.; Rogers, D.G.; Sprugnoli, R.; Verri, M.C. On some alternative characterizations of Riordan arrays. Can. J. Math. 1997, 49, 301. [Google Scholar] [CrossRef]
  9. Riordan, J. Inverse Relations and Combinatorial Identities. Am. Math. Mon. 1964, 71, 485. [Google Scholar] [CrossRef]
  10. Kittel, C.; Kroemer, H. Thermal Physics, 2nd ed.; Bedford: New York, NY, USA, 1980. [Google Scholar]
Figure 1. Suppose that n + k objects are chosen from n = 4 rows with 5, 3, 4, 1 objects (from which at least one per row must be chosen) and from a last row with m = 3 objects—for example, for k = 2, we choose those in green but not those in blue. The number of choices is given by 3 , 4 k , { 5 , 3 , 4 , 1 } , which, for k = 0 m + j = 1 n q j n = 12, takes the values 60 , 450 , 1580 , 3445 , 5202 , 5731 , 4720 , 2925 , 1352 , 454 , 105 , 15 , 1 (see Section 6).
Figure 1. Suppose that n + k objects are chosen from n = 4 rows with 5, 3, 4, 1 objects (from which at least one per row must be chosen) and from a last row with m = 3 objects—for example, for k = 2, we choose those in green but not those in blue. The number of choices is given by 3 , 4 k , { 5 , 3 , 4 , 1 } , which, for k = 0 m + j = 1 n q j n = 12, takes the values 60 , 450 , 1580 , 3445 , 5202 , 5731 , 4720 , 2925 , 1352 , 454 , 105 , 15 , 1 (see Section 6).
Mathematics 13 03007 g001
Figure 2. Specific heat contributions c 1 ( T ) and several c 1 ( q ) ( T ) of (79) and (85) as a function of T, each featuring a Schottky-like maximum, with c 1 ( q ) ( T ) approaching c 1 ( T ) for large q.
Figure 2. Specific heat contributions c 1 ( T ) and several c 1 ( q ) ( T ) of (79) and (85) as a function of T, each featuring a Schottky-like maximum, with c 1 ( q ) ( T ) approaching c 1 ( T ) for large q.
Mathematics 13 03007 g002
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.

Share and Cite

MDPI and ACS Style

Kollar, M. The Janjić–Petković Inset Counting Function: Riordan Array Properties and a Thermodynamic Application. Mathematics 2025, 13, 3007. https://doi.org/10.3390/math13183007

AMA Style

Kollar M. The Janjić–Petković Inset Counting Function: Riordan Array Properties and a Thermodynamic Application. Mathematics. 2025; 13(18):3007. https://doi.org/10.3390/math13183007

Chicago/Turabian Style

Kollar, Marcus. 2025. "The Janjić–Petković Inset Counting Function: Riordan Array Properties and a Thermodynamic Application" Mathematics 13, no. 18: 3007. https://doi.org/10.3390/math13183007

APA Style

Kollar, M. (2025). The Janjić–Petković Inset Counting Function: Riordan Array Properties and a Thermodynamic Application. Mathematics, 13(18), 3007. https://doi.org/10.3390/math13183007

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop