BREAKING: Target Test Prep releases Brand New 2026 On Demand GMAT prep course

Redeem

Target Test Prep · GMAT

Choose how you want to prepare

Learn live with an expert or move at your own pace. Every option includes the complete TTP study system.

★★★★★5.0559 reviews
GMATLiveTeach Starts Oct 17
Chris Peckover, Target Test Prep GMAT expert
LIVE ONLINE CLASSES

Get Ready for GMAT Test Day Faster with Live Online Classes

with Chris Peckover, 100th-Percentile GMAT Scorer

Oct 17 · Chris Peckover
Sat · 11:00 AM to 2:00 PM ET
Oct 20 · Chris Peckover
Tue, Thu · 8:00 to 10:00 PM ET
Oct 25 · Josh Braslow
Sun · 1:00 to 4:00 PM ET
Included
40 hours of live online classes + 6 months of TTP OnDemand
  • Attend the first class for free
  • Every class is recorded, so you never fall behind
View classes & enroll
Limited seats availableTarget Test Prep
EALiveTeachOnDemand 5 seats left Start anytime
EXECUTIVE ASSESSMENT

Target Test Prep EA OnDemand

Self-paced EA prep. Study on your schedule.

Logan Thompson
EXECUTIVE ASSESSMENT

Sep 6 to Dec 6, 2026

with Logan Thompson

165+ EA score guarantee
$05-day trial no automatic billing
Schedule
Sun · 9:30 AM to 12:30 PM ET
Included
40 hours of live online classes plus six months of access to the complete TTP EA OnDemand course.
  • 165+ EA Score Guarantee
  • 4,100+ Quant, Verbal, and Integrated Reasoning practice questions
  • 400+ hours of in-depth video lessons
  • 3,000+ step-by-step video solutions
View EA class & enroll Start free 5-day trial
Limited cohort · enrollment openTrial includes full course accessTarget Test Prep
GMATOnDemand Start anytime
SELF-PACED MASTERCLASS

Target Test Prep GMAT OnDemand

Complete access from day one. Study on your schedule.

715+ score guarantee
$0to start then $127/mo
  • Personalized study plan and analytics
  • Thousands of lessons and practice questions

Compare the format, schedule, and included access before enrolling. Prices and seat counts shown reflect the supplied offer details.

How many allowable codes are there?

Expert replies
by yalanand » Sun Feb 01, 2009 12:24 am
A combination lock can be set so that it opens with a 4-digit code--subject to the restriction that the code number cannot contain adjacent even digits. All the digits from 0 to 9 may be used. How many allowable codes are there?

(A) 9^4
(B) 9x9x8x8
(C) 8(5^4)
(D) 10x9x8x5
(E) 9x8x7x6
Join the discussion
Source: — Problem Solving |

Re: How many allowable codes are there?

by piyush_nitt » Sun Feb 01, 2009 1:09 am
yalanand wrote:A combination lock can be set so that it opens with a 4-digit code--subject to the restriction that the code number cannot contain adjacent even digits. All the digits from 0 to 9 may be used. How many allowable codes are there?

(A) 9^4
(B) 9x9x8x8
(C) 8(5^4)
(D) 10x9x8x5
(E) 9x8x7x6
E - Even
O - ODD

Even numbers - 0,2,4,6,8 - 5total
Odd numbers - 1,3,5,7,9 - 5 Total

here are the diff sets

OOOO - 5*5*5*5
OEOO
OOEO
OOOE
OEOE
EOOO - 4*5*5*5 (cannot start with 0)
EOEO
EOOE

5(5*5*5*5) + 3 (4*5*5*5)

?????
Join the discussion

by yalanand » Sun Feb 01, 2009 1:16 am
It can start wid 0...
Join the discussion

by piyush_nitt » Sun Feb 01, 2009 1:36 am
yalanand wrote:It can start wid 0...
Why ??? If the digit starts with 0 it is no longer a 4 digit number.

Am I missing something?
Join the discussion

by hardik.jadeja » Sun Feb 01, 2009 4:09 am
Answer is 8(5^4) ..

Piyush, the first digit can be 0 because its a lock combination..
you can use 0975 as a four digit lock code..
Join the discussion

by PAB2706 » Sun Feb 01, 2009 5:43 am
@ Hardik..
Please explain.... :?


Even i got the same ansewer....but my answer was more of logical guess by POE
Join the discussion

by hardik.jadeja » Sun Feb 01, 2009 5:59 am
Let O = Odd Digit
and E = Even Digit
We have 5 odd digits {1,3,5,7,9} and 5 even digits {0,2,4,6,8}

These are the possible combination where no two even digits are adjacent

Possible combination of codes starting with an odd digit
OOOO - 5*5*5*5 = 5^4
OEOO - 5*5*5*5 = 5^4
OOEO - 5*5*5*5 = 5^4
OOOE - 5*5*5*5 = 5^4
OEOE - 5*5*5*5 = 5^4

Possible combination of codes starting with an even digit
EOOO - 5*5*5*5 = 5^4 (not 4*5*5*5 as 0 can be the first digit)
EOEO - 5*5*5*5 = 5^4
EOOE - 5*5*5*5 = 5^4

The only mistake piyush did was that he thought 0 cant be used as the first digit. But actually we can use 0 as the first digit because here what we are looking for is a lock combination and not a normal math number.

Imagine you have a briefcase and you have to use a four digit lock code to open it. Here you can set the first digit 0 in your combination. So in this scenario 0975 is a four digit lock code, not a 3 digit one.

when you add up all the possible combination that i have listed above to get the total possible combination, you get 8(5^4)

HTH..
Join the discussion

by piyush_nitt » Sun Feb 01, 2009 12:26 pm
hardik.jadeja wrote:Let O = Odd Digit
and E = Even Digit
We have 5 odd digits {1,3,5,7,9} and 5 even digits {0,2,4,6,8}

These are the possible combination where no two even digits are adjacent

Possible combination of codes starting with an odd digit
OOOO - 5*5*5*5 = 5^4
OEOO - 5*5*5*5 = 5^4
OOEO - 5*5*5*5 = 5^4
OOOE - 5*5*5*5 = 5^4
OEOE - 5*5*5*5 = 5^4

Possible combination of codes starting with an even digit
EOOO - 5*5*5*5 = 5^4 (not 4*5*5*5 as 0 can be the first digit)
EOEO - 5*5*5*5 = 5^4
EOOE - 5*5*5*5 = 5^4

The only mistake piyush did was that he thought 0 cant be used as the first digit. But actually we can use 0 as the first digit because here what we are looking for is a lock combination and not a normal math number.

Imagine you have a briefcase and you have to use a four digit lock code to open it. Here you can set the first digit 0 in your combination. So in this scenario 0975 is a four digit lock code, not a 3 digit one.

when you add up all the possible combination that i have listed above to get the total possible combination, you get 8(5^4)

HTH..
Ahhhh...got it mate ! Thanks !
Join the discussion

by deep2002 » Mon Feb 02, 2009 10:19 am
So on a test, the only way to answer this is to litearlly take every single situation and analyze it? To try and look at all scenario would be very time consuming...is there another way?
Join the discussion

by hardik.jadeja » Mon Feb 02, 2009 10:35 am
I think i got the answer without spending much time..

Listing out 8 possible scenarios is the only major thing.. Once you have understood the problem correctly i don't think it would take more than 30-50 secs to list out 8 possible scenarios.. and then remaining part is simple addition..

Tricky part is not to miss scenarios where 0 is the first digit.
Join the discussion