Generate any row of Pascal’s triangle or find a single entry C(n, k) from its row and column, plus reverse lookups for the row or column of a value.
Related Calculators
- Recursive Rule Calculator
- Set Cardinality Calculator
- Fractional Index Calculator
- Cardano’s Formula Calculator
- Isosceles Triangle Calculator
- All Math and Numbers Calculators
Calculator Functions
| Function | What it does | What it requires |
|---|---|---|
| Row or entry C(n, k) | Finds a whole row of Pascal’s triangle, or the single entry at a row and column | Requires the row number n, and the column number k for a single entry |
| Find the column of a value | Finds which columns of a row hold a given number | Requires the row number n and the binomial coefficient to look for |
| Find the row of a value | Finds which row holds a given number in a chosen column | Requires the column number k and the binomial coefficient to look for |
Rows and columns are counted from 0, so the single 1 at the top is row 0 and the left edge is column 0. Rows up to 1,000 are supported and every answer is an exact whole number, however many digits it has. Leaving the column blank in Row or entry C(n, k) returns the whole row, with the triangle drawn above it for rows up to 15.
Pascal’s Triangle Formulas
| C | C(n, k), the entry in row n, column k, also called a binomial coefficient |
| n | Row number, starting at 0 |
| k | Column number, from 0 to n |
| ! | Factorial: 5! = 5 × 4 × 3 × 2 × 1 |
Row or entry C(n, k)
The formula above gives any single entry. Row 10, column 3 is 10! ÷ (3! × 7!) = 120. The calculator does not work out the large factorials. It builds the entry step by step along the row, which keeps every step a whole number:
(n − k + 1) ÷ k [1]
Starting from C(10, 0) = 1, the next entries are 1 × 10 ÷ 1 = 10, then 10 × 9 ÷ 2 = 45, then 45 × 8 ÷ 3 = 120. A whole row follows the rule that draws the triangle by hand, where each inner entry is the sum of the two entries above it:
C(n − 1, k) [1]
Row 4 is 1, 4, 6, 4, 1. Row n has n + 1 entries and they add up to 2n, so row 4 sums to 16. For rows above 30 the row is too long to print, and the result shows the middle entry.
Find the column of a value
Each row reads the same in both directions, so a number that appears left of the middle appears again the same distance from the right. In row 10 the value 120 sits in columns 3 and 7. The calculator walks the row from the left edge to the middle and stops when it reaches the number or passes it. A number that is not in the row is rejected.
Find the row of a value
Going down one column, the entries only get larger, so a number can appear at most once in a column other than column 0. The calculator searches rows k through 1,000 for it. In column 3, the value 120 is in row 10. Column 0 is 1 in every row, so there the answer is every row when the value is 1 and nothing otherwise.
Limits of This Estimate
- Rows above 1,000 are outside the search range, so a number that first appears below row 1,000 in the chosen column is reported as not found.
- Counting starts at 0. A textbook that calls the top of the triangle row 1 is one ahead of these row numbers.
Sources
- NIST Digital Library of Mathematical Functions, §26.3 Lattice Paths: Binomial Coefficients: binomial coefficient definition, symmetry, the addition rule and the step-along-the-row rule
