Live GMAT classes with Target Test Prep start Nov 30 and Dec 6. 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

Value of N

Expert replies
by manik11 » Tue Nov 03, 2015 4:43 am
What is the value of N?

(1) N! ends with 28 zeroes

(2) (N+2)! ends with 31 zeroes and (N-1)! ends with 28 zeroes

OA : E

Can we test numbers on this questions?
Join the discussion
Source: — Data Sufficiency |

by GMATGuruNY » Tue Nov 03, 2015 5:25 am
This problem is about TRAILING 0's: the number of 0's at the end of a large product.

If N = 120, then N! = 120*119*118*....*3*2*1.

Since 10=2*5, EVERY COMBINATION OF 2*5 contained within the prime-factorization of 120! will yield a 0 at the end of the integer representation of 120!.
The prime-factorization of 120! is composed of FAR MORE 2'S than 5's.
Thus, the number of 0's depends on the NUMBER OF 5's contained within 120!.

To count the number of 5's, simply divide increasing POWERS OF 5 into 120.

Every multiple of 5 within 120! provides at least one 5:
120/5 = 24 --> 24 5's.
Every multiple of 5² provides a SECOND 5:
120/5² = 4 --> 4 more 5's.
Thus, the total number of 5's contained within 120! = 24+4 = 28.

Note that 121!, 122!, 123!, and 124! all contain the same number of 5's as 120!.

For more than 28 5's to be contained within N!, N must be AT LEAST 125, the next greatest multiple of 5 after 120.
Every multiple of 5 within 125! provides at least one 5:
125/5 = 25 --> 25 5's.
Every multiple of 5² provides a SECOND 5:
125/5² = 5 --> 5 more 5's.
Every multiple of 5³ provides a THIRD 5:
125/5³ = 1 --> 1 more 5.
Thus, the total number of 5's contained within 125! = 25+5+1 = 31.

Note that 126!, 127!, 128!, and 129! all contain the same number of 5's as 125!.

Onto the problem:
What is the value of N?

(1) N! ends with 28 zeroes

(2) (N+2)! ends with 31 zeroes and (N-1)! ends with 28 zeroes
The following cases satisfy both statements:

Case 1: N=123
(123+2)! = 125!, which has 31 5's.
(123-1)! = 122!, which has 28 5's.

Case 2: N=124
(124+2)! = 126!, which has 31 5's.
(124-1)! = 123!, which has 28 5's.

Thus, the two statements combined are INSUFFICIENT.

The correct answer is E.
Private tutor exclusively for the GMAT and GRE, with over 20 years of experience.
Followed here and elsewhere by over 1900 test-takers.
I have worked with students based in the US, Australia, Taiwan, China, Tajikistan, Kuwait, Saudi Arabia -- a long list of countries.
My students have been admitted to HBS, CBS, Tuck, Yale, Stern, Fuqua -- a long list of top programs.

As a tutor, I don't simply teach you how I would approach problems.
I unlock the best way for YOU to solve problems.

For more information, please email me (Mitch Hunt) at [email protected].
Student Review #1
Student Review #2
Student Review #3
Join the discussion

by manik11 » Tue Nov 03, 2015 6:04 am
GMATGuruNY wrote: Since 10=2*5, EVERY COMBINATION OF 2*5 contained within the prime-factorization of 120! will yield a 0 at the end of the integer representation of 120!.
The prime-factorization of 120! is composed of FAR MORE 2'S than 5's.
Thus, the number of 0's depends on the NUMBER OF 5's contained within 120!.

To count the number of 5's, simply divide increasing POWERS OF 5 into 120.

Every multiple of 5 within 120! provides at least one 5:
120/5 = 24 --> 24 5's.
Every multiple of 5² provides a SECOND 5:
120/5² = 4 --> 4 more 5's.
Thus, the total number of 5's contained within 120! = 24+4 = 28.

Note that 121!, 122!, 123!, and 124! all contain the same number of 5's as 120!.

For more than 28 5's to be contained within N!, N must be AT LEAST 125, the next greatest multiple of 5 after 120.
Every multiple of 5 within 125! provides at least one 5:
125/5 = 25 --> 25 5's.
Every multiple of 5² provides a SECOND 5:
125/5² = 5 --> 5 more 5's.
Every multiple of 5³ provides a THIRD 5:
125/5³ = 1 --> 1 more 5.
Thus, the total number of 5's contained within 125! = 25+5+1 = 31.

Note that 126!, 127!, 128!, and 129! all contain the same number of 5's as 125!.
Thanks for the amazing explanation Mitch. I have two follow up questions:
1. You said that number of zeroes in a number depends upon the combination of 2's and 5's. So, would just counting the number of 5's suffice?
2. Applying your approach, if in a situation I have to count the number of zeroes in (for eg. 500!)
then
Multiple of 5 in 500! = 500/5 = 100
Multiple of 5^2 in 500! = 500/25 = 25
Multiple of 5^3 in 500! = 500/125 = 4

Can I conclude that 500! will have (100+25+4) = 129 trailing zeroes?

Thanks
Manik
Join the discussion

by GMATGuruNY » Wed Nov 04, 2015 3:29 am
manik11 wrote:Thanks for the amazing explanation Mitch. I have two follow up questions:
1. You said that number of zeroes in a number depends upon the combination of 2's and 5's. So, would just counting the number of 5's suffice?

Correct.
2. Applying your approach, if in a situation I have to count the number of zeroes in (for eg. 500!)
then
Multiple of 5 in 500! = 500/5 = 100
Multiple of 5^2 in 500! = 500/25 = 25
Multiple of 5^3 in 500! = 500/125 = 4

Can I conclude that 500! will have (100+25+4) = 129 trailing zeroes?
Your approach is great, but the values in red are incorrect.

Every multiple of 5 within 500! provides at least one 5:
500/5 = 100 --> 100 5's.
Every multiple of 5² provides a SECOND 5:
500/5² = 20 --> 20 more 5's.
Every multiple of 5³ provides a THIRD 5:
500/5³ = 4 --> 4 more 5's.
Thus:
The total number of trailing zeros = 100+20+4 = 124.
Private tutor exclusively for the GMAT and GRE, with over 20 years of experience.
Followed here and elsewhere by over 1900 test-takers.
I have worked with students based in the US, Australia, Taiwan, China, Tajikistan, Kuwait, Saudi Arabia -- a long list of countries.
My students have been admitted to HBS, CBS, Tuck, Yale, Stern, Fuqua -- a long list of top programs.

As a tutor, I don't simply teach you how I would approach problems.
I unlock the best way for YOU to solve problems.

For more information, please email me (Mitch Hunt) at [email protected].
Student Review #1
Student Review #2
Student Review #3
Join the discussion