Last visit was: 21 Apr 2026, 01:56 It is currently 21 Apr 2026, 01:56
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
555-605 (Medium)|   Combinations|                              
User avatar
Bunuel
User avatar
Math Expert
Joined: 02 Sep 2009
Last visit: 21 Apr 2026
Posts: 109,715
Own Kudos:
Given Kudos: 105,795
Products:
Expert
Expert reply
Active GMAT Club Expert! Tag them with @ followed by their username for a faster response.
Posts: 109,715
Kudos: 810,339
 [388]
30
Kudos
Add Kudos
355
Bookmarks
Bookmark this Post
Most Helpful Reply
User avatar
Skywalker18
User avatar
Retired Moderator
Joined: 08 Dec 2013
Last visit: 15 Nov 2023
Posts: 1,974
Own Kudos:
Given Kudos: 171
Status:Greatness begins beyond your comfort zone
Location: India
Concentration: General Management, Strategy
GPA: 3.2
WE:Information Technology (Consulting)
Products:
Posts: 1,974
Kudos: 10,157
 [192]
137
Kudos
Add Kudos
55
Bookmarks
Bookmark this Post
User avatar
generis
User avatar
Senior SC Moderator
Joined: 22 May 2016
Last visit: 18 Jun 2022
Posts: 5,258
Own Kudos:
37,722
 [73]
Given Kudos: 9,464
Expert
Expert reply
Posts: 5,258
Kudos: 37,722
 [73]
48
Kudos
Add Kudos
25
Bookmarks
Bookmark this Post
User avatar
AkshdeepS
Joined: 13 Apr 2013
Last visit: 20 Apr 2026
Posts: 1,423
Own Kudos:
1,936
 [25]
Given Kudos: 1,002
Status:It's near - I can see.
Location: India
Concentration: International Business, Operations
GPA: 3.01
WE:Engineering (Real Estate)
Products:
Posts: 1,423
Kudos: 1,936
 [25]
23
Kudos
Add Kudos
2
Bookmarks
Bookmark this Post
Bunuel
A three-digit code for certain locks uses the digits 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 according to the following constraints. The first digit cannot be 0 or 1, the second digit must be 0 or 1, and the second and third digits cannot both be 0 in the same code. How many different codes are possible?

(A) 144
(B) 152
(C) 160
(D) 168
(E) 176

Kudos for a correct solution.

Total digits = 10

Code digits = X Y Z

Now Slot X can take 8 values except 0 & 1

Slot Y can take 1 value, either 0 or 1

Then, if Slot Y takes digit "0" then slot Z can only take 9 digits (It can't take digit zero)

If slot Y takes digit "1" then slot Z can take all digits i.e, all 10 digits.

Therefore possible different codes are = 8*1*9+8*1*10 = 72+80=152 Option B
General Discussion
User avatar
reto
User avatar
Retired Moderator
Joined: 29 Apr 2015
Last visit: 24 Aug 2018
Posts: 716
Own Kudos:
4,304
 [8]
Given Kudos: 302
Location: Switzerland
Concentration: Economics, Finance
Schools: LBS MIF '19
WE:Asset Management (Finance: Investment Banking)
Schools: LBS MIF '19
Posts: 716
Kudos: 4,304
 [8]
5
Kudos
Add Kudos
3
Bookmarks
Bookmark this Post
Bunuel
A three-digit code for certain locks uses the digits 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 according to the following constraints. The first digit cannot be 0 or 1, the second digit must be 0 or 1, and the second and third digits cannot both be 0 in the same code. How many different codes are possible?

(A) 144
(B) 152
(C) 160
(D) 168
(E) 176

Kudos for a correct solution.

Split it up in 2 scenarios:

First scenario, second digit = 1: 8*1*10 = 80 (The first digit has 8 possible numbers, the second is one and the last can be any number since the second is one)
Second scenario, second digit = 0: 8*1*9 = 72 (The first digit has again 8 possible numbers, the second is 0 in this case and therefore the last can only have 9 other digits)

Since this is an "OR" relationship, add the two 80+72 = 152

Answer B
User avatar
v12345
Joined: 01 Mar 2015
Last visit: 19 Jan 2026
Posts: 398
Own Kudos:
1,117
 [5]
Given Kudos: 44
Location: India
Posts: 398
Kudos: 1,117
 [5]
4
Kudos
Add Kudos
1
Bookmarks
Bookmark this Post
Bunuel
A three-digit code for certain locks uses the digits 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 according to the following constraints. The first digit cannot be 0 or 1, the second digit must be 0 or 1, and the second and third digits cannot both be 0 in the same code. How many different codes are possible?

(A) 144
(B) 152
(C) 160
(D) 168
(E) 176

Kudos for a correct solution.

we have two cases here

case 1 when 2nd digit is 0, then we can have 9 different digits in third place and 8 different digits on 1st place

no of possibilities = 9 * 8 = 72

case 2 when 2nd digit is 1, then we can have 10 different digits in third place and 8 different digits on 1st place

no of possibilities = 10 * 8 = 80

total = 72 + 80 = 152

Answer choice B

kudos, if you like the post
avatar
MaticSkok
Joined: 28 Jul 2015
Last visit: 18 Jan 2017
Posts: 3
Own Kudos:
7
 [6]
Given Kudos: 148
Posts: 3
Kudos: 7
 [6]
5
Kudos
Add Kudos
1
Bookmarks
Bookmark this Post
Result is difference of all possible choices, minus the choices where second digit is 0 and third digit is 0.

1)All choices

