🦘 Math Kangaroo Grade All Felix 1-2 Ecolier 3-4 Benjamin 5-6 Kadett 7-8 Junior 9-10 Student 11-12 ⇄ switch contest
Topic

Number Theory

Digits, divisibility, factors and primes.

23 problems 📖 Read the lesson
Practice
Problem 8 · 2024 Math Kangaroo Easy
Number Theory place-valuecareful-counting

213, 214 and 215 are three numbers in a row, each one more than the one before. Mohammad writes three numbers like that, but with four digits each. His sister erases some digits from each number, leaving:

???7,  ?898,  48??

Which digits (from left to right) are missing?

Show answer
Answer: D — 4 8 9, 4, 9 9
Show hints
Hint 1 of 2
The three numbers are consecutive, and the middle one looks like _898.
Still stuck? Show hint 2 →
Hint 2 of 2
Pick the four-digit number ending 898, then write the one before and the one after it.
Show solution
Approach: identify three consecutive numbers from the visible digits
  1. The middle number is 4898 (form _898, and it sits between numbers ending 7 and starting 48).
  2. So the three are 4897, 4898, 4899.
  3. Filling the gaps: 4897 needs 489, 4898 needs 4, 4899 needs 99.
  4. Missing digits left to right: 4 8 9, 4, 9 9 — option D.
Mark: · log in to save
Problem 6 · 2021 Math Kangaroo Easy
Number Theory place-valuecareful-counting

A measuring tape is wrapped around a cylinder. Which number should be at the place shown by the question mark?

Figure for Math Kangaroo 2021 Problem 6
Show answer
Answer: C — 48
Show hints
Hint 1 of 2
The tape is one long strip wrapped around, so the numbers keep counting up as you go round and round.
Still stuck? Show hint 2 →
Hint 2 of 2
Line up the marks directly below the ? with the row beneath it to see how far past the visible numbers it sits.
Show solution
Approach: continue the running count around the cylinder to the ? mark
  1. Each time the tape wraps once around, the number jumps by the same amount: the band 1…10 sits below the band 22…31, so one wrap adds 21.
  2. The ? sits one wrap above the 27 on the band below it.
  3. 27 + 21 = 48.
  4. So the number is 48 (C).
Mark: · log in to save
Problem 9 · 2016 Math Kangaroo Easy
Number Theory digit-sum

If you add up the digits of the year 2016 (2 + 0 + 1 + 6), the result is 9. What is the next year after 2016 for which the sum of the digits is 9 again?

Show answer
Answer: B — 2025
Show hints
Hint 1 of 2
The next year must be after 2016 and have digits adding to 9.
Still stuck? Show hint 2 →
Hint 2 of 2
Try years just after 2016 and add their digits.
Show solution
Approach: check years after 2016 for digit sum 9
  1. Add the digits of each year right after 2016: 2017 gives 10, 2018 gives 11, and they keep climbing, so none of 2017–2024 lands back on 9.
  2. Keep going to 2025: 2 + 0 + 2 + 5 = 9.
  3. So the next such year is 2025, choice B.
Mark: · log in to save
Problem 4 · 2015 Math Kangaroo Easy
Number Theory place-valuedigit-sum

If you multiply both digits of the number 35, you get 15. How big is the sum of both digits?

Show answer
Answer: E — 8
Show hints
Hint 1 of 2
The two digits of 35 are 3 and 5; the problem already multiplies them.
Still stuck? Show hint 2 →
Hint 2 of 2
The question asks for the sum of those same two digits, not the product.
Show solution
Approach: read off the digits, then add them
  1. The digits of 35 are 3 and 5 (and indeed 3 × 5 = 15).
  2. Their sum is 3 + 5 = 8.
  3. So the answer is 8.
Mark: · log in to save
Problem 2 · 2014 Math Kangaroo Easy
Number Theory place-value

Marie wants to put the digit 3 somewhere into the number 2014. Where must she put the 3 so that the new number (with all 5 digits) is as small as possible?

