Interesting Multiples

For how many positive integers n where 1 n 1000 1 \le n \le 1000 does there exist some multiple of n which is a sequence of 1s followed by a sequence of 0s in base 10?

Details and Examples \textbf{ Details and Examples }

There must be at least one 1 at the beginning of the multiple and it must end in at least one 0

10 is such an n since it itself satisfies the conditions

6 is such an n since 6 × 185 = 1110 6 \times 185 = 1110 which also satisfies the conditions

Image credit: Zebra Photo Gallery


The answer is 1000.

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.

5 solutions

Joel Tan
Feb 15, 2014

Consider the set of numbers {1, 11, 111, 1111, … , 1 0 n + 1 1 9 \frac{10^{n+1}-1}{9} } where the last term has (n+1) '1's. Then by Pigeonhole principle, since there are (n+1) numbers, there exists two of them such that they have the same remainder when divided by n. Finding the difference will give you a multiple of n, and at the same time, the number is in form 111...111000...000. Thus all numbers n have this property and the answer is 1000.

simple and elegant

Sourav Chaudhuri - 7 years, 3 months ago

nice use of pigeonhole principle!

nilay arora - 7 years, 3 months ago

one of the best answer :)

Amit Nathani - 7 years, 3 months ago
James Shi
Feb 14, 2014

n n can be multiplied by some power of 2 or 5, such that the exponents on the 2 and 5 are equal, making it a power of 10. If both exponents were 0, n n can be multiplied by 10 to make its multiple end with 0's.

If the first process didn't turn n n into a sequence of 1's followed by a sequence of 0's, then the number 1 n \frac{1}{n} has a repeating decimal. If you multiply the part that repeats by n n (without its trailing zeros), you get some number of 9's (since it has to equal 1, and 0. 9 0.\overline{9} is the only repeating decimal that equals 1)

Ex: 142857 7 = 999999 142857\cdot7=999999

You can multiply n n by the repeating part to get a sequence of 9's followed by a sequence of 0's. Then, you can divide that multiple by 9 to get a sequence of 1's followed by a sequence of 0's.

If n n was originally divisible by 3, the dividing by 9 could've made the sequence of 1's followed by 0's not a multiple of n n . In these situations, just multiply the number of 1's in front of the 0's by 3 or 9 (27 would be unnecessary since the original multiple was only divided by 9).

Ex: 1 51 = 0. 01960784313725490196078431372549 \frac{1}{51}=0.\overline{01960784313725490196078431372549} 51 01960784313725490196078431372549 = 99999999999999999999999999999999 51\cdot01960784313725490196078431372549=99999999999999999999999999999999 99999999999999999999999999999999 9 = 11111111111111111111111111111111 \frac{99999999999999999999999999999999}{9}=11111111111111111111111111111111

11111111111111111111111111111111 11111111111111111111111111111111 (32 1's) is not divisible by 51, but 111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111 111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111 (96 1's) is.

This process can turn any n into a sequence of 1's followed by a sequence of 0's.

Beautiful thinking ... :)

Soumya Chakraborty - 7 years, 3 months ago
Josh Rowley
Feb 5, 2014

To begin with we will only consider n which is not divisible by 2 or 5. Then let us consider the sequence a 1 = 1 a_{1} = 1 , a 2 = 11 a_{2} = 11 , ... , a n + 1 = i = 0 n 1 0 i a_{n+1} = \displaystyle\sum_{i=0}^{n} 10^i . There are n + 1 n+1 terms in this sequence. We have 2 cases to inspect: The first case is that one of the terms in this sequence is a multiple of n . In that case we multiply this term by 10 to achieve a number which is a sequence of 1s followed by a 0 and thus satisfies our condition. In our second case, no single 1 of these terms is divisible by n . There are n possible remainders modulo n but the sequence has n + 1 n+1 terms, so by the pigeonhole principle at least 2 terms in the sequence have the same remainder modulo n . So if we subtract the smaller term of such a pair from the larger term we will achieve a multiple of n which is a string of 1s followed by a string of 0s. Therefore if g c d ( n , 10 ) = 1 gcd(n,10) = 1 there is a valid multiple of n .

So say now instead that n = 2 b × 5 c × y n=2^b \times 5^c \times y where g c d ( y , 10 ) = 1 gcd(y,10) = 1 . We know that there is a multiple of y which satisfies the conditions, so if we were to multiply this multiple by 1 0 MAX ( b , c ) 10^{ \text{ MAX} (b,c)} then this new number would be a string of 1s followed by a string of 0s and be a multiple of n .

Therefore in fact all positive integers (and thus trivially all negative integers) n satisfy the conditions, so the answer is 1000 \fbox{1000}

You don't have to look at the case where n n is not divisible by 2 or 5.

Consider your numbers a 1 a_1 , a 2 a_2 , \dots , a n + 1 a_{n + 1} . By the Pigeonhole Principle, two of these numbers are congruent modulo n n . Subtract them, and you get a number of the form you want, which is divisible by n n . This works for any n n .

Jon Haussmann - 7 years, 4 months ago

Log in to reply

This is actually the best way to do this in my opinion. Short and simple!

Mursalin Habib - 7 years, 3 months ago
Kyung Chan Lee
Feb 20, 2014

1/9n is rational number. So, it is possible to express 1/9n as repeating decimal. If period for this repeating decimal is p and q digit doesn't repeat, 99....9900...00 (number of 9 = p, number of 0 = q) is divisible by 9n. Therefore, 11...1100...00 is divisible by n.

Let us consider such a number M = 111 1000 0 = 1 0 a + 1 0 a + 1 + + 1 0 b = 1 0 a 1 0 b a + 1 1 9 M = 111 \cdots 1000 \cdots 0 = 10^a + 10^{a+1} + \cdots + 10^b = 10^a \frac{10^{b-a+1}-1}{9} for some 0 a < b 0 \leq a < b . Now we claim all integers are suitable for some multiple of theirs being a number like M M .

Proof: For some n n , suppose n = 2 r 5 s P n=2^r 5^s P where gcd ( 10 , P ) = 1 \gcd(10,P) = 1 . Then,

  • If r > s r > s , then 5 r s n K = 1 0 r P K 5^{r-s} n K= 10^r PK is such a number M M where a = r a=r and b b is chosen such that 1 0 b a + 1 1 ( m o d P ) 10^{b-a+1} \equiv 1 \pmod{P} . Now this indeed can be done, as gcd ( 10 , P ) = 1 \gcd(10,P) = 1 , so choose b = a 1 + ϕ ( P ) b=a-1 + \phi(P) (If P P is a multiple of 3 3 , choose b = a 1 + ϕ ( 9 P ) b=a-1+\phi(9P) to account for the 9 9 in the denominator also). Then K = 1 0 b a + 1 1 9 P K = \frac{10^{b-a+1} - 1}{9P} is simply chosen and this suffices.

  • Cases of r s r \leq s are dealt similarly.

So all integers in { 1 , 2 , 3 , , 1000 } \{1,2,3, \cdots ,1000\} suffice this making the answer 1000 \boxed{1000} .

Note that r , s 0 r,s \geq 0 .

A Brilliant Member - 7 years, 3 months ago

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...