Guests are standing in a queue each having a number beginning from 2 i.e. 1st guest has number 2, 2nd has number 3, 3rd has number 4 and so on. The first guest with number 2 is allowed to attend the party while every 2nd guest after him in the queue is asked to leave. In the remaining guests, first in the queue is allowed to attend the party(3 in this case) while every 3rd guest behind him in the remaining queue is asked to leave. In the now remaining guests, guest with number 5 is at the first place so he is allowed to attend the party while every 5th behind him in the remaining queue is asked to leave. The process continues. Assume infinite guests.
To conclude, among the guests attending the party, 1st will have number 2, 2nd will have number 3, 3rd will have number 5...
Tell the number of the 25th guest that will attend the party.
2007-02-27
21:39:56
·
6 answers
·
asked by
rohan g
1
in
Science & Mathematics
➔ Mathematics
prime numbers is not the correct answer...think more...
2007-02-27
22:32:26 ·
update #1