1 Introduction

Symmetric functions are ubiquitous in mathematics and mathematical physics. For example, they appear in elementary algebra, in the Viète’s formulas that relate the coefficients of a polynomial to combinations of its roots. They are important objects to study in algebraic combinatorics. For example, symmetric functions are related to the representation theories of symmetric groups and general linear groups over the complex numbers or finite fields, and the enumeration of plane partitions [5].

Given a set of variables \(x_1,x_2,\ldots ,x_n\), the k-th elementary and complete symmetric polynomials are defined, respectively, by

$$\begin{aligned} e_k(x_1,x_2,\dots ,x_n)&=\sum _{1\le i_1<i_2<\cdots <i_k\le n } x_{i_1}x_{i_2}\cdots x_{i_k}, \qquad 1 \le k \le n,\\ h_k(x_1,x_2,\dots ,x_n)&=\sum _{1\le i_1\le i_2\le \cdots \le i_k\le n } x_{i_1}x_{i_2}\cdots x_{i_k}, \qquad k \ge 1, \end{aligned}$$

with initial conditions \(e_0(x_1,x_2,\dots ,x_n)=h_0(x_1, x_2,\dots , x_n)=1\). Note that \(e_k(x_1,x_2,\dots ,x_n)=0\) if \(k>n\). The generating functions for the \(e_k\) and \(h_k\) are given by the expressions

$$\begin{aligned} \sum _{k=0}^ne_k(x_1,x_2,\dots ,x_n)z^k&=\prod _{i=1}^n(1+x_iz),\\ \sum _{k\ge 0}h_k(x_1,x_2,\dots ,x_n)z^k&=\prod _{i=1}^n\frac{1}{1-x_iz}. \end{aligned}$$

A variety of combinatorial sequences can be obtained as evaluations of the symmetric polynomials at specific points (cf. [8, 16]). Particularly, the Stirling numbers of the first kind and the Stirling numbers of the second kind are given by

$$\begin{aligned} e_k(1, 2, \dots , n)=\left[ \begin{array}{c}n+1 \\ n+1-k\end{array}\right] \quad \text {and}\quad h_k(1, 2, \dots , n)=\left\{ \begin{array}{c} n+k \\ n\end{array}\right\} . \end{aligned}$$

A set partition of a set \([n] :=\{1, 2, \ldots , n\}\) is a collection of non-empty disjoint subsets, called blocks, whose union is [n]. The number of set partitions of [n] into k non-empty blocks is counted by the Stirling numbers of the second kind \(\big \{\begin{array}{c}n \\ k\end{array}\big \}\). Similarly, the Stirling numbers of the first kind \(\big [\begin{array}{c}n \\ k\end{array}\big ]\) count the number of permutations of [n] into k cycles. The literature contains several generalizations of Stirling numbers of both kinds; see for example [4, 6, 15, 17,18,19].

In this work, we introduce an extension of the Stirling numbers of both kinds, called s-modular Stirling numbers, by introducing a new class of symmetric functions, and considering these new sequences as specializations of them. We give a combinatorial interpretation of these symmetric functions by using weighted lattice path and tilings. Similar symmetric functions were studied by Doty and Walker under the name of modular complete symmetric polynomials [7]. Most recently, Ahmia and Merca [1] introduced a variation of these symmetric functions. Independently, Grinberg [10] and Fu and Mei [9] introduced the same concept under the name of Petrie symmetric functions and truncated symmetric functions, respectively. Finally, we use set partitions to give a combinatorial interpretation to the s-modular Stirling numbers. Among other things, we give an interpretation (probably new) of the Stirling numbers of first kind in terms of set partitions. We also give a relationship with the Stirling numbers with higher level. This last sequence was recently studied in the context of special polynomials [12].

2 Definitions and Properties

Let \(s\ge 1\) be a positive integer. We define a modular symmetric function by

$$\begin{aligned} M_{k}^{(s)}(n):=M_{k}^{(s)}(x_{1},\ldots ,x_{n})=\sum _{_{\begin{array}{c} a_{1}+\cdots +a_{n}=k \\ a_{1},\ldots ,a_{n}\equiv (0,1)\mod (s+1) \end{array}}}x_{1}^{a_{1}}\cdots x_{n}^{a_{n}}, \end{aligned}$$
(1)

with \(M_{k}^{(1)}(n)=h_{k}(n)\) and \(M_{k}^{(s)}(0)=\delta _{k,0}\), where \(\delta _{k,0}\) is the Kronecker delta.

For example, for \(s=2\) and \(n=1\) we have

$$\begin{aligned} M_{0}^{(2)}(1)=1, \ \ M_{1}^{(2)}(1)=x_{1}, \ \ M_{2}^{(2)}(1)=0, \ \ M_{3}^{(2)}(1)=x^{3}_{1} \ \ M_{4}^{(2)}(1)=x^{4}_{1},\ \ M_{5}^{(2)}(1)=0. \end{aligned}$$

For \(s=2=n\), we have

$$\begin{aligned} M_{0}^{(2)}(2)=1, \ \ M_{1}^{(2)}(2)=x_{1}+x_{2}, \ \ M_{2}^{(2)}(2)=x_{1}x_{2}, \ \ M_{3}^{(2)}(2)=x^{3}_{1}+ x^{3}_{2}. \end{aligned}$$

From the definition of \(M_{k}^{(s)}(n)\), we have the following theorem.

Theorem 2.1

Let s and n be positive integers. Then,

$$\begin{aligned} \sum _{k\ge 0}M_{k}^{(s)}(n)t^{k}=\prod _{i=1}^{n}\frac{1+x_{i}t}{1-\left( x_{i}t\right) ^{s+1}}. \end{aligned}$$
(2)

The modular symmetric function satisfies the following recurrence relations.

Theorem 2.2

Let s and n be positive integers. Then,

