| View previous topic :: View next topic |
| Author |
Message |
gadf
Icarian Member
|
Posted: Tue Jan 15, 2002 11:22 am Post subject: 1 |
|
|
Since Nefarious Ned does not operate both traps simultaneously, one should look for a number x that generates the same number in the second row i.e. x=y
The computer counts how many times each digit appears in x and type it in its place in y (the places are 0123456789). For example , if x=1223334444 then 0 don't appear 0 times, 1 appears 1 time, 2 appears 2 times, 3 appears 3 times, 4 4 times and the rest zero times therefore we obtain y=0123400000
there is at least one possibility to generate the same number: remembering the there are only nine digits 10=0 therefore x=0000000000
will generate y=0000000000 and therefore will
open the door safely |
|
| Back to top |
|
 |
ralphmerridew
Daedalian Member
|
Posted: Tue Jan 15, 2002 4:52 pm Post subject: 2 |
|
|
| I think the intended answer is 6210001000. However, I think there may be other answers, where A->B->C->A, unless the only other cycle is (6300000100, 7101001000). |
|
| Back to top |
|
 |
mith
Pitbull of Truth
|
Posted: Tue Jan 15, 2002 6:53 pm Post subject: 3 |
|
|
well, so much for part 2. :P
i haven't figured out if there are 3 member cycles or not yet. (haven't really bothered looking) |
|
| Back to top |
|
 |
ralphmerridew
Daedalian Member
|
Posted: Tue Jan 15, 2002 9:50 pm Post subject: 4 |
|
|
| What was part 2? |
|
| Back to top |
|
 |
mith
Pitbull of Truth
|
Posted: Tue Jan 15, 2002 10:17 pm Post subject: 5 |
|
|
| whether there are any 3 cycles. |
|
| Back to top |
|
 |
