Permutation & Combination Calculator

Math Class 11 & 12 - nPr and nCr

Formulas

nPr = n!/(n-r)!

Permutation formula

nCr = n!/(r!(n-r)!)

Combination formula

Examples

  • nPr: Arranging 3 people in 2 chairs = 3P2 = 6 ways
  • nCr: Selecting 3 cards from 5 = 5C3 = 10 ways

Permutations and Combinations: Complete Guide

Permutations and combinations form the foundation of combinatorics, a branch of mathematics concerned with counting, arranging, and selecting objects. These concepts are essential for solving problems in probability, statistics, computer science, and numerous real-world applications. Understanding when to use permutations versus combinations is crucial for accurate problem-solving.

Fundamental Counting Principle

Before diving into permutations and combinations, understanding the Fundamental Counting Principle is essential: If task A can be done in m ways and task B can be done in n ways, then both tasks can be completed in m × n ways when performed sequentially. This principle extends to any number of tasks, forming the basis for more complex counting problems.

Example: A restaurant offers 3 appetizers and 4 main courses. Total combinations for a meal = 3 × 4 = 12 ways.

Permutation vs Combination: The Key Difference

The fundamental distinction between permutations and combinations lies in whether order matters:

  • Permutation (nPr): Order matters significantly. Every different arrangement is counted as a separate outcome. Used when sequence or arrangement creates distinct results.
  • Combination (nCr): Order does not matter. Only the selection itself is important. Used when only the group composition matters, not how it's arranged.

Illustrative Example: From 3 people A, B, and C, selecting 2 people for a committee:

  • As combinations: AB, AC, BC = 3 combinations
  • As permutations (for president and secretary): AB, BA, AC, CA, BC, CB = 6 permutations

Permutations Explained in Depth

nPr represents the number of ways to arrange r distinct objects chosen from n distinct objects, where the order of arrangement is crucial. The formula accounts for the fact that each position in the arrangement can be filled in progressively fewer ways.

nPr = n! / (n - r)!

Where n! (n factorial) = n × (n-1) × (n-2) × ... × 3 × 2 × 1

Practical Examples:

  • Arranging books: How many ways to arrange 3 books on a shelf from 5 different books? 5P3 = 60 / 5P3 = (5 × 4 × 3) = 60 ways
  • Password creation: How many 4-digit passwords using digits 1-9 (no repetition)? 9P4 = 9 × 8 × 7 × 6 = 3,024
  • Race finishes: In a race with 8 runners, how many ways can gold, silver, and bronze be awarded? 8P3 = 336
  • Word formation: How many 3-letter arrangements from "DIGIT" where letters aren't repeated? 5P3 = 60

Combinations Explained in Depth

nCr represents the number of ways to select r objects from n distinct objects where the order of selection is irrelevant. Unlike permutations, combinations treat different orders of the same selection as identical.

nCr = n! / (r! × (n - r)!)

Also written as C(n, r), "n choose r", or binomial coefficient

Practical Examples:

  • Team selection: Choosing 3 students from 10 for a basketball team: 10C3 = 120 ways
  • Card games: Number of 5-card hands from a 52-card deck: 52C5 = 2,598,960 possible hands
  • Lottery: A lottery requires selecting 6 numbers from 49: 49C6 = 13,983,816 combinations
  • Committee formation: Forming a committee of 4 from 12 people: 12C4 = 495 ways

Derivation: Why nCr = nPr / r!

Every combination of r items can be arranged in r! different orders (permutations). Therefore, nPr counts each combination r! times. The relationship is: nCr = nPr / r! = n! / (n-r)! / r! = n! / (r!(n-r)!).

Important Properties and Special Cases

  • nP0 = 1: There's exactly one way to arrange nothing
  • nC0 = nCn = 1: Only one way to choose all or none
  • nPn = n!: Arranging all n objects
  • Symmetry: nCn-r = nCr: Choosing r from n equals choosing (n-r) from n
  • Pascal's Triangle: Values of nCr appear in Pascal's triangle, useful for quick reference

Permutations with Repetition

When some objects are identical, we divide by the factorial of each identical group's count:

n! / (n1! × n2! × ... × nk!)

Where n1, n2, ..., nk are counts of each identical object type

Example: Arrange letters in "BALLOON": 7! / (2! × 2!) = 5,040 / 4 = 1,260 arrangements

Example: Arrange "STATISTICS": 10! / (3! × 3! × 2!) = 50,400 arrangements

Circular Permutations

For arranging n objects in a circle, where rotations are considered identical: (n-1)! arrangements. This is because fixing one object's position eliminates the n equivalent rotations.

Example: 8 people sitting around a table: (8-1)! = 7! = 5,040 arrangements

Real-World Applications

  • Probability and Statistics: Calculating lottery odds, card game probabilities, genetic inheritance patterns
  • Computer Science: Analyzing algorithm efficiency, generating passwords, cryptography
  • Business: Selecting committee members, project teams, product combinations
  • Sports: Tournament brackets, league schedules, medal distributions
  • Genetics: Calculating possible genetic combinations in offspring
  • Quality Control: Selecting samples from production batches

Problem-Solving Strategy

  1. Identify: Does the problem ask for arrangements (order matters) or selections (order doesn't matter)?
  2. Check for repetition: Are objects distinct or can they repeat?
  3. Apply formula: Use nPr for arrangements, nCr for combinations
  4. Simplify: Cancel factorial terms to simplify calculations