Permutations and combinations (nPr, nCr)
Count arrangements and selections with nPr, nCr and the factorial, with the exact key presses for the TI-84 Plus CE, Casio fx-CG50, Casio fx-CG100 and TI-Nspire CX, plus what to write in the exam.
Use nCr when the order of the chosen items does not matter (a committee, a hand of cards) and nPr when it does (a president, secretary and treasurer). Both are in your calculator's probability menu, and the factorial is in the same menu. The number n comes first, then the command, then r on most calculators. nCr(n, r) is also the binomial coefficient.
Example
A club has 12 members. Find (a) the number of ways to choose a committee of 3, (b) the number of ways to choose a president, a secretary and a treasurer.
In (a) the order does not matter, so use combinations: . In (b) the three roles are different, so the order matters and you use permutations: .
Choose your calculator
How to find nPr, nCr and a factorial on a TI-84 Plus CE
MATH, PRB menu | |
On the home screen type the first number, for example 1 2. Press math, then ▶ across to the PRB tab. |
|
For a combination (order does not matter) choose 3:nCr. It is pasted after the 12. Type the second number 3 and press enter. |
12 nCr 3 220 |
For a permutation (order matters) choose 2:nPr in the same menu: 1 2 math ▶ 2:nPr 3 enter. |
12 nPr 3 1320 |
For a factorial, type the number first, then choose 4:! from the PRB menu: 6 math ▶ 4:! enter. |
6! 720 |
The number comes first and the command after it: 12 nCr 3, not nCr(12,3). If you want brackets on the left of the command, put them round the whole first number.
How to find nPr, nCr and a factorial on a Casio fx-CG50
OPTN, PROB menu | |
Press MENU and choose Run-Matrix. Type the first number, for example 1 2, then press OPTN, F6 (▷) and F3 (PROB). |
|
For a combination press F3 (nCr), type 3 and press EXE. |
12C3 220 |
For a permutation press F2 (nPr) in the same menu instead: 1 2 OPTN F6 F3 F2 3 EXE. |
12P3 1320 |
For a factorial type the number, then press OPTN F6 F3 and F1 (x!): 6 then EXE. |
6! 720 |
The calculator must be in Comp mode (the default). The number comes first and the command after it, as on the page: 12 nCr 3.
How to find nPr, nCr and a factorial on a Casio fx-CG100
Calculate app, Catalog | |
Press HOME and choose Calculate. Type the first number, for example 1 2, then press CATALOG and choose Probability. |
|
For a combination choose Combination (C), type 3 and press EXE. |
12C3 220 |
For a permutation choose Permutation (P) from the same Probability list: type 1 2, open the Catalog again, choose Permutation (P), type 3 and press EXE. |
12P3 1320 |
For a factorial type the number and choose Factorial (!) from the Probability list: 6, then Factorial, then EXE. |
6! 720 |
The inputs must be whole numbers, and r cannot be larger than n.
How to find nPr, nCr and a factorial on a TI-Nspire CX
Probability menu | |
On a Calculator page press menu → Probability → Combinations. This pastes |
|
Type the two numbers in the order n then r, so that you have |
nCr(12,3) 220 |
For a permutation choose Permutations from the same menu and type |
nPr(12,3) 1320 |
For a factorial choose Factorial from the same menu. It pastes ! after what you have typed, so type 6 then choose Factorial and press enter. |
6! 720 |
You can also type nCr( or nPr( directly. The order is n first, then r: nCr(12,3) is not the same as nCr(3,12).
Sources. Key presses follow the manufacturers' documentation: the TI-84 Plus CE eGuide, the TI-Nspire eGuide, the Casio fx-CG50 Software User's Guide (version 3.30) and the Casio fx-CG100 online manual.
What to write in the exam
- Write the calculation, then the value, for example or . Do not write the key presses.
- Say why you chose it. A short phrase such as "order does not matter, so combinations" shows the method even if the number is wrong.
- Show multiplication and addition of counts. If the answer is a product or a sum of several nCr values, write each part before the total, so a slip in one part keeps the method mark.
- Give the exact whole number. Counts are integers, so do not round them or write them in standard form unless the question asks.
- Check which papers allow a calculator. In AA SL and AA HL, Paper 1 is calculator-free, so use the factorial formula there. In AI SL and AI HL a calculator is allowed on every paper (check your syllabus).
Links between the three
- nPr and nCr: . Here .
- Factorial: is the number of ways to arrange different items in a row, so .
- Binomial coefficient: , the number used in the binomial expansion and the binomial distribution.
For probabilities that use nCr see the binomial distribution.
Error messages and what to do
| Calculator | Message | Usual cause | What to try |
|---|---|---|---|
| TI-84 Plus CE | ERR:DOMAIN | A value is outside the allowed range, for example r larger than n, or a number that is not a whole number. | Check that n and r are whole numbers and that r is not larger than n. |
| TI-84 Plus CE | ERR:OVERFLOW | The result is larger than the calculator can show, for example 70! or a very large nPr. | Use a smaller n, or cancel the common factors by hand before using the calculator. |
| Casio fx-CG50 | Ma ERROR | The input is outside the allowed range (x! needs a whole number from 0 to 69, and nPr and nCr need r not larger than n) or the result is too large. | Check n and r, or reduce the numbers by cancelling first. |
| Casio fx-CG100 | Math ERROR | The input is outside the allowed range (x! needs a whole number from 0 to 69, and nPr and nCr need r not larger than n) or the result is too large. | Check n and r, or reduce the numbers by cancelling first. |
| TI-Nspire CX | Domain error | A value is outside the allowed range, for example the factorial of a negative number. | Check that the numbers are whole numbers that are not negative. |
Common mistakes
- Using nPr when order does not matter. If swapping two chosen items gives the same selection, use nCr. Ask whether the items have different roles.
- Swapping n and r. n is the number of items you choose from, r the number you choose. On the TI-Nspire, nCr(3, 12) is not nCr(12, 3).
- Typing the numbers in the wrong place. On the TI-84 and the Casio calculators n goes before the command and r after it, as in 12 nCr 3.
- Forgetting the extra conditions. Questions such as "at least 2 women" need several nCr values added, and "a boy and a girl" needs them multiplied.
- Writing nCr as working. Write the calculation with the numbers in it and the value. The examiner needs the method, not the command.
Try it yourself
Real questions from the IB Maths Help question bank. Type your answer and press Mark it: the worked solution and mark scheme then appear. Use your calculator for the counts.
Practise with your calculator
Choose your course to see the practice sets that use this skill. You can also try practice mode or browse every GDC guide.
Quick questions
How do I find nCr on a calculator?
Type n, open the probability menu and choose nCr, then type r and press enter. On the TI-84 Plus CE it is MATH then the PRB tab, on the fx-CG50 it is OPTN, F6, F3 (PROB), on the fx-CG100 it is the Catalog's Probability list, and on the TI-Nspire it is menu, Probability, Combinations.
What is the difference between nPr and nCr?
nPr counts arrangements, where the order matters, such as ranking places. nCr counts selections, where the order does not matter, such as choosing a team. nPr is nCr multiplied by r!.
How do I find a factorial on a calculator?
Type the number, then choose the factorial command from the same probability menu as nPr and nCr. On the TI-84 Plus CE it is 4:! in the PRB tab, and on the fx-CG50 it is F1 (x!) in the PROB menu.
Do I write nCr in my exam working?
You can write the notation, for example 12C3 = 220, but show the numbers in it. Examiners look for the method and the value, not the key presses.