lesson

Updated 1 month ago Β· 7 views
Imagine expanding (x+y)40 and needing just the coefficient for x12y28. Building Pascal's triangle all the way down to Row 40 would take hundreds of additions across dozens of pages.
Fortunately, a single formula calculates any entry in any row instantly, powered by a mathematical operation called the factorial.
The Factorial Tool
A factorial, written with an exclamation mark as n!, is the product of all positive integers from n down to 1. For example, 5!=5Γ4Γ3Γ2Γ1=120.
πInteractive diagram
In 1808, French mathematician Christian Kramp introduced the exclamation mark notation simply because printers kept running out of custom symbols for large products. By definition, mathematicians also set zero factorial as 0!=1, representing the single way to arrange an empty set.
Factorials tell you how many ways you can arrange items in a line, but what happens when you only want to pick a smaller team where arrangement order doesn't matter?
The Combination Formula
A combination, written as nβCrβ or (rnβ), counts how many subsets of size r you can choose from a total pool of n distinct items when the internal order does not matter.
To count combinations, we take all n! orderings, divide out the (nβr)! items we leave behind, and divide out the r! duplicates caused by rearranging the chosen group.
πInteractive diagram
Let's test this with a small concrete calculation: evaluating (25β), which represents choosing 2 items from 5.
Writing out the definition gives (25β)=2!(5β2)!5!β=(2Γ1)(3Γ2Γ1)5Γ4Γ3Γ2Γ1β. Notice how the tail ends cancel out completely, simplifying to 220β=10.