Pascal's pyramid

Last updated
Pascal's pyramid's first five layers. Each face (orange grid) is Pascal's triangle. Arrows show derivation of two example terms. Pascal pyramid 3d.svg
Pascal's pyramid's first five layers. Each face (orange grid) is Pascal's triangle. Arrows show derivation of two example terms.

In mathematics, Pascal's pyramid is a three-dimensional arrangement of the trinomial numbers, which are the coefficients of the trinomial expansion and the trinomial distribution. [1] Pascal's pyramid is the three-dimensional analog of the two-dimensional Pascal's triangle, which contains the binomial numbers and relates to the binomial expansion and the binomial distribution. The binomial and trinomial numbers, coefficients, expansions, and distributions are subsets of the multinomial constructs with the same names.

Contents

Structure of the tetrahedron

Because the tetrahedron is a three-dimensional object, displaying it on a piece of paper, a computer screen, or other two-dimensional medium is difficult. Assume the tetrahedron is divided into a number of levels, floors, slices, or layers. The top layer (the apex) is labeled "Layer 0". Other layers can be thought of as overhead views of the tetrahedron with the previous layers removed. The first six layers are as follows:

Derivation of the first five levels of Pascal's pyramid - where multiple values point to a number, the values are summed Pascal pyramid.svg
Derivation of the first five levels of Pascal's pyramid – where multiple values point to a number, the values are summed
Layer 0
1
Layer 1
11
1
Layer 2
121
22
1
Layer 3
1331
363
33
1
Layer 4
14641
412124
6126
44
1
Layer 5
15101051
52030205
10303010
102010
55
1

The layers of the tetrahedron have been deliberately displayed with the point down so that they are not individually confused with Pascal's triangle.

Overview of the tetrahedron

Trinomial expansion connection

The numbers of the tetrahedron are derived from the trinomial expansion. The nth layer is the detached coefficient matrix (no variables or exponents) of a trinomial expression (e. g.: A + B + C) raised to the nth power. The nth power of the trinomial is expanded by repeatedly multiplying the trinomial by itself:

Layers of Pascal's pyramid derived from coefficients of an upside-down ternary plot of the terms in the expansions of the powers of a trinomial Pascal pyramid trinomial.svg
Layers of Pascal's pyramid derived from coefficients of an upside-down ternary plot of the terms in the expansions of the powers of a trinomial

Each term in the first expression is multiplied by each term in the second expression; and then the coefficients of like terms (same variables and exponents) are added together. Here is the expansion of (A + B + C)4:

1A4B0C0 + 4A3B0C1 + 6A2B0C2 + 4A1B0C3 + 1A0B0C4 +

4A3B1C0 + 12A2B1C1 + 12A1B1C2 + 4A0B1C3 +
6A2B2C0 + 12A1B2C1 + 6A0B2C2 +
4A1B3C0 + 4A0B3C1 +

1A0B4C0  

Writing the expansion in this non-linear way shows the expansion in a more understandable way. It also makes the connection with the tetrahedron obvious−the coefficients here match those of layer 4. All the implicit coefficients, variables, and exponents, which are normally not written, are also shown to illustrate another relationship with the tetrahedron. (Usually, "1A" is "A"; "B1" is "B"; and "C0" is "1"; etc.) The exponents of each term sum to the layer number (n), or 4, in this case. More significantly, the value of the coefficients of each term can be computed directly from the exponents. The formula is (x+y+z)!/x!y!z!, where x, y, z are the exponents of A, B, C, respectively, and "!" is the factorial, i. e.: . The exponent formulas for the 4th layer are:

The exponents of each expansion term can be clearly seen and these formulae simplify to the expansion coefficients and the tetrahedron coefficients of layer 4.

Trinomial distribution connection

The numbers of the tetrahedron can also be found in the trinomial distribution. This is a discrete probability distribution used to determine the chance some combination of events occurs given three possible outcomes−the number of ways the events could occur is multiplied by the probabilities that they would occur. The formula for the trinomial distribution is:

where x, y, z are the number of times each of the three outcomes does occur; n is the number of trials and equals the sum of x+y+z; and PA, PB, PC are the probabilities that each of the three events could occur.

