Combination & Permutation Calculator
Calculate combinations (nCr) and permutations (nPr) for counting problems.
Inputs
Results
Combination (nCr)
10
How this was calculated
[Is Valid] ? [Factorial N] ÷ ([Factorial R] × [Factorial N R]) : [Null]
nCr = n! / (r! × (n-r)!)
Permutation (nPr)
60
How this was calculated
[Is Valid] ? [Factorial N] ÷ [Factorial N R] : [Null]
nPr = n! / (n-r)!
n! (Factorial of n)
120
How this was calculated
(() => { [If] ([N] <= 1) [Return] 1; [Let] [Result] = 1; [For] ([Let] [I] = 2; [I] <= [N]; [I] + +) [Result] × = [I]; [Return] [Result]; })()
r! (Factorial of r)
6
How this was calculated
(() => { [If] ([R] <= 1) [Return] 1; [Let] [Result] = 1; [For] ([Let] [I] = 2; [I] <= [R]; [I] + +) [Result] × = [I]; [Return] [Result]; })()