|
1 year ago | |
---|---|---|
part2_8_4 | 1 year ago | |
part2_11_2 | 1 year ago | |
tex | 1 year ago | |
LICENSE | 1 year ago | |
Readme.md | 1 year ago | |
doubling.py | 1 year ago | |
josephus.py | 1 year ago |
There are n plates of sushi on sushi boats. Each plate of sushi is labeled 1
to n and is arranged in a linked circle of sushi boats. The sushi boats move
by in a small canal in front of you.
Beginning at plate 1, you count m plates of sushi, stopping at every mth plate
to eat it. When you eat a plate of sushi, you remove the numbered plate from the boat.
In what order will the plates be stacked on our plate, starting with the top plate?