mgmat 700 level zeros sum

[This topic has 3 expert replies and 5 member replies]
Free $100 Amazon.com Gift Card - Buy a GMAT course using a Beat The GMAT discount code between Mar 8-22 and get a $100 Amazon.com Gift Card. Learn more!
Post New Topic   Post Reply

vkb16
Really wants to Beat The GMAT!

Default Avatar

Joined: 15 Dec 2008
Posts: 109

Thanks given: 28
Thanked 1 times in 1 posts

Topic: mgmat 700 level zeros sum
PostTue Aug 11, 2009 5:26 am

Elapsed Time:
00:00
Lap   Why a timer is critical to improving your score

If 60! is written out as an integer, with how many consecutive 0's will that integer end?

6
12
14
42
56

OA is C but I think is B - my method is--
from 60 to 51, there are two 10s (60, and 65x62)
from 50-41 there are two 10s (50, and 55x52)
similarly, there are in total 6x2=12 zeroes.
I didnt quite get mgmat's explanation


Thanks
Back to top
View user's profile Send private message
DanaJ
Moderator



Joined: 01 Jan 2009
Posts: 1586

Thanks given: 8
Thanked 273 times in 251 posts

GMAT Score: 770

PostTue Aug 11, 2009 6:29 am

You see this type of question a lot. You're looking for the number of trailing zeroes in 60!, which means that you need the number of 10s in 60!. Think of it this way: 7000 has three trailing zeroes, since 7000 = 10*10*10*7 (three 10s).

The number of 10s is actually provided by the number of 5s in 60!, since 10 = 2*5. There are plenty of 2s in 60! (at least one every other number, in even numbers), so 5s are more rare. This is why you're trying to count those.

There's this really short formula for finding out the number of 5s in 60! (a formula discovered on this forum):

60/5 + 60/(5^2) = 12 + 2 = 14 (we only take the quotient)

