Chocolate Rounds

Limits 1s, 512 MB

In a magical Victoryland, there is a princes named “Rowshan” who loves chocolate bar a lot and don’t like to share the bars with anybody. She is so much fond of chocolate bars that even if anyone presents her with thousands of chocolate bars she would eat all of the bars to her heart’s content. However, she follows a simple rule to enjoy each bar uniquely. Even though she takes several rounds to finish all of the chocolates but the rule is same for all of the rounds. In first round, she numbers the bars serially starting from 1. Then she starts eating from the first bar. Although, in every round she never eats any bar whose position number is the multiple of the position number of any eaten bar except the first one of that round. For example, if there are 6 bars then she would eat 1, 2, 3 & 5 numbered bars in her first round as bar numbered 4 and 6 are the multiple of the 2nd bar. After each round, she numbers the remaining bars from the beginning (e.g.: from 1) and repeats the rounds according to the rule.


This is a companion discussion topic for the original entry at https://toph.co/p/chocolate-rounds