#P352. 练60.6 胡萝卜与骨头
练60.6 胡萝卜与骨头
Description
Nick likes carrots, and Glaire likes bones. carrots and bones are arranged in a circle. The fox teacher asks Nick to start counting from a certain position, counting from to , and removing the -th item each time, until only bones remain. Write a program to calculate how to arrange the items so that only bones remain.
Input Format
None.
Output Format
Output the positions of the bones.
Sample
None1 2 3 4 10 11 13 14 15 17 20 21 25 28 29
Related
In following homework: