Sub topic 9
Why Trailing Zeros Depend on the Factors 2 and 5
Assume you know prime factorisation, laws of exponents, and how to count factors in a product. In this chapter, we will find trailing zeros without calculating the complete number.
A trailing zero is a zero at the right end of a number. For example, 4,500 has two trailing zeros. Each trailing zero represents one factor of 10:
\[ 10=2\times5 \]
Therefore, a number has a trailing zero whenever its prime factorisation contains both a factor 2 and a factor 5.
The smaller exponent controls the answer
Suppose a number contains \(a\) factors of 2 and \(b\) factors of 5. The number of complete pairs \((2,5)\) is the smaller of \(a\) and \(b\):
\[ \text{trailing zeros}=\min(a,b) \]
The notation \(v_p(N)\) means the exponent of the prime \(p\) in the prime factorisation of \(N\). Thus,
\[ \text{trailing zeros of }N=\min(v2(N),v5(N)) \]
For example:
\[ 1200=12\times100=(2^2\times3)(2^2\times5^2) \]
So,
\[ 1200=2^4\times3\times5^2 \]
There are four factors of 2 and two factors of 5. Only two pairs can form 10:
\[ \min(4,2)=2 \]
Thus, 1200 has two trailing zeros. The extra two factors of 2 cannot create more zeros because no factors of 5 remain.
| Number | Factors of 2 | Factors of 5 | Trailing zeros |
|---|---|---|---|
| \(1200=2^4\cdot3\cdot5^2\) | 4 | 2 | 2 |
Counting factors in products
When numbers are multiplied, their prime exponents add:
\[ vp(AB)=vp(A)+v_p(B) \]
Consider:
\[ 75\times64 \]
The factorisations are:
\[ 75=3\times5^2,\qquad 64=2^6 \]
Therefore,
\[ 75\times64=2^6\times3\times5^2 \]
There are six factors of 2 and two factors of 5, so the product has:
\[ \min(6,2)=2 \]
trailing zeros.
For a power, the exponents are multiplied:
\[ vp(A^k)=k\,vp(A) \]
For example:
\[ 40^3=(2^3\times5)^3=2^9\times5^3 \]
The number has nine factors of 2 and three factors of 5. Hence, \(40^3\) has three trailing zeros.
A reliable method
For a product or power:
- Prime-factor the relevant numbers.
- Count the total factors of 2.
- Count the total factors of 5.
- Take the smaller count.
You usually do not need to factor primes other than 2 and 5. Factors such as 3, 7, or 11 do not directly create a factor of 10.
Visual model
Checking your answer
A quick check is to identify the limiting prime. If there are more factors of 2 than factors of 5, the factor 5 count determines the answer. If there are more factors of 5, the factor 2 count determines it.
For instance, \(2^8\times5^3\times7\) has only three complete pairs. The factor 7 has no effect, so the answer is 3.
Exercise
How many trailing zeros does \(2^7\times3^2\times5^4\) have?
Show answer
It has \(\min(7,4)=4\) trailing zeros. Four pairs of 2 and 5 form four factors of 10, with three factors of 2 left over.