$$\begin{aligned} M_{k}^{(s)}(n)&=\sum _{\begin{array}{c} 0\le j\le k \\ j\equiv (0,1)\mod (s+1) \end{array}}x_{n}^{j}M_{k-j}^{(s)}(n-1) \quad \text {and} \end{aligned}$$
(3)
$$\begin{aligned} M_{k}^{(s)}(n)&=x_{n}^{s+1}M_{k-s-1}^{(s)}(n)+x_{n}M_{k-1}^{(s)}(n-1)+M_{k}^{(s)}(n-1), \end{aligned}$$
(4)

for \(k\ge s+1\).

Proof

From (1) and Theorem 2.1, we have

$$\begin{aligned} \sum _{k\ge 0}M_{k}^{(s)}(n)t^{k}= & {} \prod _{i=1}^{n}\frac{1+x_{i}t}{ 1-\left( x_{i}t\right) ^{s+1}} =\prod _{i=1}^{n}\left( (1+x_{i}t)\sum _{j\ge 0}\left( x_{i}t\right) ^{(s+1)j}\right) \\= & {} \prod _{i=1}^{n}\left( \sum _{j\ge 0}\left( x_{i}t\right) ^{(s+1)j}+\sum _{j\ge 0}\left( x_{i}t\right) ^{(s+1)j+1}\right) \\= & {} \prod _{i=1}^{n}\left( \sum _{\ell \equiv (0,1)\mod (s+1)}\left( x_{i}t\right) ^{\ell }\right) \\= & {} \sum _{j\equiv (0,1)\mod (s+1)}\left( x_{n}t\right) ^{j}\prod _{i=1}^{n-1}\left( \sum _{\ell \equiv (0,1)\mod (s+1)}\left( x_{i}t\right) ^{\ell }\right) \\= & {} \sum _{j\equiv (0,1)\mod (s+1)}\left( x_{n}t\right) ^{j}\sum _{\ell =0}^{\infty }M_{\ell }^{(s)}(n-1)t^{\ell } \\= & {} \sum _{k\ge 0}t^{k}\sum _{\begin{array}{c} j+\ell =k \\ j\equiv (0,1)\mod (s+1) \end{array}}x_{n}^{j}M_{\ell }^{(s)}(n-1) \\= & {} \sum _{k\ge 0}t^{k}\sum _{\begin{array}{c} 0\le j\le k \\ j\equiv (0,1)\mod (s+1) \end{array}}x_{n}^{j}M_{k-j}^{(s)}(n-1). \end{aligned}$$

By comparing the k-th coefficient, we obtain (3). The relation (4) follows in a similar manner.\(\square \)

Notice that from (3), we have the equality \(h_{k}(n)=\sum _{j=0}^{k}x_{n}^{j}h_{k-j}(n-1)\).

3 Combinatorial Interpretation

The goal of this section is to present a combinatorial interpretation for the modular symmetric functions by means of weighted lattice paths in the plane \({{\mathbb {Z}}}\times {{\mathbb {Z}}}\). A lattice path \(\Gamma \) in the lattice plane \({{\mathbb {Z}}}\times {{\mathbb {Z}}}\), with steps in a given set \(S\subset {{\mathbb {Z}}}^2\), is a concatenation of directed steps of S, that is \(\Gamma =s_1s_2\cdots s_\ell \), where \(s_i\in S\), for each \(1\le i \le \ell \). Let \({{\mathcal {P}}}_{n,k}\) denote the set of lattice paths from the point (0, 0) to the point \((k,n-1)\), with step set \(S=\{ H=(1,0), V=(0,1)\}\), such that the horizontal steps are labeled with the weight \(x_i\), where \(i-1\) is the level of the step. Let \({{\mathcal {P}}}_{n,k}^{(s)}\) denote the weighted lattice path in \({{\mathcal {P}}}_{n,k}\) such that the number of horizontal steps in each level is congruent to 0 or 1 modulo \(s+1\). Given a weighted path \(\Gamma \) in \({{\mathcal {P}}}_{n,k}^{(s)}\), we denote by \(\omega (\Gamma )\) the weight associated to the path \(\Gamma \). For example, in Fig. 1 we show a lattice path in \({{\mathcal {P}}}_{6,12}^{(2)}\) of weight \(x_2^6x_4x_5x_6^4\).

Fig. 1
figure 1

Weighted lattice path in \({{\mathcal {P}}}_{6,12}^{(2)}\)

From (1), we obtain the following combinatorial interpretation.

Theorem 3.1

Let kn and s be positive integers and let \(x_{1},x_{2},\ldots ,x_{n}\) be independent variables. Then,

$$\begin{aligned} M_{k}^{(s)}\left( x_{1},x_2,\ldots ,x_{n}\right) =\sum _{\Gamma \in {{\mathcal {P}}}_{n,k}^{(s)}}\omega (\Gamma ). \end{aligned}$$

Figure 2 shows the weighted lattice path interpretation for \(M_{3}^{(2)}(x_{1},x_{2},x_{3})=x_{1}^{3}+x_{2}^{3}+x_{3}^{3}+x_1x_2x_3\).

Fig. 2
figure 2

The four paths associated to \(M_{3}^{(2)}(x_1,x_2,x_3)\)

3.1 Tiling Interpretation

In this section, we use weighted tilings to give an additional combinatorial interpretation of the modular symmetric function. We define a weighted tiling as a tiling of a board of length n (n-board) by gray and black squares, such that each black square received the weight \(x_{m+1}\), where m is equal to the number of gray squares to the left of that black square in the tiling. Let \({{\mathcal {T}}}^{(s)}_{n,k}\) denote the set of weighted tilings of an \((n+k-1)\)-board using exactly k black squares and \(n-1\) gray squares, such that the number of successive black squares is congruent to 0 or 1 modulo \(s+1\). For a tiling T, we denote by \(\omega (T)\) the weight of T.

For example, in Fig. 3 we show a weighted tiling in \({{\mathcal {T}}}_{6,12}^{(2)}\) of weight \(x_2^6x_4x_5x_6^4.\)

