Skip to content

← Math Further 6–8

How Many Divisors Does 10,000 Have?

Topic 43 · Grades 6–8 · Counting divisors from prime factors, and the zeros at the end of 100!

What this builds on from class
In this unit 10 sections
  1. Try it
  2. What’s going on
  3. Lockers, and the odd ones out
  4. Adding up the divisors
  5. Harder puzzles
  6. How many zeros at the end of 100!?
  7. HCF and LCM from prime powers
  8. Where this is used
  9. Questions
  10. Where to go next

The ward office has given the science club at Bibisha’s school in Bhaktapur a prize of 10,000 rupees. The club wants to split it into teams for the science fair, and the teacher has one rule: every team gets exactly the same number of whole rupees, with nothing left over.

“Ten teams of 1,000,” says one student. “Sixteen teams of 625,” says another. Three teams? No: 10,000 ÷ 3 leaves 1 rupee over. How many different numbers of teams would work, from one team that gets everything to 10,000 teams of one rupee each?

Each number of teams that works divides 10,000 exactly: it is a divisor of 10,000 (a factor, in your grade book’s word). So the question is how many divisors 10,000 has. You could test every number from 1 to 10,000, but there is a much quicker way.

Guess first. How many whole numbers divide 10,000 exactly (1 and 10,000 included)?

Pick an answer to see why.

Try it

Count some smaller ones

Here are some numbers and how many divisors each has.

Number Its divisors How many
7 1, 7 2
12 1, 2, 3, 4, 6, 12 6
16 1, 2, 4, 8, 16 5
36 1, 2, 3, 4, 6, 9, 12, 18, 36 9
100 1, 2, 4, 5, 10, 20, 25, 50, 100 9
  • a.A bigger number doesn’t always have more divisors: 16 has fewer than 12. What makes 12 so rich in divisors?
  • b.Which of these numbers have an odd count? What else do those numbers have in common?
  • c.16 is 2 × 2 × 2 × 2. Its divisors are 1, 2, 2 × 2, 2 × 2 × 2 and 2 × 2 × 2 × 2. How many divisors would 2 × 2 × 2 × 2 × 2 × 2 (that is, 64) have? Predict, then check.

16 = 2⁴ has 5 divisors. How many divisors does 2¹⁰ = 1,024 have?

Pick an answer to see why.

Only the same primes

Your grade book splits a number into primes with a factor tree or by dividing, and whatever splits you choose, the primes at the bottom are always the same (Grade 6: the prime factors are a number’s fingerprint). Here is 10,000:

210000250002250021250562551255255
Figure 43.1 10,000 divided by primes, smallest first: four 2s, then four 5s.

10,000 = 2 × 2 × 2 × 2 × 5 × 5 × 5 × 5 = 2⁴ × 5⁴.

Now think about any divisor of 10,000, say 40, and its partner 250. Then 40 × 250 = 10,000. Split both into primes: 40 = 2 × 2 × 2 × 5 and 250 = 2 × 5 × 5 × 5. Put together, they must make the fingerprint of 10,000: four 2s and four 5s. So a divisor of 10,000 can have no prime but 2 and 5 in it, and at most four of each. Any other prime, a 3 or a 7, would show up in the fingerprint of 10,000, and it doesn’t.

And it works the other way too: any number made of up to four 2s and up to four 5s, like 2 × 5 × 5 = 50, does divide 10,000, because the rest of the 2s and 5s make its partner (2 × 2 × 2 × 5 × 5 = 200, and 50 × 200 = 10,000).

What’s going on

A divisor is two choices

So a divisor of 10,000 is just two decisions:

  • How many 2s? 0, 1, 2, 3 or 4: five choices.
  • How many 5s? 0, 1, 2, 3 or 4: five choices.

Every way of making the two choices gives a different divisor, and every divisor comes from one way. Lay the choices out as a grid, the number of 2s down the side and the number of 5s along the top, and each square is one divisor. Five rows of five squares: 5 × 5 = 25 divisors.

Try it

Every divisor of 10,000

Each square is a choice of 2s (its row) times a choice of 5s (its column). Tap one to light up its partner: the two multiply to the number. Then change the number with the buttons.

× 5s →× 2s ↓5⁰15¹55²255³1255⁴6252⁰ = 115251256252¹ = 2210502501,2502² = 44201005002,5002³ = 88402001,0005,0002⁴ = 1616804002,00010,000
Twos: 4
Other prime:
How many: 4
The number
24 × 54 = 10,000
Divisors
5 × 5 = 25

