-->

Permutation and Combination

πŸ”· Permutation

A permutation is a specific arrangement of a set of objects in a particular order. It refers to the different ways in which a group of items can be organized when the order of the items is important. In other words, changing the sequence or position of the items leads to a different permutation.

For example, arranging the letters A, B, and C as "ABC" is not the same as "CAB"—because the order has changed.

Permutations are commonly used in problems involving ranking, scheduling, assigning positions, or arranging people or things where the position or sequence matters.

πŸ”‘ Key Points

  • Order matters in permutations.

  • If you have n objects and want to arrange r of them, use the permutation formula:

    P(n,r)=n!(nr)!​
  • n! (n factorial) means:

    n!=n×(n1)×(n2)××1

✏️ Example 1: Permutation of All 3 Objects

You have 3 letters: A, B, C.
How many ways can you arrange them?

P(3,3)=3!=3×2×1=6

Arrangements:

  • ABC

  • ACB

  • BAC

  • BCA

  • CAB

  • CBA

✏️ Example 2: Permutation of 3 Objects Taken 2 at a Time

You want to arrange only 2 of the letters A, B, and C.

P(3,2)=3!(32)!=3×2×11!=61=6

Arrangements:

  • AB

  • AC

  • BA

  • BC

  • CA

  • CB

πŸ“ Summary of Permutations

  • Use when order matters.

  • Formula:

    P(n,r)=n!(nr)!​
  • Example: Arranging letters A, B, C in different orders.


πŸ”· Combination

A combination is a selection of items from a larger set without considering the order of the items. That means combinations focus only on which items are selected, not the sequence in which they appear.

For example, choosing 3 fruits from a basket of 5 fruits (apple, banana, cherry, date, and elderberry) is a combination problem, because selecting "apple, banana, cherry" is the same as selecting "cherry, apple, banana"—the order does not change the selection.

Combinations are widely used in scenarios involving group selections, committees, teams, menus, or lotteries where the arrangement is irrelevant.

πŸ“Œ When to Use Combinations

  • When you're selecting a group or subset of items, and order doesn't matter.

  • Examples: Choosing team members, selecting items from a menu, picking lottery numbers.

πŸ“ Mathematical Definition

If you have n items and want to choose r of them, the number of combinations is:

C(n,r)=n!r!(nr)!​

Where:

  • n! = factorial of total items

  • r! = factorial of selected items

  • (n - r)! = factorial of unselected items

⚙️ Explanation of the Formula

  • n! counts all possible arrangements of n items.

  • Since order doesn't matter:

    • Divide by r! to remove order among chosen items.

    • Divide by (n - r)! to remove order among unchosen items.

✏️ Example 1: Choosing Fruits

Question: How many ways can you choose 3 fruits from 5: apple, banana, cherry, date, elderberry?

Solution:

C(5,3)=5!3!(53)!=5×4×3!3!×2!=5×42×1=10

Answer: 10 ways

✏️ Example 2: Forming a Committee

Question: How many ways can you form a committee of 4 people from a group of 10?

Solution:

C(10,4)=10!4!(104)!=10×9×8×74×3×2×1=210

Answer: 210 committees can be formed.


πŸ”„ Comparison Table: Permutations vs. Combinations

FeaturePermutationCombination
OrderMattersDoesn’t matter
Used ForArranging people, digits, alphabets, etc.Selecting groups, teams, menu items, etc.
Example 1Choosing a captain, pitcher, and catcherChoosing 3 players from a team
Example 2Picking 1st, 2nd, 3rd place winnersPicking any 3 winners (no rank/order)
FormulaP(n,r)=n!(nr)!P(n, r) = \frac{n!}{(n - r)!}C(n,r)=n!r!(nr)!C(n, r) = \frac{n!}{r!(n - r)!}

πŸ“Œ Important Notes

  • Combinations are always less than or equal to permutations.

  • Special cases:

    • C(n, 0) = 1 \] (Only one way to choose nothing)
    • C(n, n) = 1 \] (Only one way to choose everything)

Related Posts

Post a Comment

Subscribe Our Newsletter