TestHub
TestHub

Mathematics - Permutation & Combination Question with Solution | TestHub

MathematicsPermutation & CombinationnPr & nCrHard2 minPYQ_2023
MathematicsHardnumerical

A person forgets his4-digit ATM pin code. But he remembers that in the code all the digits are different, the greatest digit is7and 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________.

Answer:
72.00
Solution:

Let the 4-digit pin be abcd

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,b0,7 or 7,0, then c,d1,6,2,5,3,4,4,3,5,2,6,1 and vice-versa, so 2×12=24 numbers

λ=8, a,b1,7 or 7,1, then c,d2,6,3,5,6,2,5,3 and vice versa so total 2×8=16 numbers,

λ=9, a,b2,7 or 7,2 then c,d3,6,4,5,5,4,6,3 and vice versa, so total 2×8=16 numbers,

λ=10, a, b3, 7,7, 3, so c, d6, 4,4, 68 numbers

λ=11, a, b4, 7,7, 4, so c, d6, 5,5, 68 numbers

λ=12, 13 & 14 are not possible,

So, Total numbers =24+16+16+8+8=72

Stream:JEESubject:MathematicsTopic:Permutation & CombinationSubtopic:nPr & nCr
2mℹ️ Source: PYQ_2023

Doubts & Discussion

Loading discussions...