For example, in a three-way election, the candidates got these votes: A, 16 %; B, 30 %; C, 54 %. What is the chance that a randomly selected four-person focus group would contain the following voters: 1 for A, 1 for B, 2 for C? The answer is:

The number 12 is the coefficient of this probability and it is number of combinations that can fill this "112" focus group. There are 15 different arrangements of four-person focus groups that can be selected. Expressions for all 15 of these coefficients are:

The numerator of these fractions (above the line) is the same for all expressions. It is the sample size−a four-person group−and indicates that the coefficients of these arrangements can be found on layer 4 of the tetrahedron. The three numbers of the denominator (below the line) are the number of the focus group members that voted for A, B, C, respectively.

Shorthand is normally used to express combinatorial functions in the following "choose" format (which is read as "4 choose 4, 0, 0", etc.).

But the value of these expression is still equal to the coefficients of the 4th layer of the tetrahedron. And they can be generalized to any layer by changing the sample size (n).

This notation makes an easy way to express the sum of all the coefficients of layer n:

.

Addition of coefficients between layers

The numbers on every layer (n) of the tetrahedron are the sum of the three adjacent numbers in the layer (n−1) "above" it. This relationship is rather difficult to see without intermingling the layers. Below are italic layer 3 numbers interleaved among bold layer 4 numbers:

14641
1331
412124
363
6126
33
44
1
1

The relationship is illustrated by the lower, central number 12 of the 4th layer. It is "surrounded" by three numbers of the 3rd layer: 6 to the "north", 3 to the "southwest", 3 to the "southeast". (The numbers along the edge have only two adjacent numbers in the layer "above" and the three corner numbers have only one adjacent number in the layer above, which is why they are always "1". The missing numbers can be assumed as "0", so there is no loss of generality.) This relationship between adjacent layers comes about through the two-step trinomial expansion process.

Continuing with this example, in Step 1, each term of (A + B + C)3 is multiplied by each term of (A + B + C)1. Only three of these multiplications are of interest in this example:

Layer 3 term  Multiply by  Product term
6A1B1C11B16A1B2C1
3A1B2C01C13A1B2C1
3A0B2C11A13A1B2C1

Then in Step 2, the summation of like terms (same variables and exponents) results in: 12A1B2C1, which is the term of (A + B + C)4; while 12 is the coefficient of the 4th layer of the tetrahedron.

Symbolically, the additive relation can be expressed as:

where C(x,y,z) is the coefficient of the term with exponents x, y, z and is the layer of the tetrahedron.

This relationship will work only if the trinomial expansion is laid out in the non-linear fashion as it is portrayed in the section on the "trinomial expansion connection".

Ratio between coefficients of same layer

On each layer of the tetrahedron, the numbers are simple whole number ratios of the adjacent numbers. This relationship is illustrated for horizontally adjacent pairs on the 4th layer by the following:

1 1:4 4 2:3 6 3:2 4 4:1 1
4 1:3 12 2:2 12 3:1 4
6 1:2 12 2:1 6
4 1:1 4
1

Because the tetrahedron has three-way symmetry, the ratio relation also holds for diagonal pairs in both directions, as well as for the horizontal pairs shown.

The ratios are controlled by the exponents of the corresponding adjacent terms of the trinomial expansion. For example, one ratio in the illustration above is:

4 1:3 12

The corresponding terms of the trinomial expansion are:

and

The following rules apply to the coefficients of all adjacent pairs of terms of the trinomial expansion:

The rules are the same for all horizontal and diagonal pairs. The variables A, B, C will change.

This ratio relationship provides another (somewhat cumbersome) way to calculate tetrahedron coefficients:

The coefficient of the adjacent term equals the coefficient of the current term multiplied by the current-term exponent of the decreasing variable divided by the adjacent-term exponent of the increasing variable.

The ratio of the adjacent coefficients may be a little clearer when expressed symbolically. Each term can have up to six adjacent terms:

For x = 0:
For y = 0:
For z = 0:

where C(x,y,z) is the coefficient and x, y, z are the exponents. In the days before pocket calculators and personal computers, this approach was used as a school-boy short-cut to write out binomial expansions without the tedious algebraic expansions or clumsy factorial computations.

