.
american roulette algorithm ogcd