operation
Pascal\'s Triangle Generator
Generate and explore Pascal\'s triangle up to row n, with connection to C(n,k).
Beispiel ausprobieren
Wähle ein Szenario, um zu sehen, wie der Rechner funktioniert, und passe dann die Werte an
Row 6 of Pascal's Triangle
Generate row 6 to see the coefficients of (a+b)⁶.
Wichtige Werte: n = 6 · Row 6: 1, 6, 15, 20, 15, 6, 1
Diagonal Pattern — Triangular Numbers
The third diagonal of Pascal's triangle gives triangular numbers: 1, 3, 6, 10, 15...
Wichtige Werte: n = 10 · C(10,2) = 45
What Is Pascal's Triangle?
Pascal's triangle is a triangular array of numbers where each entry is the sum of the two entries directly above it. Row , position holds the binomial coefficient . The triangle starts with row 0 at the top (a single 1), and each subsequent row has one more entry than the previous.
1
1 1
1 2 1
1 3 3 1
1 4 6 4 1
1 5 10 10 5 1In this calculator, the interactive Pascal's triangle renders up to row 30. Click any cell to set and and compute the corresponding binomial coefficient.
Key Patterns in Pascal's Triangle
Row Sums
The sum of all entries in row equals —the total number of subsets of an -element set:
Symmetry
Each row is a palindrome. This reflects the identity:
Choosing items to include is the same as choosing items to exclude.
Diagonals
| Diagonal | Sequence | Formula |
|---|---|---|
| 1st | 1, 1, 1, 1, … | |
| 2nd | 1, 2, 3, 4, … | |
| 3rd | 1, 3, 6, 10, … | |
| 4th | 1, 4, 10, 20, … |
Hockey Stick Pattern
If you take any diagonal of consecutive entries and sum them, the result equals the entry one row down and one position to the side:
This is called the "hockey stick" identity because the pattern of summed entries plus the result forms a hockey stick shape in the triangle.
Connection to the Binomial Theorem
Row of Pascal's triangle gives exactly the coefficients of the expansion of :
For example, row 4 is [1, 4, 6, 4, 1], giving:
This makes Pascal's triangle an indispensable tool for expanding binomial expressions without tedious multiplication.
Applications
- Probability: The binomial distribution uses row entries directly. The probability of getting exactly heads in fair coin flips is .
- Combinatorics: Every entry answers the question "how many ways can I choose items from ?"
- Number theory: The triangle encodes divisibility patterns. Row (where is prime) has all interior entries divisible by .
- Fractal geometry: Coloring odd entries in Pascal's triangle produces the Sierpiński triangle, a self-similar fractal.
Historical note: Although named after Blaise Pascal (who published his Traité du Triangle Arithmétique in 1653), the triangle was known centuries earlier. Chinese mathematician Jia Xian described it around 1050, and it appears in a 1303 work by Zhu Shijie. In China it is still called Yang Hui's triangle.
Frequently Asked Questions
What is Pascal's triangle?
Pascal's triangle is a triangular array of numbers where each entry is the sum of the two entries directly above it. Row , position holds the binomial coefficient . It starts with a single 1 at the top (row 0) and each subsequent row has one more entry.
How is Pascal's triangle constructed?
Start with a 1 at the top. Each subsequent row begins and ends with 1. Every interior entry is the sum of the two entries directly above it: . For example, the 6 in row 4 comes from adding the 3 and 3 above it in row 3.
What patterns are hidden in Pascal's triangle?
Key patterns include: each row sums to (total subsets of an n-element set), rows are symmetric (palindromes), diagonals contain natural numbers, triangular numbers, and tetrahedral numbers, and the hockey stick identity allows summing consecutive diagonal entries. Coloring odd entries reveals the Sierpinski triangle fractal.
How does Pascal's triangle connect to the binomial theorem?
Row of Pascal's triangle gives the coefficients of the expansion of . For example, row 4 is [1, 4, 6, 4, 1], giving . This makes the triangle indispensable for expanding binomial expressions.
How is Pascal's triangle used in probability?
The binomial distribution uses entries directly. The probability of exactly heads in fair coin flips is . For example, getting exactly 2 heads in 4 flips has probability .
Related operation Variants
Explore more operation options
Permutation
Permutation Calculator -- nPr
Combination
Combination Calculator -- nCr
BinomialCoefficient
Binomial Coefficient Calculator -- n Choose k
Factorial
Factorial Calculator -- n!
StarsAndBars
Stars and Bars Calculator -- Combinations with Repetition
More Math Calculators
Explore the category