Re: Who Is The Survivor In The Puzzle? by Kylekent59: 10:41am On Sep 02, 2017 |
We use odd numbers,cus even numbers are killed. 97 kills 98 and hands the sword back to 99 and 99 kills 100 and the sword back to 1.
Then 1 kills 3 and hands it back to 5,5 kills 7 and hands it back to 9.... The last survivors is definitely
73rd person 3 Likes |
Re: Who Is The Survivor In The Puzzle? by Kylekent59: 10:42am On Sep 02, 2017 |
Obinoscopy: The 73rd person. It's complex I support u. Only right answer is 73rd |
Re: Who Is The Survivor In The Puzzle? by Friedyokes: 10:42am On Sep 02, 2017 |
73rd person survives 2 Likes |
Re: Who Is The Survivor In The Puzzle? by Donbabaj: 10:42am On Sep 02, 2017 |
cremedelacreme: All the odd numbers will be survivors and all the even numbers killed. That is 1,3,5,7,....99 will survive while 2,4,6,8....100 will all die. Thumbs up for this guy. Modified: But wait o, what if the conquest continues, and 1 kills 3 and hands over to 5, 5 kills 7 and hands over to 9 and so on. 1 Like |
Re: Who Is The Survivor In The Puzzle? by rhektor(m): 10:42am On Sep 02, 2017 |
jaelz: Please gimme answers to this with logical backings and proof to answer. With this number 99 will kill number 100, therefore number 1 is the survivor |
Re: Who Is The Survivor In The Puzzle? by momentusjay(f): 10:43am On Sep 02, 2017 |
73 will be the survival 1 Like |
Re: Who Is The Survivor In The Puzzle? by chiefojiji(m): 10:44am On Sep 02, 2017 |
The survivor is no 73 |
Re: Who Is The Survivor In The Puzzle? by Proudlyngwa(m): 10:44am On Sep 02, 2017 |
jaelz: Please gimme answers to this with logical backings and proof to answer. No 73. The game changes after reading second round of killing. |
Re: Who Is The Survivor In The Puzzle? by Phi001(m): 10:46am On Sep 02, 2017 |
a + (n-1)d
where d = 1,2,4,8...
Keep going till you have only one person left |
Re: Who Is The Survivor In The Puzzle? by JackBizzle: 10:47am On Sep 02, 2017 |
Remimadrid:
No 1 is the last person standing, why? he killed 2 and pass the sword to 3, 3 kill 4 and so on. Then it comes back to the beginning and 1 kills 3, till he is the last person standing No Round 1 1 kills 2. 3 kills 4. 5 kills 6....99 kills 100 All even numbers die and it starts again with 1. Round 2. 1 kills 3. 5 kills 7. 9 kills 11. 97 kills 99. Some odd numbers die and it starts with 1. Round 3 1 kills 5. 9 kills 13. 17 kills 21. 95 kills 1. |
Re: Who Is The Survivor In The Puzzle? by Jubrilv(m): 10:47am On Sep 02, 2017 |
Remimadrid:
No 1 is the last person standing, why? he killed 2 and pass the sword to 3, 3 kill 4 and so on. Then it comes back to the beginning and 1 kills 3, till he is the last person standing the only survivor is will be the last person to hold the sword |
Re: Who Is The Survivor In The Puzzle? by Narldon: 10:47am On Sep 02, 2017 |
TessaJ: LOL......laf wan tear my stomach ooo
LoL
The thing taya me oo |
Re: Who Is The Survivor In The Puzzle? by Oly23(f): 10:51am On Sep 02, 2017 |
The 73rd person is the last man standing |
Re: Who Is The Survivor In The Puzzle? by coachy777(m): 10:53am On Sep 02, 2017 |
Enouwem: 73 is the answer!
How?
Consider a case when there 2^numbers in circle. Each time the number reduces by half and finally at the last number 1 will remain. example – 2^2 = 4 round 1 – 2 and 4 will be killed. round 2 – 3 will be killed. One Remains
So our aim here should be to reach to a figure when 2^n number will come and person who will be holding the sword at that moment will survive.
when there are 100 people – closet 2^number will be 64. so here our target it to find the person who is holding the sword when 64 people are remaining.
64 people remaining means 36 people killed. As every alternate person is being killed so double of 36 i.e 72. So 72 person was killed at that moment and the sword was passed to 73 from 71 after killing 72.
so the moment when 64 people were remaining, 73 was holding the sword, so 73 will survive the killings!!! . . . . . OR,
Use the Circular Left Shift method
There are 100 people. 100 in binary is 1100100. Circular left shift 1100100. We get 1001001. Convert it back to base 10. 73rd is the last man standing.
OR,
MATHAMATICAL WAY THAT EVERY NIGERIAN WILL UNDERSTAND
First 1,3,5,7,9,11,13,15,17;19,21,23,25,27,29,31,33,35,37,39,41,43,45,47,49,51,53,55,57,59,61,63,65,67,69,71,73,75,77,79,81,83,85,87,89,91,93,95,97,99(got sword, passed to 1)
Then 1,5,9,13,17,21,25,29,33,37,41,45,49,53,57,61,65,69,73,77,81,85,89,93,97(sword passed to again)
Then 1,9,17,25,33,41,49,57,65,73,81,89,97(sword passed to 9)
Then 9,25,41,57,73,89(sword passed to 9 again)
Then 9,41,73(sword passed to 9 again)
Then 9,73(73 got sword & killed 9)
Thus the answer is “73"
Oh! And for the programmers or coders.
PYTHON CODE
# find the survivor n = 100 peeps = range(1, n+1) idx = 0 while len(peeps) > 1: peeps.pop((idx + 1) % len(peeps)) # Trivia: because of changing index and len(peeps), # the code below is not exactly equal to "idx = (idx + 1) % len(peeps)" idx = 0 if (idx >= len(peeps)-1) else (idx + 1) print peeps[0]
Output: 73 Very correct! 1 Like |
Re: Who Is The Survivor In The Puzzle? by BaEnki(m): 10:54am On Sep 02, 2017 |
73 |
Re: Who Is The Survivor In The Puzzle? by Nobody: 10:58am On Sep 02, 2017 |
cremedelacreme: All the odd numbers will be survivors and all the even numbers killed. That is 1,3,5,7,....99 will survive while 2,4,6,8....100 will all die. Niggi only one person survived |
Re: Who Is The Survivor In The Puzzle? by earldoyex(m): 11:02am On Sep 02, 2017 |
Enouwem: 73 is the answer!
How?
Consider a case when there 2^numbers in circle. Each time the number reduces by half and finally at the last number 1 will remain. example – 2^2 = 4 round 1 – 2 and 4 will be killed. round 2 – 3 will be killed. One Remains
So our aim here should be to reach to a figure when 2^n number will come and person who will be holding the sword at that moment will survive.
when there are 100 people – closet 2^number will be 64. so here our target it to find the person who is holding the sword when 64 people are remaining.
64 people remaining means 36 people killed. As every alternate person is being killed so double of 36 i.e 72. So 72 person was killed at that moment and the sword was passed to 73 from 71 after killing 72.
so the moment when 64 people were remaining, 73 was holding the sword, so 73 will survive the killings!!! . . . . . OR,
Use the Circular Left Shift method
There are 100 people. 100 in binary is 1100100. Circular left shift 1100100. We get 1001001. Convert it back to base 10. 73rd is the last man standing.
OR,
MATHAMATICAL WAY THAT EVERY NIGERIAN WILL UNDERSTAND
First 1,3,5,7,9,11,13,15,17;19,21,23,25,27,29,31,33,35,37,39,41,43,45,47,49,51,53,55,57,59,61,63,65,67,69,71,73,75,77,79,81,83,85,87,89,91,93,95,97,99(got sword, passed to 1)
Then 1,5,9,13,17,21,25,29,33,37,41,45,49,53,57,61,65,69,73,77,81,85,89,93,97(sword passed to again)
Then 1,9,17,25,33,41,49,57,65,73,81,89,97(sword passed to 9)
Then 9,25,41,57,73,89(sword passed to 9 again)
Then 9,41,73(sword passed to 9 again)
Then 9,73(73 got sword & killed 9)
Thus the answer is “73"
Oh! And for the programmers or coders.
PYTHON CODE
# find the survivor n = 100 peeps = range(1, n+1) idx = 0 while len(peeps) > 1: peeps.pop((idx + 1) % len(peeps)) # Trivia: because of changing index and len(peeps), # the code below is not exactly equal to "idx = (idx + 1) % len(peeps)" idx = 0 if (idx >= len(peeps)-1) else (idx + 1) print peeps[0]
Output: 73 U must be a statistican, I tried numbering it out, crossing each one elimated by the other and ALAS 73 was d only one left. Kudos to you. 73 |
Re: Who Is The Survivor In The Puzzle? by Bigsteveg(m): 11:02am On Sep 02, 2017 |
cremedelacreme: All the odd numbers will be survivors and all the even numbers killed. That is 1,3,5,7,....99 will survive while 2,4,6,8....100 will all die. Uhnmmm |
Re: Who Is The Survivor In The Puzzle? by einsteinn(m): 11:04am On Sep 02, 2017 |
73 |
Re: Who Is The Survivor In The Puzzle? by Phi001(m): 11:07am On Sep 02, 2017 |
Oly23: The 73rd person is the last man standing You are correct. I just finished solving by mathematical induction and behold, I got 73 too... 1 Like |
Re: Who Is The Survivor In The Puzzle? by uncleade(m): 11:07am On Sep 02, 2017 |
NUM 1 KILL NUM 2, NUM 3 KILL NUM 4, NUM 5 KILL NUM 6. . . . . . . NUM 97 KILL NUM 98 SO NUM 99 WILL SURELY KILL NUM 1. WHICH MEANS THE ONLY SURVIVOR IS NUM 99. |
Re: Who Is The Survivor In The Puzzle? by tygar(m): 11:10am On Sep 02, 2017 |
Enouwem: 73 is the answer!
How?
Consider a case when there 2^numbers in circle. Each time the number reduces by half and finally at the last number 1 will remain. example – 2^2 = 4 round 1 – 2 and 4 will be killed. round 2 – 3 will be killed. One Remains
So our aim here should be to reach to a figure when 2^n number will come and person who will be holding the sword at that moment will survive.
when there are 100 people – closet 2^number will be 64. so here our target it to find the person who is holding the sword when 64 people are remaining.
64 people remaining means 36 people killed. As every alternate person is being killed so double of 36 i.e 72. So 72 person was killed at that moment and the sword was passed to 73 from 71 after killing 72.
so the moment when 64 people were remaining, 73 was holding the sword, so 73 will survive the killings!!! . . . . . OR,
Use the Circular Left Shift method
There are 100 people. 100 in binary is 1100100. Circular left shift 1100100. We get 1001001. Convert it back to base 10. 73rd is the last man standing.
OR,
MATHAMATICAL WAY THAT EVERY NIGERIAN WILL UNDERSTAND
First 1,3,5,7,9,11,13,15,17;19,21,23,25,27,29,31,33,35,37,39,41,43,45,47,49,51,53,55,57,59,61,63,65,67,69,71,73,75,77,79,81,83,85,87,89,91,93,95,97,99(got sword, passed to 1)
Then 1,5,9,13,17,21,25,29,33,37,41,45,49,53,57,61,65,69,73,77,81,85,89,93,97(sword passed to again)
Then 1,9,17,25,33,41,49,57,65,73,81,89,97(sword passed to 9)
Then 9,25,41,57,73,89(sword passed to 9 again)
Then 9,41,73(sword passed to 9 again)
Then 9,73(73 got sword & killed 9)
Thus the answer is “73"
Oh! And for the programmers or coders.
PYTHON CODE
# find the survivor n = 100 peeps = range(1, n+1) idx = 0 while len(peeps) > 1: peeps.pop((idx + 1) % len(peeps)) # Trivia: because of changing index and len(peeps), # the code below is not exactly equal to "idx = (idx + 1) % len(peeps)" idx = 0 if (idx >= len(peeps)-1) else (idx + 1) print peeps[0]
Output: 73
JAVASCRIPT
// populate the array for 100 people var team = new Array(); for (var i = 1; i <= 100; i++) { team[i - 1] = i; }
var current; var next;
var j = 0. while (team.length > 1) { // loop until only 1 exists current = team[j]; team.push(team[j]); // move current to the end team.shift(); // remove from existing next = team[j]; team.shift(); // delete next document.writeln("Number " + current + " kills number " + next + "<br />" } document.writeln("The last one is number " + team[0]); //alert(team[0]); |
Re: Who Is The Survivor In The Puzzle? by parizz88(m): 11:10am On Sep 02, 2017 |
The survivor is the number 100. Because he is the one to collect the sword last and he will kill number 1. |
Re: Who Is The Survivor In The Puzzle? by Sambest2(m): 11:10am On Sep 02, 2017 |
73rd person ooo |
Re: Who Is The Survivor In The Puzzle? by Nobody: 11:11am On Sep 02, 2017 |
Enouwem: 73 is the answer!
How?
Consider a case when there 2^numbers in circle. Each time the number reduces by half and finally at the last number 1 will remain. example – 2^2 = 4 round 1 – 2 and 4 will be killed. round 2 – 3 will be killed. One Remains
So our aim here should be to reach to a figure when 2^n number will come and person who will be holding the sword at that moment will survive.
when there are 100 people – closet 2^number will be 64. so here our target it to find the person who is holding the sword when 64 people are remaining.
64 people remaining means 36 people killed. As every alternate person is being killed so double of 36 i.e 72. So 72 person was killed at that moment and the sword was passed to 73 from 71 after killing 72.
so the moment when 64 people were remaining, 73 was holding the sword, so 73 will survive the killings!!! . . . . . OR,
Use the Circular Left Shift method
There are 100 people. 100 in binary is 1100100. Circular left shift 1100100. We get 1001001. Convert it back to base 10. 73rd is the last man standing.
OR,
MATHAMATICAL WAY THAT EVERY NIGERIAN WILL UNDERSTAND
First 1,3,5,7,9,11,13,15,17;19,21,23,25,27,29,31,33,35,37,39,41,43,45,47,49,51,53,55,57,59,61,63,65,67,69,71,73,75,77,79,81,83,85,87,89,91,93,95,97,99(got sword, passed to 1)
Then 1,5,9,13,17,21,25,29,33,37,41,45,49,53,57,61,65,69,73,77,81,85,89,93,97(sword passed to again)
Then 1,9,17,25,33,41,49,57,65,73,81,89,97(sword passed to 9)
Then 9,25,41,57,73,89(sword passed to 9 again)
Then 9,41,73(sword passed to 9 again)
Then 9,73(73 got sword & killed 9)
Thus the answer is “73"
Oh! And for the programmers or coders.
PYTHON CODE
# find the survivor n = 100 peeps = range(1, n+1) idx = 0 while len(peeps) > 1: peeps.pop((idx + 1) % len(peeps)) # Trivia: because of changing index and len(peeps), # the code below is not exactly equal to "idx = (idx + 1) % len(peeps)" idx = 0 if (idx >= len(peeps)-1) else (idx + 1) print peeps[0]
Output: 73
JAVASCRIPT
// populate the array for 100 people var team = new Array(); for (var i = 1; i <= 100; i++) { team[i - 1] = i; }
var current; var next;
var j = 0. while (team.length > 1) { // loop until only 1 exists current = team[j]; team.push(team[j]); // move current to the end team.shift(); // remove from existing next = team[j]; team.shift(); // delete next document.writeln("Number " + current + " kills number " + next + "<br />" } document.writeln("The last one is number " + team[0]); //alert(team[0]); Guy 9ja d waste ur talent 7 Likes 1 Share |
Re: Who Is The Survivor In The Puzzle? by kenlinzo(m): 11:13am On Sep 02, 2017 |
The last person standing is the 73rd person.
FIRST 1 3 5 7 9 11 13 15 17 19 21 23 25 27 29 31 33 35 37 39 41 43 45 47 49 51 53 55 57 59 61 63 65 67 69 71 73 75 77 79 81 83 85 87 89 91 93 95 97 99 (sword passed to 1)
SECOND 1 5 9 13 17 21 25 29 33 37 41 45 49 53 57 61 65 69 73 77 81 85 89 93 97 (sword passed to 1)
THIRD 1 9 17 25 33 41 49 57 65 73 81 89 97 (sword passed to 97)
FOURTH 9 25 41 57 73 89 (sword passed to 9)
FIFTH 9 41 73 (sword passed to 9)
SIXTH 9 73 (sword passed to 73)
73 kills 9. |
Re: Who Is The Survivor In The Puzzle? by dikenna: 11:17am On Sep 02, 2017 |
Guy you too much. You are Albert Einstein reincarnated. Abeg I need you to teach me more maths skills Enouwem: 73 is the answer!
How?
Consider a case when there 2^numbers in circle. Each time the number reduces by half and finally at the last number 1 will remain. example – 2^2 = 4 round 1 – 2 and 4 will be killed. round 2 – 3 will be killed. One Remains
So our aim here should be to reach to a figure when 2^n number will come and person who will be holding the sword at that moment will survive.
when there are 100 people – closet 2^number will be 64. so here our target it to find the person who is holding the sword when 64 people are remaining.
64 people remaining means 36 people killed. As every alternate person is being killed so double of 36 i.e 72. So 72 person was killed at that moment and the sword was passed to 73 from 71 after killing 72.
so the moment when 64 people were remaining, 73 was holding the sword, so 73 will survive the killings!!! . . . . . OR,
Use the Circular Left Shift method
There are 100 people. 100 in binary is 1100100. Circular left shift 1100100. We get 1001001. Convert it back to base 10. 73rd is the last man standing.
OR,
MATHAMATICAL WAY THAT EVERY NIGERIAN WILL UNDERSTAND
First 1,3,5,7,9,11,13,15,17;19,21,23,25,27,29,31,33,35,37,39,41,43,45,47,49,51,53,55,57,59,61,63,65,67,69,71,73,75,77,79,81,83,85,87,89,91,93,95,97,99(got sword, passed to 1)
Then 1,5,9,13,17,21,25,29,33,37,41,45,49,53,57,61,65,69,73,77,81,85,89,93,97(sword passed to again)
Then 1,9,17,25,33,41,49,57,65,73,81,89,97(sword passed to 9)
Then 9,25,41,57,73,89(sword passed to 9 again)
Then 9,41,73(sword passed to 9 again)
Then 9,73(73 got sword & killed 9)
Thus the answer is “73"
Oh! And for the programmers or coders.
PYTHON CODE
# find the survivor n = 100 peeps = range(1, n+1) idx = 0 while len(peeps) > 1: peeps.pop((idx + 1) % len(peeps)) # Trivia: because of changing index and len(peeps), # the code below is not exactly equal to "idx = (idx + 1) % len(peeps)" idx = 0 if (idx >= len(peeps)-1) else (idx + 1) print peeps[0]
Output: 73
JAVASCRIPT
// populate the array for 100 people var team = new Array(); for (var i = 1; i <= 100; i++) { team[i - 1] = i; }
var current; var next;
var j = 0. while (team.length > 1) { // loop until only 1 exists current = team[j]; team.push(team[j]); // move current to the end team.shift(); // remove from existing next = team[j]; team.shift(); // delete next document.writeln("Number " + current + " kills number " + next + "<br />" } document.writeln("The last one is number " + team[0]); //alert(team[0]); |
Re: Who Is The Survivor In The Puzzle? by Nobody: 11:17am On Sep 02, 2017 |
the will remain if the pattern of killing is maintained. |
Re: Who Is The Survivor In The Puzzle? by DONADAMS(m): 11:21am On Sep 02, 2017 |
Enouwem: 73 is the answer!
How?
Consider a case when there 2^numbers in circle. Each time the number reduces by half and finally at the last number 1 will remain. example – 2^2 = 4 round 1 – 2 and 4 will be killed. round 2 – 3 will be killed. One Remains
So our aim here should be to reach to a figure when 2^n number will come and person who will be holding the sword at that moment will survive.
when there are 100 people – closet 2^number will be 64. so here our target it to find the person who is holding the sword when 64 people are remaining.
64 people remaining means 36 people killed. As every alternate person is being killed so double of 36 i.e 72. So 72 person was killed at that moment and the sword was passed to 73 from 71 after killing 72.
so the moment when 64 people were remaining, 73 was holding the sword, so 73 will survive the killings!!! . . . . . OR,
Use the Circular Left Shift method
There are 100 people. 100 in binary is 1100100. Circular left shift 1100100. We get 1001001. Convert it back to base 10. 73rd is the last man standing.
OR,
MATHAMATICAL WAY THAT EVERY NIGERIAN WILL UNDERSTAND
First 1,3,5,7,9,11,13,15,17;19,21,23,25,27,29,31,33,35,37,39,41,43,45,47,49,51,53,55,57,59,61,63,65,67,69,71,73,75,77,79,81,83,85,87,89,91,93,95,97,99(got sword, passed to 1)
Then 1,5,9,13,17,21,25,29,33,37,41,45,49,53,57,61,65,69,73,77,81,85,89,93,97(sword passed to again)
Then 1,9,17,25,33,41,49,57,65,73,81,89,97(sword passed to 9)
Then 9,25,41,57,73,89(sword passed to 9 again)
Then 9,41,73(sword passed to 9 again)
Then 9,73(73 got sword & killed 9)
Thus the answer is “73"
Oh! And for the programmers or coders.
PYTHON CODE
# find the survivor n = 100 peeps = range(1, n+1) idx = 0 while len(peeps) > 1: peeps.pop((idx + 1) % len(peeps)) # Trivia: because of changing index and len(peeps), # the code below is not exactly equal to "idx = (idx + 1) % len(peeps)" idx = 0 if (idx >= len(peeps)-1) else (idx + 1) print peeps[0]
Output: 73
JAVASCRIPT
// populate the array for 100 people var team = new Array(); for (var i = 1; i <= 100; i++) { team[i - 1] = i; }
var current; var next;
var j = 0. while (team.length > 1) { // loop until only 1 exists current = team[j]; team.push(team[j]); // move current to the end team.shift(); // remove from existing next = team[j]; team.shift(); // delete next document.writeln("Number " + current + " kills number " + next + "<br />" } document.writeln("The last one is number " + team[0]); //alert(team[0]); na was oh...tiri gbosa for you!!! |
Re: Who Is The Survivor In The Puzzle? by ikept(m): 11:28am On Sep 02, 2017 |
73rd |
Re: Who Is The Survivor In The Puzzle? by Movichabiodun(m): 11:33am On Sep 02, 2017 |
[/color]Enouwem: 73 is the answer!
How?
[color=#006600]Consider a case when there 2^numbers in circle. Each time the number reduces by half and finally at the last number 1 will remain. example – 2^2 = 4 round 1 – 2 and 4 will be killed. round 2 – 3 will be killed. One Remains
So our aim here should be to reach to a figure when 2^n number will come and person who will be holding the sword at that moment will survive.
when there are 100 people – closet 2^number will be 64. so here our target it to find the person who is holding the sword when 64 people are remaining.
64 people remaining means 36 people killed. As every alternate person is being killed so double of 36 i.e 72. So 72 person was killed at that moment and the sword was passed to 73 from 71 after killing 72.
so the moment when 64 people were remaining, 73 was holding the sword, so 73 will survive the killings!!! . . . . . OR, Use the Circular Left Shift methodThere are 100 people. 100 in binary is 1100100. Circular left shift 1100100. We get 1001001. Convert it back to base 10. 73rd is the last man standing. OR, MATHAMATICAL WAY THAT EVERY NIGERIAN WILL UNDERSTANDFirst 1,3,5,7,9,11,13,15,17;19,21,23,25,27,29,31,33,35,37,39,41,43,45,47,49,51,53,55,57,59,61,63,65,67,69,71,73,75,77,79,81,83,85,87,89,91,93,95,97,99(got sword, passed to 1)
Then 1,5,9,13,17,21,25,29,33,37,41,45,49,53,57,61,65,69,73,77,81,85,89,93,97(sword passed to again)
Then 1,9,17,25,33,41,49,57,65,73,81,89,97(sword passed to 9)
Then 9,25,41,57,73,89(sword passed to 9 again)
Then 9,41,73(sword passed to 9 again)
Then 9,73(73 got sword & killed 9)
Thus the answer is “73"Oh! And for the programmers or coders. PYTHON CODE # find the survivor n = 100 peeps = range(1, n+1) idx = 0 while len(peeps) > 1: peeps.pop((idx + 1) % len(peeps)) # Trivia: because of changing index and len(peeps), # the code below is not exactly equal to "idx = (idx + 1) % len(peeps)" idx = 0 if (idx >= len(peeps)-1) else (idx + 1) print peeps[0] Output: 73 JAVASCRIPT // populate the array for 100 people var team = new Array(); for (var i = 1; i <= 100; i++) { team[i - 1] = i; }
var current; var next;
var j = 0. while (team.length > 1) { // loop until only 1 exists current = team[j]; team.push(team[j]); // move current to the end team.shift(); // remove from existing next = team[j]; team.shift(); // delete next document.writeln("Number " + current + " kills number " + next + "<br />" } document.writeln("The last one is number " + team[0]); //alert(team[0]); ikept: My answer is 97th position. This is because after the second cycle of elimination, the total number of people remaining becomes odd. i.e 1st,100/2=50. 2nd, 50/2=25. this makes it impossible to eliminate the last person, which in this case occupies the 97th position. Enouwem: 73 is the answer!
How?
Consider a case when there 2^numbers in circle. Each time the number reduces by half and finally at the last number 1 will remain. example – 2^2 = 4 round 1 – 2 and 4 will be killed. round 2 – 3 will be killed. One Remains
So our aim here should be to reach to a figure when 2^n number will come and person who will be holding the sword at that moment will survive.
when there are 100 people – closet 2^number will be 64. so here our target it to find the person who is holding the sword when 64 people are remaining.
64 people remaining means 36 people killed. As every alternate person is being killed so double of 36 i.e 72. So 72 person was killed at that moment and the sword was passed to 73 from 71 after killing 72.
so the moment when 64 people were remaining, 73 was holding the sword, so 73 will survive the killings!!! . . . . . OR,
Use the Circular Left Shift method
There are 100 people. 100 in binary is 1100100. Circular left shift 1100100. We get 1001001. Convert it back to base 10. 73rd is the last man standing.
OR,
MATHAMATICAL WAY THAT EVERY NIGERIAN WILL UNDERSTAND
First 1,3,5,7,9,11,13,15,17;19,21,23,25,27,29,31,33,35,37,39,41,43,45,47,49,51,53,55,57,59,61,63,65,67,69,71,73,75,77,79,81,83,85,87,89,91,93,95,97,99(got sword, passed to 1)
Then 1,5,9,13,17,21,25,29,33,37,41,45,49,53,57,61,65,69,73,77,81,85,89,93,97(sword passed to again)
Then 1,9,17,25,33,41,49,57,65,73,81,89,97(sword passed to 9)
Then 9,25,41,57,73,89(sword passed to 9 again)
Then 9,41,73(sword passed to 9 again)
Then 9,73(73 got sword & killed 9)
Thus the answer is “73"
Oh! And for the programmers or coders.
PYTHON CODE
# find the survivor n = 100 peeps = range(1, n+1) idx = 0 while len(peeps) > 1: peeps.pop((idx + 1) % len(peeps)) # Trivia: because of changing index and len(peeps), # the code below is not exactly equal to "idx = (idx + 1) % len(peeps)" idx = 0 if (idx >= len(peeps)-1) else (idx + 1) print peeps[0]
Output: 73
JAVASCRIPT
// populate the array for 100 people var team = new Array(); for (var i = 1; i <= 100; i++) { team[i - 1] = i; }
var current; var next;
var j = 0. while (team.length > 1) { // loop until only 1 exists current = team[j]; team.push(team[j]); // move current to the end team.shift(); // remove from existing next = team[j]; team.shift(); // delete next document.writeln("Number " + current + " kills number " + next + "<br />" } document.writeln("The last one is number " + team[0]); //alert(team[0]); |
Re: Who Is The Survivor In The Puzzle? by kingrt2(m): 11:35am On Sep 02, 2017 |
This is very simple I am surprise nobody has gotten it right, I mean look at it this way 1 kills one and hands to another and it keeps going to the end which means each person out of a hundred killed one person in that same hundred so automatically their number will split in half in other words the answer is 50. For God sake Nigerians think. One person can't be the surviver here and even if they do the process again 25 people will still be alive |