Fig. 3
figure 3

Weighted tiling in \({{\mathcal {T}}}_{6,12}^{(2)}\)

There is a bijection between the sets \({{\mathcal {P}}}^{(s)}_{n,k}\) and \({{\mathcal {T}}}^{(s)}_{n,k}\). Indeed, each vertical step V is replaced by a gray square and each horizontal step is replaced by a black square. Since the bijection between lattice paths and tiling is weight-preserving, we obtain the following result.

Theorem 3.2

Let kn and s be positive integers and let \(x_{1},x_{2},\ldots ,x_{n}\) be independent variables. Then,

$$\begin{aligned} M_{k}^{(s)}\left( x_{1},x_2,\ldots ,x_{n}\right) =\sum _{T\in {\mathcal {T}}^{(s)}_{n,k}}\omega (T). \end{aligned}$$

Figure 4 shows the tiling interpretation for \(M_{3}^{(2)}(x_1,x_2,x_3)=x_{1}^{3}+x_{2}^{3}+x_{3}^{3}+x_1x_2x_3\).

Fig. 4
figure 4

The four tilings associated to \(M_3^{(2)}(x_1,x_2,x_3)\)

In Theorem 3.3, we give a combinatorial expression for the sequence \(M_{k}^{(s)}(\underbrace{1,1,\ldots ,1}_{n \text { times}})\).

Theorem 3.3

For \(n, k \ge 0, s\ge 1\), we have

$$\begin{aligned} M_{k}^{(s)}(\underbrace{1,1,\ldots ,1}_{n \ {times }})=\sum _{j=0}^{\left\lfloor \frac{k}{s+1} \right\rfloor }\left( {\begin{array}{c}n\\ k-j(s+1)\end{array}}\right) \left( {\begin{array}{c}j+n-1\\ n-1\end{array}}\right) . \end{aligned}$$

Proof

From the combinatorial interpretation \(M_{k}^{(s)}(\overbrace{1,1,\ldots ,1}^{n \text { times}})\) counts the number of weighted tilings of a \((n+k-1)\)-board using exactly k black squares and \(n-1\) gray squares, such that the number of successive black squares is congruent to 0 or 1 modulo \(s+1\). On the other hand, let j be the number of successive black squares multiples of \(s+1\). Notice that \(0\le j \le \lfloor k/(s+1) \rfloor \). Then, there are \(j+n-1\) gray and black blocks tiles. Such a tiling with \(j+n-1\) tiles, exactly j of which are black blocks of size congruent to 0 module \(s+1\) is \(\left( {\begin{array}{c}j+n-1\\ j\end{array}}\right) .\) The remaining \(k-j(s+1)\) black squares can be inserted before to each gray square or to the end of the tiling. Since there are \(n-1\) gray squares we have \(\left( {\begin{array}{c}n\\ k-j(s+1)\end{array}}\right) \) ways to insert the black squares. Hence, there are \(\left( {\begin{array}{c}n\\ k-j(s+1)\end{array}}\right) \left( {\begin{array}{c}j+n-1\\ j\end{array}}\right) \) tilings altogether. Summing over all j gives the total number of weighted tiling in \({\mathcal {T}}^{(s)}_{n,k}\), which implies the identity. \(\square \)

Notice that we can also give an algebraic proof for the above result. Indeed, from the generating function given in Theorem 2.1 we have

$$\begin{aligned} \sum _{k\ge 0}M_{k}^{(s)}(1,1,\ldots ,1)t^{k}&=\frac{(1+t)^{n}}{\left( 1-t^{s+1}\right) ^{n}}=\sum _{j=0}^{n}\left( {\begin{array}{c}n\\ j\end{array}}\right) t^{j}\sum _{\ell \ge 0}\left( {\begin{array}{c}\ell +n-1\\ n-1\end{array}}\right) t^{\ell (s+1)} \\&=\sum _{j=0}^{n}\sum _{\ell \ge 0}\left( {\begin{array}{c}n\\ j\end{array}}\right) \left( {\begin{array}{c}\ell +n-1\\ n-1\end{array}}\right) t^{j+\ell (s+1)} \\&= \sum _{k\ge 0}t^{k}\sum _{j+\ell (s+1)=k}\left( {\begin{array}{c}n\\ j\end{array}}\right) \left( {\begin{array}{c} \ell +n-1\\ n-1\end{array}}\right) \\&=\sum _{k\ge 0}t^{k}\sum _{\ell =0}^{\left\lfloor \frac{k}{s+1} \right\rfloor }\left( {\begin{array}{c}n\\ k-\ell (s+1)\end{array}}\right) \left( {\begin{array}{c}\ell +n-1\\ n-1\end{array}}\right) . \end{aligned}$$

By comparing the k-th coefficient, we obtain the desired result.

4 Modular s-Stirling Numbers

The Stirling numbers of the second kind \(\big \{\begin{array}{c}n \\ k\end{array}\big \}\) can be determined by the recurrence relation \(\big \{\begin{array}{c}n \\ k\end{array}\big \}=\big \{\begin{array}{c}n-1 \\ k-1\end{array}\big \}+k\big \{\begin{array}{c}n-1 \\ k\end{array}\big \}\), with the initial conditions \(\big \{\begin{array}{c}0 \\ 0\end{array}\big \}=1\) and \(\big \{\begin{array}{c}n \\ 0\end{array}\big \}=\big \{\begin{array}{c}0 \\ n\end{array}\big \}=0\) for \(n\ge 1\). It is well known that the \(\big \{\begin{array}{c}n \\ k\end{array}\big \}\) are determined by the identities \(x^n=\sum _{k=0}^n\big \{\begin{array}{c}n \\ k\end{array}\big \}x^{\underline{k}}, n \ge 0\), where \(x^{\underline{n}}=x(x-1)\cdots (x-(n-1))\) for \(n\ge 1\) and \(x^{\underline{0}}=1\) or equivalently by the generating function