This relationship will work only if the trinomial expansion is laid out in the non-linear fashion as it is portrayed in the section on the "trinomial expansion connection".

Relationship with Pascal's triangle

It is well known that the numbers along the three outside edges of the nth layer of the tetrahedron are the same numbers as the nth line of Pascal's triangle. However, the connection is actually much more extensive than just one row of numbers. This relationship is best illustrated by comparing Pascal's triangle down to line 4 with layer 4 of the tetrahedron.

Pascal's triangle
1
1     1
1     2     1
1     3     3     1
1     4     6     4     1

Tetrahedron Layer 4
1     4     6     4     1
4    12   12    4
6    12    6
4     4
1

Multiplying the numbers of each line of Pascal's triangle down to the nth line by the numbers of the nth line generates the nth layer of the tetrahedron. In the following example, the lines of Pascal's triangle are in italic font and the rows of the tetrahedron are in bold font. [2]

1

× 1 =
1

1     1
× 4 =             
4     4

1     2     1
× 6 =               
6    12    6

1     3     3     1
× 4 =                     
4    12   12    4

1     4     6     4     1
× 1 =                         

1     4     6     4     1

The multipliers (1 4 6 4 1) compose line 4 of Pascal's triangle.

This relationship demonstrates the fastest and easiest way to compute the numbers for any layer of the tetrahedron without computing factorials, which quickly become huge numbers. (Extended precision calculators become very slow beyond tetrahedron layer 200.)

If the coefficients of Pascal's triangle are labeled C(i,j) and the coefficients of the tetrahedron are labeled C(n,i,j), where n is the layer of the tetrahedron, i is the row, and j is the column, then the relation can be expressed symbolically as:

[i, j, n are not exponents here, just sequential labeling indexes.]

Parallels to Pascal's triangle and multinomial coefficients

This table summarizes the properties of the trinomial expansion and the trinomial distribution. It compares them to the binomial and multinomial expansions and distributions:

Type of polynomialbi-nomialtri-nomialmulti-nomial
Order of polynomial23m
Example of polynomial
Geometric structure [1] triangletetrahedronm-simplex
Element structurelinelayergroup
Symmetry of element2-way3-waym-way
Number of terms per elementn+1(n+1)(n+2)/2(n+1)(n+2)...(n+m1)/(m1)! = (n+m1)!/n!(m1)!
Sum of coefficients per element2n3nmn
Example of termAxByAxByCzAxByCz...Mm
Sum of exponents, all termsnnn
Coefficient equation [2] n!/x!y!n!/x!y!z!n!/x! y! z! ... xm!
Sum of coefficients "above"23m
Ratio of adjacent coefficients26m(m−1)

Other properties

Exponential construction

Arbitrary layer n can be obtained in a single step using the following formula:

where b is the radix and d is the number of digits of any of the central multinomial coefficients, that is

then wrapping the digits of its result by d(n+1), spacing by d and removing leading zeros.

This method generalised to arbitrary dimension can be used to obtain slices of any Pascal's simplex.

Examples

For radix b = 10, n = 5, d = 2:

= 10000000001015 = 1000000000505000000102010000010303010000520302005010510100501                1                     1                     1    000000000505     00 00 00 00 05 05     .. .. .. .. .5 .5    000000102010     00 00 00 10 20 10     .. .. .. 10 20 10 ~  000010303010  ~  00 00 10 30 30 10  ~  .. .. 10 30 30 10    000520302005     00 05 20 30 20 05     .. .5 20 30 20 .5    010510100501     01 05 10 10 05 01     .1 .5 10 10 .5 .1   wrapped by d(n+1)     spaced by d      leading zeros removed

For radix b = 10, n = 20, d = 9:

Pascal's pyramid layer #20. Pascal's pyramid layer 20.png
Pascal's pyramid layer #20.

Sum of coefficients of a layer by rows

Summing the numbers in each row of a layer n of Pascal's pyramid gives

where b is the radix and d is the number of digits of the sum of the 'central' row (the one with the greatest sum).

