Chapter

Divisor Counting

The module develops the divisor-counting formula, odd divisors, the square criterion, inverse problems for \( au(n)\), products of divisors, and smallest numbers with prescribed divisor count.
Log in to track solved progress and bookmarks.

Theory

Key Idea

Divisor counting turns a number into a list of prime exponents. If \(n=p_1^{a_1}\cdots p_s^{a_s}\), then each divisor is obtained by independently choosing exponents \(0,1,\ldots,a_i\).

The olympiad strength of the method appears when we do not merely count, but reconstruct the form of a number from its number of divisors or find the smallest number with a prescribed number of divisors.

Basic Facts

  • If \(n=p_1^{a_1}\cdots p_s^{a_s}\), then \(\tau(n)=(a_1+1)\cdots(a_s+1)\).
  • The number \(\tau(n)\) is odd if and only if \(n\) is a square.
  • The number of odd divisors equals the number of divisors of the odd part of the number.
  • If \(n\) is not a square, its divisors pair as \(d\) and \(\frac{n}{d}\). If \(n\) is a square, one divisor \(\sqrt{n}\) is unpaired.
  • To minimise a number with fixed exponents, put larger exponents on smaller primes: \(2^{a_1}3^{a_2}5^{a_3}\cdots\) with \(a_1\ge a_2\ge a_3\ge\cdots\).

When to Use This Method

  • The problem asks for the number of divisors, odd divisors, or divisor pairs.
  • \(\tau(n)\) is given, and the possible form of \(n\) must be described.
  • You need the smallest number with a prescribed number of divisors.
  • You need to decide when the number of divisors is odd.
  • The problem contains a product of divisors or a pairing of divisors.

How to Recognise the Method

If the statement says “exactly \(k\) divisors”, immediately factor \(k\) into factors of the form \(a_i+1\). If the smallest number is requested, enumerate possible exponent patterns, not the numbers themselves.

If odd divisors are requested, remove the power of \(2\). If you need to prove oddness of \(\tau(n)\), use divisor pairing around \(\sqrt{n}\).

Typical Mistakes

  • Forgetting the zero exponent choice for a prime factor.
  • Counting divisors by listing them and missing one.
  • When minimising a number, putting a large exponent on a large prime.
  • Confusing the number of divisors of \(n\) and \(n^2\).
  • Thinking that \(\tau(n)\) is odd for “almost squares”; an exact square is needed.

Mini-Checklist

  • Has the number been factorised into prime powers?
  • Was exponent \(0\) counted for each prime?
  • If \(\tau(n)\) is given, which multiplicative decompositions are possible?
  • If a minimum is requested, are exponents assigned in decreasing order to primes \(2,3,5,\ldots\)?
  • Are all divisors counted, or only odd divisors?
  • Is \(n\) a square?

Examples

Example 1. The Formula for \( au(n)\)

The main step is to pass from the number to prime exponents.

Problem. Find the number of positive divisors of \(360\).

Solution.

\(360=2^3\cdot3^2\cdot5\). A divisor has the form \(2^a3^b5^c\), where \(a=0,1,2,3\), \(b=0,1,2\), \(c=0,1\). Therefore \(\tau(360)=4\cdot3\cdot2=24\).

Comment. Exponent \(0\) means that the prime factor is absent from the divisor.

Example 2. Odd Divisors

To count odd divisors, the power of two is irrelevant.

Problem. How many positive odd divisors does \(720\) have?

Solution.

\(720=2^4\cdot3^2\cdot5\). An odd divisor contains no factor \(2\), so we choose only exponents of \(3\) and \(5\). This gives \((2+1)(1+1)=6\) odd divisors.

Comment. The odd part is \(3^2\cdot5\).

Example 3. When \( au(n)\) Is Odd

Divisors usually come in pairs; a square gives one unpaired divisor.

Problem. Prove that \(\tau(n)\) is odd if and only if \(n\) is a square.

Solution.

If \(d\mid n\), then \(\frac{n}{d}\mid n\). Usually divisors pair as \(d\) and \(\frac{n}{d}\). An unpaired divisor can occur only when \(d=\frac{n}{d}\), i.e. \(d^2=n\). Hence the number of divisors is odd exactly for squares.

Comment. This proof does not require the formula for \(\tau(n)\), but explains it well.

Example 4. Smallest Number with \(12\) Divisors

Minimisation uses exponent patterns, not brute force over numbers.

Problem. Find the smallest positive integer with exactly \(12\) positive divisors.

Solution.

We need to write \(12\) as a product of numbers \(a_i+1\). The important possibilities are \(12\), \(6\cdot2\), \(4\cdot3\), \(3\cdot2\cdot2\). They give candidates \(2^{11}\), \(2^5\cdot3=96\), \(2^3\cdot3^2=72\), \(2^2\cdot3\cdot5=60\). The smallest is \(60\). Answer: \(60\).

Comment. Larger exponents go on smaller primes.

Example 5. Sum of Divisors

Although the module is about \( au\), it is useful to see the neighbouring function \(\sigma\).

