Description: 2. Josephus solution of the problem with the circulation list. With n individuals sitting around a round table is started by a report from the first number, the number of people out to the first m columns, and then from the next person out of the column began to count off again, several to the first m out of those people who have column, ..., and so forth until all of the columns were all out of date. Josephus The question is: For any given n and m, find out the columns according to the order received sequence of n-persons
To Search:
File list (Check if you may need any files):
2.txt