Last visit was: 19 Nov 2025, 11:49 It is currently 19 Nov 2025, 11:49
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
Bunuel
User avatar
Math Expert
Joined: 02 Sep 2009
Last visit: 19 Nov 2025
Posts: 105,390
Own Kudos:
778,326
 [6]
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,390
Kudos: 778,326
 [6]
Kudos
Add Kudos
6
Bookmarks
Bookmark this Post
User avatar
urshi
Joined: 21 Feb 2018
Last visit: 19 May 2021
Posts: 126
Own Kudos:
Given Kudos: 448
Location: India
Concentration: General Management, Strategy
WE:Consulting (Consulting)
Products:
Posts: 126
Kudos: 140
Kudos
Add Kudos
Bookmarks
Bookmark this Post
User avatar
sj296
Joined: 09 Jul 2014
Last visit: 19 Mar 2025
Posts: 305
Own Kudos:
Given Kudos: 346
Location: India
Concentration: General Management, Finance
Schools: ISB '24
Schools: ISB '24
Posts: 305
Kudos: 388
Kudos
Add Kudos
Bookmarks
Bookmark this Post
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,982
Kudos
Add Kudos
Bookmarks
Bookmark this Post
total ways to arrange 5 digits is ; 10^5 and given condition that 5 is not followed by let 9
Let 95 be X so total places would be X10_10_10_ ;
we have 4*10^3 ways to put 5 next to 9 and to not put it this way total ways ;
10^5-4*10^3 ;
option A 96,000

A locker code consists of five digits, for example 04391, 23335, 05531... David wants to set his locker code so that digit 5 is not immediately followed by the digit 9. How many such codes are possible?

A. 96,000
B. 96,001
C. 96,002
D. 96,003
E. 96,004

Posted from my mobile device
User avatar
mSKR
Joined: 14 Aug 2019
Last visit: 10 Mar 2024
Posts: 1,290
Own Kudos:
Given Kudos: 381
Location: Hong Kong
Concentration: Strategy, Marketing
GMAT 1: 650 Q49 V29
GPA: 3.81
GMAT 1: 650 Q49 V29
Posts: 1,290
Kudos: 938
Kudos
Add Kudos
Bookmarks
Bookmark this Post
5 digits can be placed with 10 numebrs ( 0,1,2,...9)
total possible digits = 100000

If 5 is immediately followed after 9 then total digits would be
10 * 10*10 *(9 ) (5)
(9)(5) can be at 1st digit, 2nd ,3rd or 4th
so total values in whih 95 together: 4*1000


without 5 followed after 9
= 10^5- 4000

96000- final answer (A)
User avatar
binsnitin11
Joined: 08 Apr 2011
Last visit: 13 Feb 2024
Posts: 17
Own Kudos:
Given Kudos: 14
GMAT 1: 770 Q50 V44 (Online)
Posts: 17
Kudos: 58
Kudos
Add Kudos
Bookmarks
Bookmark this Post
A locker code consists of five digits, for example 04391, 23335, 05531... David wants to set his locker code so that digit 5 is not immediately followed by the digit 9. How many such codes are possible?

A. 96,000
B. 96,001
C. 96,002
D. 96,003
E. 96,004

Since as per stated examples we can deduce that we can repeat the digits in 5 digit locker code

so for 5 position we have 10^5 options or 100,000

Now lets see codes with 95 together
95--- = 10^3
and since we can use 95 to 4 location in 5 digit locker code (95---,-95--,--95-,---95) total number of combination with 95 would be
4*10^3

so total number of locker code with no digit 5 followed by digit 9 =
10^5 - 4*10^3
=10^3(10^2-4)
= 96000

IMO A
User avatar
ShankSouljaBoi
Joined: 21 Jun 2017
Last visit: 17 Apr 2024
Posts: 622
Own Kudos:
Given Kudos: 4,090
Location: India
Concentration: Finance, Economics
GMAT 1: 660 Q49 V31
GMAT 2: 620 Q47 V30
GMAT 3: 650 Q48 V31
GPA: 3.1
WE:Corporate Finance (Non-Profit and Government)
Products:
Kudos
Add Kudos
Bookmarks
Bookmark this Post
5 digit code = 10^5
That 5 follows 9 we have [(10^3)*1]*4
Subtracting from 10^5. We get A

Posted from my mobile device
avatar
expandhorizons
Joined: 02 Dec 2017
Last visit: 12 Jan 2022
Posts: 6
Own Kudos:
Given Kudos: 81
Posts: 6
Kudos: 31
Kudos
Add Kudos
Bookmarks
Bookmark this Post
First of all, let's consider the total no: of 5-digit codes that can be formed : P1 P2 P3 P4 P5 are the positions of the code.

