Last visit was: 13 Jul 2024, 22:18 It is currently 13 Jul 2024, 22:18
Toolkit
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

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.

# Everything about Factorials on the GMAT

SORT BY:
Tags:
Show Tags
Hide Tags
Math Expert
Joined: 02 Sep 2009
Posts: 94341
Own Kudos [?]: 640562 [886]
Given Kudos: 85005
Math Expert
Joined: 02 Sep 2009
Posts: 94341
Own Kudos [?]: 640562 [49]
Given Kudos: 85005
Director
Joined: 16 Jul 2009
Posts: 541
Own Kudos [?]: 8703 [18]
Given Kudos: 2
Schools:CBS
Q50  V37
WE 1: 4 years (Consulting)
General Discussion
Founder
Joined: 04 Dec 2002
Posts: 37792
Own Kudos [?]: 74113 [11]
Given Kudos: 19897
Location: United States (WA)
GMAT 1: 750 Q49 V42
GPA: 3
11
Kudos
This post has been split off the original discussion and cleaned up for reference.
Tuck School Moderator
Joined: 20 Aug 2009
Posts: 203
Own Kudos [?]: 333 [3]
Given Kudos: 69
Location: Tbilisi, Georgia
Schools:Stanford (in), Tuck (WL), Wharton (ding), Cornell (in)
Q50  V47
3
Kudos
Bunuel

Valuable post! +1

Quote:
There is another formula finding powers of non prime in n!, but think it's not needed for GMAT.

Can you please post this one too? It's still interesting, though may not be usable for GMAT
Intern
Joined: 08 Sep 2009
Posts: 4
Own Kudos [?]: 8 [2]
Given Kudos: 3
2
Kudos
Bunuel wrote:

How many zeros are in the end (after which no other digits follow) of 32!?
$$\frac{32}{5}+\frac{32}{5^2}=6+1=7$$ (denominator must be less than 32, $$5^2=25$$ is less)

So there are 7 zeros in the end of 32!

If you actually go and check 32! in Excel the result will be 263130836933694000000000000000000000

So more like 21 zeros... I really hope Excel is making a mistake because of how neat is your formula but someone please explain!?
Math Expert
Joined: 02 Sep 2009
Posts: 94341
Own Kudos [?]: 640562 [7]
Given Kudos: 85005
6
Kudos
1
Bookmarks
juukkk wrote:
Bunuel wrote:

How many zeros are in the end (after which no other digits follow) of 32!?
$$\frac{32}{5}+\frac{32}{5^2}=6+1=7$$ (denominator must be less than 32, $$5^2=25$$ is less)

So there are 7 zeros in the end of 32!

If you actually go and check 32! in Excel the result will be 263130836933694000000000000000000000

So more like 21 zeros... I really hope Excel is making a mistake because of how neat is your formula but someone please explain!?

32! = 263130836933693530167218012160000000 This is what 32! really equals to.
32!= 263130836933694000000000000000000000 Accoroding to Excell. Don't worry it's just rounded, so formula is correct.
Intern
Joined: 08 Sep 2009
Posts: 4
Own Kudos [?]: 8 [2]
Given Kudos: 3
2
Kudos
Bunuel wrote:

32! = 263130836933693530167218012160000000 This is what 32! really equals to.
32!= 263130836933694000000000000000000000 Accoroding to Excell. Don't worry it's just rounded, so formula is correct.

Kudos given and formula memorized already. From where did you got the what "32! really equals to"?
Founder
Joined: 04 Dec 2002
Posts: 37792
Own Kudos [?]: 74113 [1]
Given Kudos: 19897
Location: United States (WA)
GMAT 1: 750 Q49 V42
GPA: 3
1
Kudos
juukkk wrote:
Bunuel wrote:

32! = 263130836933693530167218012160000000 This is what 32! really equals to.
32!= 263130836933694000000000000000000000 Accoroding to Excell. Don't worry it's just rounded, so formula is correct.

Kudos given and formula memorized already. From where did you got the what "32! really equals to"?

Wow. I want to know how you calculated it too
Math Expert
Joined: 02 Sep 2009
Posts: 94341
Own Kudos [?]: 640562 [5]
Given Kudos: 85005
4
Kudos
1
Bookmarks
Wiki has the the answer to 32! on trailing zeros article.
Intern
Joined: 23 Oct 2005
Posts: 14
Own Kudos [?]: 4 [2]
Given Kudos: 6
2
Kudos
Hi,