On the first place you can have 8 different digits. on second you can have 2 digits and on the third you can have 10 digits.
So, 8*2*10=160

2)Second and third places are 0

On the first place you can still have 8 different digits, on the second you can have only one possible coice (0) and on the third you again have only one possible choice (0).
So, 8*1*1=8

Difference is 160-8=152
Answer B.

regards
User avatar
rishi02
Joined: 21 Sep 2015
Last visit: 06 Jan 2025
Posts: 85
Own Kudos:
526
 [4]
Given Kudos: 403
Location: India
GMAT 1: 730 Q48 V42
GMAT 2: 750 Q50 V41
GMAT 3: 760 Q49 V46
Products:
GMAT 3: 760 Q49 V46
Posts: 85
Kudos: 526
 [4]
4
Kudos
Add Kudos
Bookmarks
Bookmark this Post
Taking two cases :

1st where the center digit is 0 ; no of possibilities = 8*1*9

2nd where the center digit is 1; no of possibilites = 8*1*10

Total = 8*1*19 = 152
avatar
U81
Joined: 07 Dec 2014
Last visit: 31 Jan 2018
Posts: 1
Own Kudos:
4
 [4]
Given Kudos: 48
Posts: 1
Kudos: 4
 [4]
4
Kudos
Add Kudos
Bookmarks
Bookmark this Post
Total possibilities : 8 x 2 x 10= 160
Possibilities with zero in second and third places are 8x1x1=8
Ans 160-8 = 152
User avatar
PGTLrowanhand
Joined: 30 Oct 2012
Last visit: 13 Apr 2026
Posts: 77
Own Kudos:
178
 [11]
Given Kudos: 3
Status:London UK GMAT Consultant / Tutor
Expert
Expert reply
Posts: 77
Kudos: 178
 [11]
8
Kudos
Add Kudos
3
Bookmarks
Bookmark this Post
Hi everyone,

This is my video explanation of the question. Hope you enjoy!


Rowan
User avatar
SVaidyaraman
Joined: 17 Dec 2012
Last visit: 11 Jul 2025
Posts: 566
Own Kudos:
1,833
 [1]
Given Kudos: 20
Location: India
Expert
Expert reply
Posts: 566
Kudos: 1,833
 [1]
1
Kudos
Add Kudos
Bookmarks
Bookmark this Post
Bunuel
A three-digit code for certain locks uses the digits 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 according to the following constraints. The first digit cannot be 0 or 1, the second digit must be 0 or 1, and the second and third digits cannot both be 0 in the same code. How many different codes are possible?

(A) 144
(B) 152
(C) 160
(D) 168
(E) 176

Kudos for a correct solution.
1. Number of possibilities for the first digit is 8
2. Case 1 is when the second digit is 0, number of possibilities for the third digit is 9, for a total of 8*9
3. Case 2 is when second digit is 1, number of possibilities for the third digit is 10, for a total of 8*10
4. Total number of possibilities is (2) + (3) =152
User avatar
dave13
Joined: 09 Mar 2016
Last visit: 15 Mar 2026
Posts: 1,086
Own Kudos:
Given Kudos: 3,851
Posts: 1,086
Kudos: 1,137
Kudos
Add Kudos
Bookmarks
Bookmark this Post
Bunuel
A three-digit code for certain locks uses the digits 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 according to the following constraints. The first digit cannot be 0 or 1, the second digit must be 0 or 1, and the second and third digits cannot both be 0 in the same code. How many different codes are possible?

(A) 144
(B) 152
(C) 160
(D) 168
(E) 176

Kudos for a correct solution.



YAY! my solution:)

\(C^3_{8}=56\) first digit cant be 0, or 1

\(C^2_{9}=36*2=72\) multiply 36 by 2 since the second digit must be 0 or 1

\(C^1_{9}=9\) third digits cannot both be 0 in the same code

\(56+72+36 = 164\) :? i know its wrong answer...