P1 can be taken by any of the 10 digits from 0 to 9, since 0 is also allowed in P1.

Similarly P2, P3, P4, & P5 can also be taken by any of the 10 digits, since repetition of digits is allowed.

So, the total no: of 5-digit codes that can be formed is 10x10x10x10x10 = 10^5

Since David wants to set his locker code so that digit 5 is not immediately followed by the digit 9, let's remove all such codes, in which 5 is immediately followed by 9, from the total.

When 5 takes P1 & 9 takes P2, the remaining positions : P3,P4, & P5: can be taken by any of the 10 digits i.e. 10x10x10 = 10^3 codes

Similarly, When 5 takes P2 & 9 takes P3, we get 10 ^ 3 codes

When 5 takes P3 & 9 takes P4, we get 10 ^ 3 codes

When 5 takes P4 & 9 takes P5, we get 10 ^ 3 codes

So, the total no: of codes in which 5 is immediately followed by 9 = 4 * 10^3
= 4000

Since David wants to exclude all such codes : (Total no: of codes) - (no: of codes in which 5 is immediately followed by 9 )

=> 10^5 - 4000

=> 96000

Hence, A is the answer
User avatar
bidskamikaze
Joined: 07 Jan 2018
Last visit: 29 Oct 2022
Posts: 261
Own Kudos:
Given Kudos: 160
Location: India
GMAT 1: 710 Q49 V38
GMAT 1: 710 Q49 V38
Posts: 261
Kudos: 295
Kudos
Add Kudos
Bookmarks
Bookmark this Post
A locker code consists of five digits, for example 04391, 23335, 05531... David wants to set his locker code so that digit 5 is not immediately followed by the digit 9. How many such codes are possible?

A. 96,000
B. 96,001
C. 96,002
D. 96,003
E. 96,004

Total combinations: \(10^5\)
Number of Combinations in which 9 follows 5: \(4* 10^3\)
Required number of combinations: \(10^5 - 4* 10^3\)
96000
Answer A
avatar
CluelessLearner
Joined: 23 Jul 2017
Last visit: 05 Jan 2024
Posts: 30
Own Kudos:
Given Kudos: 10
Location: India
Concentration: Technology, Entrepreneurship
GPA: 2.16
WE:Other (Other)
Posts: 30
Kudos: 50
Kudos
Add Kudos
Bookmarks
Bookmark this Post
Total number of possible combinations = \(10*10*10*10*10 = 10^5\)

Possible combinations for 9 being followed by 5 -
95xxx - \(10*10*10 = 10^3\)
x95xx - \(10*10*10 = 10^3\)
xx95x - \(10*10*10 = 10^3\)
xxx95 - \(10*10*10 = 10^3\)

Total Combinations Possible as per the question = \(10^5 - 4*10^3 = 96000\)

A
User avatar
archita123
Joined: 25 Jun 2019
Last visit: 12 Jun 2025
Posts: 2
Own Kudos:
Given Kudos: 38
Posts: 2
Kudos: 9
Kudos
Add Kudos
Bookmarks
Bookmark this Post
Total possibilities minus possibilities in which 59 are together in same order

Total possibilities are 10^5
Possibilities when 5 and 9 are together are 4C1 * 10^3

Solving we get 96000

Posted from my mobile device
User avatar
suryabanda
Joined: 20 Apr 2015
Last visit: 17 Nov 2025
Posts: 4
Own Kudos:
Given Kudos: 2
Location: India
GPA: 4
Posts: 4
Kudos: 17
Kudos
Add Kudos
Bookmarks
Bookmark this Post
The total number of possible codes is for a five digit number is - 10^5


9 and 5 should be together - so total number of possible codes is 4×10^3.

Hence answer is 10^5-4×10^3 = 96,000

Posted from my mobile device
avatar
sk7075
Joined: 08 Jan 2018
Last visit: 18 Nov 2022
Posts: 18
Own Kudos:
Given Kudos: 54
Location: India
Schools: ISB '23 (I)
GPA: 4
Schools: ISB '23 (I)
Posts: 18
Kudos: 55
Kudos
Add Kudos
Bookmarks
Bookmark this Post
_ _ _ _ _
Total possibility = 10^5

(9,5) _ _ _
Possibility = 4C1 *10*10*10 = 4000
Required possibilities = 10^5 - 4000 = 96000
Hence A

Posted from my mobile device
User avatar
Kinshook
User avatar
Major Poster
Joined: 03 Jun 2019
Last visit: 19 Nov 2025
Posts: 5,794
Own Kudos:
Given Kudos: 161
Location: India
GMAT 1: 690 Q50 V34
WE:Engineering (Transportation)
Products:
GMAT 1: 690 Q50 V34
Posts: 5,794
Kudos: 5,510
Kudos
Add Kudos
Bookmarks
Bookmark this Post
Given: If locker code consists of five digits, for example 04391, 23335, 05531... David wants to set his locker code so that digit 5 is not immediately followed by the digit 9.