What you have to do is divide the factorial by the powers of 5 up to the greatest power smaller than 60 (5^2 = 25 - fits; 5^3 = 125 - doesn't fit).

Another example: The number of trailing zeroes in 140:

140/5 + 140/(5^2) + 140/(5^3) = 28 + 5 + 1 = 34.


LATER EDIT: the reason you got only 12 zeroes is because you didn't count the fact that 25 has two 5s and so does 50. While you did count them once, they should be counted twice!

_________________
BTG Book Reviews

[missing the US every single moment]
Back to top
View user's profile Send private message
Thanked by: vkb16
ket
Rising GMAT Star

Default Avatar

Joined: 15 Mar 2009
Posts: 90

Thanks given: 8
Thanked 5 times in 5 posts

PostFri Nov 20, 2009 5:23 am

I am confused about this problem. I am ok with explanation of C it seems logical. I just wanted to check and calculated factorial of 60 in EXCEl with formula FACT(60), and the result is not 14 zeros :O ... I must be doing something wrong but the excel answer is this (23 zeros!)

8,320,987,112,741,390,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000

would be nice to hear smbdy's explanation...

Cheers Smile
Back to top
View user's profile Send private message
Reply from GMAT/MBA Admissions Expert
Ian Stewart
GMAT Instructor



Joined: 02 Jun 2008
Posts: 1581

Thanks given: 4
Thanked 425 times in 347 posts
Location: Toronto

GMAT Score: 780

PostFri Nov 20, 2009 10:29 am

When Excel produces that value, it's rounding it off.
_________________
private GMAT tutor
contact me via the tutor directory at www.gmatix.com
Back to top
View user's profile Send private message
ssuarezo
Rising GMAT Star

Default Avatar

Joined: 24 Jun 2009
Posts: 51

Thanks given: 34
Thanked 0 times in 0 posts
Location: Montreal

Target GMAT Score: 650
GMAT Score: 510

PostFri Dec 04, 2009 1:24 pm

DanaJ wrote:
There's this really short formula for finding out the number of 5s in 60! (a formula discovered on this forum):

60/5 + 60/(5^2) = 12 + 2 = 14 (we only take the quotient)

Another example: The number of trailing zeroes in 140:

140/5 + 140/(5^2) + 140/(5^3) = 28 + 5 + 1 = 34.

Hi Dana:

Why in your first example you went upto 5^2: 60/5 + 60/(5^2) .. but in the second example you went upto 5^3: 140/5 + 140/(5^2) + 140/(5^3) .. how do I know what's the limit??? Since it's a common question, I need to understand it.

Thanks
Silvia.
Back to top
View user's profile Send private message
Reply from GMAT/MBA Admissions Expert
Stuart Kovinsky
GMAT Instructor

Joined: 08 Jan 2008
Posts: 2270

Thanks given: 0
Thanked 545 times in 471 posts
Location: Toronto

GMAT Score: 800

PostFri Dec 04, 2009 1:43 pm

ssuarezo wrote:
DanaJ wrote:
There's this really short formula for finding out the number of 5s in 60! (a formula discovered on this forum):

60/5 + 60/(5^2) = 12 + 2 = 14 (we only take the quotient)

Another example: The number of trailing zeroes in 140:

140/5 + 140/(5^2) + 140/(5^3) = 28 + 5 + 1 = 34.

Hi Dana:

Why in your first example you went upto 5^2: 60/5 + 60/(5^2) .. but in the second example you went upto 5^3: 140/5 + 140/(5^2) + 140/(5^3) .. how do I know what's the limit??? Since it's a common question, I need to understand it.

Thanks
Silvia.
Good question!

We divide by the greatest power of 5 that's less than or equal to our number.

Since:

5^1 =5
5^2 = 25
5^3 = 125
5^4 = 625,

for any number from 5 to 20, we just divide by 5;

for any number from 25 to 120, we divide by 5 and 5^2;

for any number from 125 to 620, we divide by 5, 5^2 and 5^3; and

so on, and so on and so on...

_________________
Stuart Kovinsky, B.A. LL.B.
Academic Manager
Admissions Consultant
Kaplan Test Prep & Admissions
Toronto Office
1-800-KAP-TEST

GMAT Blogs

Learn more about me
Back to top
View user's profile Send private message
Thanked by: ssuarezo
barira1
Rising GMAT Star

Default Avatar

Joined: 31 May 2009
Posts: 66

Thanks given: 1
Thanked 1 times in 1 posts
Location: Karachi

PostFri Dec 04, 2009 10:47 pm

Dear Ian ,

Can you please explain this question again .
really finding it difficult


regards,
Barira
Back to top
View user's profile Send private message
Reply from GMAT/MBA Admissions Expert
Stuart Kovinsky
GMAT Instructor

Joined: 08 Jan 2008
Posts: 2270

Thanks given: 0
Thanked 545 times in 471 posts
Location: Toronto

GMAT Score: 800

PostFri Dec 04, 2009 11:25 pm

barira1 wrote:
Dear Ian ,

Can you please explain this question again .
really finding it difficult


regards,
Barira
Let's go back to Dana's explanation, but ignore the formula for now.

As Dana noted, one can determine how many 0s are at the end of a number by counting the number of factors of 10 that the number has, since one 10 = one 0 at the end.

Now 10 = 2*5; so for every factor pair 2/5 that a number has, it will have a factor of 10.

60! has WAY more 2s in it than 5s (since 2 is smaller, it's a much more frequent factor... hmm.. sounds like a good name for a math reward program... "frequent factor points"), so we don't need to count the 2s, we can just count the 5s and be sure that there will be enough 2s to pair off.

Since 60! = 1*2*3*... *58*59*60, it shouldn't take too long to count the factors of 5.

First, we have 5, 10, 15, 20, ..., 50, 55, 60. We could just count them all and see there are 12 or we could do 60/5 = 12 to see that there are going to be 12 factors of 5.

HOWEVER, we're not done, since some of those numbers have two factors of 5.

25=5*5, so that's an extra 5; 50=5*5*2, so that's also an extra 5.

Therefore, we have 12 + 1 + 1 = 14 factors of 5, which will give us 14 factor pairs of 2/5, which will give us 14 factors of 10, which will give us 14 0s at the end of our number.

_________________
Stuart Kovinsky, B.A. LL.B.
Academic Manager
Admissions Consultant
Kaplan Test Prep & Admissions
Toronto Office
1-800-KAP-TEST

GMAT Blogs

Learn more about me
Back to top
View user's profile Send private message
barira1
Rising GMAT Star

Default Avatar

Joined: 31 May 2009
Posts: 66

Thanks given: 1
Thanked 1 times in 1 posts
Location: Karachi

PostTue Dec 08, 2009 4:22 am

Dear Stauart,

Thank u so much ,
Clear now Smile
Back to top
View user's profile Send private message
Display posts from previous:   

Post New Topic   Post Reply All times are GMT - 7 Hours
Page 1 of 1
 
Most Active Members in Last 30 Days
1. harsh.champ 461 posts
2. shashank.ism 366 posts
3. thephoenix 323 posts
4. kstv 320 posts
5. gmatmachoman 261 posts
Most Active Experts in Last 30 Days
1. lunarpower
Manhattan GMAT Teacher
87 posts
2. Stuart Kovinsky
Kaplan GMAT Teacher
60 posts
3. Lisa Anderson
Stacy Blackman Consulting
54 posts
4. Testluv
Kaplan GMAT Teacher
49 posts
5. Bryant@VeritasPrep
Veritas Prep
41 posts