Last visit was: 28 Apr 2024, 16:05 It is currently 28 Apr 2024, 16:05

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
User avatar
Current Student
Joined: 26 Sep 2010
Posts: 119
Own Kudos [?]: 105 [42]
Given Kudos: 18
Nationality: Indian
Concentration: Entrepreneurship, General Management
Send PM
Most Helpful Reply
Math Expert
Joined: 02 Sep 2009
Posts: 92977
Own Kudos [?]: 619710 [10]
Given Kudos: 81613
Send PM
User avatar
Manager
Manager
Joined: 02 Apr 2010
Posts: 78
Own Kudos [?]: 255 [8]
Given Kudos: 18
Send PM
General Discussion
Retired Moderator
Joined: 16 Nov 2010
Posts: 909
Own Kudos [?]: 1175 [1]
Given Kudos: 43
Location: United States (IN)
Concentration: Strategy, Technology
Send PM
Re: 5-digit security code [#permalink]
1
Kudos
4 * 3 * 5!/2!

= 12 * (5 * 4 * 3* 2!)/2!

= 12 * 60 = 720

Answer D
avatar
Intern
Intern
Joined: 19 Jul 2010
Posts: 10
Own Kudos [?]: 9 [0]
Given Kudos: 3
Send PM
Re: 5-digit security code [#permalink]
Bunuel wrote:
IndigoIntentions wrote:
The security gate at a storage facility requires a five-digit lock code. If the lock code
must consist only of digits from 1 through 7, inclusive, with no repeated digits, and
the first and last digits of the code must be odd, how many lock codes are possible?

a)120
b)240
c)360
d)720
e)1440


X-X-X-X-X --> there are 4 odd digits from 1 to 7, inclusive thus options for the first and the last X's are: 4-X-X-X-3. Other X's can take following values: 4-5-4-3-3 --> 4*5*4*3*3=720.

Answer: D.


Hi bunuel,


I have a small doubt , why not we are considering that the first and last digit can occur in 2 ways and the middle 3 digits can occur in 6 ways.

for example middle 3 digits can be arranged in 3! ways among themselves after selecting 5c1 4c1 3c1 .

My question may be stupid, please correct my doubt.

Thanks
Math Expert
Joined: 02 Sep 2009
Posts: 92977
Own Kudos [?]: 619710 [1]
Given Kudos: 81613
Send PM
Re: 5-digit security code [#permalink]
1
Bookmarks
Expert Reply
tarunjagtap wrote:
Bunuel wrote:
IndigoIntentions wrote:
The security gate at a storage facility requires a five-digit lock code. If the lock code
must consist only of digits from 1 through 7, inclusive, with no repeated digits, and
the first and last digits of the code must be odd, how many lock codes are possible?

a)120
b)240
c)360
d)720
e)1440


X-X-X-X-X --> there are 4 odd digits from 1 to 7, inclusive thus options for the first and the last X's are: 4-X-X-X-3. Other X's can take following values: 4-5-4-3-3 --> 4*5*4*3*3=720.

Answer: D.


Hi bunuel,


I have a small doubt , why not we are considering that the first and last digit can occur in 2 ways and the middle 3 digits can occur in 6 ways.

for example middle 3 digits can be arranged in 3! ways among themselves after selecting 5c1 4c1 3c1 .

My question may be stupid, please correct my doubt.

Thanks


Consider this: two digit code XX, each digit must be distinct and can be 1, 2 or 3.

First digit can take 3 values (1, 2, or 3) and the second can take 2 values, total 3*2=6 codes:
12
13
21
23
31
32.

Similarly, for the original question: the first digit can take 4 values and the last digit can take 3 values, total 4*3. The same way for the middle 3 digits: the second digit can take 5 values (7 minus two we already used for first and last), the third 4 and the fourth 3.

Total: (4*3)*5*4*3=720.