Show answer
Answer: D — between 1 and 4
Show hints
Hint 1 of 3
A number is smaller when its first (left-most) digits are smaller.
Still stuck? Show hint 2 →
Hint 2 of 3
Putting the big digit 3 near the front pushes the number up, so push the 3 as far right as you can.
Still stuck? Show hint 3 →
Hint 3 of 3
Write out each new number and read them like words to see which comes first.
Show solution
Approach: keep the small left-hand digits and push the 3 to the right
  1. Try the 3 in each gap: 32014, 23014, 20314, 20134, 20143.
  2. Reading them like a race, the one that stays smallest the longest at the front is 20134.
  3. So the 3 should go between the 1 and the 4.
  4. Answer: between 1 and 4.
Mark: · log in to save
Problem 5 · 2013 Math Kangaroo Easy
Number Theory digit-sumcareful-counting

Five children are talking about the number 325. Andreas: “It is a three-digit number.” Boris: “All the digits are different.” Sara: “The digit sum is 10.” Gerda: “The units digit is 5.” Daniela: “All the digits are odd.” Who has made a mistake?

Show answer
Answer: E — Daniela
Show hints
Hint 1 of 2
Check each child's statement against the actual number 325.
Still stuck? Show hint 2 →
Hint 2 of 2
One statement is simply false — look at whether every digit is really odd.
Show solution
Approach: test each claim about 325
  1. 325 is a three-digit number (Andreas correct), its digits 3, 2, 5 are all different (Boris correct).
  2. 3+2+5 = 10 (Sara correct) and the units digit is 5 (Gerda correct).
  3. But 2 is even, so 'all the digits are odd' is wrong — that is Daniela.
Mark: · log in to save
Problem 17 · 2024 Math Kangaroo Stretch
Number Theory place-valuesum-constraint

Mia has 3 cards, each showing a three-digit number. When she adds the three numbers she gets 782. Sadly a worm has eaten one digit on each card, so they now read 2 ? 3, 1 ? 4 and 4 1 ?. What do you get when you add the three digits the worm ate?

Figure for Math Kangaroo 2024 Problem 17
Show answer
Answer: D — 11
Show hints
Hint 1 of 3
First add up only the digits you can still see, putting a 0 in each eaten spot.
Still stuck? Show hint 2 →
Hint 2 of 3
Compare that total with 782 to see how much the eaten digits must add back.
Still stuck? Show hint 3 →
Hint 3 of 3
Remember: an eaten digit in a tens place is worth that many tens, and an eaten digit in a ones place is worth that many ones.
Show solution
Approach: add the visible digits first, then see how much the eaten digits must add back
  1. Treat each eaten spot as 0: the cards read 203, 104 and 410, which add to 717.
  2. But the real total is 782, so the eaten digits must add back 782 − 717 = 65.
  3. Two of the eaten digits sit in tens places, so together they are worth 60 (meaning those two digits add to 6); the third sits in a ones place worth 5 (so that digit is 5).
  4. The three eaten digits therefore add to 6 + 5 = 11 (D).
Another way:
Mark: · log in to save
Problem 18 · 2021 Math Kangaroo Stretch
Number Theory sum-constraintcasework

7 cards are arranged as shown. Each card has 2 numbers on it, with 1 of them written upside down. The teacher wants to rearrange the cards so that the sum of the numbers in the top row is the same as the sum of the numbers in the bottom row. She can do this by turning one of the cards upside down. Which card must she turn?

Figure for Math Kangaroo 2021 Problem 18
Show answer
Answer: E — G
Show hints
Hint 1 of 2
Add up the top row and add up the bottom row, then see how far apart the two totals are.
Still stuck? Show hint 2 →
Hint 2 of 2
Turning one card swaps its top and bottom numbers, so look for the card whose swap moves exactly half the gap from one row to the other.
Show solution
Approach: compare the two row totals and flip the one card that evens them out
  1. The top numbers add to 7+5+4+2+8+3+2 = 31 and the bottom numbers add to 4+3+5+5+7+7+4 = 35, a gap of 4 (the bottom is 4 bigger).
  2. All 14 numbers add to 66, so to make the rows equal each must be 66 / 2 = 33; the top needs to gain 2 and the bottom to lose 2.
  3. Flipping a card moves its top number down and its bottom number up, so we need a card whose bottom is 2 more than its top — that is card G (top 2, bottom 4).
  4. So she must turn card G (E).
