A repeating decimal is a rational number that has periodic decimal expansion with some period . For example, is a repeating decimal with period because the repeating part has length three.
is a prime number such that the decimal representation of the fraction is a repeating decimal with period . Find the sum of all possible values for .
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.
If n is a positive integer smaller than 9 9 9 9 9 , then p 1 = 0 . 0 0 0 0 1 × n = 9 9 9 9 9 n .
So p must be a divisor of 9 9 9 9 9 = 3 2 × 4 1 × 2 7 1 .
Possible p s are 4 1 , 2 7 1 ( 3 has a period of 1), so 4 1 + 2 7 1 = 3 1 2