1. Introduction
A preferential arrangement on 
 is a ranking of the elements of 
 where ties are allowed. We denote 
 as the set of all preferential arrangements on 
. For example,
      
The number of 
 is denoted by 
. These numbers 
 are also called the Fubini numbers [
1], the ordered Bell numbers [
2] (Section 5.2), or surjection number [
3] (p. 109). They count the number of weak orderings on a set of 
n elements. The term “preferential arrangement” was first introduced by Gross [
4]. The explicit expression of 
 is usually given by [
5] (Equation (13))
      
      where 
 is the Stirling numbers of the second kind. The recursive relation and the generating function
      
      were first given by Cayley [
6] in 1859. As a preferential arrangement is nothing else than a sequence of non-empty sets, this directly gives the generating function SEQ(SET
(
))
, and this also explains the recurrence and the link with Stirling numbers (see e.g., [
3] (p. 109)). Accordingly, this number 
 has been given various interpretations and has also been connected to a number of well-known combinatorial sequences [
5,
7,
8,
9].
The Delannoy number 
 is defined for nonnegative integers 
m and 
n by [
1] (p. 81):
The explicit expression of 
 and the generating function [
1] are given by:
The significances of these numbers are explained in [
10,
11]. Recently, Sun [
12] and Liu, Li, & Wang [
13] investigated some congruences relations on them. Qi, Čerňanová, Shi, & Guo [
14] established several explicit expressions, including determinantal expressions. Moreover, Delannoy numbers are related to some adic dynamical systems [
15].
Based on some algebraic identities in Hoffman’s harmonic algebra, we obtained an interesting identity which connects the numbers  and :
Main Theorem. For a pair of nonnegative integers n and m, we have:where  and  are the Stirling numbers of the first kind and the second kind, respectively.  Our paper is organized as follows. In 
Section 2, we present some algebraic preliminaries on Hoffman’s harmonic algebras and provide the basic identity which we will use. In 
Section 3, we prove the Main Theorem and also establish some more formulas. We introduce combinatorial viewpoints to approach the Main Theorem in the last section.
  2. Some Preliminaries on Harmonic Algebras
We summarize the algebraic setup introduced by Hoffman [
16,
17] as follows. Let us consider the coding of multi-indices 
, where 
 are positive integers and 
, by words (that is, by monomials in non-commutative variables) over the alphabet 
 by the rule
      
The weight (or the degree)  coincides with the total degree of the monomial , whereas the length (or the depth)  is the degree with respect to the variable x.
Let 
 be the 
-algebra of polynomials in two non-commutative variables, which is graded by the degree (where each of the variables 
x and 
y is assumed to be of degree 1); we identify the algebra 
 with the graded 
-vector space 
 spanned by the monomials in the variables 
x and 
y ([
16]).
We also introduce the graded -vector spaces  and , where  denotes the unit (the empty word of weight 0 and length 0) of the algebra . Then, the space  can be regarded as the subalgebra of  generated by the words .
Let us define a bilinear product ∗ (the stuffle product or harmonic product) on 
 by the rules
      
      for any word 
w, and
      
      for any words 
u, 
v, any letters 
 or 
y (
), and any generators 
, 
 of the subalgebra 
, and then extend the above rules to the whole subalgebra 
 by linearity. It is known that each of the above products is commutative and associative. We denote the algebra 
 by 
, and we call it a harmonic algebra (or Hoffman’s harmonic algebra). For our convenience, we let
      
Lemma 1. Let  be positive integers. Then:where  is a r-tuple of positive integers.  Proof.  We use an induction on 
k to prove Equation  (
5).
        
The above identity follows from the induction hypothesis. Since
        
        we have:
        
The former summand has 
 instances of 
 and the latter summand has 
r instances of 
 in each summation. We rewrite the summation such that each summand has the same instances of 
.
        
We simplify the summation in the above identity as follows.
        
Combining the first term  and the last term , we get our conclusion. ☐
 We define a rational linear map: 
 by 
 and
      
      where 
 is the multiple zeta value (MZV) [
18,
19,
20]. Since 
, we have 
. Thus, this guarantees that 
 is well-defined. Then, this map is an algebra homomorphism [
21]: 
. If we apply this map to the result of the above lemma, then we have the following identity:
      where 
 are positive integers and 
. This result was recently proved in [
22] (Theorem 1.3) by another method. In fact, this result can be also obtained from [
21] (Proposition 3) and [
23] (Proposition 4), and it is also true for 
, provided one uses stuffle-regularized MZVs.
It is worth noting that 
 is isomorphic to the algebra QSym of quasi-symmetric functions, and QSym has the algebra Sym of symmetric functions as a subalgebra [
24]. The well-known identity
      
      of symmetric functions (which follows from the multinomial theorem), where 
 is the monomial symmetric function corresponding to the partition 
. We define a monomorphism Sym
 sending 
 to 
