Narayana number

From testwiki
Jump to navigation Jump to search

Template:Short description Template:Infobox integer sequence In combinatorics, the Narayana numbers N(n,k),n+,1kn form a triangular array of natural numbers, called the Narayana triangle, that occur in various counting problems. They are named after Canadian mathematician T. V. Narayana (1930–1987).

Formula

The Narayana numbers can be expressed in terms of binomial coefficients:

N(n,k)=1n(nk)(nk1)

Numerical values

The first eight rows of the Narayana triangle read:

n k
1 2 3 4 5 6 7 8
1 1
2 1 1
3 1 3 1
4 1 6 6 1
5 1 10 20 10 1
6 1 15 50 50 15 1
7 1 21 105 175 105 21 1
8 1 28 196 490 490 196 28 1

Template:OEIS

Combinatorial interpretations

Dyck words

An example of a counting problem whose solution can be given in terms of the Narayana numbers N(n,k), is the number of words containing Template:Tmath pairs of parentheses, which are correctly matched (known as Dyck words) and which contain Template:Tmath distinct nestings. For instance, N(4,2)=6, since with four pairs of parentheses, six sequences can be created which each contain two occurrences the sub-pattern Template:Code:

(()(()))  ((()()))  ((())())
()((()))  (())(())  ((()))()

From this example it should be obvious that N(n,1)=1, since the only way to get a single sub-pattern Template:Code is to have all the opening parentheses in the first Template:Tmath positions, followed by all the closing parentheses. Also N(n,n)=1, as Template:Tmath distinct nestings can be achieved only by the repetitive pattern Template:Code.

More generally, it can be shown that the Narayana triangle is symmetric:

N(n,k)=N(n,nk+1)

The sum of the rows in this triangle equal the Catalan numbers:

N(n,1)+N(n,2)+N(n,3)++N(n,n)=Cn

Monotonic lattice paths

The Narayana numbers also count the number of lattice paths from (0,0) to (2n,0), with steps only northeast and southeast, not straying below the Template:Mvar-axis, with Template:Tmath peaks.

The following figures represent the Narayana numbers N(4,k), illustrating the above mentioned symmetries.

N(4,k) Paths
N(4, 1) = 1 path with 1 peak File:Narayana N(4, 1).svg
N(4, 2) = 6 paths with 2 peaks: File:Narayana N(4, 2).svg
N(4, 3) = 6 paths with 3 peaks: File:Narayana N(4, 3).svg
N(4, 4) = 1 path with 4 peaks: Error creating thumbnail:

The sum of N(4,k) is 1 + 6 + 6 + 1 = 14, which is the 4th Catalan number, C4. This sum coincides with the interpretation of Catalan numbers as the number of monotonic paths along the edges of an n×n grid that do not pass above the diagonal.

Rooted trees

The 6 ordered rooted trees of 4 edges and 2 leaves, corresponding to the Narayana number N(4, 2)

The number of unlabeled ordered rooted trees with n edges and k leaves is equal to N(n,k).

This is analogous to the above examples:

  • Each Dyck word can be represented as a rooted tree. We start with a single node – the root node. This is initially the active node. Reading the word from left to right, when the symbol is an opening parenthesis, add a child to the active node and set this child as the active node. When the symbol is a closing parenthesis, set the parent of the active node as the active node. This way we obtain a tree, in which every non-root node corresponds to a matching pair of parentheses, and its children are the nodes corresponding to the successive Dyck words within these parentheses. Leaf nodes correspond to empty parentheses: Template:Code. In analogous fashion, we can construct a Dyck word from a rooted tree via a depth-first search. Thus, there is an isomorphism between Dyck words and rooted trees.
  • In the above figures of lattice paths, each upward edge from the horizontal line at height Template:Tmath to Template:TmathTemplate:Tmath corresponds to an edge between node Template:Tmath and its child. A node Template:Tmath has as many children, as there are upward edges leading from the horizontal line at height Template:Tmath. For example, in the first path for N(4,3), the nodes Template:Math and Template:Math will have two children each; in the last (sixth) path, node Template:Math will have three children and node Template:Math will have one child. To construct a rooted tree from a lattice path and vice versa, we can employ an algorithm similar to the one mentioned the previous paragraph. As with Dyck words, there is an isomorphism between lattice paths and rooted trees.

Partitions

File:Noncrossing partitions 4; Hasse.svg
The 1,6,6,1 non-crossing partitions with 1,2,3,4 blocks of a 4-element set

In the study of partitions, we see that in a set containing Template:Tmath elements, we may partition that set in Bn different ways, where Bn is the Template:Tmathth Bell number. Furthermore, the number of ways to partition a set into exactly Template:Tmath blocks we use the Stirling numbers S(n,k). Both of these concepts are a bit off-topic, but a necessary foundation for understanding the use of the Narayana numbers. In both of the above two notions crossing partitions are accounted for.

To reject the crossing partitions and count only the non-crossing partitions, we may use the Catalan numbers to count the non-crossing partitions of all Template:Tmath elements of the set, Cn. To count the non-crossing partitions in which the set is partitioned in exactly Template:Tmath blocks, we use the Narayana number N(n,k).

Generating function

The generating function for the Narayana numbers is Template:Sfn

n=1k=1nN(n,k)zntk1=1z(t+1)12z(t+1)+z2(t1)22tz.

See also

Citations

Template:Reflist

References

Template:Classes of natural numbers