Calculate Permutations and Combinations
Calculate nPr (permutations) and nCr (combinations). How many ways to arrange or choose from a group.
La Différence
Permutation : l'ordre compte. Combinaison : l'ordre ne compte pas. 3 personnes sur 10 pour des positions (président, VP, trésorier) : P(10,3) = 720. 3 personnes sur 10 pour un comité (sans rôle) : C(10,3) = 120. P est toujours ≥ C car il y a plus de façons d'arranger quand l'ordre compte.
Applications
Loterie (combinaison : l'ordre ne compte pas). Mots de passe (permutation : l'ordre compte). Planning d'équipes (combinaison). Podium (permutation).
The lottery is the most visible application of combinations. Powerball odds (1 in 292 million) mean: if you bought 100 tickets per week, you would expect to win once every 56,000 years. The expected value of a $2 Powerball ticket is about $0.85 — a 57% loss on every dollar played.