Tap any divisor to see its partner: the two multiply to 10,000.

Hint
Answer

Why five choices from four 2s? Because “none” is a choice too: you can use 0, 1, 2, 3 or 4 of them. Choosing no 2s and no 5s gives the divisor 1; choosing all of them gives 10,000 itself.

The same picture works for any number. Write it as primes, add 1 to each power, and multiply:

2a×3b×5c×…has(a+1)×(b+1)×(c+1)×… divisors 2^a \times 3^b \times 5^c \times \dots \quad \text{has} \quad (a+1) \times (b+1) \times (c+1) \times \dots \text{ divisors}

This is the divisor-counting rule, and the count is called the number of divisors of the number. 12 = 2² × 3 has (2 + 1) × (1 + 1) = 6 divisors, as the table showed, and 72 = 2³ × 3² has 4 × 3 = 12.

Three primes: a grid in layers

A number with three different primes is a grid with layers. 360 = 2³ × 3² × 5. The divisors with no 5 make a grid of 4 × 3 = 12; the divisors with one 5 are the same twelve, each times 5.

no 5× 1× 3× 9× 1139× 22618× 441236× 882472one 5: times 5× 1× 3× 951545103090206018040120360+2 copies × (4 × 3) = 24 divisors
Figure 43.2 The 24 divisors of 360 = 2³ × 3² × 5. Left: no 5, a grid of 4 choices of 2s by 3 choices of 3s. Right: the same grid times 5.

Two layers of twelve: (3 + 1) × (2 + 1) × (1 + 1) = 4 × 3 × 2 = 24 divisors (Figure 43.2). Four different primes would be layers of layers, and you simply multiply once more.

How many divisors does 1,000 have?

Pick an answer to see why.

Lockers, and the odd ones out

The locker puzzle

A school corridor has 100 lockers, numbered 1 to 100, all shut. One hundred students walk past, one after another. Student 1 opens every locker. Student 2 changes every second locker (2, 4, 6, …): she shuts it if it is open and opens it if it is shut. Student 3 changes every third locker, student 4 every fourth, and so on, until student 100 changes only locker 100. When everyone has passed, which lockers are open?

Try it

A hundred lockers

Press Next student a few times and watch the outlined lockers change. Before you press All 100 students, guess how many will end open. Then tap a few lockers to see which students changed them.

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
Students so far
0
Lockers open
0

All 100 lockers are shut. Press Next student.

Every student has passed. Which lockers are open? Tap one to see who changed it.

Guess before you press All. How many of the 100 lockers end open?

Pick an answer to see why.

Why the squares?

Who changes locker 12? Students 1, 2, 3, 4, 6 and 12: exactly the divisors of 12, since student k changes the lockers whose numbers k divides. Six changes: open, shut, open, shut, open, shut. It ends shut.

A locker ends open when it is changed an odd number of times. So the puzzle is really: which numbers have an odd number of divisors?

Divisors come in partners whose product is the number: 1 × 12, 2 × 6, 3 × 4. Usually the two partners are different, so the divisors pair off and their count is even. The only way to have one left over is a divisor that is its own partner, d × d = n: and that happens exactly when n is a square. For 36 the divisors pair as 1 × 36, 2 × 18, 3 × 12, 4 × 9, and 6 is alone, 6 × 6 = 36: 4 pairs and one more, 9 divisors.

Try it

The partners as rectangles

Each rectangle of 36 squares has two divisors for its sides, a pair of partners. Slide to other numbers: which ones make a square among their rectangles?

1 × 362 × 183 × 124 × 96 × 6
Factors of 36
1, 2, 3, 4, 6, 9, 12, 18, 36
How many factors
9 (composite)

36 is composite: 5 rectangles, and 4 more turned round. One of them is a square, 6 × 6: 36 is a square number.

The grid says the same thing. A count (a + 1) × (b + 1) × … is odd only if every bracket is odd, so every power must be even, and a number whose powers are all even is a square: 10,000 = 2⁴ × 5⁴ = (2² × 5²)² = 100². A number has an odd number of divisors exactly when it is a perfect square.

Adding up the divisors

What do the 25 divisors of 10,000 add up to? The grid gives a quicker way than adding all 25.