$$\begin{aligned} \sum _{n \ge k}\left\{ \begin{array}{c}n \\ k\end{array}\right\} x^n&=\frac{x^k}{(1-x)(1-2x)\cdots (1-kx)}, \quad k\ge 0. \end{aligned}$$
(5)

Using (5), it is not difficult to show that the Stirling numbers of the second kind are the specialization of the complete symmetric function given by

$$\begin{aligned} \left\{ \begin{array}{c}n+k \\ n\end{array}\right\}&=h_k(1, 2, \dots , n)=\sum _{a_1+\cdots +a_n=k}1^{a_1}\cdots n^{a_n}. \end{aligned}$$
(6)

Equation (6) can be interpreted by considering the following algorithm:

figure a

For example, for \(n=3\) and \(k=5\) the term \(1^{2}2^{1}3^{2}\) corresponds to a partition that looks like \(\{1,2,3,*\}, \ \{4,*\}, \ \{6,*\}\), where 5 can go in either of the first 2 blocks and 7, 8 can go in any block (there are 3 of them). Giving a total of \(2^1\cdot 3^2\) options.

Notice then that the \(a_i\) integers have a direct relationship with the minimal elements in each of the blocks of a partition. To see this, consider the following construction: let \(\Pi (n,k)\) denote the set of partitions of [n] having k blocks. Let \(\pi \in \Pi (n,k)\) be represented as \(\pi =B_1/B_2/\cdots /B_k\), where \(B_i\) denotes the i-th block, with \(\min (B_1)<\min (B_2)<\cdots <\min (B_k)\). Call \(m_i=\min (B_i)\) and define the vector of consecutive differences by

$$\begin{aligned} d(\pi ):=(d_1,\dots ,d_{k})=(m_2-m_1-1,m_3-m_2-1,\dots ,m_k-m_{k-1}-1,n-m_{k}). \end{aligned}$$

In the example above, notice that \(d_i\) corresponds to \(a_i\) because these are exactly the number of elements that we have to place in i blocks and so there are a total of \(i^{d_i}\) ways to do this. Notice, further, that since \(m_1=1,\) we have that \(d_1+\cdots +d_k=n-k\). If we impose the modularity conditions on the \(d_i\)’s, we get the modular symmetric function defined in Eq. (1).

Notice that (6) can be written as \(\big \{\begin{array}{c}n \\ k\end{array}\big \}=h_{n-k}(1, 2, \dots , k).\) From this last equation and the combinatorial motivation of \(d(\pi ),\) we introduce a new kind of Stirling numbers. For all integers \(n\ge 0\) and all k with \(0\le k \le n\), the modular s-Stirling numbers of the second kind, denoted as \(\big \{\begin{array}{c}n \\ k\end{array}\big \}^{(s)}\), are defined by the expression

$$\begin{aligned} \left\{ \begin{array}{c}n \\ k\end{array}\right\} ^{(s)}=M_{n-k}^{(s)}(1,2, \dots , k). \end{aligned}$$
(7)

It is clear that for \(s=1\) we recover the Stirling numbers of the second kind, that is, \(\big \{\begin{array}{c}n \\ k\end{array}\big \}^{(1)}=\big \{\begin{array}{c}n \\ k\end{array}\big \}\). From Theorem 2.2, we have the following recurrence relation:

$$\begin{aligned} \left\{ \begin{array}{c}n \\ k\end{array}\right\} ^{(s)}=\left\{ \begin{array}{c}n-1 \\ k-1\end{array}\right\} ^{(s)}+k\left\{ \begin{array}{c}n-2\\ k-1\end{array}\right\} ^{(s)}+k^{s+1}\left\{ \begin{array}{c}n-s-1 \\ k\end{array}\right\} ^{(s)}, \end{aligned}$$
(8)

with the initial conditions \(\big \{\begin{array}{c}n \\ 0\end{array}\big \}^{(s)}=\delta _{0,n}\) and \(\big \{\begin{array}{c}0 \\ k\end{array}\big \}^{(s)}=\delta _{k,0}\). Moreover, we have the following generating function:

$$\begin{aligned} \sum _{n\ge k}\left\{ \begin{array}{c}n \\ k\end{array}\right\} ^{(s)}x^{n-k}=\prod _{r=1}^{k}\frac{1+rx^{s}}{1-(rx)^{s+1}}. \end{aligned}$$

In Theorem 4.1, we give a combinatorial interpretation for the modular s-Stirling numbers.

Theorem 4.1

The number of set partitions \(\pi \) in \(\Pi (n,k)\), such that the entries in the vector \(d(\pi )\) satisfies \(d_i\equiv 0,1 \pmod {s+1}\) for each \(1\le i \le k\) is given by the modular s-Stirling numbers \(\big \{\begin{array}{c}n\\ k\end{array}\big \}^{(s)}\).

Proof

By imposing the modularity conditions on the vector of consecutive differences given above and applying the Algorithm described on Page 7, the theorem follows. \(\square \)

For example, \(\big \{\begin{array}{c}5\\ 2\end{array}\big \}^{(2)}=9\) corresponding to the set partitions

$$\begin{aligned}&1234/5, \quad 1345/2, \quad 134/25, \quad 135/24, \quad 13/245,\\&145/23, \quad 14/235, \quad 15/234, \quad 1/2345. \end{aligned}$$

If you restrict the difference vector to have elements of the form \(d_i\equiv 0 \pmod {s+1},\) then the number of such partitions is given by \(h_{\lfloor \frac{n-k}{s+1}\rfloor }(1^{s+1},\dots ,k^{s+1}).\)

On the other hand, the (unsigned) Stirling numbers of the first kind satisfy the recurrence relation \(\big [\begin{array}{c}n \\ k\end{array}\big ]=(n-1)\big [\begin{array}{c}n-1 \\ k\end{array}\big ] + \big [\begin{array}{c}n-1 \\ k-1\end{array}\big ]\), with the initial conditions \(\big [\begin{array}{c}0 \\ 0\end{array}\big ]=1\) and \(\big [\begin{array}{c} n \\ 0\end{array}\big ]=\big [\begin{array}{c} 0 \\ n\end{array}\big ]=0\) for \(n\ge 1\). This sequence can also be defined as the connection constants in the polynomial identity

