Quick practical maths challenge: Assuming a four digit PIN, how many attempts would it take to crack this code and access the building? Worst case and on average?

Reply to this note

Please Login to reply.

Discussion

Ai response:

If digits can be repeated and each digit can be any number from 0 to 9, there are 10×10×10×10 = 10,000 possible combinations.

If digits cannot be repeated, the number of combinations is calculated as 10×9×8×7 = 5,040

Look at the photo, the most used numbers are discolored. It'd be much easier than that.

The above odds were for 4 digits 🙏

Apologies, you are right, that's what I thought I'd prompted the ai, but no, it's used 0-9.

So only 256 🙏

Less than that I think. Hard to tell if 1 is part of it, since its much less bright but you have to use at least 3 different numbers.

Yeah I assume 1 is part of it.

Is it possible it could be 7 digits? E.g. 2255771 to account for the lesser used 1? (I doubt passkey are 7 digits though)

OP says assume 4 digit pin. If you include 1 then there are 4 numbers, each must be used once. 4! = 24 ways to arrange the numbers. We assume it takes ~50% of the attempts to get it right so 12 attempts.

I dont think we should include 1 though. This reduces the total possible to 18, likely requiring 9 guesses.

Nice one man, cheers 🙏- does I say anything about a lockout mechanism after x attempts?

no idea. According to Maple the text on the left reads

"Hello, I am looking for a house for rent. The price is around 5 million VND per month, and the location is in the central area of the city. I hope to find a house that is clean, safe, and has basic amenities."

Which doesnt make sense to me.

I get:

1. After dialing the call generation number, press the call button.

2. If you press the wrong generation, press Cancel and try again.

3. If you wish to call the management office, press the management office button and then press the call button.

🤣🤣 thought mine was off.

The new question now is, how the fuck did it come up with that answer? 🤣🤔

Actually I think I'm doing my math wrong here. AI is saying much higher.

Changing my answer to 36 possible with 18 average attempts.

I make it only 24

1234 2134 3124 4123

1243 2143 3142 4132

1324 2314 3214 4213

1342 2341 3241 4231

1423 2431 3412 4312

1432 2413 3421 4321

🤔 what's your extra 12?

None of those. I'm not counting 1, only 2, 5, and 7.

With 2 repeating:

2257, 2275, 2527, 2572, 2725, 2752, 5227, 5272, 5722, 7225, 7252, 7522

With 5 repeating:

5527, 5572, 5257, 5275, 5725, 5752, 2557, 2575, 2755, 7255, 7525, 7552

With 7 repeating:

7725, 7752, 7275, 7257, 7527, 7572, 2775, 2757, 2577, 5277, 5727, 5772

I think you are right, I now want to know what 1 is used for. Instant vaporisation maybe, hence its less usage.

Yeah probably some other menu function.