There were 40 prisoners who were on death row. The warden decided to give one lucky prisoner a chance to live and go free. He got 40 chairs and numbered them and seated the 40 prisoners there. Then he shoots the one in seat #1. Then shoots the one 3 seats after and continues the process until only one prisoner survives (1->4->7->10->etc). Which seat number survives?
@ParthKohli please help
after first round below seats will survive : 3k, 3k-1 : 1<=k<=33
O.O how cruel
2,3,5,6,8,9,...39
hehe i cant imagin the question lol why they dont make like kids games instead of this >.< like making jumping frog question hehehe
lol, second round itself turns complicated
|dw:1409661435404:dw|
39+3 mod 40....ect
|dw:1409661653168:dw|
oh , wait wait hehe i made mistake it says 3 seats after so next would be 4 not 3 xD so 3k+1 first round
so last prisoner sadly will be killed in first round, is prisoner 37 . 37+4 mod 40 would give prisoner 1 but he is already been killed (bang bang ) thus go to the next lucky one prisoner number 2 so here im confused cuz he is asking for seats , dnt know if i should reduce prisoners to 40-12 or not , hmmm
what do you think ? count seated and killes all 3k+2 ?
i guess yes , we stay to 40 seats xD
what do you think @ganeshie8 should we kill #38 prisoner ? xD
hehe so the lucky would be 40 ? :o
something wrong lol
last one killedin first round is 40 xD
then we kill 3k bhahahaha
xD oh , u solved it already
so 3k 3k+1 last one in second round , 39 oh :o then we go through 3k+2 :3 hehehe i start to like this killing stuff
:) the correct answer is 27
i thought it 38 >.<
how ?
38 will be killed in second round
but but :o
see if u can identify a pattern (ive just cheated, used program ) ``` 2 3 5 6 8 9 11 12 14 15 17 18 20 21 23 24 26 27 29 30 32 33 35 36 38 39 3 5 8 9 12 14 17 18 21 23 26 27 30 32 35 36 39 5 8 12 14 18 21 26 27 32 35 39 8 12 18 21 27 32 39 12 18 27 32 18 27 27 ```
-_-
*pulling my leg*
wait tell me , if you find the seat empty u kill the next or u keep going in battern ?
first round |dw:1409663334875:dw|
Join our real-time social learning platform and learn together with your friends!