$$\begin{aligned} x(x+1)\cdots (x+(n-1))=\sum _{k=0}^n\left[ \begin{array}{c}n \\ k\end{array}\right] x^k. \end{aligned}$$
(9)

Theorem 4.2

Let n and k be nonnegative integers and \(s>0\). If r is the remainder of k when divided by \(s+1\), then the following equation holds

$$\begin{aligned} \left\{ \begin{array}{c}n+k \\ n\end{array}\right\} ^{(s)}=\sum _{i = 0}^{\min \{\lfloor \frac{n-r}{s+1}\rfloor ,\lfloor \frac{k}{s+1}\rfloor \}}h_{\lfloor \frac{k}{s+1}\rfloor -i}(1^{s+1},\dots ,n^{s+1})\left[ \begin{array}{c}n+1\\ n+1-r-i(s+1)\end{array}\right] . \end{aligned}$$

Proof

From Eq. (1) consider the subset of the variables \(\{a_i\}_{i\in [n]}\) such that \(a_j\equiv 1\pmod {s+1}.\) Call \(J\subseteq [n]\) the set of their subindices in such a way that \(j\in J\) if and only if \(a_j\equiv 1\pmod {s+1}.\) Notice that for each \(j\in J\), one must have that \(a_j=b_j(s+1)+1\) for some \(b_j\in {\mathbb {N}}.\) Therefore, we have

$$\begin{aligned} \left\{ \begin{array}{c}n+k \\ n\end{array}\right\} ^{(s)}&= M^{(s)}_k(1,\dots ,n)=\sum _{\begin{array}{c} J\subseteq [n]\\ |J|\equiv r \pmod {s+1} \end{array}}\,\sum _{\begin{array}{c} a_1+\cdots +a_n=k\\ a_j\equiv 1 \pmod {s+1}\\ \text {for }j\in J \end{array}}1^{a_1}\cdots n^{a_n}\\&=\sum _{\begin{array}{c} J\subseteq [n]\\ |J|\equiv r \pmod {s+1} \end{array}}\prod _{j\in J}j\sum _{(b_1+\cdots +b_n+\lfloor \frac{|J|}{s+1} \rfloor )+\frac{r}{s+1}=\frac{k}{s+1}}1^{(s+1)b_1}\cdots n^{(s+1)b_n}\\&=\sum _{\begin{array}{c} J\subseteq [n]\\ |J|\equiv r \pmod {s+1} \end{array}}\prod _{j\in J}j\sum _{b_1+\cdots +b_n=\lfloor \frac{k}{s+1}\rfloor -\lfloor \frac{|J|}{s+1} \rfloor }1^{(s+1)b_1}\cdots n^{(s+1)b_n}\\&=\sum _{i=0}^{\lfloor \frac{n-r}{s+1}\rfloor }\left( \sum _{\begin{array}{c} |J|=i(s+1)+r\\ J\subseteq [n] \end{array}}\prod _{j\in J}j\right) h_{\lfloor \frac{k}{s+1}\rfloor -i}(1^{s+1},\dots ,n^{s+1}). \end{aligned}$$

From (9), the equality follows. \(\square \)

For example, for \(n=4, k=8,\) and \(s=3\) we have \(\big \{\begin{array}{c}4+8 \\ 4\end{array}\big \}^{(s)}=107331\). On the other hand,

$$\begin{aligned}&\sum _{i = 0}^{1}h_{2-i}(1^{4},2^4, 3^4 ,4^{4})\left[ \begin{array}{c}5\\ 5-4i\end{array}\right] \\&\quad =(1^42^4+1^43^4+2^43^4+1^44^4+2^44^4+3^44^4+1^8+2^8+3^8+4^8)\cdot 1 \\&\qquad + \,(1^4 +2^4+ 3^4+4^4)\cdot 24=107331. \end{aligned}$$

From Theorem 4.2 and by the little Fermat’s theorem, i.e., \(a^p\equiv a \pmod p\) with \(a\in {\mathbb {Z}}\), we conclude the following interesting congruence.

Corollary 4.3

Let n and k be nonnegative integers and p a prime number. If r is the remainder of k when divided by p, then the following congruence holds

$$\begin{aligned} \left\{ \begin{array}{c}n+k \\ n\end{array}\right\} ^{(p-1)}\equiv \sum _{i=0}^{\min \{\lfloor \frac{n-r}{p}\rfloor ,\lfloor \frac{k}{p}\rfloor \}}\left\{ \begin{array}{c}n+\lfloor \frac{k}{p}\rfloor -i \\ n\end{array}\right\} \left[ \begin{array}{c}n+1\\ n+1-(r+i\cdot p)\end{array}\right] \pmod p. \end{aligned}$$

4.1 The \(\ell \)-Modular Symmetric Function

Given \(0\le \ell <s+1 ,\) we can define the \(\ell \)-modular symmetric function by

$$\begin{aligned} M_k^{(s,\ell )}(x_1,\dots ,x_n):=\sum _{\begin{array}{c} j_1+\cdots +j_n=k\\ j_1,\ldots ,j_n \equiv 0,\ell \pmod {s+1} \end{array}}x_1^{j_1}\cdots x_n^{j_n}. \end{aligned}$$

Using the definition above, we can extend Theorem 4.2 using the Stirling numbers of the first kind with higher level, defined in [13, 14]. Some applications of the Stirling numbers of higher level in special polynomials can be found in [11, 12].

