Author 
Topic: Broken bike combination lock problem (Read 9352 times) 

Ace_T
Newbie
Gender:
Posts: 13


Broken bike combination lock problem
« on: Mar 3^{rd}, 2005, 9:10pm » 
Quote Modify

Here's an interesting problem that a friend and I ended up solving more 'visually' than through pure math. You have a combination bike lock of the type which has 3 rings, each with numbers 1 through 8. Normally with this kind of lock you have to line up 3 numbers in the right order along (say) the top of the lock in order to open it. The number of possible combinations is 8x8x8. But, this lock is broken in such a way that you only have to match any 2 of the 3 numbers in order to open it. Obviously you could do it in 64 tries (8x8) by just using any 2 of the rings, but surely you can do better than that. 1. What is the minimum number of combinations you have to try to ensure that you can open the lock? 2. What is the general solution for a 3ring lock 'broken' as above, but with 'n' numbers on each ring a) if 'n' is even? b) if 'n' is odd? (for a basic diagram of what this kind of lock looks like, see http://www.securityworld.com/recreation/NS91569.html for an example.)


IP Logged 



markr
Junior Member
Gender:
Posts: 90


Re: Broken bike combination lock problem
« Reply #1 on: Mar 3^{rd}, 2005, 11:42pm » 
Quote Modify

Since each combination tried eliminates 3n2 combinations, the theoretical minimum is ceiling((n^3)/(3n2)). For the given problem, the minimum is no less than 24.


IP Logged 



Ace_T
Newbie
Gender:
Posts: 13


Re: Broken bike combination lock problem
« Reply #3 on: Mar 4^{th}, 2005, 8:53am » 
Quote Modify

