reduce the fraction to the lower terms, and then multiply by integers. You reduce a/b to the lowest values by dividing them by the total gcd. If d = gcd(a,b) , then (a/d) / (b/d) is in the lower terms. Now, if you want the next big whole fraction with the same ration, then multiply the numerator and denominator by d+1 . Thus,
(d+1) * (a/d) is the numerator, and (d+1) * (b/d) is the denominator.
source share