A rational number (of form p/q) has a terminating decimal expansion if prime factorisation of q has only:
If the rational number ab has a terminating decimal expansion, what is the condition to be satisfied by b?