Yes, looks like the chessboard problem. I see there that someone postulated that the solution is: S = N2/2 for N even S = (N2 + 1)/2 for N odd Not sure of that notation, but the solution I came up with is S = 2(N/2)**2 = (N**2)/2 for N even (I assume that's what was meant above) S = (N**2+1)/2 for N odd


IP Logged 



Icarus
wu::riddles Moderator Uberpuzzler
Boldly going where even angels fear to tread.
Gender:
Posts: 4863


Re: Broken bike combination lock problem
« Reply #4 on: Mar 4^{th}, 2005, 3:56pm » 
Quote Modify

If you are refering to Barukh's post in the other thread, the problem may be that your browser is not able to show superscripts, because Barukh has the exponents properly superscripted in his post: S = N^{2}/2 for N even S = (N^{2} + 1)/2 for N odd but you have dropped them in your copy. If those two lines look the same to you as the ones you posted, then you need to find a better browser!

« Last Edit: Mar 7^{th}, 2005, 4:52pm by Icarus » 
IP Logged 
"Pi goes on and on and on ... And e is just as cursed. I wonder: Which is larger When their digits are reversed? "  Anonymous



Ace_T
Newbie
Gender:
Posts: 13


Re: Broken bike combination lock  visualization
« Reply #5 on: Mar 6^{th}, 2005, 4:44pm » 
Quote Modify

The superscripts show up fine...must have been the settings on my work browser. One thing I found interesting was how to visualize this problem. I have a diagram that goes with the description below, but am not sure how to post it (or if it's even possible?) Basically, you start with an 8 x 8 x 8 cube. Each guess at a combination 'cuts out' a line of 1 x 1 x 1 cubes in each of the 'x', 'y' and 'z' directions from the specific (x, y, z) cube selected. If your guesses have completely covered the volume of the 8 x 8 x 8 cube you have a solution. What is interesting is that when you see this visually, you can see that all guesses where (say) x, y, z <= 4 will carve out a '3dimensional L' shape. Then, you only need to make guesses in the x, y, z >4 quadrant to complete the solution. If you look at a 2 x 2 x 2 cube first it's easier to see this '3dimensional L' shape. So, the number of guesses you need to cover the x, y, z <= 4 quadrant cannot be less than 16 (the area of any 4 x 4 'end' to the 3dimensional L). It's easy to see there are many solutions of 16, so the full solution is 16+16=32. For an n x n x n cube where n is odd, a similar approach gives the solution (noting that the two quadrants you are selecting in should be as near to the median as possible, so for a 9 x 9 x 9 cube you could select 16 guesses in the x, y, z <= 4 quadrant, and 25 guesses in the x, y, z >4 quadrant. So, anyone able to visualize this in one more dimension and get a solution for n x n x n x n?


IP Logged 



Barukh
Uberpuzzler
Gender:
Posts: 2276


Re: Broken bike combination lock  visualization
« Reply #6 on: Mar 7^{th}, 2005, 6:22am » 
Quote Modify

on Mar 6^{th}, 2005, 4:44pm, Ace_T wrote:I have a diagram that goes with the description below, but am not sure how to post it (or if it's even possible?) 
 File attachements were possible before this forum has been upgraded with new software. We all hope this feature will be restored shortly.


IP Logged 



Icarus
wu::riddles Moderator Uberpuzzler
Boldly going where even angels fear to tread.
Gender:
Posts: 4863


Re: Broken bike combination lock problem
« Reply #7 on: Mar 7^{th}, 2005, 4:59pm » 
Quote Modify

If you have another website you can put the image on, then you can use the img tags: [img]image url here[/img] to post the image here. Unfortunately, the ability to post them here directly is waiting on William to find time to restore it. Having once been a grad student myself, I know that this may be awhile.

« Last Edit: Mar 7^{th}, 2005, 5:00pm by Icarus » 
IP Logged 
"Pi goes on and on and on ... And e is just as cursed. I wonder: Which is larger When their digits are reversed? "  Anonymous



Altamira_64
Junior Member
Posts: 116


Re: Broken bike combination lock problem
« Reply #9 on: Jan 31^{st}, 2016, 8:59am » 
Quote Modify

So if each digit only gets values 1, 2 and 3, the minimum number of tries is 5? How can we pick the right 5 combinations which will open all 27?


IP Logged 



Grimbal
wu::riddles Moderator Uberpuzzler
Gender:
Posts: 7408


Re: Broken bike combination lock problem
« Reply #10 on: Feb 28^{th}, 2016, 8:34am » 
Quote Modify

The combination has 3 digits. It either has two digits in the set {1,2} or it has 2 digits in the set {3}. To cover the first case, try 111, 122, 212, 221. To cover the second case, try 222 333.

« Last Edit: Mar 1^{st}, 2016, 1:27pm by Grimbal » 
IP Logged 



rmsgrey
Uberpuzzler
Gender:
Posts: 2818


Re: Broken bike combination lock problem
« Reply #11 on: Feb 28^{th}, 2016, 2:18pm » 
Quote Modify

on Feb 28^{th}, 2016, 8:34am, Grimbal wrote:The combination has 3 digits. It either has two digits in the set {1,2} or it has 2 digits in the set {3}. To cover the first case, try 111, 122, 212, 221. To cover the second case, try 222. 
 Or, to actually cover the second case, try 333.


IP Logged 



Grimbal
wu::riddles Moderator Uberpuzzler
Gender:
Posts: 7408


Re: Broken bike combination lock problem
« Reply #12 on: Mar 1^{st}, 2016, 1:40pm » 
Quote Modify

Er... and this was a demonstration of how peerreview improves the quality of a publication. Thanks for your collaboration.


IP Logged 



Hippo
Uberpuzzler
Gender:
Posts: 919


Re: Broken bike combination lock problem
« Reply #13 on: Mar 9^{th}, 2016, 9:20am » 
Quote Modify

on Mar 4^{th}, 2005, 12:44am, Grimbal wrote: I would replace second 413 with 431 , and 243 should be probably replaced by 242 ... and the same with second 857 and 875, and 687 replaced with 686. But I agree with the posts mentioning 32 as the solution ... and the generalised one.


IP Logged 



Grimbal
wu::riddles Moderator Uberpuzzler
Gender:
Posts: 7408


Re: Broken bike combination lock problem
« Reply #14 on: Mar 10^{th}, 2016, 8:11am » 
Quote Modify

It took you TEN ELEVEN years to notice ? ? ?

« Last Edit: Mar 10^{th}, 2016, 8:13am by Grimbal » 
IP Logged 



Altamira_64
Junior Member
Posts: 116


Re: Broken bike combination lock problem
« Reply #15 on: Mar 11^{th}, 2016, 12:36am » 
Quote Modify

Another one: 111 122 233 312 321 on Mar 1^{st}, 2016, 1:40pm, Grimbal wrote:Er... and this was a demonstration of how peerreview improves the quality of a publication. Thanks for your collaboration. 



IP Logged 



Hippo
Uberpuzzler
Gender:
Posts: 919


Re: Broken bike combination lock problem
« Reply #16 on: Mar 11^{th}, 2016, 9:29am » 
Quote Modify

on Mar 10^{th}, 2016, 8:11am, Grimbal wrote:It took you TEN ELEVEN years to notice ? ? ? 
 But I was not around several of them


IP Logged 