For radix b = 10:

 1 ~ 1    \ 1  ~ 1      \ 1   ~ 1          \ 1    ~  1               \ 1     ~  1 ---      1 \ 1 ~ 02  \ 2 \ 2  ~ 04      \ 3 \ 3   ~ 06            \ 4 \ 4    ~ 08  1       -----      1 \ 2 \ 1 ~ 04   \ 3 \ 6 \ 3  ~ 12         \ 6 \12 \ 6   ~ 24          1  02      ---------       1 \ 3 \ 3 \ 1 ~ 08      \ 4 \12 \12 \ 4  ~ 32                     1  04  04       -------------          1 \ 4 \ 6 \ 4 \ 1 ~ 16                                     1  06  12  08         ------------------                                                            1  08  24  32  16  1020      1021        1022               1023                     1024

Sum of coefficients of a layer by columns

Summing the numbers in each column of a layer n of Pascal's pyramid gives

where b is the radix and d is the number of digits of the sum of the 'central' column (the one with the greatest sum).

For radix b = 10:

 1     |1|       |1|            |1|                     | 1|                              | 1| ---   1| |1    |2| |2|        |3| |3|                | 4|  | 4|                        | 5|  | 5|  1    -----   1| |2| |1     |3| |6| |3|           | 6|  |12|  | 6|                  |10|  |20|  |10|       1 1 1   ---------    1| |3| |3| |1       | 4|  |12|  |12|  | 4|            |10|  |30|  |30|  |10|               1 2 3 2 1    -------------      1|  | 4|  | 6|  | 4|  | 1       | 5|  |20|  |30|  |20|  | 5|                            1 3 6 7 6 3 1     --------------------------      1|  | 5|  |10|  |10|  | 5|  | 1                                               1 04 10 16 19 16 10 04 01     --------------------------------                                                                              1 05 15 30 45 51 45 30 15 05 01  1110   1111      1112           1113                    101014                             101015

Usage

In genetics, it is common to use Pascal's pyramid to find out the proportion between different genotypes on the same crossing. This is done by checking the line that is equivalent to the number of phenotypes (genotypes + 1). That line will be the proportion.[ further explanation needed ]

See also

Related Research Articles

<span class="mw-page-title-main">Binomial coefficient</span> Number of subsets of a given size

In mathematics, the binomial coefficients are the positive integers that occur as coefficients in the binomial theorem. Commonly, a binomial coefficient is indexed by a pair of integers nk ≥ 0 and is written It is the coefficient of the xk term in the polynomial expansion of the binomial power (1 + x)n; this coefficient can be computed by the multiplicative formula

In elementary algebra, the binomial theorem (or binomial expansion) describes the algebraic expansion of powers of a binomial. According to the theorem, it is possible to expand the polynomial (x + y)n into a sum involving terms of the form axbyc, where the exponents b and c are nonnegative integers with b + c = n, and the coefficient a of each term is a specific positive integer depending on n and b. For example, for n = 4,

In mathematics, Pascal's triangle is an infinite triangular array of the binomial coefficients which play a crucial role in probability theory, combinatorics, and algebra. In much of the Western world, it is named after the French mathematician Blaise Pascal, although other mathematicians studied it centuries before him in Persia, India, China, Germany, and Italy.

<i>p</i>-adic number Number system extending the rational numbers

In number theory, given a prime number p, the p-adic numbers form an extension of the rational numbers which is distinct from the real numbers, though with some similar properties; p-adic numbers can be written in a form similar to decimals, but with digits based on a prime number p rather than ten, and extending to the left rather than to the right.

In mathematics, the discriminant of a polynomial is a quantity that depends on the coefficients and allows deducing some properties of the roots without computing them. More precisely, it is a polynomial function of the coefficients of the original polynomial. The discriminant is widely used in polynomial factoring, number theory, and algebraic geometry.

In mathematics, a power series is an infinite series of the form where an represents the coefficient of the nth term and c is a constant called the center of the series. Power series are useful in mathematical analysis, where they arise as Taylor series of infinitely differentiable functions. In fact, Borel's theorem implies that every power series is the Taylor series of some smooth function.

<span class="mw-page-title-main">Factorization</span> (Mathematical) decomposition into a product

In mathematics, factorization (or factorisation, see English spelling differences) or factoring consists of writing a number or another mathematical object as a product of several factors, usually smaller or simpler objects of the same kind. For example, 3 × 5 is an integer factorization of 15, and (x – 2)(x + 2) is a polynomial factorization of x2 – 4.

