A rational number has a terminating decimal expansion whose last non-zero digit occurs in the 4th decimal place. Show that such a number can be written in the form \(\frac{p}{10^4}\), where p is an integer not divisible by 10. Is it necessary that the denominator of this rational number, when written in the lowest form, is divisible by \(2^4\) or \(5^4\)? Give reasons.