Skip to content
spmaddmath.com.my
Tuition

Study

SyllabusFormulasMethodsExam & PapersTools
LocationsPricingBlogOur TeachersContact
EN

Chapter · Permutation and Combination

Permutations and combinations in everyday choices

Permutation and combination questions both count the number of ways something can happen, the only real difference is whether the order the items are chosen in changes the outcome. If order matters, use nPr=n!(nr)!^{n}P_{r}=\frac{n!}{(n-r)!}; if it doesn't, use nCr=n!r!(nr)!^{n}C_{r}=\frac{n!}{r!(n-r)!}.

One idea, two different formulas

Every permutation and combination question in Add Math is really asking one thing: how many ways can this happen? What decides which formula to reach for is not the size of the numbers, it is whether rearranging the same chosen items produces a genuinely different result.

Take a badminton club choosing three members for a task. If the task is "pick three players to represent the club at a tournament," it does not matter which name gets written down first, the group of three is the answer, and swapping the order of the names on the list changes nothing.

That is a combination. If instead the task is "pick a captain, a vice-captain, and a reserve," the same three names now matter in a specific order, captain is not the same job as reserve, and swapping two names creates a genuinely different outcome.

That is a permutation.

  • If arranging or ordering the chosen items matters, a queue, a phone code, first/second/third place, specific roles, it is a permutation.
  • If only which items are chosen matters, not the order among them, a committee, a team, a set of toppings, it is a combination.
  • Any combination question can be turned into a permutation question by adding an extra instruction: "...and then arrange them."

A one-line test

Before choosing a formula, ask: if I swap two of the selected items, is the outcome now different? Yes means permutation; no means combination.

The formulas, and why they look the way they do

Both formulas are built from factorial notation, so it helps to be comfortable with n!n! before anything else.

Factorial
n!=n×(n1)×(n2)××2×1n! = n \times (n-1) \times (n-2) \times \cdots \times 2 \times 1
By definition, 0!=10!=1.

To arrange rr objects chosen from nn distinct objects, where order matters:

nPr=n!(nr)!^{n}P_{r} = \frac{n!}{(n-r)!}

To select rr objects from nn distinct objects, where order does not matter:

nCr=n!r!(nr)!=nPrr!^{n}C_{r} = \frac{n!}{r!\,(n-r)!} = \frac{^{n}P_{r}}{r!}

That second version of the combination formula is worth remembering on its own terms: a combination is simply a permutation with the duplicate orderings divided back out. Every group of rr chosen items can be arranged in r!r!

different orders, and nCr^{n}C_{r} counts each such group only once.

A non-programmable scientific calculator is allowed in the SPM Add Math exam, and most models have nPr and nCr keys built in. They are useful for checking a final answer, but marking is analytic, the working that shows which formula was chosen and why still carries the marks.

Spotting which one a question wants

The wording of a question is usually a strong clue, though it pays to check the situation itself rather than hunting for a single trigger word. "Arrange," "order," "form a code," "different ways to queue," and any mention of distinct positions or roles point to a permutation.

"Choose," "select," "form a team," and "form a group" point to a combination, provided the items are not then assigned to different roles.

Two questions can use nearly identical numbers and still need different formulas. Choosing 3 books from a shelf of 8 to display in a row on a shop window is a permutation, because a row has a first, second, and third position.

Choosing 3 books from the same shelf of 8 to lend to a friend is a combination, because a lent stack of books has no order attached to it.

Restrictions inside the count

Some questions add a condition, two people who must sit together, an item that must be included, a letter that cannot occupy a particular position. The most reliable way through these is usually one of two moves: treat the items that must stay together as a single block and arrange the block alongside everything else, or count the total number of arrangements and subtract the ones that break the rule.

A worked example, start to finish

