why gcd in juggling algorithm?
The GCD gives an exact figure of rotation to be performed. It actually minimizes no of rotations. As per my understanding following implementation done for juggling algorithm, but what happens when length in 13 and rotation is 3 so GCD will become invalid, so splitting into the step also causes the problem.