Asked: How many such codes are possible?

Total codes consisting of 5 digits =10^5 =100000
Codes consisting of the sequence 59 = 10^3×4=4000
Since there are 10^3 ways to choose remaining 3 digits and 4 ways in which location of 59 may be chosen.

Total codes in which 5 is not immedately followed by 9 = 10000-4900 = 96000

IMO A

Posted from my mobile device
User avatar
Nevernevergiveup
User avatar
Retired Moderator
Joined: 18 Sep 2014
Last visit: 20 Aug 2023
Posts: 1,008
Own Kudos:
Given Kudos: 79
Location: India
Products:
Posts: 1,008
Kudos: 3,016
Kudos
Add Kudos
Bookmarks
Bookmark this Post
A locker code consists of five digits, for example 04391, 23335, 05531... David wants to set his locker code so that digit 5 is not immediately followed by the digit 9. How many such codes are possible?

since numbers can be repeated all cases will be \(10*10*10*10*10=10^5\)
cases where 5 is followed by 9 will be \(4*10^3=4000\)
\(5,9,10,10,10~10^3\)
\(10,5,9,10,10~10^3\)
\(10,10,5,9,10~10^3\)
\(10,10,10,5,9,~10^3\)

\(10^5-4000=96000\\
\)
User avatar
NoMercy
Joined: 21 Aug 2017
Last visit: 06 Apr 2023
Posts: 39
Own Kudos:
32
 [1]
Given Kudos: 142
Posts: 39
Kudos: 32
 [1]
1
Kudos
Add Kudos
Bookmarks
Bookmark this Post
I am confused with number of cases I am getting in this question. Please help how to solve in a shorter way

Posted from my mobile device
avatar
Tanushka77
avatar
Current Student
Joined: 10 Jul 2019
Last visit: 13 Apr 2021
Posts: 21
Own Kudos:
Given Kudos: 30
Posts: 21
Kudos: 96
Kudos
Add Kudos
Bookmarks
Bookmark this Post
A locker code consists of five digits, for example 04391, 23335, 05531... David wants to set his locker code so that digit 5 is not immediately followed by the digit 9. How many such codes are possible?

First of all, total number of codes is 10^5
Now we will take [59] as one single number.
[59]XXX it has 1C4 different arrangement, which is 4. The other 3 digits can have 10^3 values
Thus 10^5-4*10^3=10000-4000=9600
The answer is A

Posted from my mobile device
avatar
123456789007
Joined: 07 Sep 2019
Last visit: 25 Oct 2020
Posts: 30
Own Kudos:
Given Kudos: 75
Location: India
Schools: Kellogg '23
Products:
Schools: Kellogg '23
Posts: 30
Kudos: 33
Kudos
Add Kudos
Bookmarks
Bookmark this Post
Suppose that 5 follows 9
59_ _ _
_ 59_ _
_ _ 59_
_ _ _59
These will be the possibility that is 10 possible way of writing first _
So 10*10*10=1000*4 for four option ie 4000
Total possiblity is 10*10*10*10*10=100000-4000=96000 possibility

Posted from my mobile device
User avatar
aswindvc
Joined: 02 Jul 2018
Last visit: 02 Sep 2020
Posts: 20
Own Kudos:
Given Kudos: 20
Posts: 20
Kudos: 43
Kudos
Add Kudos
Bookmarks
Bookmark this Post
A locker code consists of five digits, for example 04391, 23335, 05531... David wants to set his locker code so that digit 5 is not immediately followed by the digit 9. How many such codes are possible?

A. 96,000
B. 96,001
C. 96,002
D. 96,003
E. 96,004

Here we should try to find cases where 5 comes exactly after 9. That will be 4000 such cases. Total sample 100000 possibilities minus 4000 is 96000 possibilities.

So option A is the correct answer.

Posted from my mobile device
User avatar
HowdyPartner
Joined: 10 Jul 2018
Last visit: 23 Oct 2020
Posts: 25
Own Kudos:
Given Kudos: 75
Posts: 25
Kudos: 31
Kudos
Add Kudos
Bookmarks
Bookmark this Post
A locker code consists of five digits, for example 04391, 23335, 05531... David wants to set his locker code so that digit 5 is not immediately followed by the digit 9. How many such codes are possible?

A. 96,000
B. 96,001
C. 96,002
D. 96,003
E. 96,004
----
Howdy -- Need to take 10^5 total possibilities and then figure out the number of possibilities that do not fit this. From here, we know that B is the correct answer.
 1   2   3   4   
Moderator:
Math Expert
105390 posts