.
american roulette algorithm ngcd