IB Maths AA HLTopic 1 β Number & AlgebraPaper 1 & 2~9 min read
Counting Principles
Before you ever meet permutations or combinations, there’s a much simpler skill to master: just counting. How many possible PINs are there for a 4-digit lock? How many ways can you choose a meal off a menu? How many number plates can a country issue before running out? All of these questions come down to two tiny rules β multiply when you’re choosing several things together, and add when you’re splitting into separate cases. Those two rules, used carefully, will solve almost every counting problem the IB throws at you. The trick is reading the question slowly enough to spot which rule (or which combination of rules) applies.
π What you need to know
The multiplication rule: if there are m ways to do one thing followed by n ways to do another, the total is m Γ n.
The English word “AND” means multiply. The word “OR” means add. Reading the question for these words is half the battle.
For digit-counting (PINs, codes, plates), there are 10 digits available: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9. Letters: 26.
If repeats are not allowed, the number of choices drops by 1 each time. So 10 β 9 β 8 β 7 β¦
PINs vs numbers β a 4-digit PIN can start with 0, but a 4-digit number cannot. So a 4-digit number has only 9 choices for the first digit, not 10.
If a question has a restriction, work out how many choices are allowed in the restricted slot, then multiply across the slots.
If a problem splits into separate scenarios, do each case separately and add the totals at the end.
The fundamental multiplication rule
Let’s start with the rule that everything else builds on. If you have to make a sequence of choices β say, pick a main course and pick a side dish β then the total number of meal combinations is just the number of mains times the number of sides. That’s it.
The multiplication rule
(ways for choice 1) Γ (ways for choice 2) Γ β¦ Γ (ways for choice n)
The tree shows why the multiplication works: each main course “spawns” the same number of side dishes, so the total number of leaves at the bottom is just (mains) Γ (sides). Once you trust this, you don’t need to draw the tree any more β you just multiply the slot counts.
The AND/OR rule β multiply or add?
Here’s where most students get tripped up. Almost every counting question in the IB hides a clue in plain English. The words “AND” and “OR” tell you which operation to use.
When you read “AND”
Γ MULTIPLY
“Pick a starter AND a main” means you do both. Multiply the number of starters by the number of mains.
When you read “OR”
+ ADD
“Pick a starter OR a main” means you do one or the other, not both. Add the number of starters and the number of mains.
Quick example: A vending machine has 5 chocolate bars and 3 packets of crisps. How many ways can you buy one chocolate OR one packet of crisps? β 5 + 3 = 8. How many ways can you buy one chocolate AND one packet of crisps? β 5 Γ 3 = 15.
π€ Why does AND mean multiply and OR mean add?
Think back to the tree diagram. When you do task A and then task B, every option in A pairs with every option in B β that’s a multiplication. When you do task A or task B (one separate scenario from another), you’re just listing two non-overlapping piles of options and counting their combined size β that’s addition.
Counting with digits
A huge chunk of exam questions are about codes, passwords, PINs and number plates. The trick is the same every time: figure out the number of slots, the number of allowed values in each slot, then multiply.
So a 4-digit PIN where each digit can be anything has 10 Γ 10 Γ 10 Γ 10 = 10 000 possibilities. A 3-letter code has 26 Γ 26 Γ 26 = 17 576 possibilities. Easy.
Unless a question explicitly says otherwise, assume repeats are allowed. So a PIN like 7777 is valid. Only switch to “no repeats” mode when you see words like “all different”, “no two the same”, or “without repetition”.
Counting with no repeats
If a question says “all digits are different” or “no letter is used twice”, the rule changes slightly. The first slot still has the full number of options, but each later slot has one fewer, because the previously-chosen value is now off-limits.
No-repeats pattern
10 Γ 9 Γ 8 Γ 7 Γ β¦ (each slot has one fewer)
So a 4-digit PIN with no repeated digits has 10 Γ 9 Γ 8 Γ 7 = 5040 possibilities β a much smaller number than the 10 000 you’d get with repeats allowed.
Counting with restrictions
Sometimes a question puts a specific rule on one slot. Maybe the first digit has to be odd, or the last must be a square number, or the password has to start with a vowel. The recipe is unchanged β just count the allowed values in each slot, then multiply.
π§ Recipe β counting with restrictions
Set up the slots. Draw a row of empty boxes β one per position you need to fill.
Fill in the restricted slots first. If a slot has a rule (e.g. “must be even”), count how many values fit, and write that number in the box.
Fill in the unrestricted slots. These take whatever is left β usually 10 (digits) or 26 (letters), or fewer if no-repeats applies.
Watch the difference between a “PIN” and a “number”. A 4-digit PIN can start with any of 10 digits β including 0 β because 0123 is a perfectly fine PIN. A 4-digit number cannot start with 0 (otherwise it’s really a 3-digit number), so the first slot only has 9 choices. Re-read the question and notice which one it asks for.
Counting using cases
When a question gives you something like “starts with a 2 OR ends with a 5“, the cleanest way is often to split into cases, count each one separately, and add the totals. The “OR” is your signal.
π§ Recipe β using cases
Identify each separate case. Look for the “OR” β each branch becomes a case.
Count each case independently using the multiplication rule.
Add the case totals at the end.
Watch for overlap! If two cases share some outcomes (e.g. starts with 2 AND ends with 5), you’d be double-counting. For HL questions you may need to subtract the overlap.
Step 1: Spot the ANDcustomer wants bread AND jam AND fruit β multiplyStep 2: Multiply the slot counts6 (bread) Γ 4 (jam) Γ 3 (fruit)= 24 Γ 3 = 7272 different breakfast combinationsclassic AND problem β three independent choices, all combined
WE 2
4-digit PIN with all different digits
How many 4-digit PINs can be made using digits 0β9, if all four digits must be different?
Step 1: Set up four slots, one per position__ Γ __ Γ __ Γ __ (four slots)Step 2: Count choices in each slot, dropping by 1 each timeslot 1: 10 choices (any digit)slot 2: 9 choices (one digit used)slot 3: 8 choices (two used)slot 4: 7 choices (three used)Step 3: Multiply10 Γ 9 Γ 8 Γ 7 = 50405040 PINs with all different digits“PIN” β leading 0 is fine, so the first slot has all 10 digits available
WE 3
4-digit numbers with no repeated digits
How many 4-digit numbers can be formed using digits 0β9 if no digit is repeated?
Step 1: Notice it’s a NUMBER, not a PIN β first digit β 0slot 1: 9 choices (digits 1β9, since 0 is not allowed at front)Step 2: Now count the remaining slots β 0 is allowed, but the first digit is usedslot 2: 9 choices (10 digits minus the one used in slot 1)slot 3: 8 choicesslot 4: 7 choicesStep 3: Multiply9 Γ 9 Γ 8 Γ 7 = 81 Γ 56 = 45364536 different 4-digit numbersslot 2 still has 9 choices β 0 is now allowed there, but one of the other digits has been used. Different reason, same count.
WE 4
5-digit PIN with restrictions
How many 5-digit PINs have an even first digit and a prime last digit? Repeated digits are allowed.
Step 1: Fill in the restricted slots firstfirst digit (even): 0, 2, 4, 6, 8 β 5 choiceslast digit (prime): 2, 3, 5, 7 β 4 choicesStep 2: Fill the unrestricted slotsmiddle three slots: 10 each (no restriction, repeats allowed)Step 3: Multiply across5 Γ 10 Γ 10 Γ 10 Γ 4= 5 Γ 1000 Γ 4 = 20 00020 000 valid PINsprimes under 10 are 2, 3, 5, 7 β note that 1 is NOT prime. Easy thing to miss.
WE 5
Travel by cases
A traveller can fly from her home city to one of 6 European cities, and from there take one of 3 trains to her final destination. Alternatively, she can fly to one of 4 Asian cities, and from there take one of 5 trains. In how many different ways can she reach her final destination?
Step 1: Spot the OR β split into two casesCase A: Europe route (flight AND train)Case B: Asia route (flight AND train)Step 2: Count each case using AND β multiplyCase A: 6 Γ 3 = 18 routesCase B: 4 Γ 5 = 20 routesStep 3: Combine the cases using OR β addtotal = 18 + 20 = 3838 different travel routescases mix the two rules: AND inside each case, OR between cases. Notice both at once.
π‘ Top tips
Underline AND and OR in the question. They tell you whether to multiply or add. This single habit will save you in panic moments.
Draw the slots first. A row of empty boxes β one per position β keeps you from missing a slot or counting one twice.
Fill the restricted slots before the free ones. Otherwise it’s easy to forget how many digits are still available for the constrained slot.
Always check whether repeats are allowed. Default is “yes”. If the question says “all different” or “no two the same”, switch to no-repeats mode.
Watch out for “PIN” vs “number”. Numbers can’t start with 0; PINs can. This single distinction shifts the leading-slot count from 10 to 9.
Memorise the small sets: odd digits (5), even digits (5), primes under 10 (4: which are 2, 3, 5, 7), squares under 10 (4: which are 0, 1, 4, 9), vowels (5).
If splitting into cases, write each case on a separate line with its own multiplication. Then add at the end. Cleaner workings = fewer arithmetic slips.
β Common mistakes
Confusing AND with OR. “5 starters or 3 desserts” means 8, not 15. Read the wording β don’t default to multiplying.
Allowing repeats when the question forbids them. If you read “all different”, drop the slot count by 1 each time.
Forbidding repeats when they’re allowed. Most code/PIN questions allow repeats. If the question says nothing, assume they’re allowed.
Forgetting that 0 is even. When counting “even digits”, 0 counts β so there are 5 even digits, not 4.
Forgetting that 1 is not prime. The primes under 10 are 2, 3, 5, 7 only β that’s 4 numbers, not 5.
Missing the leading-zero rule for numbers. A 4-digit number must start with 1β9. A 4-digit PIN can start with 0. Different objects.
Double-counting when cases overlap. If “starts with 2 OR ends with 5”, remember that some PINs do both β and you must subtract the overlap to avoid counting them twice.
Counting principles look almost too simple to deserve their own topic, and yet they’re the foundation under everything that follows. Permutations and combinations are just counting principles dressed up in tidier formulas. If you train yourself to slow down, draw the slots, and identify each AND or OR before doing any arithmetic, you’ll find the rest of this chapter feels almost automatic. Up next: permutations, where order suddenly matters and the factorials show up.
Need help with Counting Principles?
Get 1-on-1 help from an IB examiner who knows exactly what Paper 1 & 2 are looking for.