n (> 1) lotus leafs are arranged in a circle. A frog jumps from a particular leaf by the following rule: It always moves clockwise. From staring point it skips 1 leaf and jumps to the next. Then it skips 2 leaves and jumps to the following. That is in the 3rd jump it skips 3 leaves and 4th jump it skips 4 leaves and so on. In this manner it keeps moving round and round the circle of leaves. It may go to one leaf more than once. If it reaches each leaf at least once then n (the number of leaves) cannot be odd.
Suppose we number the leaves as 1, 2, 3, upto n. Leaf 1 being the starting point of the frog.
Step 1 – Leaf 1
Step 2 – Leaf 3 (because the frog skips 1 leaf)
Step 3 – Leaf 6 (1+2+3) ( because it skips 2 leaves in second jump)
In this manner the frog will be in the
(modulo n) leaf in the mth step.
If n = 2k+1 (that is if we have odd number of leaves) then in the 2k step and 2k+1 step it will be on Leaf 2k+1.
This is because and
Also notice that after the first 2K+1 steps the position of the frog repeats.
This is because for even value (2m)
Similarly for odd values (2m+1)
As every 2k+1 values (modulo 2K+1) need to be distinct if the frog visits every leaf, it visits leaf number 2k+1 in the last two steps, hence some leaf must be missing.
Extension: The frog may visit each leaf if and only if number of leaves is a power of 2.