Live GMAT classes with Target Test Prep start Nov 21 and Nov 22. First class free.

See classes
Target Test Prep · GMAT

Choose how you want to prepare

Learn live with an expert or move at your own pace. Every option includes the complete TTP study system.

Newsweek Readers’ Choice Awards 2026 winner: Target Test Prep, #1 Test Prep

Target Test Prep was voted #1 Best Test Prep in the 2026 Newsweek Readers’ Choice™ Awards.

★★★★★5.0563 reviews
GMATLiveTeachStarts Nov 22
Josh Braslow, Target Test Prep GMAT expert
LIVE ONLINE CLASSES

Get Ready for GMAT Test Day Faster with Live Online Classes

with Josh Braslow, 20+ years in test prep

Nov 22 · Josh Braslow
Sun · 9:30 AM to 12:30 PM ET
Included
40 hours of live online classes + 6 months of TTP OnDemand
  • Attend the first class for free
  • Every class is recorded, so you never fall behind
View classes & enroll
Limited seats availableTarget Test Prep
EALiveTeachOnDemandStart anytime
EXECUTIVE ASSESSMENT

Target Test Prep EA OnDemand

Self-paced EA prep. Study on your schedule.

EXECUTIVE ASSESSMENT

with

165+ EA score guarantee
$05-day trial no automatic billing
Schedule
Included
40 hours of live online classes plus six months of access to the complete TTP EA OnDemand course.
  • 165+ EA Score Guarantee
  • 4,100+ Quant, Verbal, and Integrated Reasoning practice questions
  • 400+ hours of in-depth video lessons
  • 3,000+ step-by-step video solutions
View EA class & enroll Start free 5-day trial
Limited cohort · enrollment openTrial includes full course accessTarget Test Prep
GMATOnDemandStart anytime
SELF-PACED MASTERCLASS

Target Test Prep GMAT OnDemand

Complete access from day one. Study on your schedule.

715+ score guarantee
$0to start then $127/mo
  • Personalized study plan and analytics
  • Thousands of lessons and practice questions

Number of zeros in a factorial of a number

Expert replies
by gmatrant » Tue Oct 16, 2007 7:59 pm
If P = (n)(n – 1)(n – 2) . . . (1) and n > 2, what
is the largest value of integer n where P has zero
as its last 6 digits and a non-zero digit for its
millions place?
(A) 29
(B) 30
(C) 34
(D) 35
(E) 39

The answer is B. But I chose A, and my approach was as follows. Please let me know what is wrong.

29!
I get multiples of 5*2 - 1 zero
10 - 1 zero
15*4 - 1 zero
20 - 1 zero
25*8 - 2 zeros
---------------------------
6 zeros
So it has to be 29!.
Please let me know if this is right.

Thanks
Join the discussion
Source: — Problem Solving |

by gabriel » Wed Oct 17, 2007 2:15 am
Well 29! sounds right to me .. 30 would definitely add a additional 0
Join the discussion

by jangojess » Wed Oct 17, 2007 5:11 am
when u take 25! itself there will be 6 zeros at the end.....this can be calculated in a diff way...

number of 5s in 25 = 5
number of 25s in 25 = 1
so total number of zeros = 6...
Trying hard!!!
Join the discussion

by gmatrant » Wed Oct 17, 2007 7:04 am
jangojess wrote:when u take 25! itself there will be 6 zeros at the end.....this can be calculated in a diff way...

number of 5s in 25 = 5
number of 25s in 25 = 1
so total number of zeros = 6...
Sorry, Didnt get ya...
Can you explain this further . Also what is your final answer?
Join the discussion

by gmatrant » Thu Oct 18, 2007 5:33 am
jangojess wrote:when u take 25! itself there will be 6 zeros at the end.....this can be calculated in a diff way...

number of 5s in 25 = 5
number of 25s in 25 = 1
so total number of zeros = 6...
I agree with you jangojess... 25! would as such suffice as an answer, but from the choices isnt 29! the appropriate
Join the discussion

by gabriel » Thu Oct 18, 2007 5:55 am
Read the question properly, it asks for the maximum value of "n" , 25 is not the maximum value "n" can take but 29 is ...

Regards
Join the discussion

by dingo001 » Thu Oct 18, 2007 11:03 am
Can someone explain this one in some detail?
Join the discussion

by gmatrant » Fri Oct 19, 2007 9:51 am
dingo001 wrote:Can someone explain this one in some detail?
So is the OA wrong. It has to be 29!
Join the discussion

by gabriel » Fri Oct 19, 2007 12:16 pm
Yup.. the OA is wrong .. the answer should be 29! ...
Join the discussion

by samirpandeyit62 » Fri Oct 19, 2007 10:08 pm
Agree with Gabriel the ans should be 29!

coz 29 has 6 pairs of 5,2 which would lead to 6 trailing zero's.
Regards
Samir
Join the discussion

by ri2007 » Mon Oct 29, 2007 12:49 pm
could some one pls explain this one to me again.

29! = 8.84176199 × 10^30 ... as per google calculator

which is also 884176199 × 10^22,

this numbser does not satisfy the question asked.

Could you pls help me clarify my basic understanding of a question such as this?

Thanks so much
Join the discussion

by Suyog » Mon Oct 29, 2007 5:23 pm
i think 30 will have 6 pairs of 5,2 and not 29.....
Join the discussion

by gmatrant » Tue Oct 30, 2007 6:52 am
Suyog wrote:i think 30 will have 6 pairs of 5,2 and not 29.....
No 30 has 7 fives and will have surely have 7 twos... so total zeroes is 7 not six..it cant be 30... please comment
Join the discussion

by Suyog » Tue Oct 30, 2007 7:23 am
i think i'm missing something....how 7?
Join the discussion

by ri2007 » Tue Oct 30, 2007 7:30 am
here is a copy of the reply I got from Samir Pandey -

if u try the same on the windows calculator in scientific mode u will get the answer.

the approach here is very simple, 29! will be a nos

now the nos of 0's in 29! will depend upon the nos of pairs of 5,2 in 29! i.e 5*2 =10 which produces a 0

so to count the nos of pairs of 5,2 in 29! we just need to count the nos of 5 's (this is universal) coz nos of 5's will be more than 2's

the best way to count it is bu divinding 29 or any n by 5 & taking the qoutient, 5^2 & taking the quotinet only .....so on with higher powers of 5 till we get a non zero quotient

using this appraoach we can say

29/5 = 5 (quotient)

29/25 = 1

other powers will give 0 qoutient

so nos of 5's in 29! is 5+1 hence 0's =6

for 30! we have

30/5 =6
30/25 =1

so 7 zeroes

Thanks again Samir
Join the discussion