6. Look at several examples of rational numbers in the form (q ≠ 0), where p and q are integers with no common factors other than 1 and having terminating decimal representations (expansions). Can you guess what property q must satisfy?
We can observe that when q is 2, 4, 5, 8, 10… then the decimal expansion is terminating. For example:
, denominator
, denominator
, denominator
Therefore,
It can be observed that the terminating decimal can be obtained in a condition where prime factorization of the denominator of the given fractions has the power of 2 only or 5 only or both.