gcd
static int gcd(int, int);
ncycle = gcd(nnonopts, nopts);
div = gcd(n, cts);
tmp = gcd(*nom, *den);
div = gcd(n, cts);
tmp = gcd(*nom, *den);
return ((a * b) / gcd(a, b));