Last visit was: 19 Nov 2025, 09:30 It is currently 19 Nov 2025, 09:30
Close
GMAT Club Daily Prep
Thank you for using the timer - this advanced tool can estimate your performance and suggest more practice questions. We have subscribed you to Daily Prep Questions via email.

Customized
for You

we will pick new questions that match your level based on your Timer History

Track
Your Progress

every week, we’ll send you an estimated GMAT score based on your performance

Practice
Pays

we will pick new questions that match your level based on your Timer History
Not interested in getting valuable practice questions and articles delivered to your email? No problem, unsubscribe here.
Close
Request Expert Reply
Confirm Cancel
User avatar
Bunuel
User avatar
Math Expert
Joined: 02 Sep 2009
Last visit: 19 Nov 2025
Posts: 105,389
Own Kudos:
Given Kudos: 99,977
Products:
Expert
Expert reply
Active GMAT Club Expert! Tag them with @ followed by their username for a faster response.
Posts: 105,389
Kudos: 778,287
 [20]
1
Kudos
Add Kudos
19
Bookmarks
Bookmark this Post
Most Helpful Reply
avatar
dhawalsachdeva
Joined: 30 May 2019
Last visit: 20 Oct 2023
Posts: 21
Own Kudos:
18
 [5]
Given Kudos: 188
Posts: 21
Kudos: 18
 [5]
2
Kudos
Add Kudos
3
Bookmarks
Bookmark this Post
General Discussion
avatar
Gmat202023
Joined: 25 Sep 2020
Last visit: 07 Oct 2024
Posts: 9
Own Kudos:
6
 [2]
Given Kudos: 98
GRE 1: Q168 V153
GRE 1: Q168 V153
Posts: 9
Kudos: 6
 [2]
2
Kudos
Add Kudos
Bookmarks
Bookmark this Post
avatar
Abhay099
Joined: 27 Apr 2021
Last visit: 03 Oct 2021
Posts: 5
Given Kudos: 58
Posts: 5
Kudos: 0
Kudos
Add Kudos
Bookmarks
Bookmark this Post
It's a simple formula.
Divide the no you are given with 5 and it's '5 times'.

Case 1
23 which is under 25 coz 5*5
23/5 gives you 4.6. Strike out the decimal part. Therefore, 23! have 4 trailing zeroes

Case 2
39 which is more than 25 but less than 125
39/5 is 7.8. Do the needful.
Now we have to divide the no again by 25 because it is above 25 and 25 have 2 5s.
39/25=1.7
Add the answers i.e 7+1=8. therefore 39 have 8 trailing zeroes.

Case 3
187 which is more than 125 but less than 625
187/5=37.blah
187/25=7.blah
187/125=1.blah
Add=> 37+7+1= 45 trailing zeroes.

Scientific logic and reason
23 have 4 no which are multiple of 5 and 2 combined. 10, 20, 5*2 or any even no within 23 and 15*any even no. hence 4 zeroes
User avatar
ueh55406
Joined: 19 Dec 2020
Last visit: 31 Aug 2021
Posts: 149
Own Kudos:
48
 [2]
Given Kudos: 316
Posts: 149
Kudos: 48
 [2]
1
Kudos
Add Kudos
1
Bookmarks
Bookmark this Post
Bunuel
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


This is basically a trailing zero question asking which number for n! will the trailing zeros be 6?

\(P = (n)(n - 1)(n - 2) . . . (1)\) = n!

if n=29, n!= 29! ; Formula trailing zero is straight forward.

\(n/ 5 + n/5^2+ n/5^3...... n/5^k\), such that\( 5^k < n\)

\(29/5 + 29/ 25\) =\( 5+1 = 6\). Rest all the option gives a value >6 which is not required.
User avatar
adityaganjoo
Joined: 10 Jan 2021
Last visit: 04 Oct 2022
Posts: 148
Own Kudos:
Given Kudos: 154
Posts: 148
Kudos: 32
Kudos
Add Kudos
Bookmarks
Bookmark this Post
Bunuel
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


Are You Up For the Challenge: 700 Level Questions

Basically, P = n!
Out of these options, we need to find the largest number, which:
(i) has 6 zeroes, i.e. (2^6)*(5^6)
(ii) has 9 as the first non-zero digit; we'll think about this later

One point, however, is clear that 2s are in abundance. Number of zeroes factorial would carry would be determined by the number of 5s it has.

(E) 39! has eight 5s. Nope
(D) 35! has eight 5s. Nope
(C) 34! has seven 5s. Nope
(B) 30! has seven 5s. Nope
(A) 29! has six 5s. This must be the answer.

Bunuel Can you confirm if OA is correct?
User avatar
andreagonzalez2k
Joined: 15 Feb 2021
Last visit: 26 Jul 2025
Posts: 308
Own Kudos:
Given Kudos: 14
Posts: 308
Kudos: 497
Kudos
Add Kudos
Bookmarks
Bookmark this Post
29! = 8841761993739701954543616000000
30! = 265252859812191058636308480000000

So I think 29 is the correct answer
User avatar
bumpbot
User avatar
Non-Human User
Joined: 09 Sep 2013
Last visit: 04 Jan 2021
Posts: 38,586
Own Kudos:
Posts: 38,586
Kudos: 1,079
Kudos
Add Kudos
Bookmarks
Bookmark this Post
Hello from the GMAT Club BumpBot!

Thanks to another GMAT Club member, I have just discovered this valuable topic, yet it had no discussion for over a year. I am now bumping it up - doing my job. I think you may find it valuable (esp those replies with Kudos).

Want to see all other topics I dig out? Follow me (click follow button on profile). You will receive a summary of all topics I bump in your profile area as well as via email.
Moderators:
Math Expert
105389 posts
Tuck School Moderator
805 posts