Last visit was: 26 Apr 2024, 00:06 It is currently 26 Apr 2024, 00:06

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
SORT BY:
Date
Tags:
Show Tags
Hide Tags
Math Expert
Joined: 02 Sep 2009
Posts: 92915
Own Kudos [?]: 619076 [29]
Given Kudos: 81595
Send PM
Most Helpful Reply
Intern
Intern
Joined: 13 Aug 2019
Posts: 17
Own Kudos [?]: 38 [29]
Given Kudos: 91
Send PM
General Discussion
Senior Manager
Senior Manager
Joined: 31 May 2018
Posts: 335
Own Kudos [?]: 1553 [3]
Given Kudos: 132
Location: United States
Concentration: Finance, Marketing
Send PM
Senior Manager
Senior Manager
Joined: 31 Jan 2019
Posts: 368
Own Kudos [?]: 707 [1]
Given Kudos: 67
Location: Switzerland
Concentration: General Management
GPA: 3.9
Send PM
What is the rightmost non-zero digit of 20! ? [#permalink]
1
Kudos
I would cut out of 20! all the 10s and then calculate the unit digit of the resulting number. It appears to be 4.
Hence c




Parvezahmed2210 Can you please elaborate more the formula used?
Is the 5 a constant that can be always applied?
Intern
Intern
Joined: 13 Aug 2019
Posts: 17
Own Kudos [?]: 38 [4]
Given Kudos: 91
Send PM
Re: What is the rightmost non-zero digit of 20! ? [#permalink]
2
Kudos
1
Bookmarks
GMAT Club Legend
GMAT Club Legend
Joined: 12 Sep 2015
Posts: 6820
Own Kudos [?]: 29936 [3]
Given Kudos: 799
Location: Canada
Send PM
Re: What is the rightmost non-zero digit of 20! ? [#permalink]
2
Kudos
1
Bookmarks
Expert Reply
Top Contributor
Bunuel wrote:
What is the rightmost non-zero digit of 20! ?

A. 2
B. 3
C. 4
D. 6
E. 8


Given: 20! = (20)(19)(18)(17)(16)(15)(14)(13)(12)(11)(10)(9)(8)(7)(6)(5)(4)(3)(2)(1)

Since one 2 and one 5 multiply to get 10 (causing the product to end in 0), let's the first factor out all of the 5's to get:
20! = (5)(4)(19)(18)(17)(16)(5)(3)(14)(13)(12)(11)(5)(2)(9)(8)(7)(6)(5)(4)(3)(2)(1)

There are four 5's in this product.
So, let's highlight four 2's that can pair with the four 5's to get all of our zeros.
20! = (5)(4)(19)(18)(17)(16)(5)(3)(14)(13)(12)(11)(5)(2)(9)(8)(7)(6)(5)(4)(3)(2)(1)

(5)(4)(5)(5)(2)(5)(2) = 10,000
So, those colored values are the ones that contribute to the product ending in four zeros.
Since our goal now is to identify the rightmost non-zero digit, we can ignore all of those colored values.
This results in the following product: (19)(18)(17)(16)(3)(14)(13)(12)(11)(9)(8)(7)(6)(4)(3)(1)
So the rightmost non-zero digit will be the unit's digit of the above product.

From here it's just a matter of keeping track of the unit's digit as we multiply each successive value in the product.
For example, 19 x 18 has units digit 2.
Now multiply 2 by the next number to get 2 x 17, which has units digit 4
Now multiply 4 by the next number to get 2 x 16, which has units digit 2
And so on.

When we do all of this, we end up with units digit 4.

Answer: C

Cheers,
Brent
VP
VP
Joined: 10 Jul 2019
Posts: 1392
Own Kudos [?]: 542 [3]
Given Kudos: 1656
Send PM
What is the rightmost non-zero digit of 20! ? [#permalink]
1
Kudos
2
Bookmarks
auradediligodo wrote:
I would cut out of 20! all the 10s and then calculate the unit digit of the resulting number. It appears to be 4.
Hence c




Parvezahmed2210 Can you please elaborate more the formula used?
Is the 5 a constant that can be always applied?



Logically, the Formula has the Effect of Discounting/Removing all of the 5 Prime Factors that create the Trailing Zeroes in the N!

Step 1: Take the Number Value (here 20) that is in the Factorial! and Divide it by 5 ---- Set up the Remainder Equation

20/5 = 4 + 0 /5

20 = 5 (4) + 0

Step 2: for the Remainder Equation ---- N = 5 (a) + b

To find the Right-most NON-Zero Digit of any N! ---- Find the Units Digit of: (2^a * a! * b!) ----

Step 3: Calculate the Right-most NON-Zero Digit of 20!

in this example: a = 4 and b = 0 (remember 0! = 1)

Units Digit of (2^4th * 4! * 0!) = 16 * 24 = Units Digit of 4

This is the Right Most NON-Zero Digit of 20! ----- 4

it works for Lower Valued Factorials. If the Factorial becomes a higher value (such as 79!) you write the Remainder Equation by dividing 25 instead of 5 and use a base of 4 instead of 2.

hope that makes sense??? it's not something that is going to come up on the GMAT, it seems like more of an Indian CAT type Rule

Brent's Way seems more like the "GMAT way" to logic through this problem, rather than learning an obscure formula.
Target Test Prep Representative
Joined: 14 Oct 2015
Status:Founder & CEO
Affiliations: Target Test Prep
Posts: 18761
Own Kudos [?]: 22055 [4]
Given Kudos: 283
Location: United States (CA)
Send PM
Re: What is the rightmost non-zero digit of 20! ? [#permalink]
1
Kudos
3
Bookmarks
Expert Reply
Bunuel wrote:
What is the rightmost non-zero digit of 20! ?

A. 2
B. 3
C. 4
D. 6
E. 8


Solution:

We know that 20! = 1 x 2 x 3 x 4 x 5 x 6 x 7 x 8 x 9 x 10 x 11 x 12 x 13 x 14 x 15 x 16 x 17 x 18 x 19 x 20. As product of primes, we have:

20! = 2 x 3 x 2^2 x 5 x 2 x 3 x 7 x 2^3 x 3^2 x 2 x 5 x 11 x 2^2 x 3 x 13 x 2 x 7 x 3 x 5 x 2^4 x 17 x 2 x 3^2 x 19 x 2^2 x 5
= 2^18 x 3^8 x 5^4 x 7^2 x 11 x 13 x 17 x 19
= (2^14 x 3^8 x 7^2 x 11 x 13 x 17 x 19) x (2^4 x 5^4)

We see that the last group 2^4 x 5^4 will contribute the ending zeros. Therefore, it’s the product in the first group that will contribute the rightmost non-zero digit of 20!, which is its units digit. We can evaluate the units digit of each factor in the first group:

2^14 = 2^(12 + 2) → 4 (Recall that the units digit pattern of 2^n is 2-4-8-6)

3^8 → 1 (Recall that the units digit pattern of 3^n is 3-9-7-1)

7^2 = 49 → 9

11 → 1

13 → 3

17 → 7

19 → 9

Now multiplying these digits, we have:

4 x 1 x 9 x 1 x 3 x 7 x 9 = 36 x 21 x 9 → 6 x 1 x 9 = 54 → 4

Since 4 is the units digit of the product in the first group, it’s also the rightmost non-zero digit of 20!

Answer: C
Current Student
Joined: 13 Apr 2020
Posts: 150
Own Kudos [?]: 18 [0]
Given Kudos: 1711
Location: India
GMAT 1: 710 Q45 V41
GPA: 3
Send PM
Re: What is the rightmost non-zero digit of 20! ? [#permalink]
ScottTargetTestPrep wrote:
Bunuel wrote:
What is the rightmost non-zero digit of 20! ?

A. 2
B. 3
C. 4
D. 6
E. 8


Solution:

We know that 20! = 1 x 2 x 3 x 4 x 5 x 6 x 7 x 8 x 9 x 10 x 11 x 12 x 13 x 14 x 15 x 16 x 17 x 18 x 19 x 20. As product of primes, we have:

20! = 2 x 3 x 2^2 x 5 x 2 x 3 x 7 x 2^3 x 3^2 x 2 x 5 x 11 x 2^2 x 3 x 13 x 2 x 7 x 3 x 5 x 2^4 x 17 x 2 x 3^2 x 19 x 2^2 x 5
= 2^18 x 3^8 x 5^4 x 7^2 x 11 x 13 x 17 x 19
= (2^14 x 3^8 x 7^2 x 11 x 13 x 17 x 19) x (2^4 x 5^4)

We see that the last group 2^4 x 5^4 will contribute the ending zeros. Therefore, it’s the product in the first group that will contribute the rightmost non-zero digit of 20!, which is its units digit. We can evaluate the units digit of each factor in the first group:

2^14 = 2^(12 + 2) → 4 (Recall that the units digit pattern of 2^n is 2-4-8-6)

3^8 → 1 (Recall that the units digit pattern of 3^n is 3-9-7-1)

7^2 = 49 → 9

11 → 1

13 → 3

17 → 7

19 → 9

Now multiplying these digits, we have:

4 x 1 x 9 x 1 x 3 x 7 x 9 = 36 x 21 x 9 → 6 x 1 x 9 = 54 → 4

Since 4 is the units digit of the product in the first group, it’s also the rightmost non-zero digit of 20!

Answer: C


Hi,
Your method is as usual very easy to understand. However, in this case, I think it is too long so there is a huge margin for error. Do you have any shorter method ? Thanks in advance.
Target Test Prep Representative
Joined: 14 Oct 2015
Status:Founder & CEO
Affiliations: Target Test Prep
Posts: 18761
Own Kudos [?]: 22055 [1]
Given Kudos: 283
Location: United States (CA)
Send PM
Re: What is the rightmost non-zero digit of 20! ? [#permalink]
1
Kudos
Expert Reply
Pranjal3107 wrote:
ScottTargetTestPrep wrote:
Bunuel wrote:
What is the rightmost non-zero digit of 20! ?

A. 2
B. 3
C. 4
D. 6
E. 8


Solution:

We know that 20! = 1 x 2 x 3 x 4 x 5 x 6 x 7 x 8 x 9 x 10 x 11 x 12 x 13 x 14 x 15 x 16 x 17 x 18 x 19 x 20. As product of primes, we have:

20! = 2 x 3 x 2^2 x 5 x 2 x 3 x 7 x 2^3 x 3^2 x 2 x 5 x 11 x 2^2 x 3 x 13 x 2 x 7 x 3 x 5 x 2^4 x 17 x 2 x 3^2 x 19 x 2^2 x 5
= 2^18 x 3^8 x 5^4 x 7^2 x 11 x 13 x 17 x 19
= (2^14 x 3^8 x 7^2 x 11 x 13 x 17 x 19) x (2^4 x 5^4)

We see that the last group 2^4 x 5^4 will contribute the ending zeros. Therefore, it’s the product in the first group that will contribute the rightmost non-zero digit of 20!, which is its units digit. We can evaluate the units digit of each factor in the first group:

2^14 = 2^(12 + 2) → 4 (Recall that the units digit pattern of 2^n is 2-4-8-6)

3^8 → 1 (Recall that the units digit pattern of 3^n is 3-9-7-1)

7^2 = 49 → 9

11 → 1

13 → 3

17 → 7

19 → 9

Now multiplying these digits, we have:

4 x 1 x 9 x 1 x 3 x 7 x 9 = 36 x 21 x 9 → 6 x 1 x 9 = 54 → 4

Since 4 is the units digit of the product in the first group, it’s also the rightmost non-zero digit of 20!

Answer: C


Hi,
Your method is as usual very easy to understand. However, in this case, I think it is too long so there is a huge margin for error. Do you have any shorter method ? Thanks in advance.

Response:
I don't know of a shorter method which will get us to the correct answer; however, this method looks long only because I wrote everything in detail and provided explanations along the way. During the test, it is possible to skip a lot of steps and arrive at the answer faster.

For instance, we don't need to write every factor of 20! to find the prime factorization of 20!. We could start from the greatest prime factor of 20! (which is 19) and determine the exponents of the prime factors all the way down to 2. The exponents of 19, 17, 13, and 11 will be 1 since 20! contains only one factor of each. There are two factors of 7 (one in 7 and one in 14), so the exponent of 7 will be 2. There are four factors of 5 (one in each of 5, 10, 15, and 20). It just remains to determine the exponents of 3 and 2, for which we can use the shortcut where we divide 20 by 3 and keep dividing the quotients by 3 until we obtain a zero quotient. Same goes for 2. Using this process, we obtain the prime factorization of 20! easily.

Once we write 20! = 2^18 x 3^8 x 5^4 x 7^2 x 11 x 13 x 17 x 19 and we remove the factors of 10, it remains to find the units digit of 2^14 x 3^8 x 7^2 x 11 x 13 x 17 x 19. Here, we observe that the units digit of 11 is 1, so we can just remove it from the product without changing the value of the units digit. Further, the units digit of the product 13 x 17 is also 1, so we can remove those factors as well. Finally, the units digit of 7^2 is 9 and thus, the units digit of 7^2 x 9 is 1. Removing all these factors, it just remains to calculate the units digit of 2^18 x 3^8. At this point, we can just use units digit patterns of 2 and 3 to find the answer.

While this solution is still a bit longer compared to the solutions of other questions, I think it is a reasonable enough solution.
Retired Moderator
Joined: 31 May 2017
Posts: 749
Own Kudos [?]: 670 [0]
Given Kudos: 53
Concentration: Technology, Strategy
Send PM
Re: What is the rightmost non-zero digit of 20! ? [#permalink]
BrentGMATPrepNow wrote:
Bunuel wrote:
What is the rightmost non-zero digit of 20! ?

A. 2
B. 3
C. 4
D. 6
E. 8


Given: 20! = (20)(19)(18)(17)(16)(15)(14)(13)(12)(11)(10)(9)(8)(7)(6)(5)(4)(3)(2)(1)

Since one 2 and one 5 multiply to get 10 (causing the product to end in 0), let's the first factor out all of the 5's to get:
20! = (5)(4)(19)(18)(17)(16)(5)(3)(14)(13)(12)(11)(5)(2)(9)(8)(7)(6)(5)(4)(3)(2)(1)

There are four 5's in this product.
So, let's highlight four 2's that can pair with the four 5's to get all of our zeros.
20! = (5)(4)(19)(18)(17)(16)(5)(3)(14)(13)(12)(11)(5)(2)(9)(8)(7)(6)(5)(4)(3)(2)(1)

(5)(4)(5)(5)(2)(5)(2) = 10,000
So, those colored values are the ones that contribute to the product ending in four zeros.
Since our goal now is to identify the rightmost non-zero digit, we can ignore all of those colored values.
This results in the following product: (19)(18)(17)(16)(3)(14)(13)(12)(11)(9)(8)(7)(6)(4)(3)(1)
So the rightmost non-zero digit will be the unit's digit of the above product.

From here it's just a matter of keeping track of the unit's digit as we multiply each successive value in the product.
For example, 19 x 18 has units digit 2.
Now multiply 2 by the next number to get 2 x 17, which has units digit 4
Now multiply 4 by the next number to get 2 x 16, which has units digit 2
And so on.

When we do all of this, we end up with units digit 4.

Answer: C

Cheers,
Brent


Thanks BrentGMATPrepNow for the detailed solution.

I am wondering whether problems such as this can be solved within 2 minutes in exam. Can you please recommend how to approach this or similar problem in exam situation w.r.t timing ?
GMAT Club Legend
GMAT Club Legend
Joined: 12 Sep 2015
Posts: 6820
Own Kudos [?]: 29936 [0]
Given Kudos: 799
Location: Canada
Send PM
Re: What is the rightmost non-zero digit of 20! ? [#permalink]
Expert Reply
Top Contributor
akadiyan wrote:
Thanks BrentGMATPrepNow for the detailed solution.

I am wondering whether problems such as this can be solved within 2 minutes in exam. Can you please recommend how to approach this or similar problem in exam situation w.r.t timing ?


Keep in mind that explaining the solution takes a lot longer than actually solving the question.
Although this is a time-consuming question, I think it can be answered in under 2 minutes if we start our calculations quickly.
User avatar
Non-Human User
Joined: 09 Sep 2013
Posts: 32680
Own Kudos [?]: 822 [0]
Given Kudos: 0
Send PM
Re: What is the rightmost non-zero digit of 20! ? [#permalink]
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.
GMAT Club Bot
Re: What is the rightmost non-zero digit of 20! ? [#permalink]
Moderators:
Math Expert
92915 posts
Senior Moderator - Masters Forum
3137 posts

Powered by phpBB © phpBB Group | Emoji artwork provided by EmojiOne