Mark: · log in to save
Problem 21 · 2021 Math Kangaroo Stretch
Number Theory divisibilitycasework

A box has fewer than 50 cookies in it. The cookies can be divided evenly between 2, 3, or 4 children. However, they cannot be divided evenly between 7 children, because 6 more cookies would be needed. How many cookies are there in the box?

Show answer
Answer: D — 36
Show hints
Hint 1 of 2
Sharing evenly between 2, 3 and 4 children means the number is in the 2, 3 and 4 times tables — so it is in the 12 times table.
Still stuck? Show hint 2 →
Hint 2 of 2
List the multiples of 12 under 50, then check which one becomes a multiple of 7 after you add the 6 missing cookies.
Show solution
Approach: list multiples of 12 under 50, then test the sharing-by-7 clue
  1. To share evenly between 2, 3 and 4 children the number must be in all three times tables, which means the 12 times table: 12, 24, 36, 48.
  2. Needing 6 more cookies to share between 7 means that number plus 6 lands in the 7 times table.
  3. Check each: 12+6=18, 24+6=30, 36+6=42, 48+6=54 — only 42 is in the 7 times table (6 x 7), so the number is 36.
  4. So there are 36 cookies (D).
Mark: · log in to save
Problem 19 · 2019 Math Kangaroo Stretch
Number Theory place-valuecareful-counting

The pages of a book are numbered with 1, 2, 3, 4, 5 and so on. The digit 5 appears exactly 16 times. What is the maximum number of pages the book can have?

Show answer
Answer: B — 64
Show hints
Hint 1 of 2
Count where the digit 5 shows up as you list page numbers 1, 2, 3, ...
Still stuck? Show hint 2 →
Hint 2 of 2
The block 50-59 alone contributes ten 5s (the tens digit); add those to the single 5s like 5, 15, 25, ...
Show solution
Approach: count occurrences of the digit 5
  1. Up to 49 the 5s appear at 5, 15, 25, 35, 45: five of them.
  2. The block 50-59 has a 5 in every tens digit: ten more, plus the extra units-5 in 55, reaching the 16th by page 59.
  3. Pages 60-64 add no new 5s, but page 65 would add a 17th.
  4. So the most pages with exactly sixteen 5s is 64 (B).
Mark: · log in to save
Problem 23 · 2016 Math Kangaroo Stretch
Number Theory divisibilitycasework

Leo has built a stick made up of 27 building blocks (see picture). He splits the stick into two pieces so that one part is twice as long as the other. He keeps repeating this: each time he takes one of the two pieces and splits it so that one piece is twice as long as the other. Which of the following pieces can never result in this way? (The choices are pieces of length 2, 4, 6, 8 and 10 blocks.)

Figure for Math Kangaroo 2016 Problem 23
Show answer
Answer: E — 10
Show hints
Hint 1 of 2
Splitting a piece into a 2:1 ratio only works when its length divides into three equal parts.
Still stuck? Show hint 2 →
Hint 2 of 2
List every length you can reach starting from 27 and see which option never appears.
Show solution
Approach: track which lengths a 2:1 split can produce
  1. 27 splits into 18 and 9; 18 splits into 12 and 6; 9 splits into 6 and 3; 12 splits into 8 and 4; 6 splits into 4 and 2.
  2. The reachable lengths are 2, 3, 4, 6, 8, 9, 12, 18, 27.
  3. A 10-block piece never appears, so 10 can never result.
Mark: · log in to save
Problem 22 · 2014 Math Kangaroo Stretch
Number Theory cryptarithmplace-value