I just went through this thread. I understand point# 1 about trailing zeroes. However, for the life of me, I cant understand Point#2.
Can anyone please explain me what are we really trying to solve in "2. Finding the number of powers of a prime number k, in the n!."

For the question "What is the power of 2 in 25!", the answer is given as 22. What does it mean ?

Thanks
Math Expert
Joined: 02 Sep 2009
Posts: 94341
Own Kudos [?]: 640562 [5]
Given Kudos: 85005
4
Kudos
1
Bookmarks
aim-high wrote:
Hi,

I just went through this thread. I understand point# 1 about trailing zeroes. However, for the life of me, I cant understand Point#2.
Can anyone please explain me what are we really trying to solve in "2. Finding the number of powers of a prime number k, in the n!."

For the question "What is the power of 2 in 25!", the answer is given as 22. What does it mean ?

Thanks

25! is some number, let's say x. Power of 2 (highest power, 2 will have) in 25!, means the power of 2 in prime factorization of x.

For example: $$5!=120=2^3*3*5$$, so the power of 2 in 5! is 3.
Manager
Joined: 23 Apr 2010
Posts: 91
Own Kudos [?]: 1076 [1]
Given Kudos: 36
Location: Tx
Concentration: Marketing
Q44  V19 GMAT 2: 0  Q0  V0 GMAT 3: 0  Q0  V0
GPA: 2.88
1
Kudos
We need all of them (2,3,5) to be represented twice in 900, 5 can provide us with only 6 pairs, thus there is 900 in the power of 6 in 50!
900^6

bruel i just dont understand that part. CAn you explain it plz
Math Expert
Joined: 02 Sep 2009
Posts: 94341
Own Kudos [?]: 640562 [13]
Given Kudos: 85005
6
Kudos
7
Bookmarks
fatihaysu wrote:
We need all of them (2,3,5) to be represented twice in 900, 5 can provide us with only 6 pairs, thus there is 900 in the power of 6 in 50!
900^6

bruel i just dont understand that part. CAn you explain it plz

$$50!=900^xa=(2^2*3^2*5^2)^x*a$$, where $$x$$ is the highest possible value of 900 and $$a$$ is the product of other multiples of $$50!$$.

$$50!=2^{47}*3^{22}*5^{12}*b=(2^2*3^2*5^2)^6*(2^{35}*3^{10})*b=900^{6}*(2^{35}*3^{10})*b$$, where $$b$$ is the product of other multiples of $$50!$$. So $$x=6$$.

Below is another example:

Suppose we have the number $$18!$$ and we are asked to to determine the power of $$12$$ in this number. Which means to determine the highest value of $$x$$ in $$18!=12^x*a$$, where $$a$$ is the product of other multiples of $$18!$$.

$$12=2^2*3$$, so we should calculate how many 2-s and 3-s are in $$18!$$.

Calculating 2-s: $$\frac{18}{2}+\frac{18}{2^2}+\frac{18}{2^3}+\frac{18}{2^4}=9+4+2+1=16$$. So the power of $$2$$ (the highest power) in prime factorization of $$18!$$ is $$16$$.

Calculating 3-s: $$\frac{18}{3}+\frac{18}{3^2}=6+2=8$$. So the power of $$3$$ (the highest power) in prime factorization of $$18!$$ is $$8$$.

Now as $$12=2^2*3$$ we need twice as many 2-s as 3-s. $$18!=2^{16}*3^8*a=(2^2)^8*3^8*a=(2^2*3)^8*a=12^8*a$$. So $$18!=12^8*a$$ --> $$x=8$$.

Hope it's clear.
Intern
Joined: 13 Jul 2010
Posts: 2
Own Kudos [?]: 15 [0]
Given Kudos: 0
can anyone tell me how to calculate the no.of factors for 20!. well this was a small number if i would have to answer a bigger number like no.of factors for 720! what will be the solution.
Math Expert
Joined: 02 Sep 2009
Posts: 94341
Own Kudos [?]: 640562 [7]
Given Kudos: 85005
4
Kudos
3
Bookmarks
yasar434 wrote:
can anyone tell me how to calculate the no.of factors for 20!. well this was a small number if i would have to answer a bigger number like no.of factors for 720! what will be the solution.

You won't need this for GMAT but still let's see if we can do it:

