|
|
#27259 - 10/02/08 04:02 PM
Re: How would you solve this?
[Re: Cathy A]
|
Member
Registered: 06/30/06
Posts: 3200
Loc: The Real World
|
The way I understood the problem, the emperor ignores those who are already dead and continues his elimination method on the remaining suitors. That was my understanding too, despite my "going around the table more than once" comment. I was confusing Cathy's two uses of N/n, and didn't realize both didn't represent the number of knights. I thought her answer of 2N+1 had her whipping around the table a few extra times to find the best seat.
Edited by Dottie (10/02/08 04:02 PM) Edit Reason: adding spoiler!
|
|
Top
|
|
|
|
#27263 - 10/02/08 05:46 PM
Re: How would you solve this?
[Re: ienjoysoup]
|
Member
Registered: 08/28/08
Posts: 92
|
my solution: forget the girl, get up and run! LOL!!!
|
|
Top
|
|
|
|
#27264 - 10/02/08 05:47 PM
Re: How would you solve this?
[Re: Cathy A]
|
Member
Registered: 08/28/08
Posts: 92
|
If it's a round table, how do you know where the emperor will start? Are we to assume there is a fixed starting position? Yes. I think the assumption here is he always starts from the same first spot and will go round and round until he has the last remaining "living" suitor. 
|
|
Top
|
|
|
|
#27265 - 10/02/08 05:50 PM
Re: How would you solve this?
[Re: Dottie]
|
Member
Registered: 08/28/08
Posts: 92
|
Hmm, your knights aren't cooperating with my table...or I'm not understanding... Are you going around the table more than once there with the 2N+1? Give me any number, and I can tell you where to sit, but I can't get a formula out of this mess! I can program a computer though, or give you a flow chart, ROFL! I have the formula. The "click to reveal" inbox is NEAT!!! I am going to try using it. 
|
|
Top
|
|
|
|
#27270 - 10/02/08 06:51 PM
Re: How would you solve this?
[Re: S-T]
|
Member
Registered: 08/28/08
Posts: 92
|
Solution by DS8. This was DS8's "train of thought":-
He first listed out the info up to #23 and saw the pattern which was:
No. of people <=> Best Seat 1 <=> 1 2 <=> 1 3 <=> 3 4 <=> 1 5 <=> 3 6 <=> 5 7 <=> 7 8 <=> 1 9 <=> 3 10 <=> 5 11 <=> 7 12 <=> 9 13 <=> 11 14 <=> 13 15 <=> 15 16 <=> 1 17 <=> 3 18 <=> 5 19 <=> 7 20 <=> 9 21 <=> 11 22 <=> 13 23 <=> 15 : : : :
He noticed that when the # of pple is 4, 8 16 .... the best seat would be 1 (the first seat). He then associated them with the power of 2s.
He also noticed that the increment for each cycle is by 2. Eg. [1] [1,3] [1,3,5,7] [1,3,5,7,9,11,13,15 ....] This is the part when he thought that there should be a {times 2} in his formula.
Since he didn't know how to "write out" a formula, I told him to describe to me. He started with :-
1) "Find the difference between the no. of pple (n) and the closest power of 2 which is less than n"
2) Then multiply by 2
3) Add 1 (this "1" according to him is to add back the 1st seat)
After making him explained to me like 100x , he wrote down the formula... (He can't wait to go play his lego!)
1+(n-2^) x 2 (where the power of 2 is denoted by 2^)
|
|
Top
|
|
|
|
#27271 - 10/02/08 06:54 PM
Re: How would you solve this?
[Re: S-T]
|
Member
Registered: 08/28/08
Posts: 92
|
Another solution by a 11yo boy...(posted by his mom) n = 1, 2, 3, 4, 5, 6, 7, 8, ...... nth term = [1][1,3][1,3,5,7][1,3,5,7,9,...][1,....]
The [1,3,5...] sequence would normally have this formula: 2n-1
Now, the sequence restarts when a binary number is reached.
eg for the 3rd interval n=4,5,6,7 nth term=[1,3,5,7]
What needs to be done is to convert this n so that it starts at 1, and the formula 2n-1 can be used. To do that, we'll need to subtract n by the closest binary number that's smaller than n and add 1.
In this 3rd interval, the binary number is 4, so apply the formula (n-2^)+1
n=4,5,6,7 becomes n=1,2,3,4 after we subtract n by 4 and add 1 we can now apply the earlier formula 2n-1 to get the nth term that we wanted.
So what we're doing is. 2((n-2^)+1)-1 --> 2(n-2^)+2-1 --> 2(n-2^)+1
|
|
Top
|
|
|
|
#27272 - 10/02/08 07:00 PM
Re: How would you solve this?
[Re: S-T]
|
Member
Registered: 06/30/06
Posts: 3200
Loc: The Real World
|
Ah...I think I'm right in the pack with both boys (woohoo!) By the way, very challenging...those kids deserve some kudos (and maybe some better accommodations,  !) I kept trying to make one formula that didn't depend on where you were in the 2^ progression. Fun, fun! Thanks for sharing!
|
|
Top
|
|
|
|
#27274 - 10/02/08 08:00 PM
Re: How would you solve this?
[Re: Dottie]
|
Member
Registered: 06/21/07
Posts: 348
Loc: heading in a new direction
|
Fun, fun! Thanks for sharing!
Now see this just goes to show you, there are two types of people in the world: those who describe something like this problem as "fun, fun", and those of us who just ran away screaming from it.
|
|
Top
|
|
|
|
#27277 - 10/02/08 08:39 PM
Re: How would you solve this?
[Re: CFK]
|
Member
Registered: 05/26/07
Posts: 1180
Loc: West coast, USA
|
Fun, fun! Thanks for sharing!
Now see this just goes to show you, there are two types of people in the world: those who describe something like this problem as "fun, fun", and those of us who just ran away screaming from it. LOL!
|
|
Top
|
|
|
|
#27278 - 10/02/08 11:38 PM
Re: How would you solve this?
[Re: CFK]
|
Member
Registered: 08/28/08
Posts: 92
|
Fun, fun! Thanks for sharing!
Now see this just goes to show you, there are two types of people in the world: those who describe something like this problem as "fun, fun", and those of us who just ran away screaming from it. U are so right!!! LOL And perhaps she will say...."More please???" 
|
|
Top
|
|
|
|
|
|
|
|
|
|
|
|
1
|
|
2
|
3
|
4
|
5
|
6
|
7
|
8
|
|
9
|
10
|
11
|
12
|
13
|
14
|
15
|
|
16
|
17
|
18
|
19
|
20
|
21
|
22
|
|
23
|
24
|
25
|
26
|
27
|
28
|
29
|
|
30
|
|
|
|
|
|
|
|
|