Script started on Mon Sep 20 11:40:49 1999 hostname: Command not found. [102] proj2 Usage: proj2 [103] proj2 6 2 Solving the Josephus problem with 6 players, eliminating every 2th player. Initital list of players < 1,2,3,4,5,6 > Player 1 has the potato Player 3 removed. Remaining Players: < 1,2,4,5,6 > Player 4 has the potato. Player 6 removed. Remaining Players: < 1,2,4,5 > Player 1 has the potato. Player 4 removed. Remaining Players: < 1,2,5 > Player 5 has the potato. Player 2 removed. Remaining Players: < 1,5 > Player 5 has the potato. Player 5 removed. Remaining Players: < 1 > Player 1 has the potato. Player 1 removed. Remaining Players: < > [104] proj2 13 3 Solving the Josephus problem with 13 players, eliminating every 3th player. Initital list of players < 1,2,3,4,5,6,7,8,9,10,11,12,13 > Player 1 has the potato Player 4 removed. Remaining Players: < 1,2,3,5,6,7,8,9,10,11,12,13 > Player 5 has the potato. Player 8 removed. Remaining Players: < 1,2,3,5,6,7,9,10,11,12,13 > Player 9 has the potato. Player 12 removed. Remaining Players: < 1,2,3,5,6,7,9,10,11,13 > Player 13 has the potato. Player 3 removed. Remaining Players: < 1,2,5,6,7,9,10,11,13 > Player 5 has the potato. Player 9 removed. Remaining Players: < 1,2,5,6,7,10,11,13 > Player 10 has the potato. Player 1 removed. Remaining Players: < 2,5,6,7,10,11,13 > Player 2 has the potato. Player 7 removed. Remaining Players: < 2,5,6,10,11,13 > Player 10 has the potato. Player 2 removed. Remaining Players: < 5,6,10,11,13 > Player 5 has the potato. Player 11 removed. Remaining Players: < 5,6,10,13 > Player 13 has the potato. Player 10 removed. Remaining Players: < 5,6,13 > Player 13 has the potato. Player 13 removed. Remaining Players: < 5,6 > Player 5 has the potato. Player 6 removed. Remaining Players: < 5 > Player 5 has the potato. Player 5 removed. Remaining Players: < > [105] exit exit script done on Mon Sep 20 11:41:10 1999