generis, pushpitkc hello deep thinkers :) i tried to tackle the above question using combinatorics formula but something went wrong :)

non of the above mentioned solutions presented in this thread feature combinatorics formula such as the one used by me...., at least i see it that way :) people just use single line multiplication 8*1*10 etc ...is it another combinatorics formula that i am not aware of ? i ask this question because i dont understand based on which formula do they apply this technique ? :? what`s logic :?
could you please correct my solution using combinatorics formula :-) and suggest what is name of formula such as single line multiplication :)

many thanks! :-)
hope you are enjoying weekend :)
User avatar
SpyrosGkikopoulos
Joined: 08 Jan 2019
Last visit: 11 Jul 2019
Posts: 10
Own Kudos:
14
 [3]
Given Kudos: 12
Location: Greece
Concentration: International Business, Finance
GPA: 3.98
WE:Analyst (Consulting)
Posts: 10
Kudos: 14
 [3]
3
Kudos
Add Kudos
Bookmarks
Bookmark this Post
In the answer choises i see a lot of calculations that are IMO not needed.
The total number of possible combinations is 8*2*10=160. From those combinatios we must just remove those that have the same digit in second and third place: 8*1*1=8. Thus, 160-8=152.

Hope this helps.
User avatar
MathRevolution
User avatar
Math Revolution GMAT Instructor
Joined: 16 Aug 2015
Last visit: 27 Sep 2022
Posts: 10,063
Own Kudos:
Given Kudos: 4
GMAT 1: 760 Q51 V42
GPA: 3.82
Expert
Expert reply
GMAT 1: 760 Q51 V42
Posts: 10,063
Kudos: 19,999
Kudos
Add Kudos
Bookmarks
Bookmark this Post
Total numbers: 0 to 9 = 10.

Three-digit code: _, _, _

The first digit cannot be 0 or 1: First space will have 8 choices

The second digit must be 0 or 1:

Case I: If we fix '0', then the third space cannot be '0', and hence third space will have only 9 choices.

=> Total ways: 8 * 1 * 9 = 72

Case II: If we fix '1', then the third space can have any value, and hence third space will have 10 choices.

=> Total ways: 8 * 1 * 10 = 80

Overall ways: 72 + 80 = 152

Answer B
User avatar
ScottTargetTestPrep
User avatar
Target Test Prep Representative
Joined: 14 Oct 2015
Last visit: 20 Apr 2026
Posts: 22,268
Own Kudos:
26,521
 [2]
Given Kudos: 302
Status:Founder & CEO
Affiliations: Target Test Prep
Location: United States (CA)
Expert
Expert reply
Active GMAT Club Expert! Tag them with @ followed by their username for a faster response.
Posts: 22,268
Kudos: 26,521
 [2]
Kudos
Add Kudos
2
Bookmarks
Bookmark this Post
Bunuel
A three-digit code for certain locks uses the digits 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 according to the following constraints. The first digit cannot be 0 or 1, the second digit must be 0 or 1, and the second and third digits cannot both be 0 in the same code. How many different codes are possible?

(A) 144
(B) 152
(C) 160
(D) 168
(E) 176
Solution:

We see that the first digit has 8 choices, the second has 2, and the third has 10. Therefore, there are 8 x 2 x 10 = 160 possible 3-digit codes. However, this includes codes such as 200, 300, …, and 900, which are not allowed. Therefore, there are actually 160 - 8 = 152 possible codes.

Answer: B
User avatar
GMATinsight
User avatar
Major Poster
Joined: 08 Jul 2010
Last visit: 19 Apr 2026
Posts: 6,976
Own Kudos:
16,890
 [2]
Given Kudos: 128
Status:GMAT/GRE Tutor l Admission Consultant l On-Demand Course creator
Location: India
GMAT: QUANT+DI EXPERT
Schools: IIM (A) ISB '24
GMAT 1: 750 Q51 V41
WE:Education (Education)
Products:
Expert
Expert reply
Schools: IIM (A) ISB '24
GMAT 1: 750 Q51 V41
Posts: 6,976
Kudos: 16,890
 [2]
2
Kudos
Add Kudos
Bookmarks
Bookmark this Post
Bunuel
A three-digit code for certain locks uses the digits 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 according to the following constraints. The first digit cannot be 0 or 1, the second digit must be 0 or 1, and the second and third digits cannot both be 0 in the same code. How many different codes are possible?

(A) 144
(B) 152
(C) 160
(D) 168
(E) 176

Video solution by GMATinsight

­
User avatar
Sneha2021
Joined: 20 Dec 2020
Last visit: 10 Jun 2025
Posts: 294
Own Kudos:
Given Kudos: 522
Location: India
Posts: 294
Kudos: 38
Kudos
Add Kudos
Bookmarks
Bookmark this Post
KarishmaB Bunuel
I need some clarity on the approach
All - favourable cases approach = 152

To calculate All cases, we consider 8 x 2 x 10 = 160
Why don't we remove all restriction on each digit for all cases (first position will have 10 option, similarly second position will have 10 option as we can repeat the digit). In other words, why are we restricting 1st & 2nd digit and not 3rd digit for all cases?
What's wrong with this approach?
User avatar
KarishmaB
Joined: 16 Oct 2010
Last visit: 20 Apr 2026
Posts: 16,438
Own Kudos:
79,368
 [1]
Given Kudos: 484
Location: Pune, India
Expert
Expert reply
Active GMAT Club Expert! Tag them with @ followed by their username for a faster response.
Posts: 16,438
Kudos: 79,368
 [1]
1
Kudos
Add Kudos
Bookmarks
Bookmark this Post
Sneha2021
KarishmaB Bunuel
I need some clarity on the approach
All - favourable cases approach = 152

To calculate All cases, we consider 8 x 2 x 10 = 160
Why don't we remove all restriction on each digit for all cases (first position will have 10 option, similarly second position will have 10 option as we can repeat the digit). In other words, why are we restricting 1st & 2nd digit and not 3rd digit for all cases?
What's wrong with this approach?

All 10 digits are not allowed in first position. Only 8 are allowed. Similarly only 2 digits are allowed in second place. We can easily adjust our total cases for these constraints by using 8*2*10. Then the only thing not allowed is the second-third digit combination of 00 and we have 8 such cases so we remove them.
We cannot adjust for this directly (because third digit that is not allowed depends on what second digit is) and hence we do Total - the ones not allowed.


If we start with 10*10*10, we need to remove too many constraints and that's unnecessary work. First digit, 0 and 1 not allowed so remove 2*10*10. We are left with 800. Second digit only 0 and 1 are allowed so remove 8*8*10 so we are left with 160.
Now remove 0-0 combination to be left with 152. Too much work.

Alternatively, we can just add the cases that are allowed i.e. 8*1*10 + 8*1*9 = 152
User avatar
woohoo921
Joined: 04 Jun 2020
Last visit: 17 Mar 2023
Posts: 493
Own Kudos:
Given Kudos: 623
Posts: 493
Kudos: 148
Kudos
Add Kudos
Bookmarks
Bookmark this Post
ScottTargetTestPrep
Bunuel
A three-digit code for certain locks uses the digits 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 according to the following constraints. The first digit cannot be 0 or 1, the second digit must be 0 or 1, and the second and third digits cannot both be 0 in the same code. How many different codes are possible?

(A) 144
(B) 152
(C) 160
(D) 168
(E) 176
Solution:

We see that the first digit has 8 choices, the second has 2, and the third has 10. Therefore, there are 8 x 2 x 10 = 160 possible 3-digit codes. However, this includes codes such as 200, 300, …, and 900, which are not allowed. Therefore, there are actually 160 - 8 = 152 possible codes.

Answer: B

ScottTargetTestPrep
To confirm, you do not need to subject out 100 because multiplying by 8 to start off with already disregards 100 as a possibility? Thank you!
User avatar
ScottTargetTestPrep
User avatar
Target Test Prep Representative
Joined: 14 Oct 2015
Last visit: 20 Apr 2026
Posts: 22,268
Own Kudos:
26,521
 [1]
Given Kudos: 302
Status:Founder & CEO
Affiliations: Target Test Prep
Location: United States (CA)
Expert
Expert reply
Active GMAT Club Expert! Tag them with @ followed by their username for a faster response.
Posts: 22,268
Kudos: 26,521
 [1]
1
Kudos
Add Kudos
Bookmarks
Bookmark this Post
woohoo921
ScottTargetTestPrep
Bunuel
A three-digit code for certain locks uses the digits 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 according to the following constraints. The first digit cannot be 0 or 1, the second digit must be 0 or 1, and the second and third digits cannot both be 0 in the same code. How many different codes are possible?

(A) 144
(B) 152
(C) 160
(D) 168
(E) 176
Solution:

We see that the first digit has 8 choices, the second has 2, and the third has 10. Therefore, there are 8 x 2 x 10 = 160 possible 3-digit codes. However, this includes codes such as 200, 300, …, and 900, which are not allowed. Therefore, there are actually 160 - 8 = 152 possible codes.

Answer: B

ScottTargetTestPrep
To confirm, you do not need to subject out 100 because multiplying by 8 to start off with already disregards 100 as a possibility? Thank you!

Yes. Exactly.
 1   2   
Moderators:
Math Expert
109715 posts
Tuck School Moderator
853 posts