WorksMathematics
A general triangle generation of the -dimensional Genocchi numbers
Abstract
We establish a uniform recurrence relation for the rook numbers of generalized Genocchi boards of dimension . The recurrence for each row of the rook-number triangle is expressed in terms of the preceding row, with coefficients given by products of consecutive powers and finite sums involving Stirling numbers of the second kind. The proof decomposes the boundary of the board into blocks that correspond to the coordinates equal to 1. A coordinatewise counting argument then shows that the number of extensions of a fixed interior placement depends on a boundary partition only through the number of its blocks and the size of their union. We also express the coefficients as finite differences, recovering the previously established recurrences in dimensions three through five, and give the six-dimensional specialization. As a complementary result, we formulate an injection model that provides a direct bijective proof of a formerly established identification of the diagonal rook numbers with generalized Genocchi numbers.
Introduction
Rook theory studies the placement of nonattacking rooks on various types of boards and relates these placements to the combinatorial-enumerative problems of permutations and special number sequences. A board in higher dimensions is a finite set of integer tuples such that two rooks on a board attack each other if their cells have at least one coordinate in common [1]. Genocchi boards are a special family of boards in higher dimensions formed by taking the complement of its corresponding triangular board. For a comprehensive overview of the background and definitions used in this paper, we refer the reader to [1, 4].
For , write with . For , the -dimensional Genocchi board of size is
In particular, . A nonattacking placement is a set of cells with distinct entries in each coordinate. We denote the number of placements of nonattacking rooks on as and use the conventions
A recurrence for generating the triangle of rook-numbers for three-dimensional Genocchi boards was obtained by Alayont and Krzywonos [2]. Later, Alayont, Loewen, and Zadorozhnyy [3] established corresponding recurrences in dimensions four and five. In each case, the recurrence expresses the rook numbers of a board of size in terms of those of size . While the coefficients in these recurrences become increasingly complex as the dimension increases, the common structure of the recurrences suggests that there is a single counting mechanism that underlies them.
The main result of the paper is a uniform row-to-row recurrence for the rook-number triangle with explicit coefficients for every . In particular, we unify all previously known recurrences for dimensions three through five via a single, straightforward boundary-counting argument.
We use the standard notation to denote the Stirling number of the second kind, , i.e., the number of ways to partition a set of elements into nonempty subsets. For and , we set , and we use the standard convention for the empty product by setting .
Theorem 1.1 (Uniform rook-number recurrence). Let , , and , and put . Then,
where and, for ,
The proof separates the contribution of a boundary placement into two parts. First, we will count the number of possible sets of coordinates that are equal to 1 for a fixed boundary placement. Then, we calculate the number of possible assignments of the remaining coordinates. For a fixed , this count will depend on the total number of coordinates equal to 1 and not on how they are distributed among the rooks; this justifies why the sum in (3) is a sum of Stirling numbers of the second kind.
The diagonal sequence has already been identified with generalized Genocchi numbers by Alayont, Moger-Reischer, and Swift [4]. Their work also gives a combinatorial interpretation of the generalized Genocchi numbers as -tuples of permutations. As a complementary result, in Section 5, we give a direct and intuitive bijective proof of this established identification. We also enlarge the permutation model to allow for injections into larger sets, which gives a simple interpretation of the subtraction term in the generalized Gandhi recurrence by deleting a chosen unused value from each codomain.
The paper is organized as follows. We first identify the boundary-counting mechanism underlying the uniform recurrence in Section 2. Then, we explore the algebraic properties of the coefficients in Section 3, and relate the general formula to some explicit examples in low dimensions in Section 4. We move on from the full rook-number triangle in Section 5 to provide a bijective explanation of the diagonal entries. Finally, we discuss some further questions in Section 6, and list some more numerical examples for various dimensions in Appendix A.
Boundary decomposition and proof of the recurrence
The recurrence in Theorem 1.1 is derived by first partitioning the original board into a smaller translated board and its remaining boundary, then counting the number of placements on the smaller board that extend across that boundary.
The translated interior
To compare successive board sizes, we use the translated copy
Translation by gives a bijection from to which also preserves nonattacking rook placements. Thus,
Now, define
The translated interior
It follows that the boundary added at size is precisely
Note that every cell outside the translated interior has at least one coordinate equal to 1. If this coordinate is , the board condition implies that there must exist some such that as well. Conversely, every cell in an lies entirely outside the interior. An example of the decomposition of the board into both interior and boundary components for and is given in Figure 1.

