49C6: a six-ball lottery
- Choose from (n)
- 49
- Choose how many (r)
- 6
Combinations13,983,816
known value for a 6-from-49 draw
Open this exampleCombinations, the binomial coefficient. Computed through log-gamma rather than raw factorials, so it stays exact well past where n! overflows.
Also called: ncr calculator, choose calculator.
There are 13,983,816 ways to choose 6 from 49 when order does not matter, so a single ticket has a 1 in 13,983,816 chance.
Permutations divided by r!, because the chosen items' own ordering does not distinguish one selection from another. Computing it as exp(lnΓ(n+1) − lnΓ(r+1) − lnΓ(n−r+1)) avoids overflowing on numbers where n! alone would not be representable.
nCr = n! / (r! * (n-r)!)Each of these is asserted on every build. If a change to the engine ever moved one of these answers, the build would fail before the page could print it.
Combinations13,983,816
known value for a 6-from-49 draw
Open this exampleCombinations1
boundary: the empty selection
Open this exampleCombinations0
degenerate case
Open this example