Factors of 1 0 n 1 10^n-1

The probability that a given positive integer x x is a factor of 1 0 n 1 10^n-1 for some positive integer n n is equal to A B , \dfrac{A}{B}, where A A and B B are positive coprime integers. Find A + B . A+B.


The answer is 7.

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.

2 solutions

Daniel Liu
Jul 22, 2014

Let 1 0 n 1 0 ( m o d x ) 10^n-1\equiv 0\pmod{x} . This is equivalent to 1 0 n 1 ( m o d x ) 10^n\equiv 1\pmod{x} .

However, note that by Euler's Theorem, 1 0 ϕ ( x ) 1 ( m o d x ) 10^{\phi(x)}\equiv 1\pmod{x} as long as gcd ( x , 10 ) = 1 \text{gcd}(x,10)=1 . Since ϕ ( x ) \phi(x) clearly exists for all x x , we see that there exists an n n as long as gcd ( x , 10 ) = 1 \text{gcd}(x,10)=1 .

Now we must prove that when gcd ( x , 10 ) 1 \text{gcd}(x,10) \ne 1 , then there does not exist an n n . The statement gcd ( x , 10 ) 1 \text{gcd}(x,10)\ne 1 is equivalent to n 0 ( m o d 2 or 5 ) n\equiv 0\pmod{2\text{ or }5} .


Claim: when x 0 ( m o d 2 or 5 ) x\equiv 0\pmod{2\text{ or }5} , then there does not exist an n n .

Proof: If x 0 ( m o d 2 ) x\equiv 0\pmod{2} , then x x is even. But 1 0 n 1 10^n-1 is odd, so there cannot exist an n n .

If x 0 ( m o d 5 ) x\equiv 0\pmod{5} , then 1 0 n 1 0 ( m o d 5 ) 10^n-1\equiv 0\pmod{5} . But 1 0 n 1 0 n 1 4 ( m o d 5 ) 10^n-1\equiv 0^n-1\equiv 4\pmod{5} , so there does not exist any n n .


We have proved that for all x x not a multiple of 2 2 and 5 5 , there exists an n n . Thus the probability is 4 10 = 2 5 \dfrac{4}{10}=\dfrac{2}{5} and our answer is 2 + 5 = 7 2+5=\boxed{7} .

This is a pretty well-known theorem :P

Ariel Gershon - 6 years, 9 months ago

I like very much the problem. Thanks

José Antonio Rama López - 6 years, 10 months ago

But for x = 11, 10^n-1 would be divisible by x when n is even, so the probability is 1/2, and A + B = 3, right?

Tua Aut - 5 years, 4 months ago

Log in to reply

The question should be read properly.

Shourya Pandey - 5 years, 1 month ago

u said that numbers are coprime.but answer is given by using prime

Himanshu Parihar - 6 years, 9 months ago
Lu Chee Ket
Jan 7, 2015

The probability that a given positive integer x is a factor TO 10^n - 1 for some positive integer n is equal to A/ B where A and B are positive co prime integers. Find A + B. {Modified 'of' into 'TO' to eliminate ambiguity.}

10^n – 1: 9, 99, 999, 9999….

10^n – 3: 7, 97, 997, 9997…

10^n – 7: 3, 93, 993, 9993…

10^n – 9: 1, 91, 991, 9991…

10^n – 11: 88, 988, 9988… …

Same answer of 0.4 or 2/ 5 for 7; this is true for either one of the above, provided n can keep on to infinity.

9999…9999 and 9999…9991 are the same in infinity. Excluding MOD 2 and MOD 5 means excluding MOD 10 and the remained are all inclusive in 10^n – 1.

1.000000000000000000 1 1, 9.00000000000000000E+0000 ONE!

0.500000000000000000 1 2, 0.00000000000000000E+0000

0.666666666666666667 2 3, 9.00000000000000000E+0000 ONE!

0.500000000000000000 2 4, 0.00000000000000000E+0000

0.400000000000000000 2 5, 0.00000000000000000E+0000

0.333333333333333333 2 6, 0.00000000000000000E+0000

0.428571428571428571 3 7, 9.99999000000000000E+0005 ONE!

0.375000000000000000 3 8, 0.00000000000000000E+0000

0.444444444444444444 4 9, 9.00000000000000000E+0000 ONE!

0.400000000000000000 4 10, 0.00000000000000000E+0000

0.454545454545454545 5 11, 9.90000000000000000E+0001 ONE!

0.416666666666666667 5 12, 0.00000000000000000E+0000

0.461538461538461538 6 13, 9.99999000000000000E+0005 ONE!

0.428571428571428571 6 14, 0.00000000000000000E+0000

0.400000000000000000 6 15, 0.00000000000000000E+0000

0.375000000000000000 6 16, 0.00000000000000000E+0000

0.411764705882352941 7 17, 9.99999999999999900E+0015 ONE!

0.388888888888888889 7 18, 0.00000000000000000E+0000

0.421052631578947368 8 19, 9.99999999999999999E+0017 ONE! ADDED IN.

0.450000000000000000 9 20, 0.00000000000000000E+0000

0.476190476190476190 10 21, 9.99999000000000000E+0005 ONE!

0.454545454545454545 10 22, 0.00000000000000000E+0000

0.434782608695652174 10 23, 9.99999999999999999E+0017 ? EXCEED! ADDED IN.

0.458333333333333333 11 24, 0.00000000000000000E+0000

0.440000000000000000 11 25, 0.00000000000000000E+0000

Eventually 0.4 if limited significant figures of computer not exceeded. To overcome machine limitation, modify the routine, simplified task tells an exact 0.4 at every check of x MOD 100000 = 0 for example. To explain in short, we are actually only finding the probability of integer x which are not multiple of 2 and not multiple of 5 given arbitrarily.

A + B = 2 + 5 = 7.

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...