If the size of the number of all acceptable, may be $ O (n) $ sort.
$\sum\limits_{x | a, x | b} \varphi(x) = gcd(a,b)$
If a number of conditions about the answer to a question is a multiple of a known number of considerations inversion unit root
If the size of the number of all acceptable, may be $ O (n) $ sort.
$\sum\limits_{x | a, x | b} \varphi(x) = gcd(a,b)$
If a number of conditions about the answer to a question is a multiple of a known number of considerations inversion unit root