KONjbnj wrote:
Do I need to modify one of the ways that I already reduce fractions, or do I need to do it in a whole new way?
You should be able to reduce all fractions with one system. Though perhaps some optimizations for specific cases (such as 2/12, where the numerator is a factor of the denominator) could be good.
The general way to reduce a fraction is as follows:
- Factor both numerator and denominator into their prime factors
- Cancel prime factors that are common to both numerator and denominator
- Calculate new numerator and denominator by multiplying out the prime factors that remain for each