The Grey Labyrinth is a collection of puzzles, riddles, mind games, paradoxes and other intellectually challenging diversions. Related topics: puzzle games, logic puzzles, lateral thinking puzzles, philosophy, mind benders, brain teasers, word problems, conundrums, 3d puzzles, spatial reasoning, intelligence tests, mathematical diversions, paradoxes, physics problems, reasoning, math, science.

   
The Grey Labyrinth Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups    RegisterRegister  
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The pit and the Pentium logic - solution

 
Reply to topic    The Grey Labyrinth Forum Index -> Grey Labyrinth Puzzles
View previous topic :: View next topic  
Author Message
gadf
Icarian Member



PostPosted: Tue Jan 15, 2002 11:22 am    Post subject: 1 Reply with quote

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
View user's profile Send private message Send e-mail
ralphmerridew
Daedalian Member



PostPosted: Tue Jan 15, 2002 4:52 pm    Post subject: 2 Reply with quote

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
View user's profile Send private message AIM Address Yahoo Messenger
mith
Pitbull of Truth



PostPosted: Tue Jan 15, 2002 6:53 pm    Post subject: 3 Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
ralphmerridew
Daedalian Member



PostPosted: Tue Jan 15, 2002 9:50 pm    Post subject: 4 Reply with quote

What was part 2?
Back to top
View user's profile Send private message AIM Address Yahoo Messenger
mith
Pitbull of Truth



PostPosted: Tue Jan 15, 2002 10:17 pm    Post subject: 5 Reply with quote

whether there are any 3 cycles.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
/dev/joe
Guest



PostPosted: Wed Jan 16, 2002 1:03 am    Post subject: 6 Reply with quote

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



PostPosted: Wed Jan 16, 2002 3:23 am    Post subject: 7 Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
extropalopakettle
No offense, but....



PostPosted: Wed Jan 16, 2002 3:31 am    Post subject: 8 Reply with quote

Lately the smart people all seem to be unregistered.
Back to top
View user's profile Send private message
mole
Subterranean Member



PostPosted: Wed Jan 16, 2002 4:33 am    Post subject: 9 Reply with quote

Wouldn't ralphmerridew's (6300000100, 7101001000) count as unsafe codes?
Back to top
View user's profile Send private message Send e-mail
mith
Pitbull of Truth



PostPosted: Wed Jan 16, 2002 5:37 am    Post subject: 10 Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
ralphmerridew
Daedalian Member



PostPosted: Wed Jan 16, 2002 2:08 pm    Post subject: 11 Reply with quote

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
View user's profile Send private message AIM Address Yahoo Messenger
CrystyB
Misunderstood Guy



PostPosted: Wed Jan 16, 2002 4:07 pm    Post subject: 12 Reply with quote

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
View user's profile Send private message Visit poster's website Yahoo Messenger
ralphmerridew
Daedalian Member



PostPosted: Thu Jan 17, 2002 12:36 am    Post subject: 13 Reply with quote

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
View user's profile Send private message AIM Address Yahoo Messenger
start pilot
Icarian Member



PostPosted: Thu Jan 17, 2002 9:00 am    Post subject: 14 Reply with quote

If you take the sum of all digits in y, one finds always 10. Coincidence ?
Back to top
View user's profile Send private message Send e-mail
ralphmerridew
Daedalian Member



PostPosted: Fri Jan 18, 2002 4:56 pm    Post subject: 15 Reply with quote

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
View user's profile Send private message AIM Address Yahoo Messenger
pierrecurie
Icarian Member



PostPosted: Sat Jan 19, 2002 7:08 am    Post subject: 16 Reply with quote

I think we just need to know the number that when pushed in, returns the same number.
Back to top
View user's profile Send private message Send e-mail
El Blobbo revived
Daedalian Member



PostPosted: Sat Jan 19, 2002 8:03 pm    Post subject: 17 Reply with quote

0000000000 might give 0000000001
Back to top
View user's profile Send private message Send e-mail
Jen Aside
Daedalian Member



PostPosted: Sat Jan 19, 2002 9:39 pm    Post subject: 18 Reply with quote

000000000A?
Back to top
View user's profile Send private message Visit poster's website
El Blobbo revived
Daedalian Member



PostPosted: Sat Jan 19, 2002 10:14 pm    Post subject: 19 Reply with quote

A000000000!

[This message has been edited by El Blobbo revived (edited 01-19-2002 05:14 PM).]
Back to top
View user's profile Send private message Send e-mail
luckyscotty
Guest



PostPosted: Sun Jan 20, 2002 2:45 am    Post subject: 20 Reply with 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?
Back to top
El Blobbo revived
Daedalian Member



PostPosted: Sun Jan 20, 2002 2:54 am    Post subject: 21 Reply with quote

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
View user's profile Send private message Send e-mail
pierrecurie
Icarian Member



PostPosted: Mon Jan 21, 2002 1:01 am    Post subject: 22 Reply with quote

Yes I have noticed that the sum of the digits must equal 10.
Back to top
View user's profile Send private message Send e-mail
pierrecurie
Icarian Member



PostPosted: Mon Jan 21, 2002 5:04 am    Post subject: 23 Reply with 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.
Back to top
View user's profile Send private message Send e-mail
Top Gun
Icarian Member



PostPosted: Mon Jan 21, 2002 9:42 pm    Post subject: 24 Reply with quote

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
View user's profile Send private message
Jen Aside
Daedalian Member



PostPosted: Tue Jan 22, 2002 6:04 am    Post subject: 25 Reply with quote

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
View user's profile Send private message Visit poster's website
CrystyB
Misunderstood Guy



PostPosted: Fri Jan 25, 2002 12:55 pm    Post subject: 26 Reply with quote

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
View user's profile Send private message Visit poster's website Yahoo Messenger
neweyes
Guest



PostPosted: Mon Jan 28, 2002 3:54 am    Post subject: 27 Reply with quote

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



PostPosted: Mon Jan 28, 2002 4:08 am    Post subject: 28 Reply with quote

... 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



PostPosted: Mon Feb 04, 2002 12:07 pm    Post subject: 29 Reply with quote

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
Display posts from previous: by   
Reply to topic    The Grey Labyrinth Forum Index -> Grey Labyrinth Puzzles All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Site Design by Wx3