Let \({{\mathfrak {S}}}_n\) denote the set of permutations of the set [n]. We will assume that permutations are expressed in standard cycle form, i.e., minimal elements first within each cycle, with cycles arranged left-to-right in ascending order of minimal elements. If \(n, k \ge 0\), then let \({{\mathfrak {S}}}_{(n,k)}\) denote the set of permutations of \({{\mathfrak {S}}}_n\) having exactly k cycles. It is clear that \({{\mathfrak {S}}}_n=\cup _{k=0}^n{{\mathfrak {S}}}_{(n,k)}\) and \(|{{\mathfrak {S}}}_{(n,k)}|=\big [\begin{array}{c} n \\ k\end{array}\big ]\). Given a permutation \(\sigma \) in \({{\mathfrak {S}}}_n\), let \(\min (\sigma )\) denote the set of the minimal elements in each cycle of \(\sigma \). For example, if \(\sigma =(1\, 4 \, 5)(2\, 3)(6)(7 \, 9)(8)\), then we have that \(\min (\sigma )=\{1, 2, 6, 7, 8\}\).

Given a positive integer s, let \(\left[ \!\!\left[ \begin{array}{c} n \\ k \end{array} \right] \!\!\right] _s\) denote the number of ordered s-tuples \((\sigma _1, \sigma _2, \dots , \sigma _s)\in {{\mathfrak {S}}}_{(n,k)}\times {{\mathfrak {S}}}_{(n,k)} \times \cdots \times {{\mathfrak {S}}}_{(n,k)}={{\mathfrak {S}}}_{(n,k)}^s\), such that \(\min (\sigma _1)=\min (\sigma _2)=\cdots =\min (\sigma _s).\)

The sequence \(\left[ \!\!\left[ \begin{array}{c} n \\ k \end{array} \right] \!\!\right] _s\) satisfies the following recurrence relation

$$\begin{aligned} \left[ \!\!\left[ \begin{array}{c} n \\ k \end{array} \right] \!\!\right] _s=\left[ \!\!\left[ \begin{array}{c} n-1 \\ k-1 \end{array} \right] \!\!\right] _s+(n-1)^s\left[ \!\!\left[ \begin{array}{c} n-1 \\ k \end{array} \right] \!\!\right] _s, \end{aligned}$$
(10)

with the initial conditions \(\left[ \!\!\left[ \begin{array}{c} 0 \\ 0 \end{array} \right] \!\!\right] _s=1\) and \(\left[ \!\!\left[ \begin{array}{c} n \\ 0 \end{array} \right] \!\!\right] _s=\left[ \!\!\left[ \begin{array}{c} 0 \\ n \end{array} \right] \!\!\right] _s=0\) hold for \(n\ge 1\).

Given integers \(n\ge 0\) and \(s\ge 1\), let \(\Omega _{n,s}(x)\) denote the polynomials

$$\begin{aligned} \Omega _{n,s}(x):=x(x+1^s)(x+2^s)\cdots (x+(n-1)^s), \quad \text {with} \quad \Omega _{0,s}(x)=1. \end{aligned}$$

The Stirling numbers of the first kind with higher level are the connection constants between the polynomials \((\Omega _{n,s}(x))_{n\ge 0}\) and the canonical basis \((x^n)_{n\ge 0}\). Indeed, if \(n\ge 0\), then

$$\begin{aligned} \Omega _{n,s}(x)=x(x+1^s)(x+2^s)\cdots (x+(n-1)^s)=\sum _{k=0}^n\left[ \!\!\left[ \begin{array}{c} n \\ k \end{array} \right] \!\!\right] _s x^k\,. \end{aligned}$$
(11)

From a similar argument as in Theorem 4.2, in combination with (11), we can obtain the following theorem.

Theorem 4.4

Let n and k be nonnegative integers and \(s+1>\ell \ge 0\), such that \(\gcd (\ell , s+1)=1\). If r is the remainder of \(k \ell ^{-1}\) when divided by \(s+1\), then the following equation holds

$$\begin{aligned} M^{(s,\ell )}_k(1,\dots ,n)= & {} \sum _{i = 0}^{\min \{\lfloor \frac{n-r}{s+1}\rfloor ,\lfloor \frac{k}{s+1}\rfloor - \lfloor \frac{r \ell }{s+1}\rfloor \}}h_{\lfloor \frac{k}{s+1}\rfloor -\lfloor \frac{r \ell }{s+1}\rfloor -i \ell }(1^{s+1},\dots ,n^{s+1})\\&\quad \left[ \left[ \begin{array}{c}n+1\\ n+1-r-i (s+1)\end{array}\right] \right] _\ell . \end{aligned}$$

5 The s-Elementary Symmetric Function

The s-elementary symmetric polynomial is defined by the expression

$$\begin{aligned} E_k^{(s)}(n)=\sum _{\begin{array}{c} a_1+\cdots +a_n=k\\ a_i\le s \end{array}}x_1^{a_1}\cdots x_n^{a_n}. \end{aligned}$$
(12)

An equivalent definition of this symmetric polynomial already exists in a paper by Bazeniar et al. [3]. For further properties of this symmetric function, see [1].

Theorem 5.1

If \(s\equiv 1 \pmod 2,\) then for every positive integers n and k the following identity holds

$$\begin{aligned} \sum _{i=0}^k(-1)^iE_i^{(s)}(n)\cdot M^{(s)}_{k-i}(n)=0. \end{aligned}$$

Proof

The inverse of the generating function in Theorem 2.1 is given by

$$\begin{aligned} \prod _{i=1}^n\frac{1-(x_it)^{s+1}}{1+x_it}&=\prod _{i=1}^n\frac{1-(-x_it)^{s+1}}{1-(-x_it)}=\prod _{i=1}^n\left( 1-x_it+(-x_it)^2+\cdots +(-x_it)^{s}\right) . \end{aligned}$$

In each product, we can create any number in between 1 and s. Hence

$$\begin{aligned} \sum _{k=0}^{n\cdot s}E_k^{(s)}(n)(-t)^k=\prod _{i=1}^n\frac{1-(x_it)^{s+1}}{1+x_it}, \end{aligned}$$

and the desired identity follows. \(\square \)