First we should make prime factorization of 20!. 20! will have all primes from 0 to 20, so we should find the powers of these primes in 20!.

Powers of 2 --> $$\frac{20}{2}+\frac{20}{4}+\frac{20}{8}+\frac{20}{16}=10+5+2+1=18$$;
Powers of 3 --> $$\frac{20}{3}+\frac{20}{9}=6+2=8$$;
Powers of 5 --> $$\frac{20}{5}=4$$;
Powers of 7 --> $$\frac{20}{7}=2$$;
Powers of 11 --> $$\frac{20}{11}=1$$;
Powers of 13 --> $$\frac{20}{13}=1$$;
Powers of 17 --> $$\frac{20}{17}=1$$;
Powers of 19 --> $$\frac{20}{19}=1$$.

So $$20!=2^{18}*3^8*5^4*7^2*11^1*13^1*17^1*19^1$$.

Next: How to Find the Number of Factors of an Integer.

First make prime factorization of an integer $$n=a^p*b^q*c^r$$, where $$a$$, $$b$$, and $$c$$ are prime factors of $$n$$ and $$p$$, $$q$$, and $$r$$ are their powers.

The number of factors of $$n$$ will be expressed by the formula $$(p+1)(q+1)(r+1)$$. NOTE: this will include 1 and n itself.

Example: Finding the number of all factors of 450: $$450=2^1*3^2*5^2$$

Total number of factors of 450 including 1 and 450 itself is $$(1+1)*(2+1)*(2+1)=2*3*3=18$$ factors.

So, the # of positive factors of $$20!=2^{18}*3^8*5^4*7^2*11^1*13^1*17^1*19^1$$ will be $$(18+1)(8+1)(4+1)(2+1)(1+1)(1+1)(1+1)(1+1)=19*9*5*3*2*2*2*2=41040$$.

The same way we can find for 720!, but we'll need much more time.

Hope it helps.
Intern
Joined: 24 Jan 2011
Posts: 4
Own Kudos [?]: 1 [0]
Given Kudos: 0
Im getting a problem trying to use the formula.
When looking for power of 3 in 35! i do
35/3 + 35/9 + 35/27 = 11+3+1 = 15

But I've multiplied out the factorial 32! and get 18 3's including the square for 9 and the cubed for 27. Am i doing something wrong?
Math Expert
Joined: 02 Sep 2009
Posts: 94341
Own Kudos [?]: 640562 [0]
Given Kudos: 85005
theptrk wrote:
Im getting a problem trying to use the formula.
When looking for power of 3 in 35! i do
35/3 + 35/9 + 35/27 = 11+3+1 = 15

But I've multiplied out the factorial 32! and get 18 3's including the square for 9 and the cubed for 27. Am i doing something wrong?

Yes, as formula is correct then it must be that you have miscalculated.

By the way here is complete factorization of 35!: $$35!=2^{32}*3^{15}*5^8*7^5*11^3*13^2*17^2*19*23*29*31$$, so you can see that the power of 3 is indeed 15.
Intern
Joined: 14 Dec 2011
Posts: 48
Own Kudos [?]: 343 [0]
Given Kudos: 24
GMAT 1: 630 Q48 V29
GMAT 2: 690 Q48 V37
Bunuel wrote:
If you are aiming for 700+ in GMAT you should know 2 important things about factorials:

2. Finding the number of powers of a prime number k, in the n!.

What is the power of 2 in 25!
$$\frac{25}{2}+\frac{25}{4}+\frac{25}{8}+\frac{25}{16}=12+6+3+1=22$$

How come I get completely different results when I use my calculator to get 25! and 2^22?

Did I understand it wrong?
Math Expert
Joined: 02 Sep 2009
Posts: 94341
Own Kudos [?]: 640562 [0]
Given Kudos: 85005
Impenetrable wrote:
Bunuel wrote:
If you are aiming for 700+ in GMAT you should know 2 important things about factorials:

2. Finding the number of powers of a prime number k, in the n!.

What is the power of 2 in 25!
$$\frac{25}{2}+\frac{25}{4}+\frac{25}{8}+\frac{25}{16}=12+6+3+1=22$$

How come I get completely different results when I use my calculator to get 25! and 2^22?

Did I understand it wrong?

25! is a huge number, not many calculators can handle it. Check whether it gives you the following result: 25!=15,511,210,043,330,985,984,000,000.