Last visit was: 19 Nov 2025, 06:25 It is currently 19 Nov 2025, 06:25
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
User avatar
IndigoIntentions
User avatar
Current Student
Joined: 26 Sep 2010
Last visit: 29 Jan 2016
Posts: 119
Own Kudos:
117
 [54]
Given Kudos: 18
Nationality: Indian
Concentration: Entrepreneurship, General Management
Products:
2
Kudos
Add Kudos
52
Bookmarks
Bookmark this Post
Most Helpful Reply
User avatar
Bunuel
User avatar
Math Expert
Joined: 02 Sep 2009
Last visit: 19 Nov 2025
Posts: 105,388
Own Kudos:
Given Kudos: 99,977
Products:
Expert
Expert reply
Active GMAT Club Expert! Tag them with @ followed by their username for a faster response.
Posts: 105,388
Kudos: 778,226
 [10]
3
Kudos
Add Kudos
7
Bookmarks
Bookmark this Post
User avatar
stanford2012
Joined: 02 Apr 2010
Last visit: 09 Mar 2012
Posts: 78
Own Kudos:
286
 [8]
Given Kudos: 18
Posts: 78
Kudos: 286
 [8]
4
Kudos
Add Kudos
4
Bookmarks
Bookmark this Post
General Discussion
User avatar
subhashghosh
User avatar
Retired Moderator
Joined: 16 Nov 2010
Last visit: 25 Jun 2024
Posts: 896
Own Kudos:
1,279
 [1]
Given Kudos: 43
Location: United States (IN)
Concentration: Strategy, Technology
Products:
Posts: 896
Kudos: 1,279
 [1]
1
Kudos
Add Kudos
Bookmarks
Bookmark this Post
4 * 3 * 5!/2!

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

= 12 * 60 = 720

Answer D
avatar
tarunjagtap
Joined: 19 Jul 2010
Last visit: 23 Sep 2015
Posts: 10
Own Kudos:
Given Kudos: 3
Posts: 10
Kudos: 11
Kudos
Add Kudos
Bookmarks
Bookmark this Post
Bunuel
IndigoIntentions
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
User avatar
Bunuel
User avatar
Math Expert
Joined: 02 Sep 2009
Last visit: 19 Nov 2025
Posts: 105,388
Own Kudos:
778,226
 [1]
Given Kudos: 99,977
Products:
Expert
Expert reply
Active GMAT Club Expert! Tag them with @ followed by their username for a faster response.
Posts: 105,388
Kudos: 778,226
 [1]
Kudos
Add Kudos
1
Bookmarks
Bookmark this Post
tarunjagtap
Bunuel
IndigoIntentions
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.
User avatar
SVaidyaraman
Joined: 17 Dec 2012
Last visit: 11 Jul 2025
Posts: 576
Own Kudos:
Given Kudos: 20
Location: India
Expert
Expert reply
Posts: 576
Kudos: 1,795
Kudos
Add Kudos
Bookmarks
Bookmark this Post
IndigoIntentions
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
diab
Joined: 19 May 2013
Last visit: 16 Jan 2014
Posts: 1
Given Kudos: 11
Posts: 1
Kudos: 0
Kudos
Add Kudos
Bookmarks
Bookmark this Post
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
GMAT40
Joined: 17 May 2013
Last visit: 04 Nov 2013
Posts: 34
Own Kudos:
Given Kudos: 8
GMAT Date: 10-23-2013
Posts: 34
Kudos: 20
Kudos
Add Kudos
Bookmarks
Bookmark this Post
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
avatar
rajendra00
Joined: 24 Aug 2014
Last visit: 06 Nov 2019
Posts: 4
Own Kudos:
Given Kudos: 2
Concentration: Operations, Leadership
GMAT Date: 07-05-2015
Posts: 4
Kudos: 1
Kudos
Add Kudos
Bookmarks
Bookmark this Post
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?)
User avatar
Abhishek009
User avatar
Board of Directors
Joined: 11 Jun 2011
Last visit: 18 Jul 2025
Posts: 5,934
Own Kudos:
5,327
 [1]
Given Kudos: 463
Status:QA & VA Forum Moderator
Location: India
GPA: 3.5
WE:Business Development (Commercial Banking)
Posts: 5,934
Kudos: 5,327
 [1]
1
Kudos
Add Kudos
Bookmarks
Bookmark this Post
rajendra00
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 22914 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 22850 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 22894 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 22873 times ]
Now, Final Picture is
Attachment:
Final.PNG
Final.PNG [ 1.9 KiB | Viewed 22906 times ]
So, Total Number of ways is 4*5*4*3*3 = 720 ways..

Hence answer will be (D) 720..

Hope this helps.
User avatar
shashankism
Joined: 13 Mar 2017
Last visit: 23 Dec 2024
Posts: 609
Own Kudos:
Given Kudos: 88
Affiliations: IIT Dhanbad
Location: India
Concentration: General Management, Entrepreneurship
GPA: 3.8
WE:Engineering (Energy)
Posts: 609
Kudos: 694
Kudos
Add Kudos
Bookmarks
Bookmark this Post
IndigoIntentions
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.
User avatar
ameyaprabhu
Joined: 28 Apr 2016
Last visit: 09 Aug 2017
Posts: 68
Own Kudos:
Given Kudos: 79
Posts: 68
Kudos: 34
Kudos
Add Kudos
Bookmarks
Bookmark this Post
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?
User avatar
shashankism
Joined: 13 Mar 2017
Last visit: 23 Dec 2024
Posts: 609
Own Kudos:
694
 [3]
Given Kudos: 88
Affiliations: IIT Dhanbad
Location: India
Concentration: General Management, Entrepreneurship
GPA: 3.8
WE:Engineering (Energy)
Posts: 609
Kudos: 694
 [3]
3
Kudos
Add Kudos
Bookmarks
Bookmark this Post
ameyaprabhu
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...
User avatar
TimeTraveller
Joined: 28 Jun 2015
Last visit: 29 Jul 2017
Posts: 237
Own Kudos:
Given Kudos: 47
Concentration: Finance
GPA: 3.5
Posts: 237
Kudos: 346
Kudos
Add Kudos
Bookmarks
Bookmark this Post
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.
User avatar
Archit3110
User avatar
Major Poster
Joined: 18 Aug 2017
Last visit: 19 Nov 2025
Posts: 8,422
Own Kudos:
Given Kudos: 243
Status:You learn more from failure than from success.
Location: India
Concentration: Sustainability, Marketing
GMAT Focus 1: 545 Q79 V79 DI73
GMAT Focus 2: 645 Q83 V82 DI81
GPA: 4
WE:Marketing (Energy)
GMAT Focus 2: 645 Q83 V82 DI81
Posts: 8,422
Kudos: 4,980
Kudos
Add Kudos
Bookmarks
Bookmark this Post
IndigoIntentions
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
bumpbot
User avatar
Non-Human User
Joined: 09 Sep 2013
Last visit: 04 Jan 2021
Posts: 38,587
Own Kudos:
Posts: 38,587
Kudos: 1,079
Kudos
Add Kudos
Bookmarks
Bookmark this Post
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.
Moderators:
Math Expert
105388 posts
Tuck School Moderator
805 posts