We can express the modular symmetric function \(M_k^{(s)}\) as convolutions involving the complete and elementary symmetric functions.

Theorem 5.2

Let k, n, and s be positive integers and let \(x_1,x_2,\ldots ,x_n\) be independent variables. Then,

$$\begin{aligned} M_{k}^{(s)}(x_{1},x_{2},\ldots ,x_{n}) =\sum _{j=0}^{\lfloor k/s+1 \rfloor } h_{j}(x_{1}^{s+1},x_{2}^{s+1},\ldots ,x_{n}^{s+1}) e_{k-(s+1)j}(x_{1},x_{2},\ldots ,x_{n}). \end{aligned}$$

Proof

According to (2), we have

$$\begin{aligned}&\sum _{k=0}^\infty M_k^{(s)} (x_{1},x_{2},\ldots ,x_{n}) t^k\\&\quad =\left( \prod _{i=1}^{n}\frac{1}{1-(x_{i}t)^{s+1}}\right) \left( \prod _{i=1}^{n} (1+x_{i}t)\right) \\&\quad =\left( \sum _{j=0}^\infty h_{j}(x_{1}^{s+1},x_{2}^{s+1},\ldots ,x_{n}^{s+1})(t)^{(s+1)j} \right) \left( \sum _{j=0}^\infty e_{j}(x_{1},x_{2},\ldots ,x_{n})t^{j}\right) \\&\quad =\sum _{k=0}^\infty \left( \sum _{j=0}^{\lfloor k/s+1 \rfloor }h_{j}(x_{1}^{s+1},x_{2}^{s+1},\ldots ,x_{n}^{s+1}) e_{k-(s+1)j}(x_{1},x_{2},\ldots ,x_{n})\right) t^{k}. \end{aligned}$$

As required. \(\square \)

Inspired by Theorem 5.2, we provide the following generalization.

Theorem 5.3

Let k, n and s be three positive integers and let \(x_1,x_2,\ldots ,x_n\) be independent variables. Then,

$$\begin{aligned} h_k(x_1^s,x_2^s,\ldots ,x_n^s) = \sum _{j=0}^{k(s+1)} (-1)^{j} h_j(x_1,x_2,\ldots ,x_n) M_{k(s+1)-j}^{(s)}(x_1,x_2,\ldots ,x_n) \end{aligned}$$

and

$$\begin{aligned} e_k(x_1,x_2,\ldots ,x_n) = \sum _{j=0}^{\lfloor k/s+1 \rfloor } (-1)^{j} e_j(x_1,x_2,\ldots ,x_n) M_{k-j(s+1)}^{(s)}(x_1,x_2,\ldots ,x_n). \end{aligned}$$

If k is not congruent to 0 modulo \(s+1\), then

$$\begin{aligned} \sum _{j=0}^k (-1)^j h_j(x_1,x_2,\ldots ,x_n) M_{k-j}^{(s)}(x_1,x_2,\ldots ,x_n) = 0. \end{aligned}$$

Proof

The relation given in Theorem 2.1 can be rewritten as

$$\begin{aligned} \prod _{i=1}^n \frac{1}{1+x_it} \sum _{k=0}^\infty M_k^{(s)}(x_1,x_2,\ldots ,x_n) t^k = \prod _{i=1}^n \frac{1}{1-(x_it)^{s+1}} \end{aligned}$$

or

$$\begin{aligned} \prod _{i=1}^n (1-(x_i t)^{s+1}) \sum _{k=0}^\infty M_k^{(s)}(x_1,x_2,\ldots ,x_n) t^k = \prod _{i=1}^n \big (1+(x_it)\big ). \end{aligned}$$

Thus, we deduce that

$$\begin{aligned}&\sum _{k=0}^\infty h_k(x_1^{s+1},x_2^{s+1},\ldots ,x_n^{s+1}) t^{k(s+1)}\\&\quad = \left( \sum _{k=0}^\infty (-1)^k h_k(x_1,x_2,\ldots ,x_n) t^k \right) \left( \sum _{k=0}^\infty M_k^{(s)}(x_1,x_2,\ldots ,x_n) t^k \right) \end{aligned}$$

and

$$\begin{aligned}&\sum _{k=0}^\infty e_k(x_1,x_2,\ldots ,x_n) t^{k}\\&\quad = \left( \sum _{k=0}^\infty (-1)^k e_k(x_1^{s+1},x_2^{s+1},\ldots ,x_n^{s+1}) t^{k(s+1)} \right) \left( \sum _{k=0}^\infty M_k^{(s)}(x_1,x_2,\ldots ,x_n) t^k \right) . \end{aligned}$$

The proof follows easily by comparing the coefficients of \(t^{ks}\) on both sides of these equations. \(\square \)

The following result allows us to express a convolution of the modular symmetric function \(M_k^{(s)}\) as convolutions involving the complete and elementary symmetric functions.

Theorem 5.4

Let k, n and s be three positive integers and let \(x_1,x_2,\ldots ,x_n\) be independent variables. Then,

$$\begin{aligned} \sum _{j=0}^{k}e_j(x_1,x_2,\ldots ,x_n)h_{k-j}(x_1,x_2,\ldots ,x_n)=\sum _{j=0}^{k}M^{(s)}_j(x_1,x_2,\ldots ,x_n)E^{(s)}_{k-j}(x_1,x_2,\ldots ,x_n). \end{aligned}$$

We can now define the modular s-Stirling numbers of the first kind by the following equality

$$\begin{aligned} \left[ \begin{array}{c}n+1\\ k+1\end{array}\right] ^{(s)}=(n!)^{s}E_k^{(s)}\left( 1,\frac{1}{2},\dots ,\frac{1}{n}\right) . \end{aligned}$$

These numbers were introduced by Bazeniar et al. [2]. They are interpreted \(\big [\begin{array}{c}n\\ k\end{array}\big ]^{(s)}\) as the number of s-tuple permutations of [n] having together k cycles. Inspired by the combinatorial interpretation given in Theorem 4.1 for the modular s-Stirling numbers of the second kind, we give in the following theorem another combinatorial interpretation for \(\big [\begin{array}{c}n\\ k\end{array}\big ]^{(s)}\).