Problem. Find the sum of positive divisors of \(72\).

Solution.

\(72=2^3\cdot3^2\). The sum of divisors is \((1+2+2^2+2^3)(1+3+3^2)=15\cdot13=195\).

Comment. This idea returns later in arithmetic-function modules.

Example 6. Divisors of a Square

For \(n^2\), all exponents double.

Problem. If \(n=2^3\cdot3^2\cdot5\), find \(\tau(n^2)\).

Solution.

Then \(n^2=2^6\cdot3^4\cdot5^2\). Hence \(\tau(n^2)=(6+1)(4+1)(2+1)=7\cdot5\cdot3=105\).

Comment. No need to compute the number \(n^2\) itself.

Example 7. Numbers with Four Divisors

A prescribed number of divisors restricts the form of the number.

Problem. Describe all positive integers \(n\) with exactly \(4\) positive divisors.

Solution.

We need \((a_1+1)\cdots(a_s+1)=4\). The possibilities are \(4\) or \(2\cdot2\). Therefore \(n=p^3\) for a prime \(p\), or \(n=pq\), where \(p\) and \(q\) are distinct primes.

Comment. This is the first step toward inverse problems for \(\tau(n)\).

Example 8. Product of Divisors

Pairing divisors helps find their product.

Problem. Prove that the product of all positive divisors of \(n\) equals \(n^{\tau(n)/2}\).

Solution.

Each divisor \(d\) corresponds to \(\frac{n}{d}\), and the product of the pair is \(n\). Therefore the product of all divisors is \(n\) multiplied once for each pair. The number of pairs is \(\frac{\tau(n)}{2}\). If \(n\) is a square, the middle divisor \(\sqrt{n}\) is accounted for by the same formula, and the result is still correct.

Comment. For a square, the exponent can be half-integer, but the value is still an integer.

Problems

Problems

#15.1
#15.1

Divisors of \(84\)

Divisor Counting Grade 8 Grade 9 ★☆☆☆☆

Find the number of positive divisors of \(84\).

Details
Problem: NT-B1-M09-P001
Difficulty: Level 1 of 5
Tag: Divisor Counting
Grade: Grade 8, Grade 9
#15.2
#15.2

Divisors of \(144\)

Divisor Counting Grade 8 Grade 9 ★☆☆☆☆

Find \(\tau(144)\).

Details
Problem: NT-B1-M09-P002
Difficulty: Level 1 of 5
Tag: Divisor Counting
Grade: Grade 8, Grade 9
#15.3
#15.3

Prime Powers

Divisor Counting Grade 8 Grade 9 ★☆☆☆☆

How many positive divisors does \(2^5\cdot3^3\) have?

Details
Problem: NT-B1-M09-P003
Difficulty: Level 1 of 5
Tag: Divisor Counting
Grade: Grade 8, Grade 9
#15.4
#15.4

A Prime Power

Divisor Counting Grade 8 Grade 9 ★☆☆☆☆

Prove that \(p^a\), where \(p\) is prime, has exactly \(a+1\) positive divisors.

Details
Problem: NT-B1-M09-P004
Difficulty: Level 1 of 5
Tag: Divisor Counting
Grade: Grade 8, Grade 9
#15.5
#15.5

Odd Divisors of \(48\)

Odd Divisors Grade 8 Grade 9 ★☆☆☆☆

How many positive odd divisors does \(48\) have?

Details
Problem: NT-B1-M09-P005
Difficulty: Level 1 of 5
Tag: Odd Divisors
Grade: Grade 8, Grade 9
#15.6
#15.6

Divisors of \(360\)

Divisor Counting Grade 8 Grade 9 ★★☆☆☆

Find \(\tau(360)\).

Details
Problem: NT-B1-M09-P006
Difficulty: Level 2 of 5
Tag: Divisor Counting
Grade: Grade 8, Grade 9
#15.7
#15.7

Divisors of \(1000\)

Divisor Counting Grade 8 Grade 9 ★★☆☆☆

Find the number of positive divisors of \(1000\).

Details
Problem: NT-B1-M09-P007
Difficulty: Level 2 of 5
Tag: Divisor Counting
Grade: Grade 8, Grade 9
#15.8
#15.8

Odd Divisors of \(720\)

Odd Divisors Grade 8 Grade 9 ★★☆☆☆

How many odd divisors does \(720\) have?

Details
Problem: NT-B1-M09-P008
Difficulty: Level 2 of 5
Tag: Odd Divisors
Grade: Grade 8, Grade 9
#15.9
#15.9

Oddness of \( au(225)\)

Divisor Counting Grade 8 Grade 9 ★★☆☆☆

Without listing all divisors, explain why \(\tau(225)\) is odd.

Details
Problem: NT-B1-M09-P009
Difficulty: Level 2 of 5
Tag: Divisor Counting
Grade: Grade 8, Grade 9
#15.10
#15.10

Smallest with \(8\) Divisors

Divisor Counting Grade 8 Grade 9 ★★☆☆☆

Find the smallest positive integer with exactly \(8\) positive divisors.