<span class="mw-page-title-main">Exponentiation</span> Arithmetic operation

In mathematics, exponentiation is an operation involving two numbers: the base and the exponent or power. Exponentiation is written as bn, where b is the base and n is the power; often said as "b to the power n". When n is a positive integer, exponentiation corresponds to repeated multiplication of the base: that is, bn is the product of multiplying n bases: In particular, .

In mathematics, a monomial is, roughly speaking, a polynomial which has only one term. Two definitions of a monomial may be encountered:

  1. A monomial, also called a power product or primitive monomial, is a product of powers of variables with nonnegative integer exponents, or, in other words, a product of variables, possibly with repetitions. For example, is a monomial. The constant is a primitive monomial, being equal to the empty product and to for any variable . If only a single variable is considered, this means that a monomial is either or a power of , with a positive integer. If several variables are considered, say, then each can be given an exponent, so that any monomial is of the form with non-negative integers.
  2. A monomial in the first sense multiplied by a nonzero constant, called the coefficient of the monomial. A primitive monomial is a special case of a monomial in this second sense, where the coefficient is . For example, in this interpretation and are monomials.

In probability theory and statistics, the cumulantsκn of a probability distribution are a set of quantities that provide an alternative to the moments of the distribution. Any two probability distributions whose moments are identical will have identical cumulants as well, and vice versa.

In algebra, a binomial is a polynomial that is the sum of two terms, each of which is a monomial. It is the simplest kind of a sparse polynomial after the monomials.

In mathematics, the multinomial theorem describes how to expand a power of a sum in terms of powers of the terms in that sum. It is the generalization of the binomial theorem from binomials to multinomials.

<span class="mw-page-title-main">Trinomial expansion</span> Formula in mathematics

In mathematics, a trinomial expansion is the expansion of a power of a sum of three terms into monomials. The expansion is given by

In mathematics, the binomial series is a generalization of the polynomial that comes from a binomial formula expression like for a nonnegative integer . Specifically, the binomial series is the MacLaurin series for the function , where and . Explicitly,

<span class="mw-page-title-main">Central binomial coefficient</span> Sequence of numbers ((2n) choose (n))

In mathematics the nth central binomial coefficient is the particular binomial coefficient

In mathematics, Pascal's rule is a combinatorial identity about binomial coefficients. It states that for positive natural numbers n and k, where is a binomial coefficient; one interpretation of the coefficient of the xk term in the expansion of (1 + x)n. There is no restriction on the relative sizes of n and k, since, if n < k the value of the binomial coefficient is zero and the identity remains valid.

<span class="mw-page-title-main">Pascal's simplex</span>

In mathematics, Pascal's simplex is a generalisation of Pascal's triangle into arbitrary number of dimensions, based on the multinomial theorem.

<span class="mw-page-title-main">Puiseux series</span> Power series with rational exponents

In mathematics, Puiseux series are a generalization of power series that allow for negative and fractional exponents of the indeterminate. For example, the series

In mathematics, an expansion of a product of sums expresses it as a sum of products by using the fact that multiplication distributes over addition. Expansion of a polynomial expression can be obtained by repeatedly replacing subexpressions that multiply two other subexpressions, at least one of which is an addition, by the equivalent sum of products, continuing until the expression becomes a sum of (repeated) products. During the expansion, simplifications such as grouping of like terms or cancellations of terms may also be applied. Instead of multiplications, the expansion steps could also involve replacing powers of a sum of terms by the equivalent expression obtained from the binomial formula; this is a shortened form of what would happen if the power were treated as a repeated multiplication, and expanded repeatedly. It is customary to reintroduce powers in the final result when terms involve products of identical symbols.

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 entries above it:

References

  1. Staib, J.; Staib, L. (1978). "The Pascal Pyramid". The Mathematics Teacher. 71 (6): 505–510. doi:10.5951/MT.71.6.0505. JSTOR   27961325.
  2. Pedersen, Jean; Hilton, Peter; Holton, Derek (2002). Mathematical vistas : from a room with many windows . New York, NY [u.a.]: Springer. ISBN   978-0387950648.