In Mathematics, the number of factors and trailing zeroes in large numbers and factorials is a very important chapter for solving a wide range of problems.
Integers that can be multiplied together to produce the original number are called Factors of a number.
In other words, if you have a number n, then any integer d that divides n without leaving a remainder is called a factor of n.
The number of consecutive zeros at the end of the number is called the number of trailing zeros of a number.
Example: In 100,00 are the trailing zeroes of 100.
The prime factorization method is the most commonly used. In the Prime factorization method, we express the number as a product of prime factors.
In this chapter, we will also learn about the greatest common factor calculator and how to find the zeros of the function calculator.
Let's take a natural number n. We have to find its factors.
Using the Prime factorization method, we get N = $X^a × Y^b × Z^c$,
Where X, Y, and Z are prime numbers and a, b, and c are their respective exponents.
Let us solve an example taking N = 60
S No | Question | Answer | Concept/ Formula |
1. | Number of factors | 60 = 22 × 3 × 5 | Number of all factors of N = (a + 1) (b + 1) (c + 1) Here, a = 2, b = 1, c = 1 |
2. | The sum of all factors | 60 = 22 × 3 × 5 So, the sum of factors of 60 = $\frac{X^{a+1}-1}{X-1}×\frac{Y^{b+1}-1}{Y-1}×\frac{Z^{c+1}-1}{Z-1}=\frac{2^{2+1}-1}{2-1}×\frac{3^{1+1}-1}{3-1}×\frac{5^{1+1}-1}{5-1}=7×4×6=168$ | The Sum of all factors of N = $\frac{X^{a+1}-1}{X-1}+\frac{Y^{b+1}-1}{Y-1}+\frac{Z^{c+1}-1}{Z-1}$ Here, a = 2, b = 1, c = 1, X = 2, Y = 3, and Z = 5 |
3. | Number of even factors | 60 = 22 × 3 × 5 So, the number of even factors of 60 | Number of even factors of n = a (b + 1) (c + 1) Here, a = 2, b = 1, c = 1 (a is the power of 2 here) |
4. | Number of Odd Factors | 60 = 22 × 3 × 5 So, the number of odd factors of 60 | Number of odd factors of n = (b + 1) (c + 1) Here, b = 1, c = 1 (Ignoring the term 2^a) |
5. | Number of perfect square factors | 60 = 22 × 3 × 5 Here even powers in 22 are 0 and 2 i.e. 2 powers. even powers in 3 is 0 only i.e. 1 power. even powers in 5 is 0 only i.e. 1 power. So, the number of perfect square factors in 60 = 2 × 1 × 1 = 2 | After prime factorisation, check how many of the powers of prime factors are even. Count even powers in each term and multiply them all. |
6. | Number of perfect cube factors | 60 = 22 × 3 × 5 Here powers which is a multiple of 3 in 22 are 0 i.e. 1 power. powers which is a multiple of 3 in 3 is 0 only i.e. 1 power. powers which is a multiple of 3 in 5 is 0 only i.e. 1 power. So, the number of perfect cube factors in 60 = 1 × 1 × 1 = 1 | After prime factorization, check how many of the powers of prime factors are multiple of 3. Here the power of 1 is a multiple of 3. |
7. | Number of factors divided by 10 | 60 = 22 × 3 × 5 Here, 60 = 10 × 2 × 3 So, the number of factors divisible by 10 = (1 +1) (1+1) = 4. So, there are 4 factors of 60 which are divisible by 10. | After prime factorization, separate one 2 and one 5 from the factors as 2 × 5 = 10 Then check which factors are divisible by 10. |
8. | The sum of perfect square factors | 60 = 22 × 3 × 5 The sum of the perfect square factor of 60= (20 +22) × (30) × (50) = 5 × 1 × 1 = 5. | After prime factorization, check how many of the powers of prime factors are even. Then add them to find the sum of perfect square factors. |
9. | The sum of perfect cube factors | 60 = 22 × 3 × 5 The perfect cube factor of 22 is 20. The perfect cube factor of 5 is 50. | After prime factorization, check how many of the powers of prime factors are multiple of 3. Then add them to find the sum of perfect cube factors. |
10. | The sum of factors divided by 10 | 60 = 22 × 3 × 5 Here, 60 = 10 × 2 × 3 So, factors divisible by 10 are (10 × 20 ), (10 ×21 ), (10 ×30), (10 × 31) Their sum = [10 × [(20 + 21 ) ×(30 + 31]] = 120 | Divide the given number by 10. Do prime factorization of the quotient. Find the sum of all the factors of the quotient and then multiply it by 10 to get the answer. |
11. | The sum of even factors | 60 = 22 × 3 × 5 Divide 60 by 2 first, and we get 30. The sum of all the factors of 30 = (20 + 21) × (30 + 31) × (50 + 51) So, the sum of even factors of 60 is 144. | Divide the given number by 2. Do prime factorization of the quotient. Find the sum of all the factors of the quotient and then multiply it by 2 to get the answer. |
12 | The sum of odd factors | 60 = 22 × 3 × 5 After removing the term 22, | Remove the term in the form $2^n$ from the prime factorization of a given number. |
13. | Product of all the factors | 60 = 22 × 3 × 5 Total number of factors of 60 is 12, as we have seen above. So, the Product of factors of n = $60^{\frac{12}{2}}=60^6=46656000000$ | Product of factors of N = $N^{\frac{\text{Total number of factors}}{2}}$ |
The zeros at the end of a number are called the number of trailing zeros.
In the picture below, it is clearly explained what the zeros of a number are called in different places of a number.
If a number is divisible by 10, then it has trailing zeros. The highest power of 10 by which that number is completely divisible will be the number of trailing zeros in that number.
Example:
100 is divisible by 10, and the highest power of 10 by which 100 is completely divisible is 2.
So, 100 has 2 trailing zeros.
Let's take more complicated examples.
210 × 34 × 59 has how many trailing zeros?
CAT 2024: 20 Free Mock Test | 10 Year PYQs | 60 Day Study Material | Most Scoring Concepts
XAT 2025: Section-wise Preparation Tips | Sample Paper
Don't Miss: SNAP 2024 Sample Papers | NMAT 2024 Sample Papers | MAT 2024 Sample Papers
Answer:
First, we will equal the exponents of 2 and 5.
Then we will combine them to get the power of 10.
That will be our answer.
= 210 × 34 × 59
= 29 × 2 × 34 × 59
= 109 × 2 × 34
So, there are 9 trailing zeros.
We know that 2 × 5 = 10
There are more number 2 as a factor rather than 5 in a number.
So, we need to find the number of 5’s.
We know that each multiple of 5 gives at least one 5 as a factor.
Each factor of 25 gives at least 2 factors of 5.
Each factor of 125 gives at least 3 factors of 5.
Formula
The formula to fo find the number of trailing zeros in n!
= $[\frac{n}{5}]+[\frac{n}{25}]+[\frac{n}{125}]+........$
Where [ ] is the greatest integer function which will give the integer part only as a result.
Continue this formula until n < multiple of 5
Let’s take an example.
Q. Find the trailing zeros of 30!
As 30 < 125, this formula will continue till $\frac{n}{25}$, (rounding up to nearest integer)
$\frac{30}{5}+\frac{30}{25}=6+1=7$
Hence, the number of trailing zeros in 30! is 7.
Here is a list till factorial 16. We can check that formula on this factorial too to see if the formula is right or not.
Let's take 16!
Here 16 < 25
So, formula will only go till $\frac{n}{5}$, (rounding up to nearest integer)
$\frac{16}{5}=3$
Hence, there are 3 trailing zeros in 16!
So the formula is right.
Now, there will be numbers that don't have trailing zeros. Now we will discuss them.
Numbers that do not consist of factors of 5 will not have trailing zeros as 2 and 5 combined make zeros, which will not be possible with factors of 5.
Example: 1, 2, 4, 7, 12, etc.
Odd numbers do not consist of 2 as a factor. So, for any powers of odd numbers, there will be no trailing zeros.
Example: 1, 3, 5, 7, etc
Prime numbers that are neither 2 nor 5 do not have trailing zeros because they do not include both necessary factors (2 and 5).
Example: 3, 7, 11, 17, 19, etc.
Trailing zeroes in a number, when expressed in a given base, is determined by how many times the number can be divided by that base without leaving a remainder.
Let’s take an example to understand it better.
Suppose we have to find trailing zeros of 100! in the base of 50.
Prime factors of 50 = 2 × 5 × 5 = 21 × 52
Now, we have to how many times each prime factor appears in the factorial.
We will use the same process as how we use during finding factors of 5.
Factors of 2 in 100! = $\frac{100}{2}+\frac{100}{4}+\frac{100}{8}+\frac{100}{16}+\frac{100}{32}+\frac{100}{64}=50+25+12+6+3+1=97$ (rounding up to the nearest integer)
Factors of 5 in 100!
= $\frac{100}{5}+\frac{100}{25}=20+4=24$ (rounding up to the nearest integer)
For base 50, we need 2 factors of 5 for 1 factor of 2.
So, dividing the number of factors of 5 by 2, we get, $\frac{24}{2}=12$
Since we need 1 factor of 2 for every 52, 12 is the limiting factor here.
So, there are 12 trailing zeros in 100! base 50
The highest value of n if an can completely divide x, is determined by the smallest number of prime factors of a fit into the prime factors of x.
Let’s take an example to understand it step-by-step.
Suppose x = 400!
and a = 20
Now, we have to do prime factorization 20.
20 = 2 × 2 × 5 = 22 × 51
Let’s find out how many powers of 5 are in 400!
$\frac{400}{5}+\frac{400}{25}+\frac{400}{125}=80+16+3=99$ (rounding up to the nearest integer)
So, the number of 5 in 400! is 99.
Now, let's find out how many power of 2 is in 400!
$\frac{400}{2}+\frac{400}{4}+\frac{400}{8}+\frac{400}{16}+\frac{400}{32}+\frac{400}{64}+\frac{400}{128}+\frac{400}{256}=200+100+50+25+12+6+3+1=397$ (rounding up to the nearest integer)
So, the number of 22 in 400! is $\frac{397}{2}=198$ (rounding up to the nearest integer)
The smallest value from the above calculation is the highest value of n, i.e., 99.
The number of trailing zeroes in n! (n factorial) is determined by the number of times 5 is a factor in numbers from 1 to n, as there are usually more factors of 2 than 5.
If a number finishes with zero at the end, then the trailing zero of that number is the exponent of that number.
Example: trailing zeros of 10n is n.
During the multiplication of several numbers, count the total number of factors of 2 and 5 in the prime factorizations of the numbers involved. The number of trailing zeros is the minimum of the number of factors of 2 and the number of factors of 5.
Q1. Find the number of factors of 360.
12
24
36
48
Answer:
Prime factorisation of 360
= 360 = 2 × 2 × 2 × 3 × 3 × 5 = 23 × 32 × 51
Let a = 3, b = 2, c = 1
We know the number of all factors of a number
= (a + 1) (b + 1) (c + 1)
= (3 + 1) (2 + 1) (1 + 1)
= 24
Hence, the correct answer is 24.
Q2. Find the number of trailing zeros in 75!
12
18
24
15
Answer:
Here 75 < 125
So, the formula will go until $\frac{n}{25}$. (rounding up to the nearest integer)
$\frac{75}{5}+\frac{75}{25}=15+3=18$
Hence, the correct answer is 24.
Q3. Find the number of trailing zeros in 100!
24
20
22
30
Answer:
Here 100 < 125
So, the formula will go until $\frac{n}{25}$. (rounding up to the nearest integer)
$\frac{100}{5}+\frac{100}{25}=20+4=24$
Hence, the correct answer is 24.
Q4. What is the highest value of n for which 3n can divide 81! completely?
20
30
40
10
Answer:
Prime factorisation of 81 = 81 = 3 × 3 × 3 × 3 = 34
Let’s find out how many powers of 3 is in 81!
$\frac{81}{3}+\frac{81}{9}+\frac{81}{27}+\frac{81}{81}=27+9+3+1=40$ (rounding up to the nearest integer)
So, the number of 34 in 81! is $\frac{40}{4}=10$ (rounding up to the nearest integer)
Hence, the correct answer is 24.
Q5. Find the product of all the factors of 100.
$100^9$
$10^19$
$1^9$
$10^9$
Answer:
Prime factorisation of 100
= 100 = 2 × 2 × 5 × 5 = 22 × 52
Here, a = 2, b = 2
Number of factors of 100 = (a + 1) (b + 1) = (2 + 1) (2 + 1) = 9
We know the product of factors of 100
= $100^{\frac{\text{Total number of factors}}{2}}$
= $100^{\frac{9}{2}}$
= $(10^2)^{\frac{9}{2}}$
= $10^9$
Hence, the correct answer is $10^9$.
Q6. Find the number of even factors of 200.
3
6
9
12
Answer:
Prime factorisation of 200
= 200 = 2 × 2 × 2 × 5 × 5 = 23 × 52
Here, a = 3, b = 2
$\therefore$ Number of even factors of 200 = a (b + 1) = 3 (2 + 1) = 9
Hence, the correct answer is 9.
Q7. How many odd factors are there in 720?
6
30
24
8
Answer:
Prime factorisation of 720
= 720 = 2 × 2 × 2 × 2 × 3 × 3 × 5 = 24 × 32 × 51
To count the odd factors we will ignore the power of 2.
Then add 1 with the other two exponents and multiply them.
So, number of odd factors of 720 = (2 + 1) (1 + 1) = 6
Hence, the correct answer is 6.
Q8. Prove that the number of trailing zeros of 6!, 7!, 8! and 9! are all the same.
Answer:
Here, all the numbers are less than 25.
So, the formula to find trailing zeros of factorials will only go till $\frac{n}{5}$.
When n = 6, $\frac{n}{5}=\frac{6}{5}=1$ (rounding up to nearest integer)
When n = 7, $\frac{n}{5}=\frac{7}{5}=1$ (rounding up to nearest integer)
When n = 8, $\frac{n}{5}=\frac{8}{5}=1$ (rounding up to nearest integer)
When n = 9, $\frac{n}{5}=\frac{9}{5}=1$ (rounding up to nearest integer)
So, we can see that 6!, 7!, 8!, and 9! have same number of trailing zeros, i.e., 1.
Q9. How many trailing zeros are in this product? 27 × 94 × 55 × 33
7
5
3
4
Answer:
27 × 94 × 55 × 33
= 25 × 22 × 94 × 55 × 33
= 105 × 22 × 94 × 33
Here, the power of 10 is 5.
Hence, the correct answer is 5.
Q10. Are there the same numbers of trailing zeros in 25 × 1117 × 52 and 22 × 1711 × 55?
Answer:
25 × 1117 × 52
= 22 × 23 × 1117 × 52
= 102 × 23 × 1117
Here, the number of trailing zeros is 2.
22 × 1711 × 55
= 22 × 1711 × 53 × 52
= 102 × 53 × 1711
Here, the number of trailing zeros is 2.
So, there are the same numbers of trailing zeros in both products.