Consider the sequence , with of fractions:
where is the th divisor of in increasing order. There is exactly one term for every with .
And obviously, each term in the sequence is a rational number , where the decimal expansion of a rational number always terminates after a finite number of digits or repeats a finite sequence of digits over and over.
Find the number of terms, in the sequence, whose the decimal expansion terminates after a finite number of digits.
This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.
Only numbers of the form 2 a × 5 b will have terminating decimals.
Noting that 2 9 is the largest power of 2 less than 1000, to find the highest power of 2 that divides into 1000! we need to compute:
n = 1 ∑ 9 ⌊ 2 n 1 0 0 0 ⌋ = 5 0 0 + 2 5 0 + 1 2 5 + 6 2 + 3 1 + 1 5 + 7 + 3 + 1 = 9 9 4 .
Similarly, for the highest power of 5:
n = 1 ∑ 4 ⌊ 5 n 1 0 0 0 ⌋ = 2 0 0 + 4 0 + 8 + 1 = 2 4 9 .
Consequently, for numbers of the form 2 a × 5 b , a must be between 0 and 994 inclusive and b must be between 0 and 249 inclusive. This means there are 9 9 5 × 2 5 0 = 2 4 8 7 5 0 numbers of this form that divide into 1000!
However, the denominators in this sequence are greater than or equal to 2 which means 2 0 × 5 0 = 1 should be excluded and so we have 248750 - 1 = 248749 as our answer.