Figure 1. Decomposition of the Genocchi board into its interior and boundary parts, respectively, using the visualization from [2].
For each , define the exclusive region
Since is nonempty, every cell in this set satisfies the board condition. Therefore, in addition to (2.1), the boundary added at size can be represented as
The decomposition of the boundary into regions for and is shown in Figure 2.

Figure 2. Boundary decomposition of the three-dimensional Genocchi board of size 5, where . Top: The boundary consists of the union of two overlapping hyperplanes and . Bottom: By separating their intersection, the three pairwise disjoint exclusive regions , , and are obtained. The visible faces of the common intersection are highlighted in cyan for each of the single hyperplanes and the intersection.
According to the definition of the board (1.1), if any of the first coordinates are equal to 1, then the board condition is satisfied automatically. This means that once the exclusive region of a boundary rook is specified, there are no additional inequalities to be satisfied by the free coordinates of that rook.
Partition types
The exclusive regions describe where a single boundary rook can lie. To count several boundary rooks, we must determine which of these regions can occur together in a nonattacking placement. For a boundary cell , let
Note that this set is nonempty. Moreover, if and belong to a nonattacking placement, then . Thus, a placement of boundary rooks determines an unordered family of pairwise disjoint nonempty subsets of (in particular, ). We call such its partition type.
Write and denote . Then, for fixed and , the number of partition types is given by
where we first choose and then partition it into nonempty blocks.
Example 2.1. When , the boundary has the three exclusive regions
, , .
A single boundary rook can occupy any one of these regions. For two boundary rooks, the only possible partition type is .
The independence lemma
The partition count is determined by specifying the coordinates equal to 1. The remaining coordinate values can then be assigned in any way that does not create attacks. The following lemma shows that the partition count is independent of the interior placement and is determined solely by the number of blocks in the partition type and the size of the union of its blocks.
For a nonnegative integer , we use the standard notation for the falling factorial:
Lemma 2.2 (Independence lemma). Let , , , and . Fix a placement of nonattacking rooks on and a partition type with . Take . The number of extensions with one boundary rook in each is
In particular, the count does not depend on the choice of the interior placement nor on the individual blocks of , except through and $\sigma.
Proof. Index new rooks by their distinct blocks in which they are placed. Note that this indexing does not add any labels to the final placement as the region of each rook can be uniquely determined.
The interior rooks have distinct values for each coordinate, all of which are different from 1. Thus, each coordinate has
available values, with exactly one value equal to 1. The available sets may vary between coordinates, but their cardinalities are all equal.
We assign the coordinates to the new rooks independently. For the coordinate , all rooks are free and their values must be distinct. Thus, there are possibilities.
For each coordinate , exactly one specified rook has value 1. The remaining rooks take distinct values from the available non-1 values, and there are such assignments.
For each coordinate , there is no rook with value 1. All rooks are assigned distinct values from the available non-1 values. There are such assignments.
Since every resulting cell belongs to its prescribed exclusive region, the board condition is satisfied automatically. The total number of extensions is therefore
Observe that
Properties of the falling factoring yield the following identities:
Therefore, substituting these identities into (2.4) gives us
which is precisely (2.3), establishing the result.
Remark 2.3. This proof also covers for the edge case , when as well as . For , a boundary partition only contributes for , since otherwise one of the first coordinates would require distinct values from a set of size .
Example 2.4. For , , and , the three partition types are
Each contributes to the overall count for a combined contribution of .
Proof of Theorem 1.1
Finally, the above counting steps can now be combined to prove the uniform recurrence; we simply sum the extension count over all partition types and then over the possible numbers of boundary rooks.
Proof of Theorem 1.1. Partition all placements of rooks according to the number of rooks on . By the pairwise disjointness of the sets associated with the boundary rooks, we have
If , every rook lies in the translated interior. This contributes .
Suppose . There are ways to choose the placements of the interior rooks. We can then count the number of extensions for each choice of the interior rooks by grouping the possible boundary partition types according to . Then, using Equations (5) and (6), we get the extension count:
This is precisely .
Note that there is no factor of because the blocks form an unordered partition, and the rook associated with each block is uniquely determined by its exclusive region. Thus, each placement is therefore counted exactly once. Summing over proves the recurrence.
Finite differences and coefficient identities
By utilizing the uniform recurrence in Theorem 1.1, we can extend the coefficient patterns from dimensions three through five to arbitrary dimension. Furthermore, we can describe the Stirling number factor as a sum of finite differences which allow us to develop general formulas that describe the degree, leading coefficient, and special values of the recurrence coefficients. These combinatorial interpretations help us see how the previously observed patterns from the lower-dimensional examples relate to each other.
To begin, we separate the formula in (3) into two factors by introducing the notation
and
so that for .
Let denote the forward-difference operator, i.e.,
and for an integer , we write for the operator obtained by applying the operator repeatedly times; that is,
Proposition 3.1 (Finite-difference formula). For and
Consequently,
Proof. Use the well-known Stirling numbers inclusion-exclusion identity
Since for , the sum in (9) can be extended to . Next, by interchanging the order of the two finite sums and utilizing the binomial theorem, we obtain
Note that the second equality in (3.3) is just the standard expansion of the iterated forward difference.
Corollary 3.2 (Degree and leading coefficient). For , the polynomial has degree with leading coefficient . Moreover,
Proof. The term in (9) has degree and leading coefficient . All other terms have smaller degree. The structural factor has degree with leading coefficient . Their product therefore has degree
and the stated leading coefficient.
To prove the last assertion, take . Note that each factor in (3.1) is a power of a polynomial with a nonnegative integer. Also, all coefficients in (9) are nonnegative integers for .
Corollary 3.3 (Boundary coefficients). For ,
More generally, for ,
Proof. Equation (12) follows directly from Proposition 3.1 with . For , the sum in (9) consists only of the term , which equals . This proves (13).
When , all terms in (9) vanish except . The structural factor becomes , proving (14).
Remark 3.4. Specializing Theorem 1.1 to gives
Thus, the diagonal can be constructed using only a bounded number of entries in close proximity to the diagonal entry of the previous row; however, of course, this does not constitute a recurrence which involves only diagonal entries.
Low-dimensional specializations
The following specializations show how our uniform formula recovers previously established recurrences for dimensions three through five. To continue demonstrating the pattern, we also produce the six-dimensional case using the same approach. As before, we let throughout this section.
Dimensions three through five
For , the nonconstant recurrence coefficients are
Hence, Theorem 1.1 gives
recovering the recurrence from [2].
For , the coefficients are
For example,
For , they are
Here, the two intermediate sums simplify to
Note that the four- and five-dimensional formulas agree with the recurrences established in [3].
Dimension Six
The following corollary establishes the recurrence for dimension six, extending the previously known low-dimensional cases.
Corollary 4.1. For and ,
where and negative rook indices contribute zero.
Proof. The intermediate Stirling sums are
Multiplying by the corresponding structural factors yields the coefficients of , , and , and the remaining coefficients follow from Corollary 3.3.
The first few rows of the resulting rook-number triangle are recorded in Table 1. Observe that the first row accounts for the edge case . The diagonal entries (highlighted in bold) align with OEIS sequence A065756 from [8] and will be interpreted in § 5.
| 0 | 1 | 2 | 3 | 4 | 5 | |
| 0 | 1 | |||||
| 1 | 1 | 1 | ||||
| 2 | 1 | 63 | 31 | |||
| 3 | 1 | 696 | 21217 | 6721 | ||
| 4 | 1 | 3820 | 1292845 | 25479615 | 5850271 | |
| 5 | 1 | 14325 | 26743325 | 5884739700 | 84597410401 | 15060446401 |
Table 1. Rook numbers for . Diagonal entries are in bold.
As an additional elementary check on the first column of nonempty placements, the board definition gives
Indeed, for fixed , an excluded cell has all of its first coordinates in . There are such cells.
Tables analogous to Table 1 for dimensions , , and are given in Appendix A.
An injection model for generalized Gandhi polynomials
The uniform recurrence determines the full rook-number triangle, but its diagonal specialization still involves off-diagonal entries, as seen in (15). To explain the diagonal sequence directly, we enlarge the permutation model to injections into larger sets. These additional codomain values supply the parameter for a bijective proof of the generalized Gandhi recurrence and hence of the known diagonal identification.
In order to make the dimensional dependence explicit, we define a family of polynomials by
Thus,
These are the generalized Gandhi polynomials of degree ; see [5] for more details. Note that our superscript records the board dimension instead of the exponent.
Restricted injections
We keep the inequality defining the board, using the last coordinate of a board element to identify the domain of an injection. The case where the injections are permutations gives us full rook placements on the board.
For and an integer , let be the set of tuples such that
is injective for each , and
There is one tuple of empty injections when . Write
Lemma 5.1. For every and ,
Proof. For , each injection is a permutation of . A placement of nonattacking rooks on uses every value of every coordinate exactly once. In particular, for each , there is a unique rook with last coordinate . Let be its th coordinate. The nonattacking condition makes each a permutation, and the board condition is exactly (5.2).
Conversely, a tuple in gives the placement
These two operations are inverse to each other, establishing the result. Note this also holds for the edge case : both sets consist of corresponding empty objects.
The deletion bijection
To establish the Gandhi polynomials with the counts , we only have to show the recurrence (5.1) holds for the Gandhi polynomials. We do so by extending the domain by one element and by using a deletion bijection to count the extensions which violate the restriction.
Theorem 5.2. For every , , and integer ,
Consequently,
Proof. Fix
Each maps injectively into , leaving exactly unused values. Choose one such value, say , for each coordinate and extend by setting
There are extensions of each tuple . Note that all conditions at positions remain satisfied.
An extension is not valid precisely when for every . Thus, we construct a bijection between these invalid extensions and
If , both the set of invalid extensions and (20) are empty.
Now, assume that . Given an invalid extension, define . Since , we can delete from the codomain and close the resulting gap:
Then, is injective. Since , it follows that satisfies (18). The forward map sends the invalid extension to .
Conversely, take an element of (20). Set and open a gap at :
The resulting map is an injection into and does not use .
It remains to check the restriction at each . Choose such that . Since
this value is unchanged by (21), and, therefore, , as required. Appending at position now gives an invalid extension since every is greater than .
The operations of closing and opening a gap are inverse to each other, so we can recover from . This completes the bijection. The number of invalid extensions is given by
Subtracting this from the unrestricted extension count proves (19).
Finally, the base case for the induction is . The statement then follows by induction on using (17) and (19).
Corollary 5.3 (Diagonal identification [4]). For every and ,
Proof. This is an immediate consequence of combining Lemma 5.1 with Theorem 5.2.
Remark 5.4. In the notation of [5], the th generalized Genocchi numbers are given in our notation. Thus, (22) can also be written as
The empty board accounts for the initial value at . Keeping this index shift explicit avoids ambiguity between the board size and the index of a generalized Genocchi number.
The Gandhi recurrence now provides a second way to compute the initial diagonal entries, allowing a direct comparison with the rook-number tables above.
Corollary 5.5 (Initial diagonal values). For every ,
Proof. At , the Gandhi recurrence gives
The first two values follow from . For the third,
which gives the stated expression.
For example, when , , as in Table 1. □
Concluding remarks
Theorem 1.1 gives a uniform recurrence for the whole rook-number triangle of a Genocchi board in any dimension. The coefficients in this recurrence separate the enumeration of the boundary partition types from the assignment of coordinates to the interior placement—the first part is given by Stirling numbers while the second part is independent of the geometry of the interior placement.
In order to understand better why the structural factor is the same for all types of partitions of given block size, a coordinatewise proof of Lemma 2.2 was introduced. The remaining factor can then be expressed in terms of a finite-difference formula.
The injection model provides a different explanation of the subtraction term in the generalized Gandhi recurrence. An invalid extension to a board can be described as a restricted injection into a smaller codomain, together with a choice of one deleted value in each of the coordinates. This gives an alternative explanation of the diagonal identification that was established using the complementary-board formula.
The aforementioned counting models, along with their formulas, raise some interesting questions for further study.
First, the recurrence for the full triangle can be used to study entries at a fixed distance from the diagonal, , as varies. It would be of interest to compare such a recurrence to the polynomial families that arise from the injection model.
Second, the proof of the uniform recurrence result relies on two compatible properties: translation preserves the interior board and fixing one of the first coordinates to 1 removes all remaining board inequalities on the boundary region corresponding to that coordinate. It would be interesting to identify other board families that have similar properties and use them to derive other recurrences. For boards defined using order statistics other than the minimum, the boundary regions will, in general, retain some inequalities, and thus the independence argument given above does not apply.
Finally, the factorization of the coefficients and their nonnegative expansion in seem to suggest the possibility of establishing generating functions and inequalities for other entries among the full rook-number triangle instead of only for its diagonal.
References
Department of Mathematics, Penn State Behrend, Erie, Pennsylvania, USA
Email address: [email protected]
Email address: [email protected]
Applied Sciences Group, Microsoft Corporation, Redmond, Washington, USA
Email address: [email protected]
Appendix A. Rook-number tables in dimensions three through nine
This appendix contains tables with the rook numbers (i.e., the coefficients of the rook polynomials of ) for and . The tables are organized in the same way as in Table 1; that is, row consists of the rook numbers , where the entries with are 0 and thus left blank. The diagonal entries that count the placements of non-attacking rooks are bolded. The column is given in closed form by (16), providing a quick check on each table.
The tables in this appendix can be used to illustrate the full-triangle recurrence of Theorem 1.1 as well as the identification of the diagonal entries in Corollary 5.3. The diagonal entries for are listed in the OEIS sequences given below, and for are further specializations of the same generalized Genocchi family, as given in Appendix A.§ 5.
3D
Table 2 lists the rook numbers of the three-dimensional boards . As expected from previous discussions in [2, 3], the highlighted diagonal entries follow the sequence A110501 [10]: Unsigned Genocchi numbers (of first kind) of even index. The diagonals in the higher-dimensional tables below generalize these numbers.
| 0 | 1 | 2 | 3 | 4 | 5 | |
| 0 | 1 | |||||
| 1 | 1 | 1 | ||||
| 2 | 1 | 7 | 3 | |||
| 3 | 1 | 22 | 69 | 17 | ||
| 4 | 1 | 50 | 507 | 959 | 155 | |
| 5 | 1 | 95 | 2227 | 13964 | 18077 | 2073 |
Table 2. Rook numbers for . Diagonal entries are in bold.
4D
Table 3 lists the rook numbers of . Again as expected from [2, 3], the highlighted diagonal entries follow the sequence A064624 [6]: Generalization of the Genocchi numbers given by the Gandhi polynomials
which is a specialized case of (5.1) with . In particular, . By Corollary 5.3, the diagonal entries satisfy for .
| 0 | 1 | 2 | 3 | 4 | 5 | |
| 0 | 1 | |||||
| 1 | 1 | 1 | ||||
| 2 | 1 | 15 | 7 | |||
| 3 | 1 | 72 | 505 | 145 | ||
| 4 | 1 | 220 | 7525 | 33135 | 6631 | |
| 5 | 1 | 525 | 55445 | 1207260 | 3778201 | 566641 |
Table 3. Rook numbers for . Diagonal entries are in bold.
5D
Table 4 lists the rook numbers of , and the pattern continues, again in agreement with [2, 3]. The highlighted diagonal entries follow the sequence A064625 [7]: Generalization of the Genocchi numbers given by the Gandhi polynomials
In particular, . Again, Corollary 5.3 gives for ; the exponent in the recurrence increases from 3 to 4.
| 0 | 1 | 2 | 3 | 4 | 5 | |
| 0 | 1 | |||||
| 1 | 1 | 1 | ||||
| 2 | 1 | 31 | 15 | |||
| 3 | 1 | 226 | 3345 | 1025 | ||
| 4 | 1 | 926 | 100875 | 954815 | 209135 | |
| 5 | 1 | 2771 | 1245715 | 87547640 | 598789745 | 100482849 |
Table 4. Rook numbers for . Diagonal entries are in bold.
6D
The six-dimensional case is treated in § 4.2, where the recurrence of Corollary 4.1 produces the rook numbers in Table 1. As noted there, the diagonal entries follow the sequence A065756 [8]. They fit the same pattern: , where is now given by the Gandhi recurrence with exponent 5.
Genocchi Numbers in Dimensions 7–9
Corollary 5.3 also applies to the higher-dimensional cases, so the following tables extend the preceding comparisons beyond dimension six. For , the highlighted diagonal entries in Table 5, Table 6, and Table 7 are obtained by evaluating the generalized Gandhi polynomial recurrence
| 0 | 1 | 2 | 3 | 4 | 5 | |
| 0 | 1 | |||||
| 1 | 1 | 1 | ||||
| 2 | 1 | 127 | 63 | |||
| 3 | 1 | 2122 | 131649 | 42497 | ||
| 4 | 1 | 15590 | 16183587 | 653809919 | 154324415 | |
| 5 | 1 | 73235 | 560465227 | 380225955704 | 11273511226817 | 2078673245313 |
Table 5. Rook numbers for . Diagonal entries are in bold.
| 0 | 1 | 2 | 3 | 4 | 5 | |
| 0 | 1 | |||||
| 1 | 1 | 1 | ||||
| 2 | 1 | 255 | 127 | |||
| 3 | 1 | 6432 | 806785 | 263425 | ||
| 4 | 1 | 63220 | 199812085 | 16405117695 | 3940253311 | |
| 5 | 1 | 371925 | 11579558405 | 24006609439140 | 1452789368918401 | 273973317999361 |
Table 6. Rook numbers for . Diagonal entries are in bold.
| 0 | 1 | 2 | 3 | 4 | 5 | |
| 0 | 1 | |||||
| 1 | 1 | 1 | ||||
| 2 | 1 | 511 | 255 | |||
| 3 | 1 | 19426 | 4907265 | 1613825 | ||
| 4 | 1 | 255326 | 2445757275 | 405980077055 | 98640535295 | |
| 5 | 1 | 1880771 | 237077631715 | 1493832381997640 | 183359016043366145 | 35109020604482049 |
Table 7. Rook numbers for . Diagonal entries are in bold.
In particular, , with exponents 6, 7, and 8 in dimensions 7, 8, and 9, respectively. By Corollary 5.3, the highlighted diagonal entries in Table 5, Table 6, and Table 7 are obtained by evaluating these polynomials at :
The resulting sequences appear to be new, and they have been submitted to the OEIS [9].
References
- [1]Feryál Alayont and Nicholas Krzywonos. Rook polynomials in three and higher dimensions. Involve: A Journal of Mathematics, 6(1):35 – 52, 2013.
- [2]Feryál Alayont and Nicholas Krzywonos. Another recurrence relation for genocchi numbers. Unpublished manuscript, available at https://faculty.gvsu.edu/alayontf/notes/genocchi_triangle.pdf, 2016.
- [3]Feryál Alayont, Stephanie Loewen, and Vasily Zadorozhnyy. A new triangle generation of some generalized genocchi numbers. Mathematics Exchange, 18(1):51–64, Mar. 2025.
- [4]Feryál Alayont, Rachel Moger-Reischer, and Ruth Swift. Rook number interpretations of generalized central factorial and genocchi numbers. Unpublished Manuscript, 2012.
- [5]Michael Domaratzki. Combinatorial interpretations of a generalization of the genocchi numbers. Journal of Integer Sequences, 7:36, 2004.
- [6]Mike Domaratzki. Generalization of the genocchi numbers given by the gandhi polynomials a(n+1,r) = r³a(n,r+1) − (r − 1)³a(n,r); a(1,r) = r³ − (r − 1)³. The on-line encyclopedia of integer sequences, 2001.
- [7]Mike Domaratzki. Generalization of the genocchi numbers given by the gandhi polynomials a(n+1,r) = r⁴a(n,r+1) − (r − 1)⁴a(n,r); a(1,r) = r⁴ − (r − 1)⁴. The on-line encyclopedia of integer sequences, 2001.
- [8]Mike Domaratzki. Generalization of the genocchi numbers given by the gandhi polynomials a(n+1,r) = r⁵a(n,r+1) − (r − 1)⁵a(n,r); a(1,r) = r⁵ − (r − 1)⁵. The on-line encyclopedia of integer sequences, 2001.
- [9]OEIS Foundation Inc. The on-line encyclopedia of integer sequences, 2026. Accessed: 2026-05.
- [10]The on-line encyclopedia of integer sequences. Unsigned genocchi numbers (of first kind) of even index.