My book has the following exercise

What must be true of the integers a, and /or b, is $\displaystyle \frac {a}{b}$ terminates when expressed in decimal form (assume that $\displaystyle \frac{a}{b}$ is in its lowest terms)?

Can someone please help me?

Thank you!