/All/
|
index
catalog
recent
update
post
|
/math/
/tech/
/misc/
/free/
/meta/
/test/
|
Guide
light
mod
Log
P11601
The Faulty Combination Lock
Sat 2022-09-17 14:57:54
link
reply
4af47a0f9c37e254e3ddb2f961133013882deb31f1dc385149d78c402b2a9ca0.jpg
42.6 KiB 555x1081
A combination lock with three dials, each numbered 1 through 8, is defective in that you only need to get two of the numbers right to open the lock. What is the minimum number of (three-number) combinations you need to try in order to be sure of opening the lock?
P11632
Sat 2022-09-17 19:40:11
link
reply
7699ad7891da804042074c7a55b3ddb762404ad36f7a190ff8c973fa015642df.jpg
250 KiB 1200x1634
Each number with different digits produces 3 different pairs, so naively you'd need at least ceil(64/3) = 22 combinations to ensure you can open.
With some bruteforcing, I get the following 24 numbers that produce all possible 64 pairs of numbers:
121, 134, 156, 178, 232, 245, 267, 351, 363, 387, 428, 461, 473, 572, 583, 654, 682, 474, 575, 676, 717, 814, 856, 818
So answer is between 22 and 24, although it can't be 22 because eventually you'll get repeated pairs.
Referenced by:
P11634
P11824
P11634
Sat 2022-09-17 20:15:58
link
reply
143f5c3b99cd1c94c3558f05646367ef784db6a8cdcfbc13c48cca2955f1271d.jpg
222 KiB 1200x1627
P11632
Ok, some mistake although same result.
>Each number with different digits produces 3 different pairs, so naively you'd need at least ceil(64/3) = 22 combinations to ensure you can open.
With this method I'm obviously missing the pairs contain the same numbers.
Instead one could do the following:
First select all numbers that produce all different pairs that contain the same numbers and 2 more pairs avoiding repeats:
121, 232, 343, ..., 818 which give in total 24 pairs.
Now, one would naively need at least ceil(40/3) = 14 different numbers to get the remaining combinations, so in total you'd have 14+8 = 22.
Referenced by:
P11821
P11821
Sun 2022-09-18 17:43:11
link
reply
db78fbf39b7ab6bcaef56ef7dc3b71925be3b1118f7e4ca2c4d9dce47f5ee276.jpg
534 KiB 1800x1029
P11634
Ok, unabomber was right. By hand I found this one:
121 232 343 454 565 676 787 818 315 513 614 416 724 427 825 528 836 638 171 262 373 484 575
Which is 23 long.
Referenced by:
P11823
P11824
P11823
Sun 2022-09-18 17:46:47
link
reply
303d5b07e24e10f0189eb15c7e80f4cbb2d07e9e27338746f55412b25d0892ad.png
774 KiB 982x762 (historicalfag avatar)
P11821
Looks very like cryptography.
P11824
Sun 2022-09-18 18:14:25
link
reply
P11632
P11821
Maybe we're interpreting the problem differently, but wouldn't both of those fail to open the lock if the combination was 112?
Referenced by:
P11831
P11918
P11831
Sun 2022-09-18 18:38:56
link
reply
ef8ab5dabdf436a48a5c0410e9a2f09c9e9b6262da619643deba05e64e845ef0.jpg
251 KiB 1200x1621
P11824
Well, the way I was interpreting is that you have to guess any of the pairs that "112" has (11, 12) AND that position doesn't matter
My list of numbers go through all possible pairs.
But I guess that now that you mention it, position not mattering is kind of a weird interpretation of
>you only need to get two of the numbers right to open the lock.
Referenced by:
P11832
P11832
Sun 2022-09-18 18:40:06
link
reply
P11831
That's alright, now we have two problems.
Referenced by:
P11833
P11833
Sun 2022-09-18 18:46:17
link
reply
73ca0243e535d807e10c506d70ae341cd4f0695a4a99ebb9855a11391b0c61be.jpg
527 KiB 1200x1622
P11832
>two problems
>without using regexps
Imagine that.
P11838
Sun 2022-09-18 20:10:08
link
reply
30cb0c95c6fd08c5d15d2ab7c3488b7a238ad0d57f9bf4be7213035991ddae55.jpg
4.05 MiB 4000x3000 (historicalfag avatar)
>two problems
kek at that
P11918
Mon 2022-09-19 10:58:48
link
reply
dd8613748721a735ed21255eb73cc165d4f77a5be1f754e8a136f05003142e8c.png
664 KiB 1175x757
P11824
>Maybe we're interpreting the problem differently
Solution: Just remove the lock with metal cutters or crowbars.
Referenced by:
P64307
P11957
Mon 2022-09-19 20:09:10
link
reply
(8!*8)/(6!*3!)
Mod Controls:
x
Reason: