Permutation & Combination Calculator (nPr / nCr)
100% Client-Side Private Calculate permutations nPr (order matters) and combinations nCr (order does not matter) with factorial mathematics and step-by-step breakdown.
About Permutation & Combination Calculator (nPr / nCr)
The Permutation & Combination Calculator by VibeTool calculates total ways to order or choose subsets from a collection of items. Compute factorials, nPr permutations, and nCr combinations with step-by-step mathematical proofs and complete client-side confidentiality.
How to Use
- Enter Total Items (n): Input the total number of objects or choices in the full set.
- Enter Chosen Items (r): Input the number of elements selected for the arrangement or group.
- Select Permutation or Combination: Evaluate whether sequence order matters (nPr) or does not matter (nCr).
- Review Formulas & Proofs: Inspect intermediate factorials and step-by-step arithmetic cancellation.
Key Capabilities & Features
- Dual nPr & nCr Computation: Calculates permutations and combinations simultaneously.
- Arbitrary-Precision BigInt Math: Handles large factorials and combinatorial counts without floating point errors.
- Factorial Step Breakdown: Displays factorial values for n!, r!, and (n - r)! for educational clarity.
- Zero Server Tracking: Computes all probability scenarios purely inside client-side browser memory.
Frequently Asked Questions
What is the difference between permutation and combination? In permutations (nPr), order matters (e.g. locker codes, podium finishes): nPr = n! / (n - r)!. In combinations (nCr), order does not matter (e.g. lottery picks, team selection): nCr = n! / (r!(n - r)!).
Can this tool calculate large factorial values? Yes, the mathematical engine uses arbitrary-precision BigInt arithmetic to accurately compute huge factorials without scientific notation overflow.
What happens if r is greater than n? If the subset size (r) exceeds total items (n), both nPr and nCr evaluate to 0 because you cannot select more elements than exist in the set.
Is my probability homework or data uploaded to servers? No, all combinatorial mathematics execute 100% locally inside your web browser with total privacy.