Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / New
Stats: 3,152,829 members, 7,817,423 topics. Date: Saturday, 04 May 2024 at 12:01 PM

Who Is The Survivor In The Puzzle? - Forum Games (4) - Nairaland

Nairaland Forum / Entertainment / Forum Games / Who Is The Survivor In The Puzzle? (20127 Views)

Can You Provide The Correct Answer To This Puzzle? Photo / How Smart Are You? Solve The Puzzle / A Prisoner Dies In Cell: Who Can Solve This Puzzle? (2) (3) (4)

(1) (2) (3) (4) (5) (Reply) (Go Down)

Re: Who Is The Survivor In The Puzzle? by hayormakaay(m): 11:41am On Sep 02, 2017
[quote author=cremedelacreme post=60056821]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 guy �
Re: Who Is The Survivor In The Puzzle? by vanshwerz: 11:43am 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 />"wink;
}
document.writeln("The last one is number " + team[0]);
//alert(team[0]);

I couldn't help but to acknowledge your intellect. Even if you're wrong.

6 Likes

Re: Who Is The Survivor In The Puzzle? by Nobody: 11:50am On Sep 02, 2017
99th person
Re: Who Is The Survivor In The Puzzle? by Melonny(m): 11:59am On Sep 02, 2017
jaelz:
Please gimme answers to this with logical backings and proof to answer.
88 will kill 24... 88 is the champion. 88 is man utd. I think the question stated, they were in circle? so the sword keeps going round.
Re: Who Is The Survivor In The Puzzle? by Worksunlimited: 12:00pm 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 />"wink;
}
document.writeln("The last one is number " + team[0]);
//alert(team[0]);

Iwe factorial.. Odikwa too much..
Re: Who Is The Survivor In The Puzzle? by Worksunlimited: 12:01pm On Sep 02, 2017
vanshwerz:


I couldn't help but to acknowledge your intellect. Even if you're wrong.


Fortunately, he is correct...
Re: Who Is The Survivor In The Puzzle? by cao(f): 12:06pm On Sep 02, 2017
73.
I sadly did this through the layman's method, wrote the damn thing down. My brain refused to do the simple arithmetic series...
Re: Who Is The Survivor In The Puzzle? by sureteeboy(m): 12:08pm 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 />"wink;
}
document.writeln("The last one is number " + team[0]);
//alert(team[0]);
Reppect Bro. Na only that normal one I understand.

2 Likes

Re: Who Is The Survivor In The Puzzle? by bpalace(m): 12:10pm On Sep 02, 2017
69
Re: Who Is The Survivor In The Puzzle? by K024(m): 12:11pm On Sep 02, 2017
dejt4u:
77th

No. It should be 73rd
Re: Who Is The Survivor In The Puzzle? by bpalace(m): 12:12pm On Sep 02, 2017
sureteeboy:

Reppect Bro. Na only that normal one I understand.
99 killed 1
Re: Who Is The Survivor In The Puzzle? by K024(m): 12:14pm On Sep 02, 2017
cao:
73.
I sadly did this through the layman's method, wrote the damn thing down. My brain refused to do the simple arithmetic series...

No be small. I had use excel ( manually o). Not that I wrote any formula.

Anyway, brain don dey old go small small

1 Like

Re: Who Is The Survivor In The Puzzle? by Codedrock(m): 12:15pm 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 />"wink;
}
document.writeln("The last one is number " + team[0]);
//alert(team[0]);
Holy shi.t man.. this is some sick shi.t brah..
pls tell me you are just a secondary graduate siting at home bored to death, cos if you are actually a working class, i put respek on ur name
Re: Who Is The Survivor In The Puzzle? by praiseejiro(f): 12:18pm On Sep 02, 2017
the first person
Re: Who Is The Survivor In The Puzzle? by vRendoh(m): 12:20pm On Sep 02, 2017
tongue
Re: Who Is The Survivor In The Puzzle? by RobinHez(m): 12:20pm 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 />"wink;
}
document.writeln("The last one is number " + team[0]);
//alert(team[0]);