In each box exactly one of the digits 0, 1, 2, 3, 4, 5 and 6 is to be written. Each digit is used only once. The picture on the right shows two 2-digit numbers being added to give a 3-digit number. Which digit has to be written in the grey box so that the sum is correct?

Figure for Math Kangaroo 2014 Problem 22
Show answer
Answer: D — 5
Show hints
Hint 1 of 3
The answer has 3 digits, so the two 2-digit numbers must add up to at least 100.
Still stuck? Show hint 2 →
Hint 2 of 3
You only have the digits 0 to 6 once each, so the hundreds digit of the answer can only be 1.
Still stuck? Show hint 3 →
Hint 3 of 3
Once you know the answer starts with 1, fit the remaining digits and read the grey (ones) box.
Show solution
Approach: find the only valid sum, then read the grey (units) box
  1. Two 2-digit numbers add to a 3-digit number using 0..6 once each.
  2. The only working sum is 105 (e.g. 42 + 63), using digits 0,1,2,3,4,5,6.
  3. The grey box is the units digit of the result, which is 5.
  4. Answer: 5.
Mark: · log in to save
Problem 17 · 2013 Math Kangaroo Stretch
Number Theory divisibilitycareful-counting

The number 35 has a special property: it can be divided exactly by its units digit, because \(35 \div 5 = 7\). The number 38 does not have this property. How many numbers bigger than 21 but smaller than 30 have this property?

Show answer
Answer: B — 3
Show hints
Hint 1 of 3
Bigger than 21 and smaller than 30 means the numbers 22, 23, 24, 25, 26, 27, 28, 29.
Still stuck? Show hint 2 →
Hint 2 of 3
For each one, can you split it into equal groups of its last digit with none left over?
Still stuck? Show hint 3 →
Hint 3 of 3
Count how many of the eight numbers pass that test.
Show solution
Approach: test divisibility by the units digit
  1. 22 ÷ 2 = 11 (yes), 24 ÷ 4 = 6 (yes), 25 ÷ 5 = 5 (yes).
  2. 23, 26, 27, 28, 29 do not divide evenly by their last digit.
  3. So there are 3 such numbers.
Mark: · log in to save
Problem 18 · 2012 Math Kangaroo Stretch
Number Theory divisibility

Among the classmates of Thomas there are twice as many girls as boys. How many children could be in the class?

Show answer
Answer: D — 25
Show hints
Hint 1 of 2
If girls are twice the boys, the classmates split into equal-size thirds (boys : girls = 1 : 2).
Still stuck? Show hint 2 →
Hint 2 of 2
So the number of classmates is a multiple of 3; remember Thomas himself is also in the class.
Show solution
Approach: use divisibility by 3 plus Thomas
  1. Among Thomas's classmates the girls are twice the boys, so the classmates number a multiple of 3.
  2. The class is those classmates plus Thomas, so the class size is (a multiple of 3) + 1.
  3. Among the options only 25 fits: 24 classmates (8 boys, 16 girls) plus Thomas.
  4. So the class could have 25 children.
Mark: · log in to save
Problem 19 · 2012 Math Kangaroo Stretch
Number Theory place-value

Gregory made two 3-digit numbers from the digits 1, 2, 3, 4, 5, 6. Each digit was used only once. Afterwards he added the two numbers together. What is the largest answer he could have got?

Show answer
Answer: D — 1173
Show hints
Hint 1 of 2
To make a sum large, put the biggest digits where they count the most.
Still stuck? Show hint 2 →
Hint 2 of 2
Give the two hundreds places the largest digits, then the tens, then the units.
Show solution
Approach: place the largest digits in the highest places
  1. Use 6 and 5 in the hundreds places, 4 and 3 in the tens, 2 and 1 in the units.
  2. The two numbers add to (600 + 500) + (40 + 30) + (2 + 1).
  3. That is 1100 + 70 + 3 = 1173.
  4. The largest possible sum is 1173.
Mark: · log in to save
Problem 21 · 2010 Math Kangaroo Stretch
Number Theory casework

