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
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-d2≥2
and
d2-d3≥2

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 d2≤d1-2, the possible values for d2 are 5, 4, and 3 (since d2 must allow d3≥1 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 d3≤0, 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.

Transparent Access on Mindyard

Built for Learners & Educators Alike

Completely free for students. Educators & coaching institutes get 2 months free Pro trial to create tests.

FREE FOR STUDENTS

Practice & Learn Free for Students

Access unlimited practice questions, detailed step-by-step solutions, and exam study materials — completely free for students.

  • Unlimited mock tests & question bank practice
  • Full access to curated study library & formula notes
  • 100% free for students • No credit card required
2 MONTHS FREE TRIAL

Educators & Coaching Institutes

Create and conduct professional online assessments with AI question generation, tab proctoring, and comprehensive batch management.

  • AI question uploader & rapid test generator
  • Anti-cheating tab proctoring & performance reports
  • Full Pro access free for 60 days • No upfront commitment
Discover more resources

You may also like

Mock Tests

View All
  • SSC
  • intermediate
  • 1 hour and 30 mins
  • english, general awareness, logical reasoning, mathematics

A comprehensive SSC MTS 2026 Mock Test 4 designed to help aspirants strengthen their preparation and improve their performance for the Staff Selection Commission Multi-Tasking Staff examination. This mock test covers all major sections including Numerical and Mathematical Ability, Reasoning Ability and Problem Solving, General Awareness, and English Language and Comprehension. It includes a balanced combination of conceptual, analytical, and exam-oriented multiple-choice questions aligned with the latest SSC MTS syllabus and exam pattern. Ideal for practice, revision, self-evaluation, accuracy improvement, speed enhancement, and effective time management, this mock test helps candidates assess their exam readiness, identify improvement areas, and build confidence for the SSC MTS 2026 examination

  • SSC
  • intermediate
  • 1 hour and 30 mins
  • english, general awareness, logical reasoning, mathematics

A comprehensive SSC MTS 2026 Mock Test 3 designed to help aspirants prepare thoroughly for the Staff Selection Commission Multi-Tasking Staff examination. This mock test covers all important sections including Numerical and Mathematical Ability, Reasoning Ability and Problem Solving, General Awareness, and English Language and Comprehension. It features a carefully curated set of multiple-choice questions that test conceptual understanding, logical reasoning, problem-solving skills, speed, and accuracy in accordance with the latest SSC MTS exam pattern. Ideal for practice, revision, self-assessment, performance evaluation, and time management improvement, this mock test enables candidates to identify strengths and weaknesses while building confidence for the SSC MTS 2026 examination.

Ask AI Tutor
5 left
Q1 View Question & Options
AI Tutor is solving this question...
Reading question context & options...
Ask your own doubt or choose a quick prompt: