write the condition to be satisfied by q so that a rational number p/q has a terminating decimal expansion​