Jump to content
BrainDen.com - Brain Teasers
  • 0

Googon's Garage Gadget


googon97
 Share

Question

If Googon has a normal garage opener with buttons 0-9 and enter and a code of 3 digits, it takes 3,000 button pushes to ensure the garage to open. Googon's Garage Gadget Guys builds a garage opener with 10 buttons. Googon realizes that there is no room for an enter button (he can't just take out a number 0-9). His garage opener opens if the code is pushed at any time. For example pushing 0123 could open the garage if the code is 012 or 123. Googon is worried that the garage opener is not safe. He needs your help on the issue (seriously he doesn't know the answer). How many times does someone need to push a button to ensure the garage will open? Can you prove that? Is their a pattern to the button pushing?

Edited by googon97
Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

the answer 1002 might actually be performed.
i only just tested myself with simple 1 and 2 and 3 combination, which starts at 111, and find the largest possible number which starts from 11, which is 113, and so on and so on, with exception of getting other duplicate starting number (starts with 22, or 33); before using the largest possible number, fill it first with the same numbers, then after 222 or 333 removed, continued as before

the result of combination using 123 should be like this:

11133323313222321312311221211

therefore, with some computing algorithm and decent database to store and validate inputted combination to avoid duplicates, it might works. i havent tested with 10 numbers combinations though, i will try to write the algorithm and test with 10 numbers later

Edited by augustinus
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...