Sub topic 7
Factor Pairs, Perfect Squares and Odd Factor Counts
Prerequisites and the key idea
Assume you can multiply integers, use exponent notation, and write a number as a prime factorization. A factor pair of a positive integer \(n\) is a pair of positive integers whose product is \(n\). For example, the factor pairs of 36 are:
\[ (1,36),\ (2,18),\ (3,12),\ (4,9),\ (6,6) \]
Each pair gives two factors, except when both numbers are equal. The pair \((6,6)\) is the middle pair because \(6^2=36\).
A perfect square is an integer that can be written as \(k^2\), where \(k\) is an integer. Examples include \(1,4,9,16,\) and \(36\).
Why perfect squares have an odd number of factors
Normally, factors occur in pairs:
\[ 1 \times 36,\quad 2 \times 18,\quad 3 \times 12,\quad 4 \times 9 \]
For a perfect square, one factor pair contains the same number twice:
\[ 6 \times 6=36 \]
That single factor does not have a different partner. Therefore, every non-square has an even number of factors, while every perfect square has an odd number of factors.
This gives a useful test:
- Odd number of positive factors \(\Rightarrow\) the number is a perfect square.
- Perfect square \(\Rightarrow\) the number has an odd number of positive factors.
The factor \(1\) is included. Thus, 1 has one positive factor and is a perfect square.
Using prime exponents
If
\[ n=p1^{e1}p2^{e2}\cdots pr^{er}, \]
then the number of positive factors is
\[ (e1+1)(e2+1)\cdots(e_r+1). \]
The number is a perfect square exactly when every prime exponent is even. For example:
\[ 144=2^4\times3^2 \]
Both exponents are even, so 144 is a perfect square. Its factor count is
\[ (4+1)(2+1)=15, \]
which is odd.
By contrast,
\[ 72=2^3\times3^2 \]
has an odd exponent, so it is not a square. Its factor count is
\[ (3+1)(2+1)=12, \]
which is even.
| Number | Prime factorization | Factor count | Square? |
|---|---|---|---|
| 36 | \(2^2\times3^2\) | 9 | Yes |
| 48 | \(2^4\times3\) | 10 | No |
| 100 | \(2^2\times5^2\) | 9 | Yes |
CAT traps and a fast method
Do not count only the distinct prime factors. For \(360=2^3\times3^2\times5\), the factor count is
\[ (3+1)(2+1)(1+1)=24, \]
not 3.
To find the number of factor pairs, use:
\[ \text{factor pairs}=\left\lceil\frac{\text{number of factors}}{2}\right\rceil. \]
A non-square with 24 factors has 12 pairs. A square with 25 factors has 13 pairs, with one pair repeated in the middle.
Exercise
Is 2025 a perfect square, and how many positive factors does it have?
Show answer
\(2025=3^4\times5^2\). All exponents are even, so it is a perfect square. Its factor count is \((4+1)(2+1)=15\).