Details
Problem: NT-B1-M09-P010
Difficulty: Level 2 of 5
Tag: Divisor Counting
Grade: Grade 8, Grade 9
#15.11
#15.11

Smallest with \(10\) Divisors

Divisor Counting Grade 8 Grade 9 ★★☆☆☆

Find the smallest positive integer with exactly \(10\) positive divisors.

Details
Problem: NT-B1-M09-P011
Difficulty: Level 2 of 5
Tag: Divisor Counting
Grade: Grade 8, Grade 9
#15.12
#15.12

Exactly Three Divisors

Prime Numbers Grade 8 Grade 9 ★★☆☆☆

Find all positive integers less than \(100\) with exactly \(3\) positive divisors.

Details
Problem: NT-B1-M09-P012
Difficulty: Level 2 of 5
Tag: Prime Numbers
Grade: Grade 8, Grade 9
#15.13
#15.13

Odd Number of Divisors

Square Grade 9 Grade 10 ★★★☆☆

Prove that a positive integer has an odd number of positive divisors if and only if it is a square.

Details
Problem: NT-B1-M09-P013
Difficulty: Level 3 of 5
Tag: Square
Grade: Grade 9, Grade 10
#15.14
#15.14

Smallest with \(15\) Divisors

Divisor Counting Grade 9 Grade 10 ★★★☆☆

Find the smallest positive integer with exactly \(15\) positive divisors.

Details
Problem: NT-B1-M09-P014
Difficulty: Level 3 of 5
Tag: Divisor Counting
Grade: Grade 9, Grade 10
#15.15
#15.15

Smallest with \(24\) Divisors

Divisor Counting Grade 9 Grade 10 ★★★☆☆

Find the smallest positive integer with exactly \(24\) positive divisors.

Details
Problem: NT-B1-M09-P015
Difficulty: Level 3 of 5
Tag: Divisor Counting
Grade: Grade 9, Grade 10
#15.16
#15.16

Divisors of \(360^2\)

Divisor Counting Grade 9 Grade 10 ★★★☆☆

Find \(\tau(360^2)\).

Details
Problem: NT-B1-M09-P016
Difficulty: Level 3 of 5
Tag: Divisor Counting
Grade: Grade 9, Grade 10
#15.17
#15.17

Product of Divisors of \(36\)

Product Of Divisors Grade 9 Grade 10 ★★★☆☆

Find the product of all positive divisors of \(36\).

Details
Problem: NT-B1-M09-P017
Difficulty: Level 3 of 5
Tag: Product Of Divisors
Grade: Grade 9, Grade 10
#15.18
#15.18

Exactly Four Divisors

Prime Numbers Grade 9 Grade 10 ★★★☆☆

Describe all positive integers with exactly \(4\) positive divisors.

Details
Problem: NT-B1-M09-P018
Difficulty: Level 3 of 5
Tag: Prime Numbers
Grade: Grade 9, Grade 10
#15.19
#15.19

Exactly Two Odd Divisors

Odd Divisors Grade 9 Grade 10 ★★★☆☆

Describe all positive integers \(n\) with exactly two positive odd divisors.

Details
Problem: NT-B1-M09-P019
Difficulty: Level 3 of 5
Tag: Odd Divisors
Grade: Grade 9, Grade 10
#15.20
#15.20

Divisors of \(10^6\)

Powers Grade 9 Grade 10 ★★★☆☆

Find the number of positive divisors of \(10^6\).

Details
Problem: NT-B1-M09-P020
Difficulty: Level 3 of 5
Tag: Powers
Grade: Grade 9, Grade 10
#15.21
#15.21

Smallest with \(36\) Divisors

Optimization Grade 9 Grade 10 ★★★★☆

Find the smallest positive integer with exactly \(36\) positive divisors.

Details
Problem: NT-B1-M09-P021
Difficulty: Level 4 of 5
Tag: Optimization
Grade: Grade 9, Grade 10
#15.22
#15.22

Odd Number with \(12\) Divisors

Minimal Number Grade 9 Grade 10 ★★★★☆

Find the smallest odd positive integer with exactly \(12\) positive divisors.

Details
Problem: NT-B1-M09-P022
Difficulty: Level 4 of 5
Tag: Minimal Number
Grade: Grade 9, Grade 10
#15.23
#15.23

When \( au(2n)=2 au(n)\)

Parity Grade 9 Grade 10 ★★★★☆

Find all positive integers \(n\) such that \(\tau(2n)=2\tau(n)\).

Details
Problem: NT-B1-M09-P023
Difficulty: Level 4 of 5
Tag: Parity
Grade: Grade 9, Grade 10
#15.24
#15.24

Smallest with \(60\) Divisors

Optimization Grade 9 Grade 10 ★★★★★

Find the smallest positive integer with exactly \(60\) positive divisors.

Details
Problem: NT-B1-M09-P024
Difficulty: Level 5 of 5
Tag: Optimization
Grade: Grade 9, Grade 10

Ladders

No published ladders were found.
Previous Chapter
Next Chapter