Re: next term



anil.tendulakar@xxxxxxxxx said:

On Sep 18, 11:07 pm, Richard Heathfield <r...@xxxxxxxxxxxxxxx> wrote:
anil.tendula...@xxxxxxxxx said:

the puzzle is
If 1 ----> 3
2 ----> 3
3 ----> 5
4 ---->4
5 ----> 4
6 ----> 3
7 ----> 5
8 ----> 5
9 ----> 4
10 ----> A . Find A.

I've seen MB's solution, which is of course compelling. But my own
answer is that you can't find A because you get stuck at 4:

1 ----> 3
3 ----> 5
5 ----> 4
4 ----> 4, and then we go round and round forever.

--
Richard Heathfield <http://www.cpax.org.uk>
Email: -http://www. +rjh@
Google users: <http://www.cpax.org.uk/prg/writings/googly.php>
"Usenet is a strange place" - dmr 29 July 1999

hmmm..but the question doesn't give adquet hint to verify your
assumption a set mapped to itself!(do i sound vague??)

me@here> cat mapping.dot
digraph "G"
{
1 -> 3;
2 -> 3;
3 -> 5;
4 -> 4;
5 -> 4;
6 -> 3;
7 -> 5;
8 -> 5;
9 -> 4;
};
me@here> cat mapping.dot | dot -Tpng -o mapping.png
me@here> cp mapping.png web/scratch

http://www.cpax.org.uk/scratch/mapping.png

Sure looks to me like all roads lead to 4.

--
Richard Heathfield <http://www.cpax.org.uk>
Email: -http://www. +rjh@
Google users: <http://www.cpax.org.uk/prg/writings/googly.php>
"Usenet is a strange place" - dmr 29 July 1999
.



Relevant Pages