Factorial, Permutations, Combinations — Notebook Template
Compute n!, nPr, and nCr with clear definitions and quick verification identities (educational).
What this template does
This is a ready-to-run GetCalcMaster Notebook starter. Open it into Notebook, run once with defaults, then tweak inputs and keep your assumptions next to the math.
How to use it (recommended)
- Open in Notebook.
- Set n and r.
- Compute n!, nPr, and nCr.
- Verify identities like nCr = nPr / r! when appropriate.
- Snapshot with interpretation of n and r.
Tip: When a result matters, verify it twice: a unit check + a second method (graph/estimate).
Preview (first cells)
This preview is for readability. The full template loads into Notebook when you click Open.
TEXT
# Factorial / Permutations / Combinations (Educational) Definitions: - **n!** = factorial(n) - **nPr** = permutations = n!/(n−r)! - **nCr** = combinations = n!/(r!(n−r)!) GetCalcMaster provides: - `factorial(n)` - `npr(n, r)` - `ncr(n, r)`
MATH
n = 10
MATH
r = 3
MATH
n_fact = factorial(n)
MATH
perm = npr(n, r)
MATH
comb = ncr(n, r)