MHB Probability question from TV, cracking a phone password

  • Thread starter Thread starter gswani
  • Start date Start date
  • Tags Tags
    Probability
gswani
Messages
1
Reaction score
0
I'm watching a TV show and it is explained that a teenager found a phone and figured out the password "using finger smudges". This means he determined which digits are in the passcode by looking at the smudges on the face of the phone. Assuming that the passcode is 4 numbers, this should mean 24 possibilities if the "smudges" indicate that four distinct numbers are used.

4 x 3 x 2 x 1 = 24

What I can't figure out is what if the phone only had a smudge on three numbers. So that would mean a 4-digit code made up of three numbers, one of them repeated. I feel like the answer is 18 but I don't know why. Let's say the numbers are 2, 4 and 6. If you happened to select the repeated number on the first try, the math would be:

3 x 3 x 2 x 1 = 18
1st#: 2, 4, 6, 6 (two of them are 6 for this example)
2nd#: 2, 4, 6, 6
3rd#: 2, 4, 6, 6
4th#: 2, 4, 6, 6

That would be 3 possibilities on the first number since there are only three options. Then for the second number, you would still have three options, and then two and one. But what if you selected one of the digits that doesn't repeat? Then it would be:

3 x 2 x 2 x 1 = 12
1st#: 2, 4, 6, 6 (two of them are 6 for this example too)
2nd#: 2, 4, 6, 6
3rd#: 2, 4, 6, 6
4th#: 2, 4, 6, 6

Obviously I could add another scenario where you choose 2, and 4 first and then you only have one number left for the last two options.

3 x 3 x 1 x 1 = 9

But there has to be a way to determine which of these is right. I'd like to know the math that backs this up. I hope this is interesting enough (and clear enough) to interest someone. Thanks in advance for taking the time.
 
Mathematics news on Phys.org
gswani said:
I'm watching a TV show and it is explained that a teenager found a phone and figured out the password "using finger smudges". This means he determined which digits are in the passcode by looking at the smudges on the face of the phone. Assuming that the passcode is 4 numbers, this should mean 24 possibilities if the "smudges" indicate that four distinct numbers are used.

4 x 3 x 2 x 1 = 24

What I can't figure out is what if the phone only had a smudge on three numbers. So that would mean a 4-digit code made up of three numbers, one of them repeated. I feel like the answer is 18 but I don't know why. Let's say the numbers are 2, 4 and 6. If you happened to select the repeated number on the first try, the math would be:

3 x 3 x 2 x 1 = 18
1st#: 2, 4, 6, 6 (two of them are 6 for this example)
2nd#: 2, 4, 6, 6
3rd#: 2, 4, 6, 6
4th#: 2, 4, 6, 6

That would be 3 possibilities on the first number since there are only three options. Then for the second number, you would still have three options, and then two and one. But what if you selected one of the digits that doesn't repeat? Then it would be:

3 x 2 x 2 x 1 = 12
1st#: 2, 4, 6, 6 (two of them are 6 for this example too)
2nd#: 2, 4, 6, 6
3rd#: 2, 4, 6, 6
4th#: 2, 4, 6, 6

Obviously I could add another scenario where you choose 2, and 4 first and then you only have one number left for the last two options.

3 x 3 x 1 x 1 = 9

But there has to be a way to determine which of these is right. I'd like to know the math that backs this up. I hope this is interesting enough (and clear enough) to interest someone. Thanks in advance for taking the time.
Hi gswani, and welcome to MHB!

There are two possible answers to your problem. To decide which of them is correct, your teenage sleuth is going to have to look more carefully at the three smudges on the phone. The key question is: is one of those smudges heavier than the other two? If so, you can guess that it must correspond to the repeated digit. Otherwise, any of the three digits could be the repeated one, and the answer will be three times as large.

Taking your example where the three digits are 2, 4 and 6, suppose that the 2 has the heavier smudge, so that it occurs twice. There are six possible places where the two 2s can occur in the password $****$, as follows: $$2\,2**,$$ $$2*2\,*,$$ $$2**\,2,$$ $$*\,2\,2\,*,$$ $$*\,2*2,$$ $$**2\,2.$$ For each of these there are two possible passwords, depending whether the $4$ comes before or after the $6$ in the remaining $*$ positions. That gives a total of 12 possible passwords.

But if we don't know which digit is repeated, that gives an additional 12 possible passwords with a repeated $4$, and 12 with a repeated $6$, for a total of 36 altogether.

That last result seems surprising, because there are more possible passwords with three digits (36) than there were with four digits (24).
 
Insights auto threads is broken atm, so I'm manually creating these for new Insight articles. In Dirac’s Principles of Quantum Mechanics published in 1930 he introduced a “convenient notation” he referred to as a “delta function” which he treated as a continuum analog to the discrete Kronecker delta. The Kronecker delta is simply the indexed components of the identity operator in matrix algebra Source: https://www.physicsforums.com/insights/what-exactly-is-diracs-delta-function/ by...
Fermat's Last Theorem has long been one of the most famous mathematical problems, and is now one of the most famous theorems. It simply states that the equation $$ a^n+b^n=c^n $$ has no solutions with positive integers if ##n>2.## It was named after Pierre de Fermat (1607-1665). The problem itself stems from the book Arithmetica by Diophantus of Alexandria. It gained popularity because Fermat noted in his copy "Cubum autem in duos cubos, aut quadratoquadratum in duos quadratoquadratos, et...
Thread 'Imaginary Pythagorus'
I posted this in the Lame Math thread, but it's got me thinking. Is there any validity to this? Or is it really just a mathematical trick? Naively, I see that i2 + plus 12 does equal zero2. But does this have a meaning? I know one can treat the imaginary number line as just another axis like the reals, but does that mean this does represent a triangle in the complex plane with a hypotenuse of length zero? Ibix offered a rendering of the diagram using what I assume is matrix* notation...

Similar threads

Replies
7
Views
2K
Replies
8
Views
2K
Replies
24
Views
2K
Replies
2
Views
4K
Replies
1
Views
7K
Replies
1
Views
5K
Replies
5
Views
2K
Back
Top