/dev/joe
Guest
|
Posted: Wed Jan 16, 2002 1:03 am Post subject: 6 |
|
|
Some more solutions.
Since the computer only displays one digit in each position, what happens when you punch in 10 of the same digit?
I would expect the computer to roll over and the extra digit is lost (or moved to the left, if it wasn't the leftmost).
So punch in 0000000000.
There are 10 0's and 0 of everything else, so the computer returns... 0000000000.
Also, since the relationship is required to go both ways, any code which yields a safe code as its output is also safe. Thus, not only is 6210001000 safe, but so is any rearrangement of those digits, and therefore, any code consisting of 6 of one digit, 2 of another digit, and two other digits once each is also safe.
One such code is 5212000000, so all codes consisting of five of a digit, two each of two different digits, and one other digit is also safe.
One such code is 3321100000, so all codes consisting of three each of two different digits, one digit twice, and two digits once each is also safe.
|
|
| Back to top |
|
 |
mith
Pitbull of Truth
|
Posted: Wed Jan 16, 2002 3:23 am Post subject: 7 |
|
|
ah, good, i was wondering if anyone would notice that
now the question is, is there any code that *isn't* safe?
btw, i was going to write in the solution something that got rid of the 0000000000 case, as it isn't very interesting. |
|
| Back to top |
|
 |
extropalopakettle
No offense, but....
|
Posted: Wed Jan 16, 2002 3:31 am Post subject: 8 |
|
|
| Lately the smart people all seem to be unregistered. |
|
| Back to top |
|
 |
mole
Subterranean Member
|
Posted: Wed Jan 16, 2002 4:33 am Post subject: 9 |
|
|
| Wouldn't ralphmerridew's (6300000100, 7101001000) count as unsafe codes? |
|
| Back to top |
|
 |
mith
Pitbull of Truth
|
Posted: Wed Jan 16, 2002 5:37 am Post subject: 10 |
|
|
| yeah, they would. i didn't really mean there aren't any at all, i just think there's quite a few safe ones. |
|
| Back to top |
|
 |
ralphmerridew
Daedalian Member
|
Posted: Wed Jan 16, 2002 2:08 pm Post subject: 11 |
|
|
| Well, the two codes I gave are not necessarily safe; it is possible that every code happens to be safe. Additionally, three of the trial codes used in the example lead to that pair, so are NNS, while the fourth leads to the self-producing code. |
|
| Back to top |
|
 |
CrystyB
Misunderstood Guy
|
Posted: Wed Jan 16, 2002 4:07 pm Post subject: 12 |
|
|
LOL @ mith's reply 4!
PS Mole, what did you mean they are not safe? I think i can still count...
Edit: Ow i get it. Since the two numbers only cycle through themselves, they can still be unsafe, if one opens the poison trap and the other opens the other trap...
[This message has been edited by CrystyB (edited 07-19-2002 07:38 PM).] |
|
| Back to top |
|
 |
ralphmerridew
Daedalian Member
|
Posted: Thu Jan 17, 2002 12:36 am Post subject: 13 |
|
|
| Hey, mith, are you sure pt 2 is supposed to be whether there are any 3 cycles? How did I clear that question up? |
|
| Back to top |
|
 |
start pilot
Icarian Member
|
Posted: Thu Jan 17, 2002 9:00 am Post subject: 14 |
|
|
| If you take the sum of all digits in y, one finds always 10. Coincidence ? |
|
| Back to top |
|
 |
ralphmerridew
Daedalian Member
|
Posted: Fri Jan 18, 2002 4:56 pm Post subject: 15 |
|
|
No, it's not a coincidence. sum of digits in y = (#0s in x) + (#1s in x) + (#2s in x) + ... (#9s in x) = 10.
With the exception that if you enter all digits the same (for example, 7777777777), then it may overflow to 0000001000, 0000000000, or (0)(0)(0)(0)(0)(0)(0)(10)(0)(0). |
|
| Back to top |
|
 |
pierrecurie
Icarian Member
|
Posted: Sat Jan 19, 2002 7:08 am Post subject: 16 |
|
|
| I think we just need to know the number that when pushed in, returns the same number. |
|
| Back to top |
|
 |
El Blobbo revived
Daedalian Member
|
Posted: Sat Jan 19, 2002 8:03 pm Post subject: 17 |
|
|
| 0000000000 might give 0000000001 |
|
| Back to top |
|
 |
Jen Aside
Daedalian Member
|
Posted: Sat Jan 19, 2002 9:39 pm Post subject: 18 |
|
|
000000000A?  |
|
| Back to top |
|
 |
El Blobbo revived
Daedalian Member
|
Posted: Sat Jan 19, 2002 10:14 pm Post subject: 19 |
|
|
A000000000!
[This message has been edited by El Blobbo revived (edited 01-19-2002 05:14 PM).] |
|
| Back to top |
|
 |
luckyscotty
Guest
|
Posted: Sun Jan 20, 2002 2:45 am Post subject: 20 |
|
|
Has anyone noticed that the y value that is given by the computer always adds up to 10?
This sort of contradicts the solution being 000000000? Am I right or does someone have another theory? |
|
| Back to top |
|
 |
El Blobbo revived
Daedalian Member
|
Posted: Sun Jan 20, 2002 2:54 am Post subject: 21 |
|
|
I'm confused. The answer logically cannot permutate, but it must have a "non-reiterative" digital root of ten, and must equal itself when subjected to the function.
[This message has been edited by El Blobbo revived (edited 01-21-2002 08:16 AM).] |
|
| Back to top |
|
 |
pierrecurie
Icarian Member
|
Posted: Mon Jan 21, 2002 1:01 am Post subject: 22 |
|
|
| Yes I have noticed that the sum of the digits must equal 10. |
|
| Back to top |
|
 |
pierrecurie
Icarian Member
|
Posted: Mon Jan 21, 2002 5:04 am Post subject: 23 |
|
|
| It doesn't seem right. The last clue doesn't fit the idea of the output number telling us how many of each number there are in the original. |
|
| Back to top |
|
 |
Top Gun
Icarian Member
|
Posted: Mon Jan 21, 2002 9:42 pm Post subject: 24 |
|
|
There are definitely no 3 part circular references.
All numbers entered will either resolve (eventually) into 6300000100/7101001000 or 6210001000 or 0000000000.
Most numbers resolve into 6300000100/7101001000 and are therefore NOT safe.
Numbers that resolve into 6210001000 or 0000000000 are SAFE.
There are 3,628,810 possible numbers that resolve into 0000000000. That is; 10! + 10. That is; the number of combinations of 1 of each digit (eg. 0123456789->1111111111->0000000000) plus the number of combinations of ten identical digits (eg. 9999999999->0000000000).
A number will resolve into 6210001000 if, after the initial calculation, you end up with one of the following strings of digits, with the digits in any combination:
6211000000
5311000000
5221000000
5211100000
4311100000
3222100000
3211111000
4221100000
3321100000
All that is left to do is to calculate how many source numbers that covers. I would estimate that around a quarter of possible numbers will end up being safe. Not bad odds. |
|
| Back to top |
|
 |
Jen Aside
Daedalian Member
|
Posted: Tue Jan 22, 2002 6:04 am Post subject: 25 |
|
|
quote: Has anyone noticed that the y value that is given by the computer always adds up to 10?
This sort of contradicts the solution being 000000000? Am I right or does someone have another theory?
You're confusing "so far" with "always"... If I gave a function X where f(x) for 1, 2, 6, and 10 all gave the answer "3", would you say that for all f(x) = 3? I could disprove (not "seemingly contradict") your statement by saying f(4) = 4 or f(7) = 5, if the function X basically returns the number of letters in the (English) name of the integer entered. |
|
| Back to top |
|
 |
CrystyB
Misunderstood Guy
|
Posted: Fri Jan 25, 2002 12:55 pm Post subject: 26 |
|
|
pierrecurie
| Quote: |
| It doesn't seem right. The last clue doesn't fit the idea of the output number telling us how many of each number there are in the original. |
Yes it fits... As i said, i can still count. So mole hasn't answered, anybody else care to comment on reply 11?
Edit: I finally got it. See reply #11.
[This message has been edited by CrystyB (edited 07-19-2002 07:38 PM).] |
|
| Back to top |
|
 |
neweyes
Guest
|
Posted: Mon Jan 28, 2002 3:54 am Post subject: 27 |
|
|
| I would type an "x" number, leave my fingers on the buttons control & z for possible immediate use, pray, then reach my pinkie over to compute to receive a "y" response. |
|
| Back to top |
|
 |
neweyes
Guest
|
Posted: Mon Jan 28, 2002 4:08 am Post subject: 28 |
|
|
| ... or maybe just get poised ready to compute one more time. And hold my breath. And grab the door knob. |
|
| Back to top |
|
 |
Tadeusz Dobrowiecki
Guest
|
Posted: Mon Feb 04, 2002 12:07 pm Post subject: 29 |
|
|
Hello,
Of course I know that it is not really int the spirit of the
puzzle, but what if the poor fellow in that room enters
x = 6210001000 into the computer and gets y = 6210001001
instead. Because the "true" rule is something like:
z = digit counting of(x);
if z =/= x then y = z else y = z+1;
There is no MUST for the computer to stick to the proposed solution,
isn't it? And that brings two issues into mind.
Due to the fact that the fellow has no second chance if he goes for
the door, he shoudn't stop at the fourth example. He should try them
as many as possible. In here the puzzle is unusual (not entirely honest?),
because the fellow in the puzzle can obtain more information than the
solver.
Formally the puzzle is the problem of finding a general relatioship
y = f(x), hopefully (but not for sure) possessing a fix-point x = f(x) solution,
based on 4 examples, i.e. it is an inductive learning problem with a bias.
As such it cannot be solved with certainty, only if the number of examples
to test the hypothesis will grow, or we will be lucky. Without checking
out that 6210001000 on the computer for real, we still cannot be sure!
Regards
Tadeusz
|
|
| Back to top |
|
 |
|