JEE Main202315 Apr 2023Morning ShiftMathematicsPermutation and CombinationActual
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________.
Correct answer
0
Step-by-step solution
Let the 4 - digit pin be a b c d Now given sum of first two is equal to last two, so a + b = c + d And number available are 0 ,   1 ,   2 ,   3 ,   4 ,   5 ,   6 ,   7 Now Let a + b = c + d = λ Also the greatest digit that he has used is 7 So, a + b = c + d = λ ≥ 7 Now taking all cases starting from λ = 7 we get, λ = 7 ,   a , b → 0 , 7   or   7 , 0 , then c , d → 1 , 6 , 2 , 5 , 3 , 4 , 4 , 3 , 5 , 2 , 6 , 1 and vice-versa, so