Separate JEE Main performance lab

Want structured exam practice?

Explore the Mathbee Test Series with free chapter PYQs, NTA-style Booster mocks, paid shift-wise PYPs and focused performance analytics.

Explore test series
Not the exact question you were looking for?

Paste your question to our Mathbee AI Mentor below to get an instant step-by-step solution.

Permutations & Combinations
four-digit-code-counting
JEE Main 2023 PYQ

A person forgets his 4-digit ATM pin code. But he remembers that in the code all the digits are different, the greatest digit is 7 and the sum of the first two digits is equal to…

A person forgets his 4-digit ATM pin code. But he remembers that in the code all the digits are different, the greatest digit is 7 and the sum of the first two digits is equal to the sum of the last two digits. Then the maximum number of trials necessary to obtain the correct code is ___________.

Step-by-Step Solution

Step 1: The digits are distinct, the greatest is 7, and the first pair and last pair have equal sums. Pair the four digits into two disjoint pairs with a common sum, one pair for positions 1–2 and the other for positions 3–4.

Step 2: Enumerating the possible common sums 7,8,9,10,11 gives respectively 24,16,16,8,8 ordered codes. Sums below 7 cannot use 7 with a distinct partner and a matching disjoint pair; sums 12 or more cannot form two disjoint pairs containing 7.

Step 3: There are 24+16+16+8+8=72 possible codes, so in the worst case 72 trials suffice.

Correct Answer: 72
Mathbee AI Mentor (Free Demo)

Confused by the solution? Ask the AI to explain a specific step, tell you where you went wrong, or break down the key trap in this question.

Related Permutations & Combinations Questions

Passwords By Complement Counting · JEE Main 2022 PYQ
Let S be the set of all passwords which are six to eight characters long, where each character is either an al…
Recovering Combination Parameters · JEE Main 2022 PYQ
A class contains b boys and g girls. If the number of ways of selecting 3 boys and 2 girls from the class is 1…
Binary Matrix Prime Sum · JEE Main 2022 PYQ
The number of matrices of order 3 × 3, whose entries are either 0 or 1 and the sum of all the entries is a pri…
Divisibility By Fifty Five And Range · JEE Main 2022 PYQ
The number of natural numbers lying between 1012 and 23421 that can be formed using the digits 2,3,4,5,6 (repe…
Lower Bounded Integer Solutions · JEE Main 2023 PYQ
Number of integral solutions to the equation x+y+z=21, where x ≥ 1,y ≥ 3,z ≥ 4, is equal to ?.

Practise Permutations & Combinations PYQs chapter-wise

Choose a chapter, year, topic and question count in the Mathbee Test Series portal.

Practise chapter-wise JEE Main PYQs
Separate JEE Main performance lab

Want structured exam practice?

Explore the Mathbee Test Series with free chapter PYQs, NTA-style Booster mocks, paid shift-wise PYPs and focused performance analytics.

Explore test series