.
online roulette algorithm pgcd