Select Page

Number of zeroes concept is one of the most important and frequently tested topics in quantitative aptitude and number theory for competitive exams. It is asked in almost every major exam including SSC CGL, SSC CHSL, Bank PO, Bank Clerk, Railway RRB, CAT and UPSC CSAT. This topic is also important for AMCAT, eLitmus, TCS NQT and all campus placement aptitude tests. A strong understanding of trailing zeroes concept, highest power of a prime number in factorial and highest power of composite numbers in factorial is essential for scoring well in these exams. In this post we cover everything from how zeroes are formed in a product, number of trailing zeroes in factorial of any number, highest power of any prime number in a factorial using both formula method and successive division method, and highest power of composite numbers in factorial — all explained with solved examples.

📚 What You Will Learn in This Post

How Zeroes are Formed in a Product — Basic Concept

Number of Trailing Zeroes in Factorial of any Number

Highest Power of a Prime Number in N Factorial — Formula Method

Highest Power of a Prime Number — Successive Division Method

Highest Power of a Composite Number in N Factorial

Solved Examples on Number of Zeroes for Competitive Exams

Number of zeroes in an expression:-

Zero will be formed when we multiply 2 and 5
10 = 2×5
100 = 2²×5²
1000 = 2³×5³
10000 = 2⁴×5⁴
So we can say that to have ‘n’ zeroes at the end of a product we need exactly ‘n’ combinations of 2 and 5.

Number of zeroes in the factorial of a number:-

Number of zeroes in the factorial of a number will be the highest power of 10 in the factorial & 10 can be written as 2×5 in its prime factor form and we know that in any factorial number power of 2 is always greater than power of 5. Hence to find the number of trailing zeroes we only need to find the highest power of 5 in the factorial & that will be the number of trailing zeroes in the factorial of the number.

Ex:- Find the highest power of 10 or number of trailing zeroes in 160!
Sol:- 

5551603261

i.e. highest power of 5 in 160! = 32 + 6 + 1
                                                      = 39
∴ Number of trailing zeroes in 160! = 39             Answer

Ex:- Find the highest power of 1000 in 1000!
Sol:-

555100020040851

i.e. = 200 + 40 + 8 + 1 = 249
∴ highest power of 5 in 1000! is 249 & that of 5³ will be \(\frac{{249}}{3}\) = 83
∴ Highest power of 1000 in 1000! will be 83            Answer

 

Highest power of a number in N!:-

method (1):-

Highest power of prime number p that divides n! exactly i.e. without leaving any remainder is given by:-

 

where [a] represents greatest integer less than or equal to a.

Example:- Find the highest power of 3 in 100!

Solution:- 

 

= 33 + 11 + 3 + 1
= 48 Answer 

method (2):-

Quotient form → Successive division

333331003311133 + 11 + 3 + 1 = 48 Answer

(Q). Find the highest power of 6 in 150!
Solution:-
First, since 6 is a composite number so convert it into its prime factors.
6 = 2 × 3
now

22221815075379222421333315050165175 + 37 + 18 + 9 + 4 + 2 + 1= 14650 + 16 + 5 + 1= 72

So highest power of 2 in 150! = 146
& highest power of 3 in 150! = 72
∴ Highest power of 6 in 150! = minimum of above two values = 72 Answer

❓ Frequently Asked Questions on Number of Zeroes

Q1. How are zeroes formed at the end of a product?

Zeroes are formed at the end of a product when 2 and 5 are multiplied together since 2 multiplied by 5 equals 10. Every pair of 2 and 5 in the prime factorisation of a product gives one trailing zero. So the number of trailing zeroes in any product equals the minimum of the total count of 2s and 5s in the prime factorisation of that product. Since the power of 2 is always greater than the power of 5 in any factorial, we only need to count the power of 5 to find the number of trailing zeroes. This concept is closely connected to Factors and Divisibility topics.

Q2. How do you find the number of trailing zeroes in a factorial?

To find the number of trailing zeroes in n factorial, find the highest power of 5 in n factorial. Divide n by 5 and take the quotient. Then divide that quotient by 5 again and take the quotient. Keep dividing until the quotient becomes zero. Add all the quotients together — that is the number of trailing zeroes. For example trailing zeroes in 160 factorial = 32 plus 6 plus 1 equals 39. This is one of the most frequently asked questions in factorial based number theory problems.

Q3. How do you find the highest power of a prime number in N factorial?

To find the highest power of a prime number p in n factorial, use successive division. Divide n by p and take the quotient. Divide that quotient by p again. Keep dividing until the quotient is zero. Add all quotients to get the highest power of p in n factorial. For example highest power of 3 in 100 factorial equals 33 plus 11 plus 3 plus 1 equals 48. Both the formula method and successive division method give the same result and are covered in detail on this page with solved examples.

Q4. How do you find the highest power of a composite number in N factorial?

To find the highest power of a composite number in n factorial, first express the composite number as a product of its prime factors. Then find the highest power of each prime factor separately in n factorial. The highest power of the composite number equals the minimum value among the powers obtained after dividing by respective prime factor exponents. For example for 6 equals 2 multiplied by 3, find highest power of 2 and highest power of 3 separately in n factorial, then take the minimum of the two values. Study Factors concept to understand prime factorisation better.

Q5. How do you find the highest power of 1000 in 1000 factorial?

Since 1000 equals 10 raised to 3 equals 2 cubed multiplied by 5 cubed, first find the highest power of 5 in 1000 factorial which equals 200 plus 40 plus 8 plus 1 equals 249. Then divide 249 by 3 since we need 5 cubed for each 1000, giving 83. So the highest power of 1000 in 1000 factorial is 83. This type of problem tests your understanding of both trailing zeroes concept and the Remainder Theorem concepts together.

Q6. Which competitive exams ask number of zeroes questions?

Number of zeroes and trailing zeroes questions are asked in SSC CGL, SSC CHSL, Bank PO, Bank Clerk, Railway RRB, UPSC CSAT, CAT and all major Indian competitive exams. This topic is also important in AMCAT, eLitmus, TCS NQT and all campus placement aptitude tests. Highest power of a number in factorial questions are particularly common in CAT and SSC CGL. Related topics to strengthen alongside are Factors, Divisibility and Remainder Theorem.

Q7. Why is the power of 5 used instead of power of 2 for trailing zeroes?

In any factorial the power of 2 is always greater than the power of 5. Since every trailing zero requires exactly one pair of 2 and 5, the number of trailing zeroes is limited by whichever factor is smaller. Since 5 always appears less frequently than 2 in factorial, the power of 5 is the limiting factor and therefore determines the number of trailing zeroes. For example in 10 factorial, power of 2 is 8 but power of 5 is only 2, so there are only 2 trailing zeroes in 10 factorial. This is a fundamental property of prime numbers in mathematics.

Q8. How can I practice number of zeroes questions for competitive exams?

After understanding the concept thoroughly you can practice on our Exercise on Number of Zeroes page which contains a large number of solved practice questions covering all types of trailing zeroes and highest power problems asked in SSC CGL, Bank PO, CAT, AMCAT, eLitmus and TCS NQT exams. You may also want to study the related topics of Factors, Remainder Theorem and Unit Digit to strengthen your complete number theory preparation. All questions come with detailed step by step solutions and everything is completely free with no registration required.