Emzini weCodeUmhlahlandlelaMathematics 3.6 · Factors, Primes and Remainders NoticesAll books

Chapter 3/3.6Accelerateabout 5 min

Counting factors and the locker problem

Try this first

List the factors of 72. Now write 72 in primes. Every factor of 72 is made from some 2s and some 3s. How many choices do you have for the number of 2s? For the number of 3s?

Since 72 = 23 × 32, a factor of 72 can use zero, one, two or three 2s. That is 4 choices. It can use zero, one or two 3s. That is 3 choices. Every pair of choices gives a different factor, so there are 4 × 3 = 12 factors. Listing confirms it: 1, 2, 3, 4, 6, 8, 9, 12, 18, 24, 36, 72.

Key fact

Counting factors. Write the number in primes. Add 1 to each index and multiply the results. This gives the number of factors.

Worked example 3.7

How many factors does 360 have?

360 = 23 × 32 × 51
Add 1 to each index: 4, 3 and 2.
Number of factors = 4 × 3 × 2 = 24.

Now try one yourself

Solving the locker problem. Now return to the corridor. Think about one locker, say locker 12. Who touches it? Learner 1, learner 2, learner 3, learner 4, learner 6 and learner 12. These are exactly the factors of 12. So locker 12 is changed six times: open, closed, open, closed, open, closed. It ends closed.

In general, a locker is touched once for each factor of its number. An even number of touches leaves it closed. An odd number of touches leaves it open. So the question becomes: which numbers have an odd number of factors?

Factors come in pairs, so the number of factors is usually even. The only exception is when one factor is paired with itself, as 6 × 6 = 36. That happens only for the square numbers: 1, 4, 9, 16, 25, 36, 49, 64, 81 and 100.

So exactly ten lockers are open at the end: 1, 4, 9, 16, 25, 36, 49, 64, 81 and 100.

The first 20 lockers after every learner has passedEach locker is changed once by every learner whose number is a factor of thelocker's number.1THE CORRIDOR2LOCKER 12touched by learners 1, 2, 3, 4, 6, 12. The door after each one:learner 1learner 2learner 3learner 4learner 6learner 126 touches: ends closed3LOCKER 9touched by learners 1, 3, 9. The door after each one:learner 1learner 3learner 93 touches: ends openOpen lockers: 1, 4, 9, 16.Only square numbers have an odd number of factors.1234567891011121314151617181920121212121212999
Figure 3.7 The locker problem with 20 lockers.

The factor counting rule agrees. A number has an odd number of factors only when every (index + 1) is odd, which means every index is even, which means the number is a perfect square. Two different arguments reach the same result, which is a good reason to believe it.

Check your understanding 3.6

  1. How many factors does 24 × 72 have?
    Show answerHide answer
    (4 + 1) × (2 + 1) = 15.
  2. How many factors does 1,000 have?
    Show answerHide answer
    1,000 = 23 × 53, so 4 × 4 = 16 factors.
  3. Locker 30: which learners touch it, and does it end open or closed?
    Show answerHide answer
    Learners 1, 2, 3, 5, 6, 10, 15 and 30. That is 8 touches, an even number, so it ends closed.
  4. A number has exactly 3 factors. What kind of number must it be? Give two examples.
    Show answerHide answer
    The square of a prime, because p2 has factors 1, p and p2. Examples: 4, 9, 25, 49.