Question Details

There is a numeric lock which has a 3-digit PIN. The PIN contains digits 1 to 7. There is no repetition of digits. The digits in the PIN from left to right are in decreasing order. Any two digits in the PIN differ by at least 2. How many maximum attempts does one need to find out the PIN with certainty?

Options

A

6

B

8

C

10

D

12

Show Answer

Correct Answer :

Option C

10

Solution :

The correct option is 10.

Let the 3-digit PIN be represented by three digits from left to right as d1, d2, and d3.
According to the problem, the digits must satisfy the following conditions:
1. The digits are selected from the set {1, 2, 3, 4, 5, 6, 7}.
2. There is no repetition of digits.
3. The digits are in decreasing order from left to right, which means:
d1>d2>d3
4. Any two digits in the PIN differ by at least 2. Since the digits are in decreasing order, this means:
d1-d22
and
d2-d32

To find the maximum number of attempts needed to find the PIN with certainty, we need to find the total number of possible PINs that satisfy all the above conditions. We can list the possible combinations systematically by choosing the first digit d1 from the highest possible value (7) downwards:

• If d1=7:
Since d2d1-2, the possible values for d2 are 5, 4, and 3 (since d2 must allow d31 with a difference of at least 2).
- If d2=5, then d3 can be 3, 2, or 1. (3 possibilities: 7-5-3, 7-5-2, 7-5-1)
- If d2=4, then d3 can be 2 or 1. (2 possibilities: 7-4-2, 7-4-1)
- If d2=3, then d3 can only be 1. (1 possibility: 7-3-1)
Total for d1=7 is 3+2+1=6 combinations.

• If d1=6:
The possible values for d2 are 4 and 3.
- If d2=4, then d3 can be 2 or 1. (2 possibilities: 6-4-2, 6-4-1)
- If d2=3, then d3 can only be 1. (1 possibility: 6-3-1)
Total for d1=6 is 2+1=3 combinations.

• If d1=5:
The only possible value for d2 is 3.
- If d2=3, then d3 can only be 1. (1 possibility: 5-3-1)
Total for d1=5 is 1 combination.

For any value of d1<5, it is impossible to choose d2 and d3 such that the difference between each adjacent digit is at least 2 (for example, if d1=4, the maximum possible d2 is 2, which leaves no valid option for d3 since d30, but the PIN only contains digits from 1 to 7).

Adding all the valid combinations together:

Total combinations=6+3+1=10
Since there are 10 possible unique PINs that satisfy the given conditions, one would need a maximum of 10 attempts to find out the PIN with absolute certainty.

Unlock Our Free Library

Access expert-curated educational resources and study materials—completely free.

Discover more resources

You may also like

Mock Tests

View All
  • CTET
  • intermediate
  • No time limit
  • child development and pedagogy, mathematics, social science

  • SSC
  • intermediate
  • 2 hours and 30 mins
  • child development and pedagogy, mathematics, social science

Ask AI Tutor
5 left
Q1 View Question & Options
AI Tutor is solving this question...
Reading question context & options...