Add the powers of 2 on their own: 1 + 2 + 4 + 8 + 16 = 31. Add the powers of 5: 1 + 5 + 25 + 125 + 625 = 781. Now multiply:

31×781=(1+2+4+8+16)×(1+5+25+125+625) 31 \times 781 = (1 + 2 + 4 + 8 + 16) \times (1 + 5 + 25 + 125 + 625)

Multiplying out the two brackets means multiplying each number in the first by each number in the second, and adding all the answers. That is one 2-power times one 5-power for every pair: exactly one product for each square of the grid, each divisor once. So the sum of the divisors of 10,000 is 31 × 781 = 24,211.

The same works for any number: one bracket for each prime, holding 1 and each power of that prime up to the highest, multiplied together. For 12 = 2² × 3: (1 + 2 + 4) × (1 + 3) = 7 × 4 = 28, and indeed 1 + 2 + 3 + 4 + 6 + 12 = 28. This total is the sum of divisors.

Harder puzzles

Working backwards

The rule can be run the other way: given a count of divisors, find the number.

The product of all the divisors

Here is a puzzle that looks impossible: multiply all 25 divisors of 10,000 together. What do you get?

Partners again. The 25 divisors make 12 pairs, each multiplying to 10,000, and the lonely 100. So the product is 10,000¹² × 100 = (10⁴)¹² × 10² = 10⁴⁸ × 10² = 10⁵⁰: a 1 followed by fifty zeros. The same pairing works for any number: multiply all its divisors and you get the number itself once for each pair (and, for a square, its square root for the divisor left alone).

How many zeros at the end of 100!?

Zeros come from 10s

100! (“100 factorial”, as in How Many Number Plates Can a Province Make?) is 100 × 99 × 98 × … × 3 × 2 × 1, a number with 158 digits. How many zeros does it end with?

A zero at the end of a number means it divides by 10, and each further zero by another 10. And 10 = 2 × 5. So count how many 2 × 5 pairs are in the prime fingerprint of 100!. There are plenty of 2s (every even number brings at least one; 97 in all), but 5s are rarer, so the 5s decide.

Which numbers from 1 to 100 bring a 5? Only the multiples of 5: 5, 10, 15, …, 100. There are 100 ÷ 5 = 20 of them. But 25 = 5 × 5 brings two 5s, and so do 50, 75 and 100. That is 100 ÷ 25 = 4 more.

510152025303540455055606570758085909510020 multiples of 5, + 4 more for 25, 50, 75, 100= 24 fives, so 24 zeros
Figure 43.3 The multiples of 5 up to 100, each with a dot for every 5 it holds. The four multiples of 25 hold a second 5.

20 + 4 = 24 fives, each with a 2 to pair with: 100! ends in 24 zeros (Figure 43.3).

This is Legendre’s formula in plain words (after Adrien-Marie Legendre; also called de Polignac’s formula): to find how many times a prime p is in n!, count the numbers up to n that p divides, then those that p × p divides, then p × p × p, and add the counts. For 1,000!: 1,000 ÷ 5 = 200, ÷ 25 = 40, ÷ 125 = 8, ÷ 625 = 1 (keeping only the whole part), so 200 + 40 + 8 + 1 = 249 zeros.

How many zeros are at the end of 50!?

Pick an answer to see why.

The twist: a count that is skipped

24! ends in 4 zeros. 25! is 24! × 25, and 25 brings two 5s at once, so 25! ends in 6 zeros. The count jumps from 4 straight to 6: no factorial ends in exactly 5 zeros, however far you look. The same happens each time the factorials reach a multiple of 25 (11, 17 and 23 zeros are skipped too, and two counts at once at 125, which brings three 5s).

HCF and LCM from prime powers

Your Grade 6 book already finds the highest common factor and lowest common multiple from prime factors, and shows that HCF × LCM is the two numbers multiplied. Written as prime powers, both become a matter of reading a table.

Take 10,000 = 2⁴ × 5⁴ and 3,600 = 2⁴ × 3² × 5². Write each with every prime it could have, a power 0 for a prime it lacks:

2 3 5
10,000 4 0 4
3,600 4 2 2
HCF: the smaller 4 0 2
LCM: the larger 4 2 4

A common factor must fit inside both fingerprints, so it can have at most the smaller power of each prime: the HCF is 2⁴ × 5² = 400. A common multiple must hold both fingerprints, so it needs at least the larger power of each: the LCM is 2⁴ × 3² × 5⁴ = 90,000.