The teacher said, “In our school library there are roughly 2010 books.” The pupils then guessed exactly how many there are. Artur guessed 2010, Beate guessed 1998 and Carlos guessed 2015. Their guesses are off by 12, 7 and 5, but not in that order. How many books are in the library?

Show answer
Answer: A — 2003
Show hints
Hint 1 of 2
The real number differs from the three guesses by 12, 7 and 5 in some order.
Still stuck? Show hint 2 →
Hint 2 of 2
Try a value near 2010 and check that its distances to 2010, 1998 and 2015 are exactly 12, 7 and 5.
Show solution
Approach: find the value whose distances to the guesses are 12, 7, 5
  1. Test 2003: |2003 − 2010| = 7, |2003 − 1998| = 5, |2003 − 2015| = 12.
  2. Those are exactly 7, 5 and 12 — the required errors.
  3. So the library has 2003 books.
Mark: · log in to save
Problem 24 · 2010 Math Kangaroo Stretch
Number Theory caseworksum-constraint

Berti’s friends each add together the day and the month of their birthday. They all get the answer 35, but no two of them have the same birthday. What is the largest number of friends Berti can have?

Show answer
Answer: B — 8
Show hints
Hint 1 of 2
You need months and days with month + day = 35, and each birthday must be a real date.
Still stuck? Show hint 2 →
Hint 2 of 2
Start from December and step down through the months, checking the day fits that month.
Show solution
Approach: count valid (month, day) pairs summing to 35
  1. List month + day = 35 with a valid day: Dec 23, Nov 24, Oct 25, Sep 26, Aug 27, Jul 28, Jun 29, May 30.
  2. April would need day 31, which doesn't exist, and earlier months need impossible days.
  3. That gives 8 different birthdays, so at most 8 friends.
Mark: · log in to save
Problem 13 · 2017 Math Kangaroo Medium
Number Theory divisibility

13 children registered for a competition. Then another 19 joined. Six equally big teams are needed for the competition. How many more children are needed, so that six equally big teams can be formed?

Show answer
Answer: D — 4
Show hints
Hint 1 of 2
First add the two groups of children together.
Still stuck? Show hint 2 →
Hint 2 of 2
Six equal teams means the total must split into 6 equal piles, so count up by sixes past your total.
Show solution
Approach: count up by sixes to the first number past the total
  1. Altogether there are 13 + 19 = 32 children.
  2. Six equal teams need a total that shares evenly into 6 piles, so count by sixes: 6, 12, 18, 24, 30, 36.
  3. The first one that is 32 or more is 36.
  4. So 36 - 32 = 4 more children are needed.
Mark: · log in to save
Problem 11 · 2013 Math Kangaroo Medium
Number Theory divisibility

Daniel had 36 sweets. He shared them equally between his siblings. How many siblings can he definitely not have?

Show answer
Answer: D — 5
Show hints
Hint 1 of 3
Sharing equally means the 36 sweets must split into equal groups with none left over.
Still stuck? Show hint 2 →
Hint 2 of 3
Try sharing 36 sweets among each number of siblings and see if any are left over.
Still stuck? Show hint 3 →
Hint 3 of 3
The number that leaves some sweets left over is the one he cannot have.
Show solution
Approach: test each option for dividing 36
  1. 36 divides evenly by 2, 3, 4 and 6 (giving 18, 12, 9, 6).
  2. But 36 ÷ 5 is not a whole number.
  3. So he definitely cannot have 5 siblings.
Mark: · log in to save
Problem 9 · 2011 Math Kangaroo Medium
Number Theory divisioncareful-counting

A chicken farmer packs eggs in boxes of 6 and boxes of 12. What is the smallest number of boxes he needs to pack 66 eggs?