Hope it's clear.
Director
Director
Joined: 17 Dec 2012
Posts: 589
Own Kudos [?]: 1523 [0]
Given Kudos: 20
Location: India
Send PM
Re: The security gate at a storage facility requires a fivE [#permalink]
Expert Reply
IndigoIntentions wrote:
The security gate at a storage facility requires a five-digit lock code. If the lock code must consist only of digits from 1 through 7, inclusive, with no repeated digits, and the first and last digits of the code must be odd, how many lock codes are possible?

A. 120
B. 240
C. 360
D. 720
E. 1440



1. There is one large group i.e., digits 1 through 7, from which 5 digits should be selected.
2. The first and the last digits have a constraint that they should be odd. There is also a general constraint that each digit should be different.
3. Considering the above constraints the first and the last digits can be selected in \(4P2\) ways. 4 because there are 4 odd digits out of which they can be selected and because there should be no repetition it is \(4P2\) ways for those 2 positions.
4. The second digit cannot have the same digit as the first and the last digit. Therefore it can be chosen out of 7-2=5 digits. Similarly the third digit cannot have the same digit as the first, second and last. So it can be chosen in 4 ways and the fourth digit similarly in 3 ways.
5. So the number of lock codes possible is \(4P2 * 5* 4*3 = 720\)

Therefore the answer is D.
avatar
Intern
Intern
Joined: 19 May 2013
Posts: 1
Own Kudos [?]: [0]
Given Kudos: 11
Send PM
Re: The security gate at a storage facility requires a fivE [#permalink]
We have four odd numbers in this set 1, 3, 5, 7

First digit is 4C1 = 4
Last digit is 3C1 = 3 (we have to exclude the odd digit selected in the previous step.

mid digits are 3 of the remaining 5 digits (2, 4 , 6, in addition to two not selected odd digits) for the 2nd, 3rd and 4th digits in the code

mid digits 5C3 = 60

4*60*3= 720

Answer is D
avatar
Intern
Intern
Joined: 17 May 2013
Posts: 34
Own Kudos [?]: 19 [0]
Given Kudos: 8
GMAT Date: 10-23-2013
Send PM
Re: The security gate at a storage facility requires a fivE [#permalink]
Odd digits between 1 and 7
1 3 5 7 ==> 4
first and last place being fixed, can be filled with Odd number is
4* 5 *4* 3* 3

Total 720 combinations

Ans: D
Intern
Intern
Joined: 24 Aug 2014
Posts: 4
Own Kudos [?]: 1 [0]
Given Kudos: 2
Concentration: Operations, Leadership
GMAT Date: 07-05-2015
Send PM
Re: The security gate at a storage facility requires a fivE [#permalink]
Hi Bunuel,
Small clarification is required on this question.

Lets say.. First and last digits should be odd numbers . so it can be done in 5 ways (First) & 4 Ways (Last). Now, Since 5 digits are remaining for 3 places, ( 5C3 X 3!) can be done.... Finally answer is 360 ( can you explain?)
Board of Directors
Joined: 11 Jun 2011
Status:QA & VA Forum Moderator
Posts: 6072
Own Kudos [?]: 4691 [1]
Given Kudos: 463
Location: India
GPA: 3.5
WE:Business Development (Commercial Banking)
Send PM
Re: The security gate at a storage facility requires a fivE [#permalink]
1
Kudos
rajendra00 wrote:
Hi Bunuel,
Small clarification is required on this question.

Lets say.. First and last digits should be odd numbers . so it can be done in 5 ways (First) & 4 Ways (Last). Now, Since 5 digits are remaining for 3 places, ( 5C3 X 3!) can be done.... Finally answer is 360 ( can you explain?)


Dear rajendra00

Please take it this way...

Quote:
The security gate at a storage facility requires a five-digit lock code.

Attachment:
Places.PNG
Places.PNG [ 1.21 KiB | Viewed 18284 times ]

Quote:
If the lock code must consist only of digits from 1 through 7

So we have the following digits -
Attachment:
Digits.PNG
Digits.PNG [ 1.67 KiB | Viewed 18222 times ]

Quote:
first and last digits of the code must be odd,

So, We have 4 digits to be filled in 2 places that can be done as -
Attachment:
Odd Digit.PNG
Odd Digit.PNG [ 1.7 KiB | Viewed 18261 times ]

Now we are left with 5 digits , ( 2 Odd Digits and 3 Even Digits ) and we now need to fill up 3 places using 5 digits that can be done as -
Attachment:
remaining Digits.PNG
remaining Digits.PNG [ 1.24 KiB | Viewed 18254 times ]

Now, Final Picture is
Attachment:
Final.PNG
Final.PNG [ 1.9 KiB | Viewed 18257 times ]

So, Total Number of ways is 4*5*4*3*3 = 720 ways..

Hence answer will be (D) 720..

Hope this helps.
Director
Director
Joined: 13 Mar 2017
Affiliations: IIT Dhanbad
Posts: 628
Own Kudos [?]: 590 [0]
Given Kudos: 88
Location: India
Concentration: General Management, Entrepreneurship
GPA: 3.8
WE:Engineering (Energy and Utilities)
Send PM
The security gate at a storage facility requires a fivE [#permalink]
IndigoIntentions wrote:
The security gate at a storage facility requires a five-digit lock code. If the lock code must consist only of digits from 1 through 7, inclusive, with no repeated digits, and the first and last digits of the code must be odd, how many lock codes are possible?

A. 120
B. 240
C. 360
D. 720
E. 1440


Security gate requires a five digit lock code.
Lock code can take digits from 1 to 7 inclusive i.e. 1,2,3,4,5,6,7... Odd nos. among these nos are 1,3,5,7,total 4 in numbers.

Lets make boxes below to check in how many digits can be placed at the 5 different places of the lock code.

| 4ways (only odd allowed) | 5ways | 4ways | 3ways | 3ways (only odd allowed) |

Let me explain this..
At the first place we can place any of the 4 digits.
At the last place we can place any of 3 digits. (as digits can't be repeated.)

Now there are 5 digits left.
So, at the 2nd place we can place any of 5 digits.
at the 3rd place we can place any of 4 digits.
at the 4th place we can place any of 3 digits.

So, total number of lock codes possible = 4 * 5 * 4 * 3 * 3 = 80 * 9 = 720.

Answer D.
Manager
Manager
Joined: 28 Apr 2016
Posts: 71
Own Kudos [?]: 23 [0]
Given Kudos: 79
Send PM
Re: The security gate at a storage facility requires a fivE [#permalink]
Hi,

I always get confused as to when to use the arrangement formula, i.e. n!, and when to use the combination formula, i.e. nCp.

In the given question I understood the selection of the 1st and last place.

My doubt is for the middle 3 places. Now since we have to 'choose 3 digits out of 5' to fill the middle 3 places, why can't we do 5C3?
Director
Director
Joined: 13 Mar 2017
Affiliations: IIT Dhanbad
Posts: 628
Own Kudos [?]: 590 [3]
Given Kudos: 88
Location: India
Concentration: General Management, Entrepreneurship
GPA: 3.8
WE:Engineering (Energy and Utilities)
Send PM
Re: The security gate at a storage facility requires a fivE [#permalink]
3
Kudos
ameyaprabhu wrote:
Hi,

I always get confused as to when to use the arrangement formula, i.e. n!, and when to use the combination formula, i.e. nCp.

In the given question I understood the selection of the 1st and last place.

My doubt is for the middle 3 places. Now since we have to 'choose 3 digits out of 5' to fill the middle 3 places, why can't we do 5C3?


Use arrangement formula n! only when u need to arrange the things like.

I am taking a very simple example for this .
If u want to make an arrangement of numbers 3,4,5 = 3! = 6
So lets see it by making the arrangement (345),(354),(534),(543)(453),(435) = Total 6 .

nCp is used when u have to make selection . For e.g. u need to select the 2 numbers from the three given numbers 3,4,5, = 3C2 = 3 ways.

Coming to the given question.
U have already understood the the first and last numbers,

Now for the middle places, We have to choose 3 digit out of 5 to fill the places. So it can be done in 5 x4 x3 ways = 60 ways

It can also be done in the way you suggested. Lets do it that way. So according to you choose 3 digits out of 5 to fill the middle 3 places = 5C3 = 5!/3!/2!
But these 3 numbers which you have selected out of 5 can also be arranged among themselves in 3! ways as explained in the example of 3,4,5. So you need to multiply your section with 3!. So the total ways become 5!/3!/2! * 3! = 5!/2! = 5*4*3 = 60 ways.. So answer comes to same ... either your way or my way.. Its just you need to think completely. Don't forget to appreciate with kudos if you like my answer.

I hope it solves your issue. Practice more questions to understand. With practice you will find that you don't need any formula and you can just calculate either way...
Senior Manager
Senior Manager
Joined: 28 Jun 2015
Posts: 250
Own Kudos [?]: 294 [0]
Given Kudos: 47
Concentration: Finance
GPA: 3.5
Send PM
Re: The security gate at a storage facility requires a fivE [#permalink]
Let x-x-x-x-x be the 5-digit code.
No. of possibilities for each digit = 4-5-4-3-3 = 4*5*4*3*3 = 720 possibilities. Ans - D.
Manager
Manager
Joined: 28 Apr 2016
Posts: 71
Own Kudos [?]: 23 [0]
Given Kudos: 79
Send PM
Re: The security gate at a storage facility requires a fivE [#permalink]
Thanks for the detailed explanation. Knowing the reasoning helps to apply the formula better.
VP
VP
Joined: 13 Apr 2013
Status:It's near - I can see.
Posts: 1479
Own Kudos [?]: 1603 [0]
Given Kudos: 1002
Location: India
Concentration: International Business, Operations
GPA: 3.01
WE:Engineering (Real Estate)
Send PM
Re: The security gate at a storage facility requires a fivE [#permalink]
Bunuel wrote:
IndigoIntentions wrote:
The security gate at a storage facility requires a five-digit lock code. If the lock code
must consist only of digits from 1 through 7, inclusive, with no repeated digits, and
the first and last digits of the code must be odd, how many lock codes are possible?

a)120
b)240
c)360
d)720
e)1440


X-X-X-X-X --> there are 4 odd digits from 1 to 7, inclusive thus options for the first and the last X's are: 4-X-X-X-3. Other X's can take following values: 4-5-4-3-3 --> 4*5*4*3*3=720.

Answer: D.


Bunuel : Is it always necessary to start from the restrictions? Here first and the last digit for example. Or it is better to start from the restriction to avoid unnecessary error?
GMAT Club Legend
GMAT Club Legend
Joined: 18 Aug 2017
Status:You learn more from failure than from success.
Posts: 8022
Own Kudos [?]: 4101 [0]
Given Kudos: 242
Location: India
Concentration: Sustainability, Marketing
GMAT Focus 1:
545 Q79 V79 DI73
GPA: 4
WE:Marketing (Energy and Utilities)
Send PM
Re: The security gate at a storage facility requires a fivE [#permalink]
IndigoIntentions wrote:
The security gate at a storage facility requires a five-digit lock code. If the lock code must consist only of digits from 1 through 7, inclusive, with no repeated digits, and the first and last digits of the code must be odd, how many lock codes are possible?

A. 120
B. 240
C. 360
D. 720
E. 1440


codes can be
odd= 1,3,5,7
even= 2,4,6
4*5*4*3*3 ; 720 IMO D
User avatar
Non-Human User
Joined: 09 Sep 2013
Posts: 32723
Own Kudos [?]: 822 [0]
Given Kudos: 0
Send PM
Re: The security gate at a storage facility requires a fivE [#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: The security gate at a storage facility requires a fivE [#permalink]
Moderators:
Math Expert
92977 posts
Senior Moderator - Masters Forum
3137 posts

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