And it joins up with counting divisors: the numbers that divide both 10,000 and 3,600 are exactly the divisors of their HCF, 400 = 2⁴ × 5², so there are (4 + 1) × (2 + 1) = 15 of them.

The lowest common multiple is old in South Asia. Mahāvīra, a Jain mathematician of the 9th century at the court of the Rashtrakuta emperor Amoghavarsha, wrote the Gaṇita-sāra-saṅgraha, the earliest Indian book given wholly to mathematics. It explains how to find the lowest common multiple of denominators, which it calls the niruddha, to add fractions.

Where this is used

Everything in this topic starts from the prime fingerprint, which nobody knows how to find quickly for a number hundreds of digits long. RSA, a way of keeping data safe on the internet, rests on that: its lock is the product of two huge primes, and finding the two primes would open it (more in Is There a Biggest Prime Number?).

Questions

★ How many divisors does 243 = 3⁵ have?

Pick an answer to see why.

a.★

Ujwal says 72 = 2³ × 3² has 3 × 2 = 6 divisors. What did he forget? How many does it have?

Hint
Answer
b.★

How many divisors does 1,000,000 have?

Hint
Answer
c.★★

In the locker puzzle with 50 lockers and 50 students, which lockers end open, and how many students change locker 36?

Hint
Answer

★★ How many zeros are at the end of 60!?

Pick an answer to see why.

d.★★

Find the sum of the divisors of 100 without listing them, then check by listing.

Hint
Answer
e.★★

Mingma wants the smallest number with exactly 8 divisors. Find it.

Hint
Answer
f.★★

A hall floor is 360 cm by 840 cm. Kriti wants to cover it with square tiles, all the same size, as large as possible, with no tile cut. How big is each tile, and how many does she need?

Hint
Answer
g.★★★

How many of the 25 divisors of 10,000 are perfect squares?

Hint
Answer
h.★★★

Yugin says some factorial ends in exactly 11 zeros. Find it, or show that none does.

Hint
Answer

Where to go next

Where these facts come from
  • The number of divisors and the sum of divisors from the prime factorization; an odd number of divisors exactly for squares: Wikipedia, “Divisor function”, read November 2026.
  • Legendre’s formula for the power of a prime in n!, its names (Legendre’s, also de Polignac’s): Wikipedia, “Legendre’s formula”, read November 2026.
  • Perfect numbers: Euclid’s Elements IX.36, the four known to the early Greeks, Euler’s proof for even perfect numbers, 52 known as of October 2024, the largest’s 82,048,640 digits, no odd one known: Wikipedia, “Perfect number”, read November 2026; 52 Mersenne primes known, the newest found on 12 October 2024: GIMPS, “List of known Mersenne prime numbers”, read November 2026.
  • Plato’s 5,040, its fifty-nine divisors and its divisibility by 1 to 12 except 11: Plato, Laws, Books V and VI, Benjamin Jowett’s translation, MIT Internet Classics Archive, read November 2026.
  • Highly composite numbers, their definition, the list up to 5,040 and the powers that never go up: Wikipedia, “Highly composite number”; Ramanujan’s birth and death, his 1915 paper of more than 50 pages in the Proceedings of the London Mathematical Society, his Cambridge B.A. by Research of 1916: Wikipedia, “Srinivasa Ramanujan”, read November 2026.
  • Mahāvīra, the 9th century, the Gaṇita-sāra-saṅgraha as the earliest Indian text wholly on mathematics and its method for the LCM: Wikipedia, “Mahāvīra (mathematician)” (also his patron Amoghavarsha) and “Gaṇita-sāra-saṅgraha”; the niruddha as its name for the LCM, used to make denominators equal (chapter on fractions, stanza 56): the edition on jainqq.org, read November 2026.
  • RSA’s security related to the difficulty of factoring the product of two large primes, and its wide use for secure data transmission: Wikipedia, “RSA cryptosystem”, read November 2026.
  • Periodical cicadas of eastern North America, their 13- and 17-year cycles, more than 1.5 million to an acre, the hypotheses about prime cycles, Broods XIII and XIX together in 2024 (first since 1803), next in 2245: Wikipedia, “Periodical cicadas”, read November 2026.
  • Every number, count, sum, product and answer in this topic computed in checks/textbooks/math-further-6-8/43/tmp/t43_numbers.py.

Found a mistake? Please tell us.