Show answer
Answer: B — 6
Show hints
Hint 1 of 2
Use as many big boxes (of 12) as you can first.
Still stuck? Show hint 2 →
Hint 2 of 2
After the big boxes, fill the rest with boxes of 6.
Show solution
Approach: greedy with the larger box
  1. 66 = 12 × 5 + 6, so five boxes of 12 hold 60 eggs and one box of 6 holds the last 6.
  2. That is 5 + 1 = 6 boxes, and no smaller number works, answer B.
Mark: · log in to save
Problem 11 · 2011 Math Kangaroo Medium
Number Theory sum-constraintcareful-counting

Johannes has only 5 Cent coins and 10 Cent coins in his pocket. Altogether he has 13 coins. Which of the following amounts cannot be the total of his coins?

Show answer
Answer: B — 60 c
Show hints
Hint 1 of 2
With 13 coins, swapping a 5 c coin for a 10 c coin changes the total by a fixed step.
Still stuck? Show hint 2 →
Hint 2 of 2
Find the smallest and largest possible totals, and the step between reachable totals.
Show solution
Approach: range and step of the total
  1. All 5 c gives 65 c; all 10 c gives 130 c; each 5→10 swap adds 5 c, so totals are 65, 70, 75, …, 130.
  2. 80, 70, 115 and 125 are all multiples of 5 in that range, but 60 c is below 65 c, so it cannot be the total, answer B.
Mark: · log in to save
Problem 23 · 2020 Math Kangaroo Stretch
Number Theory sum-constraint

Jonas and Elias went to the beach for their vacation, where they had ice cream every day. Each ice cream they had, had two or three balls. On the last day of vacation, Jonas and Elias had had 23 and 19 ice cream balls in total, respectively. At least how many days were they on vacation?

Show answer
Answer: C — 8
Show hints
Hint 1 of 3
To use up the fewest days, give the bigger eater (Jonas, 23 balls) the most balls each day.
Still stuck? Show hint 2 →
Hint 2 of 3
Even eating 3 balls every single day, count how many days it takes to reach 23.
Still stuck? Show hint 3 →
Hint 3 of 3
The same number of days has to work for both boys, so check that 19 also fits in that many days.
Show solution
Approach: give the most balls per day to use the fewest days, then check both totals fit
  1. To finish in as few days as possible, eat the biggest ice cream (3 balls) every day.
  2. Counting by 3 toward Jonas's 23: seven days give only 21 balls, which is not enough, so they need at least 8 days.
  3. Eight days really works for both: Jonas eats 3 balls on 7 days and 2 balls on 1 day (21 + 2 = 23), and Elias eats 3 balls on 3 days and 2 balls on 5 days (9 + 10 = 19).
  4. So they were on vacation at least 8 days, choice C.
Mark: · log in to save
Problem 19 · 2009 Math Kangaroo Stretch
Number Theory digit-sumplace-value

A secret agent wants to crack a six-digit code. He knows that the sum of the digits in the even positions is equal to the sum of the digits in the odd positions. Which of the following numbers is the code? (Each ? stands for an unknown digit.)

Show answer
Answer: D — 12?9?8
Show hints
Hint 1 of 3
For each number, circle the digits in the 1st, 3rd and 5th spots, and box the digits in the 2nd, 4th and 6th spots.
Still stuck? Show hint 2 →
Hint 2 of 3
The known digits in one group might already be too big for the other group to ever catch up, even using a 9 in each blank.
Still stuck? Show hint 3 →
Hint 3 of 3
Look for the one number whose two groups CAN be made equal.
Show solution
Approach: compare the known digits in the two groups and see which one can balance
  1. Add up the known digits in the odd spots (1st, 3rd, 5th) and in the even spots (2nd, 4th, 6th), and remember a blank can be at most 9.
  2. In A, B, C and E one group's known digits are already so far ahead that even filling the other group's blanks with 9 cannot make them equal.
  3. In D the number is 12?9?8: the even spots give 2 + 9 + 8 = 19, and the odd spots are 1 + ? + ?, which reaches 19 when both blanks are 9 (1 + 9 + 9 = 19).
  4. Only option D can have its two groups equal, so the code is option D.
Mark: · log in to save