Enrichment · STEM Explorations · Math
Type how many things there are and how many you pick, and say whether order matters and whether repeats are allowed. The calculator counts exactly, shows the factorial working, and lists every result when there are few enough to read.
The worked example: how many different three-topping pizzas six toppings make. Nothing you type leaves this browser.
Loading the calculator. If nothing appears, turn on JavaScript.
n is how many things there are to choose from; r is how many you pick.
Enrichment · STEM ExplorationsFree
Two questions decide the formula.
If order matters and nothing repeats, there are n choices for the first pick, n − 1 for the second, and so on for r picks: nPr. If order does not matter, every group has been counted once for each of its r × (r − 1) × … × 1 orders (r factorial), so divide: nCr. If any pick may repeat and order matters, each of r picks has n choices: n^r. Groups with repeats allowed are counted by C(n + r − 1, r), the “stars and bars” count.
Factorials grow fast: 20 factorial, 20 × 19 × … × 1, already has 19 digits, more than a calculator’s display holds. This page does whole-number arithmetic, so 52C5, the number of five-card poker hands, comes out as exactly 2,598,960 and very large counts are shown in full in the table.
The worked example is for practice. Your entries stay in this browser. Support: team@caveatacademic.com.