Who are you shocked... cheesy
Re: Who Is The Survivor In The Puzzle? by Nobody: 12:22pm On Sep 02, 2017
Only Number 1
Re: Who Is The Survivor In The Puzzle? by butterflyy(f): 12:24pm On Sep 02, 2017
The 73rd person survived
Re: Who Is The Survivor In The Puzzle? by 9inches(m): 12:24pm On Sep 02, 2017
jaelz:
Please gimme answers to this with logical backings and proof to answer.
Last man standing is 73
Re: Who Is The Survivor In The Puzzle? by Only1mi(f): 12:32pm On Sep 02, 2017
Number 9
Re: Who Is The Survivor In The Puzzle? by olu1759(m): 12:37pm On Sep 02, 2017
Number 99th is going to be the last man holding the sword,he will then turn back to number 1 nd kill him.#damn I'm wrong,that java guy ehn......
Re: Who Is The Survivor In The Puzzle? by osazeej: 12:54pm On Sep 02, 2017
I'm proud of you,
Your parents should be proud of you.
You truly can be proud of your accomplishments.
Continue to nurture your skills...and find your purpose in life.
Have a great weekend.


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 />"wink;
}
document.writeln("The last one is number " + team[0]);
//alert(team[0]);

1 Like

Re: Who Is The Survivor In The Puzzle? by sunnyeinstein(m): 1:00pm On Sep 02, 2017
73
Re: Who Is The Survivor In The Puzzle? by chimex38: 1:01pm On Sep 02, 2017
Phi001:

You are correct.


I just finished solving by mathematical induction and behold, I got 73 too...
could you teach me dis mathematical inductn?..jst PMed u.
Re: Who Is The Survivor In The Puzzle? by Teacher1776(m): 1:02pm On Sep 02, 2017
Confirmed. 73 is the last man standing.
Re: Who Is The Survivor In The Puzzle? by majamajic(m): 1:06pm On Sep 02, 2017
73
Re: Who Is The Survivor In The Puzzle? by lebienconnu: 1:12pm 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 />"wink;
}
document.writeln("The last one is number " + team[0]);
//alert(team[0]);

Tiiri gbosa for you.

Gbosa! Gbosa!! Gbosa!!!

Please, what is the principle behind the circular left shift method?
Re: Who Is The Survivor In The Puzzle? by doublezero7(m): 1:21pm On Sep 02, 2017
Narldon:

Please I'm not feeling fine

and I just finished Further-Mathematics Assignment

I cannot come and be Solving for Survivor again biko
cry



cheesy cheesy cheesy gringrin
you need small stout! grin
Re: Who Is The Survivor In The Puzzle? by kokomaster3d: 1:24pm 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 />"wink;
}
document.writeln("The last one is number " + team[0]);
//alert(team[0]);


Oboy, your parents no waste their money to send u to school/

1 Like

Re: Who Is The Survivor In The Puzzle? by johnjay4u2u(m): 1:27pm On Sep 02, 2017
number 73 is last man standing
Re: Who Is The Survivor In The Puzzle? by daben1(m): 1:29pm On Sep 02, 2017
The 50th person!!
Re: Who Is The Survivor In The Puzzle? by Phi001(m): 1:30pm On Sep 02, 2017
chimex38:

could you teach me dis mathematical inductn?..jst PMed u.
Don't mind me joorh...


It's not mathematical induction anything ooo but I did solve it.


Mathematical induction isn't hard anyways...It's merely testing if a particular statement is true over a set of numbers.

Simple example: Prove that x-10 < 10 for a set A = {x: 0< x < 19} is true

Test for x=0, 1, 2, ... , 19

If the statement holds for the full set, you conclude that x-10 < 10 for all x in A. Otherwise, conclude that the statement is false

(1) (2) (3) (4) (5) (Reply)

Put Your Nose on The Dot !!! ( Photo ) / Who Dies Puzzle / You Have 1000 Naira To Create A Perfect Man

(Go Up)

Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health
religion celebs tv-movies music-radio literature webmasters programming techmarket

Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10)

Nairaland - Copyright © 2005 - 2024 Oluwaseun Osewa. All rights reserved. See How To Advertise. 86
Disclaimer: Every Nairaland member is solely responsible for anything that he/she posts or uploads on Nairaland.