Theorem 5.5

Let n and k be nonnegative integers and \(s>0\). The s-modular Stirling numbers of the first kind \(\big [\begin{array}{c}n+1\\ k+1\end{array}\big ]^{(s)}\) count the number of set partitions \(\pi \in \Pi (n(s+1)-k,n)\) such that \(d(\pi )=(d_1,\dots ,d_n)\) has the property that \(d_i\le s\) for every \(1\le i \le n\).

Proof

From (12), we have the equality

$$\begin{aligned} (n!)^sE_k^{(s)}\left( 1,\frac{1}{2},\dots ,\frac{1}{n}\right) =E_{n\cdot s-k}^{(s)}(1,\dots ,n). \end{aligned}$$

Using the same argument as in Theorem 4.1, we obtain the desired result. \(\square \)

From Theorem 5.5 (taking \(s=1\)), we obtain a probably new combinatorial interpretation for the Stirling numbers of the first kind in terms of set partitions. Indeed, \(\big [\begin{array}{c}n+1 \\ k+1\end{array}\big ]\) enumerates the set partitions in \(\Pi (2n-k,n)\), such that the vector \(d(\pi )=(d_1,\dots ,d_n)\) has the property that \(d_i\le 1\) for every \(1\le i \le n\). For example, \(\big [\begin{array}{c}3+1 \\ 1+1\end{array}\big ]=11\), the partitions being

$$\begin{aligned}&1/23/45, \quad 1/235/4, \quad 12/3/45, \quad 13/2/45, \quad 12/34/5, \quad 12/35/4, \\&135/2/4, \quad 15/23/4, \quad 124/3/5, \quad 125/3/4, \quad 13/25/4. \end{aligned}$$

The modular s-Stirling numbers of the first kind satisfy the following recurrence relation

$$\begin{aligned} \left[ \begin{array}{c}n\\ k\end{array}\right] ^{(s)}=\sum _{\ell =0}^s\left[ \begin{array}{c}n-1\\ k-(s-\ell )\end{array}\right] ^{(s)}\cdot (n-1)^\ell , \end{aligned}$$
(13)

where \(\big [\begin{array}{c}0\\ 1-s\end{array}\big ]^{(s)}=1,\big [\begin{array}{c}n\\ k\end{array}\big ]^{(s)}=0\) if \(k<1-s\). See also, Bazeniar et al. [2]. From this relation, we can give the following combinatorial interpretation.

Theorem 5.6

Let n and k be nonnegative integers and \(s>0\). Consider the set of s-tuples of permutations \((\sigma _1,\sigma _2,\dots , \sigma _s)\) such that \(\min (\sigma _i)\subseteq \min (\sigma _{i-1})\) for all \(i>1\) and \(\sum _{j=1}^s|\min (\sigma _j)|=k+s-1.\) Then the number of such elements equals \(\big [\begin{array}{c}n\\ k\end{array}\big ]^{(s)}\).

Proof

By the recursion given in (13), one has that

$$\begin{aligned} \left[ \begin{array}{c}n\\ k\end{array}\right] ^{(s)}&=\sum _{\ell =0}^s\left[ \begin{array}{c}n-1\\ k-(s-\ell )\end{array}\right] ^{(s)}(n-1)^{\ell }=\sum _{\ell =0}^s\left[ \begin{array}{c}n-1\\ k-\ell \end{array}\right] ^{(s)}(n-1)^{s-\ell }. \end{aligned}$$

This recurrence corresponds to choosing if the last element of each permutation, i.e., n is going to be fixed or not. Call \(\ell \) the number of permutations where n is going to be a fixed point. By the condition we imposed in the tuple, these have to be the first \(\ell \) elements of the s-tuple. For the remaining \(s-\ell \) elements of the tuple, we have to choose an element from the remaining \(n-1\) to have n as a preimage in each one of the permutations. We can do this in \((n-1)^{s-\ell }\) ways. This shows the claim because the initial condition is in \(1-s,\) meaning we need \(k-(1-s)=k+s-1\) cycles to fill. \(\square \)

For example, take \(n=3\) and \(k=4,\) the following correspond to the 15 tuples counted by \(\big [\begin{array}{c}3 \\ 4\end{array}\big ]^{(3)}\) having in total \(3+4-1=6\) cycles.

$$\begin{aligned}&( (1)(2)(3) , (1)(2,3) , (1,2,3) ),\quad ( (1)(2)(3) , (1)(2,3) , (1,3,2) ), \\&( (1)(2)(3) , (1,2)(3) , (1,2,3) ),\quad ( (1)(2)(3) , (1,2)(3) , (1,3,2) ), \\&( (1)(2)(3) , (1,3)(2) , (1,2,3) ),\quad ( (1)(2)(3) , (1,3)(2) , (1,3,2) ), \\&( (1)(2,3) , (1)(2,3) , (1)(2,3) ),\quad ( (1)(2,3) , (1)(2,3) , (1,3)(2) ), \\&( (1)(2,3) , (1,3)(2) , (1)(2,3) ),\quad ( (1)(2,3) , (1,3)(2) , (1,3)(2) ), \\&( (1,2)(3) , (1,2)(3) , (1,2)(3) ),\quad ( (1,3)(2) , (1)(2,3) , (1)(2,3) ), \\&( (1,3)(2) , (1)(2,3) , (1,3)(2) ),\quad ( (1,3)(2) , (1,3)(2) , (1)(2,3) ), \\&( (1,3)(2) , (1,3)(2) , (1,3)(2)). \end{aligned}$$

6 Concluding Remarks

In this paper, we have discussed several combinatorial properties for a new family of symmetric functions. As a consequence, we introduce new combinatorial sequences related to the counting of some restricted set partitions. We also establish interesting congruences satisfied by these sequences.