A school badminton club has 9 members, all considered for two separate tasks.

  1. Choosing 4 members to form a committee, where no member has a specific role, order does not matter, so this is a combination: 9C4^{9}C_{4}.
  2. Choosing a captain, a vice-captain, and a secretary from the same 9 members, with no member holding two roles, order matters, so this is a permutation: 9P3^{9}P_{3}.
9C4=9!4!5!=126^{9}C_{4} = \frac{9!}{4!\,5!} = 126
9P3=9!6!=504^{9}P_{3} = \frac{9!}{6!} = 504

Notice both parts start from the same group of 9 people, yet the second answer is far larger, because assigning roles creates many more distinguishable outcomes than simply picking a group does.

Q1[4 marks]

A debate team is chosen from 6 boys and 5 girls. In how many ways can a team of 4 students be chosen if the team must contain exactly 2 boys and 2 girls?

Show worked solution

Choose 2 boys from 6: 6C2=15^{6}C_{2}=15. Choose 2 girls from 5: 5C2=10^{5}C_{2}=10.

Since both selections happen together, multiply: 15×10=15015\times10=150 ways.

Where marks are usually lost

Most errors on this topic come from a handful of repeated slips rather than a weak grasp of the idea.

  • Using nPr^{n}P_{r} when the situation has no distinct roles or order, which overcounts by a factor of r!r!.
  • Forgetting that 0!=10!=1, which matters whenever r=nr=n.
  • Substituting nn and rr into the wrong positions in the formula.
  • Treating a "committee with specific roles" question as a single combination, missing that the roles need a permutation.

"At least" and "at most" questions

These usually need the complement method, work out the total number of ways with no restriction, then subtract the ways that fail the condition, rather than trying to add up every case that satisfies it directly.

Both Paper 1 (2 hours, 80 marks) and Paper 2 (2 hours 30 minutes, 100 marks) can include permutation and combination questions, and marking across both is analytic. Writing down which formula was chosen and why, before substituting numbers, protects the method marks even if the final arithmetic slips.

How one-to-one teaching can help

Permutation and combination questions read differently once the "does order matter" question becomes automatic, but getting there usually takes working through a run of mixed questions with someone checking, in real time, which formula was actually needed and why. A teacher working with you one-to-one can catch the exact moment a question was misread as a combination when it needed a permutation, and explain the fix on the spot rather than after the fact.

Our teachers are experienced; lessons run online and are taught in English, while SPM papers themselves are set bilingually in Bahasa Melayu and English.

If this chapter, or the counting techniques it leads into, like probability, is a sticking point, a one-hour paid trial class at the teacher's own rate (from RM50 per hour, depending on experience) is a reasonable place to start.

Get 1-to-1 help.

Book a Trial Class

Frequently asked questions

What is the difference between a permutation and a combination?

A permutation counts arrangements where order matters, swapping two chosen items gives a different outcome. A combination counts selections where order does not matter, the same items in any order count as one outcome.

How do I decide whether to use nPr or nCr?

Ask whether swapping two of the chosen items changes the result. If yes, use nPr=n!(nr)!^{n}P_{r}=\frac{n!}{(n-r)!}.

If no, use nCr=n!r!(nr)!^{n}C_{r}=\frac{n!}{r!(n-r)!}.

Why is 0! equal to 1?

It is a definition chosen so the formulas for nPr^{n}P_{r} and nCr^{n}C_{r} work correctly when r=nr=n, choosing or arranging all nn items in one way has exactly one outcome with nothing left over, which the formula only gives if 0!=10!=1.

Can I use the nPr and nCr buttons on my calculator in the SPM exam?

A non-programmable scientific calculator is permitted, and most models include these keys, which are useful for checking an answer. Because marking is analytic, the working showing which formula was chosen still needs to be written down.

Source:SRC-FORMAT

Written by the spmaddmath.com.my editorial team.· Last updated 5 September 2026

Ready to get started?

Book a Trial Classfrom RM50/hr · One-hour paid trial · Same-day reply
Book a Trial ClassOne-hour paid trial · Same-day reply