Divisor-based problems
This chapter systematically explores fundamental concepts and techniques for analyzing divisors of integers, a cornerstone of number theory. A robust understanding of these methods is critical for solving complex problems encountered in the CMI BS Hons examination.
Chapter Contents
|
| Topic |
|---|-------|
| 1 | Number of divisors |
| 2 | Sum of divisors |
| 3 | Even and odd divisors |
| 4 | Ordered factor pairs |
We begin with Number of divisors.
Part 1: Number of divisors
Number of Divisors
Overview
Many divisor-counting problems look difficult only until the prime factorization is written down. Once a number is expressed in the form
n=p1a1ββp2a2βββ―pkakββ
the number of positive divisors becomes completely structured. In CMI-style questions, this topic is rarely about listing divisors one by one. Instead, it tests whether you can:
- use prime factorization correctly
- apply the divisor-count formula
- classify numbers with a fixed number of divisors
- count such numbers under a bound like nβ€60
- move between factorization patterns and divisor counts quickly
This topic is a standard bridge between factorization and counting.
---
Learning Objectives
β
By the End of This Topic
After studying this topic, you will be able to:
- Compute the number of divisors of an integer from its prime factorization.
- Classify integers having exactly 2,3,4,5,6,β¦ divisors.
- Count numbers with a fixed divisor count under a numerical bound.
- Use divisor pairs and parity arguments.
- Recognize that odd divisor count is linked to perfect squares.
---
Prime Factorization First
π
Prime Factorization Form
Every positive integer n>1 can be written uniquely as
n=p1a1ββp2a2βββ―pkakββ
where
- p1β,p2β,β¦,pkβ are distinct primes
- a1β,a2β,β¦,akβ are positive integers
All divisor-count questions begin from this form.
---
Divisor Count Formula
π
Number of Positive Divisors
If
n=p1a1ββp2a2βββ―pkakββ
then the number of positive divisors of n is
D(n)=(a1β+1)(a2β+1)β―(akβ+1)
Why This Works
A divisor of
n has the form
p1b1ββp2b2βββ―pkbkββ
where each exponent satisfies
0β€biββ€aiβ
So:
- b1β has a1β+1 choices
- b2β has a2β+1 choices
- bkβ has akβ+1 choices
By the multiplication principle,
D(n)=(a1β+1)(a2β+1)β―(akβ+1)
---
Quick Examples
Example 1
Find
D(72).
Prime factorization:
72=23β
32
Hence
D(72)=(3+1)(2+1)=4β
3=12
So
D(72)=12β.
---
Example 2
Find
D(360).
Prime factorization:
360=23β
32β
5
Hence
D(360)=(3+1)(2+1)(1+1)=4β
3β
2=24
So
D(360)=24β.
---
Standard Patterns
π
Very Important Cases
βΊn is prime
βΊn=p2 for some prime
p
βΊn=p3 or
n=pq with distinct primes
p,q
βΊn=p4
βΊn=p5 or
n=p2q with distinct primes
p,q
These classifications come directly from factorizing the divisor count.
---
Why the D(n)=6 Pattern Matters
β
Factorizing the Divisor Count
To get
D(n)=6
we need
(a1β+1)(a2β+1)β―=6
Now 6 factors as:
So the exponent patterns are:
- a1β=5, giving n=p5
- a1β=2,Β a2β=1, giving n=p2q with distinct primes
This is the main pattern behind the PYQ type.
---
Counting Under a Bound
π‘
How to Count Numbers with Fixed Divisor Count
To count integers with a fixed value of D(n) and with a restriction like nβ€N:
- classify all possible prime-exponent forms
- check each form separately
- count all valid prime choices under the bound
This is the safest approach.
---
Example of Bounded Counting
Example 3
Count positive integers
nβ€50 such that
D(n)=6.
From the classification,
n=p5orn=p2q
Case 1: n=p5
We need
p5β€50
Only
25=32
works.
So this gives
1 number.
Case 2: n=p2q
We need distinct primes
p,q with
p2qβ€50
- If p=2, then 4qβ€50, so qβ€12.5.
Valid primes
qξ =2 are
3,5,7,11
giving
4 numbers.
- If p=3, then 9qβ€50, so qβ€5.5.
Valid primes
qξ =3 are
2,5
giving
2 numbers.
- If p=5, then 25qβ€50, so qβ€2.
Valid prime is
2
giving
1 number.
- If pβ₯7, then p2>50, impossible.
So total from Case 2 is
4+2+1=7
Hence total count is
1+7=8
Therefore there are
8β such integers.
---
Odd Number of Divisors
β
A Very Important Property
The number of positive divisors of n is odd if and only if n is a perfect square.
Why?
Usually divisors come in pairs:
danddnβ
These are distinct unless
d2=n
So an unpaired divisor occurs exactly when
n is a square.
Equivalently, from the formula
D(n)=(a1β+1)β―(akβ+1),
the product is odd iff each
(aiβ+1) is odd, i.e. each
aiβ is even, which means
n is a perfect square.
---
Useful Consequences
π
Special Consequences
- A prime square has exactly 3 divisors.
- A number has exactly 4 divisors iff it is either:
- a cube of a prime, or
- a product of two distinct primes.
- Perfect squares have odd divisor count.
- Non-squares have even divisor count.
---
Common Mistakes
β οΈ
Avoid These Errors
- β Writing the divisor-count formula without prime factorization
β
First factor the number properly.
- β Forgetting that the primes in p2q must be distinct
β
Otherwise it becomes a prime power.
- β Missing some factorization patterns of the divisor count
β
Factor the target number carefully.
- β Double counting when counting under a bound
β
Separate cases cleanly.
- β Confusing number of divisors with sum of divisors
β
Here
D(n) means only the count.
---
CMI Strategy
π‘
Fast Exam Strategy
- Write the prime factorization immediately.
- Convert divisor count into exponent-count product.
- If the problem asks for D(n)=k, factor k first.
- For a bounded counting problem, classify the possible forms before plugging in numbers.
- Use squares/non-squares logic quickly when divisor parity is involved.
---
Practice Questions
:::question type="MCQ" question="If
n=24β
32, then
D(n) equals" options=["
10","
12","
15","
18"] answer="C" hint="Use the divisor-count formula." solution="We have
D(n)=(4+1)(2+1)=5β
3=15
So the correct option is
Cβ."
:::
:::question type="NAT" question="Find
D(48)." answer="10" hint="Factorize
48 first." solution="Prime factorization:
48=24β
3
Hence
D(48)=(4+1)(1+1)=5β
2=10
Therefore the answer is
10β."
:::
:::question type="MSQ" question="Which of the following forms can give exactly
6 divisors?" options=["
p5","
p2q with distinct primes
p,q","
pq with distinct primes
p,q","
p3q with distinct primes
p,q"] answer="A,B" hint="Factor the number
6." solution="If
D(n)=6, then the exponent-pattern product must equal
6.
- p5 gives 6 divisors.
- p2q gives (2+1)(1+1)=6 divisors.
- pq gives (1+1)(1+1)=4 divisors.
- p3q gives (3+1)(1+1)=8 divisors.
Hence the correct answer is
A,Bβ."
:::
:::question type="SUB" question="Prove that a positive integer has an odd number of positive divisors if and only if it is a perfect square." answer="It is odd exactly for perfect squares." hint="Use divisor pairs or prime factorization." solution="Let
n be a positive integer.
Usually divisors of
n come in pairs:
danddnβ
These are distinct unless
d=dnβ,
that is,
d2=n.
So an unpaired divisor occurs exactly when
n is a perfect square. Hence the number of divisors is odd exactly for perfect squares.
Equivalently, if
n=p1a1βββ―pkakββ,
then
D(n)=(a1β+1)β―(akβ+1)
is odd iff every factor
(aiβ+1) is odd, i.e. every
aiβ is even, which is exactly the condition that
n is a perfect square.
Therefore, a positive integer has an odd number of positive divisors if and only if it is a perfect square."
:::
---
Summary
β
Key Takeaways for CMI
- If n=p1a1βββ―pkakββ, then D(n)=(a1β+1)β―(akβ+1).
- To solve D(n)=k, factor k and translate it into exponent patterns.
- Numbers with 6 divisors are exactly of the form p5 or p2q.
- Perfect squares are exactly the integers with odd divisor count.
- In bounded counting problems, case-splitting by prime-exponent form is the key method.
---
π‘
Next Up
Proceeding to Sum of divisors.
---
Part 2: Sum of divisors
Sum of Divisors
Overview
The sum-of-divisors function is one of the most important arithmetic functions in elementary number theory. It converts the divisor structure of an integer into an additive quantity. In exam-level problems, it is usually used to compute divisor sums, compare numbers, classify perfect numbers, or solve equations involving divisors.
---
Learning Objectives
β
By the End of This Topic
After studying this topic, you will be able to:
- Define and compute the sum-of-divisors function Ο(n).
- Use prime factorisation to evaluate Ο(n) quickly.
- Apply multiplicativity when factors are coprime.
- Solve basic divisor-sum equations.
- Recognize perfect, deficient, and abundant number patterns.
---
Core Idea
π
Sum-of-divisors function
For a positive integer n, the sum-of-divisors function is
Ο(n)=βdβ£nβd
that is, the sum of all positive divisors of n.
Examples:
- Ο(1)=1
- divisors of 6 are 1,2,3,6, so
Ο(6)=1+2+3+6=12
---
Prime Power Formula
π
For a prime power
If p is prime and aβ₯0, then
Ο(pa)=1+p+p2+β―+pa
So
Ο(pa)=pβ1pa+1β1β
This is the main computation formula.
---
Multiplicativity
π
When factors are coprime
If gcd(m,n)=1, then
Ο(mn)=Ο(m)Ο(n)
So if
n=p1a1ββp2a2βββ―pkakββ
then
Ο(n)=βi=1kβpiββ1piaiβ+1ββ1β
:::
---
Why Prime Factorisation Matters
β
Fast Route
To compute Ο(n):
- apply the prime-power formula to each prime
This is much faster than listing divisors one by one for large
n.
---
Examples
Example 1
Find
Ο(12).
Prime factorisation:
12=22β
3
So
Ο(12)=Ο(22)Ο(3)
=(1+2+4)(1+3)=7β
4=28
Hence
Ο(12)=28β
---
Example 2
Find
Ο(18).
Prime factorisation:
18=2β
32
So
Ο(18)=Ο(2)Ο(32)
=(1+2)(1+3+9)=3β
13=39
Hence
Ο(18)=39β
---
Proper Divisors and Perfect Numbers
π
Proper divisor sum
The sum of proper divisors of n is
Ο(n)βn
A positive integer
n is:
- perfect if Ο(n)=2n
- deficient if Ο(n)<2n
- abundant if Ο(n)>2n
:::
Example:
- Ο(6)=12=2β
6, so 6 is perfect.
---
Odd and Even Observations
β
Useful Pattern
If n is odd, then all its divisors are odd, so Ο(n) is the sum of odd numbers.
Parity questions involving Ο(n) often reduce to how many odd divisors there are.
---
Common Patterns
π
What Gets Asked Often
- compute Ο(n) from prime factorisation
- solve equations such as Ο(n)=k
- find numbers with a given proper-divisor sum
- classify numbers as perfect/abundant/deficient
- combine divisor counting with divisor summing
---
Common Mistakes
β οΈ
Avoid These Errors
- β confusing the number-of-divisors function with the sum-of-divisors function
- β forgetting that multiplicativity needs coprime factors
- β stopping at the prime-power sum without multiplying across all prime factors
- β forgetting whether the question asks for all divisors or proper divisors
- β writing Ο(m+n)=Ο(m)+Ο(n), which is false in general
---
CMI Strategy
π‘
How to Solve Smart
- Use the geometric-series formula on each prime power.
- Multiply only after checking coprimeness of the factors.
- For perfect-number style questions, compare Ο(n) with 2n.
- Be explicit whether you are summing all divisors or proper divisors.
---
Practice Questions
:::question type="MCQ" question="The value of
Ο(12) is" options=["
24","
26","
28","
30"] answer="C" hint="Use prime factorisation." solution="We have
12=22β
3
So
Ο(12)=Ο(22)Ο(3)=(1+2+4)(1+3)=7β
4=28
Hence the correct option is
Cβ."
:::
:::question type="NAT" question="Find
Ο(18)." answer="39" hint="Use
18=2β
32." solution="Since
18=2β
32
we get
Ο(18)=Ο(2)Ο(32)
=(1+2)(1+3+9)=3β
13=39
Therefore the answer is
39β."
:::
:::question type="MSQ" question="Which of the following statements are true?" options=["
Ο(p)=1+p for a prime
p","If
gcd(m,n)=1, then
Ο(mn)=Ο(m)Ο(n)","The sum of proper divisors of
n is
Ο(n)βn","
Ο(m+n)=Ο(m)+Ο(n) for all positive integers
m,n"] answer="A,B,C" hint="Use the definition and the standard formula." solution="1. True. The divisors of a prime
p are
1 and
p.
True. This is the multiplicative property of Ο for coprime integers.
True. Proper divisors exclude n itself.
False. The sum-of-divisors function is not additive in this way.
Hence the correct answer is
A,B,Cβ."
:::
:::question type="SUB" question="Show that if
n=p2 where
p is prime, then
Ο(n)=1+p+p2." answer="
Ο(p2)=1+p+p2" hint="List the divisors of
p2." solution="If
n=p2 where
p is prime, then the positive divisors of
n are
1,Β p,Β p2
So by definition,
Ο(n)=1+p+p2
Hence
Ο(p2)=1+p+p2β"
:::
---
Summary
β
Key Takeaways for CMI
- Ο(n) is the sum of all positive divisors of n.
- Prime factorisation is the main computation tool.
- The prime-power formula and multiplicativity are the two core facts.
- Proper-divisor sums are Ο(n)βn.
- Many divisor-based equations become easy after factorising first.
---
π‘
Next Up
Proceeding to Even and odd divisors.
---
Part 3: Even and odd divisors
Even and Odd Divisors
Overview
Questions about even and odd divisors are really questions about
prime factorisation, especially the role of the factor
2. Once a number is written in the form
n=2aβ
m
where
m is odd, the entire problem becomes transparent: odd divisors come from the odd part only, while even divisors are the divisors that use at least one factor of
2.
---
Learning Objectives
β
By the End of This Topic
After studying this topic, you will be able to:
- Count the total number of positive divisors of an integer from its prime factorisation.
- Separate odd and even divisors using the exponent of 2.
- Count odd and even divisors of powers such as nk.
- Decide quickly whether all divisors, exactly half the divisors, or some other number are even.
- Avoid common mistakes involving parity and divisor formulas.
---
Prime Factorisation Is the Main Tool
π
Prime-power form
Every positive integer n can be written uniquely as
n=p1a1ββp2a2βββ―prarββ
where p1β,p2β,β¦,prβ are distinct primes and a1β,a2β,β¦,arβ are positive integers.
A positive divisor of
n must be of the form
d=p1b1ββp2b2βββ―prbrββ
where each exponent satisfies
0β€biββ€aiβ
:::
So divisor counting is really exponent-choice counting.
---
Total Number of Positive Divisors
π
Divisor Count Formula
If
n=p1a1ββp2a2βββ―prarββ
then the number of positive divisors of n is
(a1β+1)(a2β+1)β―(arβ+1)
Reason:
- exponent of p1β can be chosen in a1β+1 ways
- exponent of p2β can be chosen in a2β+1 ways
Multiply the choices.
---
Separating the Even and Odd Parts
π
Write the number as 2aβ
m
For parity-based divisor questions, always write
n=2aβ
m
where:
Then:
- the factor 2a controls whether a divisor is even or odd
- the odd part m controls the odd divisor structure
---
Number of Odd Divisors
π
Odd Divisors
Suppose
n=2aβ
p1b1ββp2b2βββ―prbrββ
where all piβ are odd primes.
A divisor of n is odd if and only if it uses exponent 0 on the prime 2.
So the number of odd positive divisors is
(b1β+1)(b2β+1)β―(brβ+1)
In words:
ignore the factor of 2 completely and count divisors of the odd part.
---
Number of Even Divisors
π
Even Divisors
The number of even positive divisors is
(totalΒ divisors)β(oddΒ divisors)
If
n=2aβ
p1b1ββp2b2βββ―prbrββ
then
totalΒ divisors=(a+1)(b1β+1)β―(brβ+1)
and
oddΒ divisors=(b1β+1)β―(brβ+1)
So
evenΒ divisors<br>=<br>a(b1β+1)(b2β+1)β―(brβ+1)
This is the main formula for the topic.
---
Why the Even-Divisor Formula Works
β
Exponent of 2 Must Be Positive
A divisor is even exactly when the exponent chosen for the prime 2 is one of
1,2,β¦,a
That gives a choices for the exponent of 2.
Each odd prime exponent can still be chosen freely.
So the number of even divisors is
a(b1β+1)(b2β+1)β―(brβ+1)
This direct counting argument is often cleaner than subtracting odd divisors from total divisors.
---
Powers of a Number
If
n=p1a1ββp2a2βββ―prarββ
then
nk=p1ka1ββp2ka2βββ―prkarββ
So divisor counts for nk are handled by multiplying every exponent by k first.
This is extremely common in exam questions.
---
Special Cases
If n is odd, then a=0 in the decomposition
n=2aβ
m
So:
- every positive divisor of n is odd
- the number of even divisors is 0
π
If n is a power of 2
If
n=2a
then:
- total positive divisors: a+1
- odd positive divisors: 1
- even positive divisors: a
---
Minimal Worked Examples
Example 1
Find the number of even positive divisors of
72=23β
32
Total divisors:
(3+1)(2+1)=12
Odd divisors:
20β
3j,j=0,1,2
So there are
2+1=3
odd divisors.
Hence even divisors:
12β3=9
Or directly:
3(2+1)=9
---
Example 2
Find the number of odd positive divisors of
180=22β
32β
5
Ignore the factor
22.
So odd divisors are divisors of
32β
5
Hence count:
(2+1)(1+1)=6
---
Example 3
Find the number of even positive divisors of
(23β
32)2=26β
34
Even divisor count:
6(4+1)=30
---
Standard Patterns
π
High-Value Patterns
If
n=2aβ
m
with m odd, and
m=p1b1ββp2b2βββ―prbrββ
then:
(a+1)(b1β+1)β―(brβ+1)
(b1β+1)β―(brβ+1)
a(b1β+1)β―(brβ+1)
---
Common Mistakes
β οΈ
Avoid These Errors
- β Counting odd divisors using the factor of 2
β
Odd divisors must use exponent
0 on the prime
2
- β Forgetting to square the exponents when the number is n2 or nk
β
First rewrite
nk in prime-power form
- β Using total divisors as the number of even divisors
β
Even divisors are only those with positive exponent of
2
- β Forgetting that an odd number has no even divisors
β
If
2 does not divide
n, then the even divisor count is
0
---
CMI Strategy
π‘
How to Attack These Problems
- Prime-factorise the number completely.
- Separate the power of 2 from the odd part.
- Decide whether the question asks for total, odd, or even divisors.
- If the number is a power like n2 or n3, multiply exponents first.
- Use direct exponent-choice counting whenever possible.
---
Practice Questions
:::question type="MCQ" question="If
n=24β
32, then the number of odd positive divisors of
n is" options=["
5","
3","
10","
15"] answer="B" hint="Ignore the factor of
2 when counting odd divisors." solution="Odd divisors come only from the odd part
32. So the number of odd positive divisors is
2+1=3
Hence the correct option is
Bβ."
:::
:::question type="NAT" question="Find the number of even positive divisors of
72." answer="9" hint="Write
72=23β
32." solution="We have
72=23β
32
Even divisors require the exponent of
2 to be chosen from
1,2,3, so there are
3 choices.
For the prime
3, the exponent can be chosen in
2+1=3 ways.
Hence the number of even positive divisors is
3β
3=9
Therefore the answer is
9β."
:::
:::question type="MSQ" question="Which of the following statements are true?" options=["If
n is odd, then every positive divisor of
n is odd","If
n=2am with
m odd, then the number of odd divisors of
n equals the number of divisors of
m","If
n=2am with
m odd, then the number of even divisors of
n is always equal to the number of odd divisors of
n","If
n=2ap1b1βββ―prbrββ, then the number of even divisors is
a(b1β+1)β―(brβ+1)"] answer="A,B,D" hint="Compare the exponent choices for the prime
2." solution="1. True.
True.
False. This happens only in special cases such as a=1.
True.
Hence the correct answer is
A,B,Dβ."
:::
:::question type="SUB" question="Let
n=2ap1b1ββp2b2βββ―prbrββ, where
p1β,β¦,prβ are odd primes. Show that the number of even positive divisors of
n is
a(b1β+1)(b2β+1)β―(brβ+1)." answer="
a(b1β+1)(b2β+1)β―(brβ+1)" hint="Count the exponent choices directly." solution="A positive divisor of
n has the form
d=2ep1c1ββp2c2βββ―prcrββ
where
0β€eβ€a
and
0β€ciββ€biβ
For the divisor to be even, we need
eβ₯1
So the exponent
e of
2 can be chosen in exactly
a
ways, namely
1,2,β¦,a
For each odd prime
piβ, the exponent
ciβ can be chosen in
biβ+1
ways.
By the multiplication principle, the number of even positive divisors is
a(b1β+1)(b2β+1)β―(brβ+1)
Hence the required result is
a(b1β+1)(b2β+1)β―(brβ+1)β."
:::
---
Summary
β
Key Takeaways for CMI
- Prime factorisation is the starting point for every divisor-counting problem.
- Odd divisors come from the odd part only.
- Even divisors are those with a positive exponent of 2.
- If n=2am with m odd, then even divisor count is a times the divisor count of m.
- For nk, multiply all exponents by k first.
- Most errors come from forgetting to isolate the factor of 2.
---
π‘
Next Up
Proceeding to Ordered factor pairs.
---
Part 4: Ordered factor pairs
Ordered Factor Pairs
Overview
This topic sits at the intersection of factorisation, parity, and counting divisors. In many exam problems, an equation such as
a2βb2=N
is not solved directly. Instead, it is rewritten as a product
(aβb)(a+b)=N
and the problem becomes one of counting suitable factor pairs. The real skill is not just factoring, but understanding which factor pairs actually produce valid positive integers.
---
Learning Objectives
β
By the End of This Topic
After studying this topic, you will be able to:
- Convert difference-of-squares equations into factor-pair problems.
- Use parity conditions to decide which factor pairs are valid.
- Count ordered positive integer solutions systematically.
- Distinguish between ordered and unordered factor pairs.
- Use divisor-counting formulas in solution-count problems.
---
Core Definitions
π
Factor and Ordered Factor Pair
A positive integer d is a factor of a positive integer n if there exists a positive integer q such that
n=dq
An ordered factor pair of n is an ordered pair (u,v) of positive integers such that
uv=n
Order matters:
- (2,12) and (12,2) are different ordered factor pairs of 24
- but they correspond to the same unordered factor pair
---
The Key Identity
π
Difference of Squares
For all real numbers a,b,
a2βb2=(aβb)(a+b)
This identity is the main bridge between quadratic-looking equations and divisor-counting problems.
---
Standard Conversion
π
Convert to Factor Pairs
To solve
a2βb2=N
write
(aβb)(a+b)=N
Now set
u=aβb,v=a+b
Then
uv=N
If we know
u and
v, then
a=2u+vβ,b=2vβuβ
:::
So every valid solution comes from a factor pair
(u,v) satisfying extra conditions.
---
Validity Conditions
β
When Does a Factor Pair Give Integers?
For
a=2u+vβ,b=2vβuβ
to be positive integers, we need:
- u<v so that b>0
- u and v have the same parity, so that u+v and vβu are even
This third condition is crucial.
---
Parity Logic
π
Same-Parity Requirement
Since
u=aβb,v=a+b
the numbers u and v always have the same parity:
Therefore:
- if N is odd, then both u and v must be odd
- if N is divisible by 4, then both may be even
- if Nβ‘2(mod4), then there are no integer solutions
---
Important Solvability Criterion
β
When is N a Difference of Two Squares?
A positive integer N can be written as
N=a2βb2
for integers a>bβ₯0 if and only if
Nξ β‘2(mod4)
So:
- numbers of the form 4k+2 do not work
:::
---
Counting Solutions: Odd Case
If N is odd, then all its positive factor pairs are odd-odd, so parity causes no extra restriction.
Thus the number of positive integer solutions to
a2βb2=N
equals the number of positive factor pairs (u,v) of N with
u<v
If
Ο(N) is the number of positive divisors of
N, then:
- if N is not a perfect square, the number of such pairs is
2Ο(N)β
- if N is a perfect square, the number of such pairs is
2Ο(N)β1β
because the middle pair
u=v gives
b=0, not a positive solution.
:::
---
Counting Solutions: Multiple of 4 Case
If
a2βb2=4M
then
(aβb)(a+b)=4M
Since aβb and a+b must have the same parity, the valid pairs here are even-even. So write
aβb=2r,a+b=2s
Then
rs=M
Hence the number of positive integer solutions to
a2βb2=4M
equals the number of positive factor pairs
(r,s) of
M with
r<s
:::
So the problem reduces to counting strict factor pairs of
M.
:::
---
Divisor Counting
π
Divisor Function
If
n=p1Ξ±1ββp2Ξ±2βββ―pkΞ±kββ
is the prime factorisation of n, then the number of positive divisors of n is
Ο(n)=(Ξ±1β+1)(Ξ±2β+1)β―(Ξ±kβ+1)
This is extremely useful when counting factor pairs.
---
Minimal Worked Examples
Example 1
Count the positive integer solutions of
a2βb2=45
Factor:
(aβb)(a+b)=45
Since
45 is odd, every positive factor pair is odd-odd.
The positive factor pairs with smaller factor first are
(1,45),Β (3,15),Β (5,9)
So there are
3β solutions.
---
Example 2
Count the positive integer solutions of
a2βb2=144
Since
144=4β
36, write
aβb=2r,a+b=2s
Then
rs=36
Now count factor pairs of
36 with
r<s:
(1,36),Β (2,18),Β (3,12),Β (4,9)
The pair
(6,6) is excluded because it would give
b=0.
So there are
4β positive solutions.
---
PYQ-Type Insight
β
What the PYQ Is Really Testing
The PYQ is not just about difference of squares. It is testing whether you can do all of the following in one chain:
- factor the expression correctly
- convert to a factor-pair problem
- exclude the case giving b=0
- count the valid strict factor pairs efficiently using prime factorisation
This topic is therefore much more about controlled counting than about raw algebra.
:::
---
Common Mistakes
β οΈ
Avoid These Errors
- β Counting all factor pairs of N without checking parity
β
aβb and
a+b must have the same parity
β
That gives
b=0, not a positive solution
- β Forgetting that ordered factor pairs are different from ordered (a,b) pairs
β
Once you impose
u<v, each valid factor pair gives exactly one positive pair
(a,b)
- β Forgetting the impossible case Nβ‘2(mod4)
β
Then no integer solution exists
---
CMI Strategy
π‘
How to Attack These Problems
- Rewrite as (aβb)(a+b)=N.
- Set u=aβb,Β v=a+b.
a=2u+vβ,Β b=2vβuβ.
-
uv=N
-
u<v
- same parity
- Count strict valid factor pairs using divisor methods.
---
Practice Questions
:::question type="MCQ" question="To count positive integer solutions of
a2βb2=N, the most useful first step is to write" options=["
a2+b2=N","
(aβb)(a+b)=N","
(a+b)2=N","
ab=N"] answer="B" hint="Use the difference-of-squares identity." solution="The identity
a2βb2=(aβb)(a+b)
converts the problem into a factor-pair problem. Hence the correct option is
Bβ."
:::
:::question type="NAT" question="How many positive integer pairs
(a,b) satisfy
a2βb2=45?" answer="3" hint="Count valid strict factor pairs of
45." solution="We have
(aβb)(a+b)=45
Since
45 is odd, all positive factor pairs are valid for parity. The strict factor pairs are
(1,45),Β (3,15),Β (5,9)
So there are
3β positive integer pairs
(a,b)."
:::
:::question type="MSQ" question="Which of the following are true?" options=["If
Nβ‘2(mod4), then
N cannot be written as
a2βb2 with integers
a,b","If
a2βb2=N, then
aβb and
a+b have the same parity","If
N is odd, then every positive factor pair of
N automatically has the same parity","If
u=aβb and
v=a+b, then
a=2uβvβ"] answer="A,B,C" hint="Use parity and the reconstruction formulas carefully." solution="1. True.
True.
True, because factors of an odd number are odd.
False. The correct formula is
a=2u+vβ
Hence the correct answer is
A,B,Cβ."
:::
:::question type="SUB" question="Show that no integer of the form
4k+2 can be written as
a2βb2 for integers
a,b." answer="Use parity of
aβb and
a+b." hint="Write
a2βb2=(aβb)(a+b)." solution="Suppose
a2βb2=(aβb)(a+b)
Now
aβb and
a+b always have the same parity.
So there are only two possibilities:
both are odd, in which case their product is odd
both are even, in which case their product is divisible by 4
Therefore
a2βb2 can be either odd or divisible by
4, but it can never be congruent to
2 modulo
4.
Hence no integer of the form
4k+2β can be expressed as
a2βb2."
:::
---
Summary
β
Key Takeaways for CMI
- The key identity is a2βb2=(aβb)(a+b).
- Valid factor pairs must satisfy same-parity and strict-inequality conditions.
- Numbers congruent to 2 modulo 4 are impossible as differences of two squares.
- Counting solutions is really counting strict valid factor pairs.
- Divisor-count formulas make large problems manageable.
Chapter Summary
β
Divisor-based problems β Key Points
The fundamental approach to divisor problems relies on the prime factorization of an integer n=p1a1ββp2a2βββ―pkakββ.
The number of divisors, Ο(n) (or d(n)), is given by the product of one more than each exponent: Ο(n)=(a1β+1)(a2β+1)β―(akβ+1).
The sum of divisors, Ο(n), is calculated as Ο(n)=βi=1kβ(piββ1piaiβ+1ββ1β).
Both Ο(n) and Ο(n) are multiplicative functions, meaning if gcd(m,n)=1, then f(mn)=f(m)f(n), simplifying calculations for composite numbers.
The parity of the number of divisors Ο(n) is odd if and only if n is a perfect square.
The number of odd divisors depends solely on the odd prime factors of n, while the number of even divisors is linked to the exponent of 2 in n's prime factorization.
* The number of ordered factor pairs (x,y) such that xy=n is precisely Ο(n).
Chapter Review Questions
:::question type="MCQ" question="Let n be an integer such that Ο(n)=6 and Ο(n)=28. What is the value of n?" options=["8","12","18","24"] answer="12" hint="Consider n to be of the form p5 or p12βp21β. Test the sum of divisors for each case." solution="Given Ο(n)=6, n must be of the form p5 or p12βp21β.
Case 1: n=p5.
Ο(n)=pβ1p6β1β=28.
If p=2, Ο(25)=2β126β1β=63ξ =28.
If p=3, Ο(35)=3β136β1β=2728β=364ξ =28. No prime p satisfies this.
Case 2: n=p12βp21β.
Ο(n)=(p1ββ1p13ββ1β)(p2ββ1p22ββ1β)=(p12β+p1β+1)(p2β+1)=28.
Since 28 is a small number, p1β and p2β must be small primes.
Try p1β=2. Then (22+2+1)(p2β+1)=7(p2β+1)=28.
p2β+1=4βΉp2β=3.
So n=22β
31=4β
3=12.
Let's verify: Ο(12)=(2+1)(1+1)=3β
2=6.
Ο(12)=(22+2+1)(3+1)=7β
4=28.
Both conditions are met. The value of n is 12."
:::
:::question type="NAT" question="How many positive integers less than 100 have exactly 3 odd divisors?" answer="8" hint="A number has exactly 3 odd divisors if its odd part is the square of an odd prime. Consider numbers of the form 2kβ
p2 where p is an odd prime." solution="Let n be a positive integer. We can write n=2kβ
m, where m is an odd integer. The divisors of n are of the form 2aβ
d, where 0β€aβ€k and d is a divisor of m.
The odd divisors of n are precisely the divisors of m.
We are given that n has exactly 3 odd divisors, so Ο(m)=3.
For Ο(m)=3, m must be the square of a prime number. Since m is odd, m=p2 for some odd prime p.
We need to find numbers n<100 of the form 2kβ
p2.
Possible odd primes p:
If p=3, then m=32=9. k=0:n=9<100 k=1:n=2β
9=18<100 k=2:n=4β
9=36<100 k=3:n=8β
9=72<100 k=4:n=16β
9=144ξ <100 (4 numbers)
If p=5, then m=52=25. k=0:n=25<100 k=1:n=2β
25=50<100 k=2:n=4β
25=100ξ <100 (The question asks for numbers
less than 100)
(2 numbers)
If p=7, then m=72=49. k=0:n=49<100 k=1:n=2β
49=98<100 k=2:n=4β
49=196ξ <100 (2 numbers)
If pβ₯11, then p2β₯121ξ <100. So no more cases.
Total numbers: 4+2+2=8.
The numbers are: 9, 18, 36, 72, 25, 50, 49, 98."
:::
:::question type="MCQ" question="Which of the following numbers has an odd number of ordered factor pairs?" options=["10","12","18","25"] answer="25" hint="The number of ordered factor pairs of an integer n is Ο(n). Recall when Ο(n) is odd." solution="The number of ordered factor pairs (x,y) such that xy=n is equal to Ο(n).
We need to find which of the given numbers has an odd value for Ο(n).
It is a known property that Ο(n) is odd if and only if n is a perfect square.
Let's check the options:
* n=10=21β
51. Ο(10)=(1+1)(1+1)=2β
2=4 (even).
* n=12=22β
31. Ο(12)=(2+1)(1+1)=3β
2=6 (even).
* n=18=21β
32. Ο(18)=(1+1)(2+1)=2β
3=6 (even).
* n=25=52. Ο(25)=(2+1)=3 (odd).
Since 25 is a perfect square, it has an odd number of ordered factor pairs (which are (1,25), (5,5), (25,1))."
:::
What's Next?
π‘
Continue Your CMI Journey
Having established a strong foundation in divisor-based problems, your journey into Number Theory can naturally progress to other related concepts. Consider exploring further properties of Multiplicative Functions, including Euler's totient function Ο(n), which shares many structural similarities with Ο(n) and Ο(n). This will deepen your understanding of how number-theoretic functions behave. Additionally, the concept of Perfect Numbers is directly linked to the sum of divisors Ο(n), offering a fascinating application of these principles.