. We could use this map to send the above identity to Equation  (
5).
We use the result in Lemma 1 to get some relations between Delannoy numbers and preferential arrangements in the next section.
  3. Preferential Arrangements and Delannoy Numbers
The definition of the stuffle product ∗ indicates that the stuffle product of two multiple zeta values of depth 
m and 
n will produce 
 numbers of multiple zeta values ([
25]). We will give another proof using a combinatorial approach in the next section.
The Delannoy number  can be viewed as the number of lattice paths from  to  in which only east , north , and northeast  steps are allowed. The lattice paths described here are called Delannoy paths which give an alternative characterization of the stuffle product.
By counting the number of multiple zeta values in Equation (
5) produced from the stuffle product, we obtain the following interesting identity which connects 
 and 
.
Proposition 1. For a pair of nonnegative integers n and k, we havewhere  are the Stirling numbers of the second kind.  Proof.  There are
        
        terms in the right-hand side of Equation  (
5). Since 
, we have
        
        by the inclusion–exclusion principle. By [
26] (Equation  (6.19)),
        
        we can write the above number as
        
Since the stuffle product of two MZVs of depth 
p and 
q produces 
 numbers of MZVs, we count the numbers of MZVs in the above identity, and then we have:
        
Combining Equations  (
1) and  (
7) and the special values of the Stirling numbers of the second kind at zeros, i.e., 
 whenever 
, we conclude the following result:
        
This completes our proof. ☐
 Our Main Theorem is just the Stirling inversion applied to Equation  (
6).
Main Theorem. For a pair of nonnegative integers n and m, we have:where  and  are the Stirling numbers of the first kind and the second kind, respectively.  Proof.  For any pair of sequences, 
 and 
, if they are related by
        
        then, they have an inversion formula given by [
26]
        
We apply this inversion formula to Equation  (
6) with 
, 
. Then, we have:
        
This completes our proof. ☐
 Applying the inversion formula Equation  (
8) again to the above identity, we have
      
If we set 
 in Equation  (
6), we get the original formula, Equation  (
1). Moreover, if we set 
 in Equation  (
6) and use the fact 
, then we have the following identity (see [
5] (Equation (29))):
      where the number 
 is defined by:
      called “barred preferential arrangements of 
n elements”, introduced by Pippenger [
5]. 
 is the number of ways of ranking 
, with ties allowed, and with a “bar” that may be placed above all the elements of 
, between two equivalence classes of tied members, or below all the members. Some relations between 
 and 
 were derived in [
5] [Equations  (24), (28), and (29)].
  4. Combinatorial Approach
In this section, we give a combinatorial approach to prove Proposition 1. First, we connect monomials  in  to a preferential arrangement.
Proposition 2. For positive integers , the product  is a sum of  monomials, including  monomials of length p for .
 Proof.  We associate any monomials  in the product  to a preferential arrangement on  as follows. If the factor  appears before the factor  in a monomial, then it means that . If the factor  appears in a monomial, then it means that . For example, the monomial  means that the preferential arrangement is .
From the stuffle product rule in Equation  (
4) we know that if 
u, 
v are any possible words,
        
The corresponding result gives us all situations of Candidate j and Candidate ℓ if we rank j and ℓ: the term  means , the term  means , and the term  means . By mathematical induction, one can assert the following result: The product of  produces a sum of monomials, with each monomial corresponding to a possible preferential arrangement in . That is to say, we can regard  as ranking the elements  where ties are allowed.
Therefore, the product 
 is a sum of 
 monomials, including 
 monomials of length 
p for 
 (see Equation  (
1)). ☐
 Secondly, we connect a monomial in a stuffle product to a Delannoy path.
Proposition 3. If u, v are monomials in  of lengths n and m respectively, then  is a sum of  monomials.
 Proof.  We write the monomials 
u and 
v in 
 as:
        
We associate any monomial  in the product  to a Delannoy path from  to  as follows. If , then we move from the standing point to the next point by the direction . If , then we move from the standing point to the next point by the direction . If , then we move from the standing point to the next point by the direction . The path begins at the point , then it follows the directions corresponding to , , …, .
From the stuffle product rule in Equation  (
4), we know that
        
This indicates that there are three possible directions beginning from the point  to the next point. The first term begins with , i.e., we move to the next point ; the second term begins with , i.e., we move to the next point ; or the third term begins with , i.e., we move to the next point . Since the number of the remaining points are less than , we use the induction hypothesis to conclude the following result.
The product of  produces a sum of monomials, where each monomial corresponds to a possible Delannoy path from  to . Hence, the number of the monomials is . ☐
 Now we give another proof of the Proposition 1. Consider the following product
      
By Proposition 2 there are  monomials in this product. Also, the factor  has  monomials of length p for , and the factor  has  monomials of length q for .
By Proposition 3 the product 
 is a sum of 
 monomials, where the monomial 
u is from the product 
 with length 
p, and the monomial 
v is from the product 
 with length 
q. Thus, we have
      
      monomials. By combining these two results, we have the desired identity.