Trinomial triangle: Difference between revisions
Trinomial Coefficient formula Tags: Reverted Visual edit Mobile edit Mobile web edit |
Trinomial triangle alternating sum of rows Tags: Reverted Visual edit Mobile edit Mobile web edit |
||
Line 32: | Line 32: | ||
Furthermore, the diagonals have interesting properties, such as their relationship to the [[triangular numbers]]. |
Furthermore, the diagonals have interesting properties, such as their relationship to the [[triangular numbers]]. |
||
The sum of the elements of <math>n</math>-th row is <math>3^n</math>. |
The sum of the elements of <math>n</math>-th row is <math>3^n</math>. The alternating sum of the elements of nth row is 1. |
||
The formula for central Trinomial coefficients: (n 0)2 = Σ nCk * kC(n - k) from k = n/2 if n is even or k = (n + 1)/2 if n is odd till k = n. |
The formula for central Trinomial coefficients: (n 0)2 = Σ nCk * kC(n - k) from k = n/2 if n is even or k = (n + 1)/2 if n is odd till k = n. |
Revision as of 08:32, 29 October 2024
The trinomial triangle is a variation of Pascal's triangle. The difference between the two is that an entry in the trinomial triangle is the sum of the three (rather than the two in Pascal's triangle) entries above it:
The -th entry of the -th row is denoted by
- .
Rows are counted starting from 0. The entries of the -th row are indexed starting with from the left, and the middle entry has index 0. The symmetry of the entries of a row about the middle entry is expressed by the relationship
Properties
The -th row corresponds to the coefficients in the polynomial expansion of the expansion of the trinomial raised to the -th power:[1]
or, symmetrically,
- ,
hence the alternative name trinomial coefficients because of their relationship to the multinomial coefficients:
Furthermore, the diagonals have interesting properties, such as their relationship to the triangular numbers.
The sum of the elements of -th row is . The alternating sum of the elements of nth row is 1.
The formula for central Trinomial coefficients: (n 0)2 = Σ nCk * kC(n - k) from k = n/2 if n is even or k = (n + 1)/2 if n is odd till k = n.
If you select n numbers from 2n numbers with each number having its duplicate, first you select k different numbers from n numbers and select n - k other numbers which will be duplicates of few of the k different numbers. Then you will select n cards from 2n cards. If you select n/2 cards for n even, you will select n - n/2 = n/2 cards. n/2 is the least number which has to be added to itself or smaller number to equal n. Similarly, (n + 1)/2 is the least number which has to be added to itself or smaller number to equal n. Here, n/2 and (n + 1)/2 are natural numbers.
The general result also goes by the same logic and is: (n r)2 = Σ nCk * kC(m - k) where r = m - n and k is from m/2 if m is even or k is from (m + 1)/2 if m is odd till k = m.
Recurrence formula
The trinomial coefficients can be generated using the following recurrence formula:[1]
- ,
- for ,
where for and .
Central trinomial coefficients
The middle entries of the trinomial triangle
were studied by Euler and are known as central trinomial coefficients.
The only known prime central trinomial coefficients are 3, 7 and 19 at n = 2, 3 and 4.
The -th central trinomial coefficient is given by
Their generating function is[2]
Euler noted the following exemplum memorabile inductionis fallacis ("notable example of fallacious induction"):
- for ,
where is the n-th Fibonacci number. For larger , however, this relationship is incorrect. George Andrews explained this fallacy using the general identity[3]
Applications
In chess
The triangle corresponds to the number of possible paths that can be taken by the king in a game of chess. The entry in a cell represents the number of different paths (using a minimum number of moves) the king can take to reach the cell.
In combinatorics
The coefficient of in the expansion of gives the number of different ways to draw cards from two identical sets of playing cards each.[4] For example, from two sets of the three cards A, B, C, the different drawings are:
Number of selected cards | Number of options | Options |
---|---|---|
0 | 1 | |
1 | 3 | A, B, C |
2 | 6 | AA, AB, AC, BB, BC, CC |
3 | 7 | AAB, AAC, ABB, ABC, ACC, BBC, BCC |
4 | 6 | AABB, AABC, AACC, ABBC, ABCC, BBCC |
5 | 3 | AABBC, AABCC, ABBCC |
6 | 1 | AABBCC |
For example,
- .
In particular, this provides the formula for the number of different hands in the card game Doppelkopf.
Alternatively, it is also possible to arrive at this expression by considering the number of ways of choosing pairs of identical cards from the two sets, which is the binomial coefficient . The remaining cards can then be chosen in ways,[4] which can be written in terms of the binomial coefficients as
- .
The example above corresponds to the three ways of selecting two cards without pairs of identical cards (AB, AC, BC) and the three ways of selecting a pair of identical cards (AA, BB, CC).
References
- ^ a b Weisstein, Eric W. "Trinomial Coefficient". MathWorld.
- ^ Weisstein, Eric W. "Central Trinomial Coefficient". MathWorld.
- ^ George Andrews, Three Aspects for Partitions. Séminaire Lotharingien de Combinatoire, B25f (1990) Online copy
- ^ a b Andreas Stiller: Pärchenmathematik. Trinomiale und Doppelkopf. ("Pair mathematics. Trinomials and the game of Doppelkopf"). c't Issue 10/2005, p. 181ff
Further reading
- Leonhard Euler (1767). "Observationes analyticae ("Analytical observations")". Novi Commentarii Academiae Scientiarum Petropolitanae. 11: 124–143.