Repeated Concatenation

Concatenating four copies of 23 produces 23 23 23 23 = 23232323. 23 || 23 || 23 || 23 = 23232323.

Now, suppose you concatenate x x copies of any positive integer n . n.

What is the minimum value of x x such that the result of this concatenation is guaranteed to be a multiple of 11?


The answer is 22.

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.

8 solutions

Stephen Mellor
Apr 4, 2018

First of all, a number is divisible by 11, if and only if the alternating sum of the digits is a multiple of 11. This works because of congruence modulo 11 between every other power of 10 (see this website if you're not sure about this).


Case 1: n n has an odd number of digits

For example let n = 361 n = 361 . If we concatenate it with itself once we get 3 6 1 3 6 1 \huge \color{#D61F06}{3} \color{#3D99F6}{6} \color{#D61F06}{1} \color{#3D99F6}{3} \color{#D61F06}{6} \color{#3D99F6}{1} Alternating Sum = 3 6 + 1 3 + 6 1 = 0 \text{Alternating Sum} = \color{#D61F06}{3} \color{#333333}{-} \color{#3D99F6}{6} \color{#333333}{+} \color{#D61F06}{1} \color{#333333}{-} \color{#3D99F6}{3} \color{#333333}{+} \color{#D61F06}{6} \color{#333333}{-} \color{#3D99F6}{1 } \color{#333333}{= 0} When the second half is written out, each digit occurs in the different colour, since n n has an odd number of digits. This means that 1 concatenation (2 copies of n n ) is always enough for each digit to cancel each other out in the alternating sum, making the alternating sum 0, which is a multiple of 11.


Case 2: n n has an even number of digits

For example let n = 6859 n = 6859 . If we concatenate it with itself once, we get 6 8 5 9 6 8 5 9 \huge \color{#D61F06}{6} \color{#3D99F6}{8} \color{#D61F06}{5} \color{#3D99F6}{9} \color{#D61F06}{6} \color{#3D99F6}{8} \color{#D61F06}{5} \color{#3D99F6}{9} Alternating Sum = 6 8 + 5 9 + 6 8 + 5 9 = 12 10 m o d 11 \text{Alternating Sum} = \color{#D61F06}{6} \color{#333333}{-} \color{#3D99F6}{8} \color{#333333}{+} \color{#D61F06}{5} \color{#333333}{-} \color{#3D99F6}{9} \color{#333333}{+} \color{#D61F06}{6} \color{#333333}{-} \color{#3D99F6}{8} \color{#333333}{+} \color{#D61F06}{5} \color{#333333}{-} \color{#3D99F6}{9}\color{#333333}{= -12 \equiv 10 \mod{11}} This time, for each extra concatenation, each digit occurs in the same colour each time. This means that the digits won't cancel themselves out now. With 0 concatenations, there will be an alternating sum, a a of 0 a 10 m o d 11 0 \leq a \leq 10 \mod 11 6 8 5 9 \huge \color{#D61F06}{6} \color{#3D99F6}{8} \color{#D61F06}{5} \color{#3D99F6}{9} Alternating Sum = 6 8 + 5 9 = 6 5 m o d 11 \text{Alternating Sum} = \color{#D61F06}{6} \color{#333333}{-} \color{#3D99F6}{8} \color{#333333}{+} \color{#D61F06}{5} \color{#333333}{-} \color{#3D99F6}{9} \color{#333333}{= -6 \equiv 5 \mod{11}} For each extra concatenation, the alternating sum is increased by this amount (5 in this case). Since a a and 11 11 will be coprime, 10 concatenations (11 copies of n n ) will be needed to ensure that the alternating sum is divisible by 11. In our example, the alternating sum would equal 11 × 5 = 55 0 m o d 11 11 \times 5 = 55 \equiv 0 \mod 11 .


As one case requires 2 copies of n n and the other case requires 11 copies of n n , to ensure that the result will be a multiple no matter how many digits n n has we need Lowest Common Multiple ( 2 , 11 ) = 22 \text{Lowest Common Multiple}(2,11) = \boxed{22} copies of n n .

The concatenation 11 times should work either way. It does so because the concatenation function is identical to multiplying by 10^i+1, where i is the number of digits in n.

i being on is a special case because of the features of multiples of 11. The general case works because the 11 times concatenation function is itself a multiple of 11.

Malcolm Rich - 3 years, 1 month ago

Log in to reply

Ignore this. I'd been working on the premise that 10^n = 1 (mod 11) but this only applies if n is even.

Malcolm Rich - 3 years, 1 month ago

Such a nice problem! I did it in 2 minutes though ;)

A Former Brilliant Member - 3 years, 1 month ago

Log in to reply

Thanks Daniel, I was just thinking about the divisibility test for 11, and came up with this problem! One of my favourites that I've created I think as it's easy to explain but quite neat calculations

Stephen Mellor - 3 years, 1 month ago

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# https://brilliant.org/weekly-problems/2018-04-16/advanced/?p=3
min_num = 1
max_num = 100

noprimes = set(j for i in range(2, 8) for j in range(i*2, 100, i))
primes = [x for x in range(2, 100) if x not in noprimes]

for multiple_of in primes:
    flag = False
    for i in range(1,100):
        count = 0
        for j in range (min_num,max_num):
            num = str(j)*i
            if int(num)%multiple_of == 0:
                count += 1
            if count == max_num-min_num:
                print """ 
                Minimum number of copies of integer n > 9 that one needs to 
                concatenate to ensure the result is a multiple of %d : %d""" %(multiple_of,i)
                flag = True
                break
        if flag:
            break

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
                Minimum number of copies of integer n > 9 that one needs to 
                concatenate to ensure the result is a multiple of 3 : 3

                Minimum number of copies of integer n > 9 that one needs to 
                concatenate to ensure the result is a multiple of 7 : 6

                Minimum number of copies of integer n > 9 that one needs to 
                concatenate to ensure the result is a multiple of 11 : 22

                Minimum number of copies of integer n > 9 that one needs to 
                concatenate to ensure the result is a multiple of 13 : 6

                Minimum number of copies of integer n > 9 that one needs to 
                concatenate to ensure the result is a multiple of 17 : 16

                Minimum number of copies of integer n > 9 that one needs to 
                concatenate to ensure the result is a multiple of 19 : 18

                Minimum number of copies of integer n > 9 that one needs to 
                concatenate to ensure the result is a multiple of 23 : 22

                Minimum number of copies of integer n > 9 that one needs to 
                concatenate to ensure the result is a multiple of 29 : 28

                Minimum number of copies of integer n > 9 that one needs to 
                concatenate to ensure the result is a multiple of 31 : 15

                Minimum number of copies of integer n > 9 that one needs to 
                concatenate to ensure the result is a multiple of 41 : 5

                Minimum number of copies of integer n > 9 that one needs to 
                concatenate to ensure the result is a multiple of 43 : 21

                Minimum number of copies of integer n > 9 that one needs to 
                concatenate to ensure the result is a multiple of 47 : 46

                Minimum number of copies of integer n > 9 that one needs to 
                concatenate to ensure the result is a multiple of 53 : 13

                Minimum number of copies of integer n > 9 that one needs to 
                concatenate to ensure the result is a multiple of 59 : 58

                Minimum number of copies of integer n > 9 that one needs to 
                concatenate to ensure the result is a multiple of 61 : 60

                Minimum number of copies of integer n > 9 that one needs to 
                concatenate to ensure the result is a multiple of 67 : 33

                Minimum number of copies of integer n > 9 that one needs to 
                concatenate to ensure the result is a multiple of 71 : 35

                Minimum number of copies of integer n > 9 that one needs to 
                concatenate to ensure the result is a multiple of 73 : 8

                Minimum number of copies of integer n > 9 that one needs to 
                concatenate to ensure the result is a multiple of 79 : 13

                Minimum number of copies of integer n > 9 that one needs to 
                concatenate to ensure the result is a multiple of 83 : 41

                Minimum number of copies of integer n > 9 that one needs to 
                concatenate to ensure the result is a multiple of 89 : 44

                Minimum number of copies of integer n > 9 that one needs to 
                concatenate to ensure the result is a multiple of 97 : 96

Michael Fitzgerald - 3 years, 1 month ago

Log in to reply

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
For non-primes between 1 and 100
                Minimum number of copies of integer n > 9 that one needs to 
                concatenate to ensure the result is a multiple of 9 : 9

                Minimum number of copies of integer n > 9 that one needs to 
                concatenate to ensure the result is a multiple of 21 : 6

                Minimum number of copies of integer n > 9 that one needs to 
                concatenate to ensure the result is a multiple of 27 : 27

                Minimum number of copies of integer n > 9 that one needs to 
                concatenate to ensure the result is a multiple of 33 : 66

                Minimum number of copies of integer n > 9 that one needs to 
                concatenate to ensure the result is a multiple of 39 : 6

                Minimum number of copies of integer n > 9 that one needs to 
                concatenate to ensure the result is a multiple of 49 : 42

                Minimum number of copies of integer n > 9 that one needs to 
                concatenate to ensure the result is a multiple of 51 : 48

                Minimum number of copies of integer n > 9 that one needs to 
                concatenate to ensure the result is a multiple of 57 : 18

                Minimum number of copies of integer n > 9 that one needs to 
                concatenate to ensure the result is a multiple of 63 : 18

                Minimum number of copies of integer n > 9 that one needs to 
                concatenate to ensure the result is a multiple of 69 : 66

                Minimum number of copies of integer n > 9 that one needs to 
                concatenate to ensure the result is a multiple of 77 : 66

                Minimum number of copies of integer n > 9 that one needs to 
                concatenate to ensure the result is a multiple of 81 : 81

                Minimum number of copies of integer n > 9 that one needs to 
                concatenate to ensure the result is a multiple of 87 : 84

                Minimum number of copies of integer n > 9 that one needs to 
                concatenate to ensure the result is a multiple of 91 : 6

                Minimum number of copies of integer n > 9 that one needs to 
                concatenate to ensure the result is a multiple of 93 : 15

Michael Fitzgerald - 3 years, 1 month ago

Calvin, can you post as a solution please? Got my original logic wrong hence incorrect

Michael Fitzgerald - 3 years, 1 month ago

Log in to reply

You will need to @mention somebody i think for notifications

Stephen Mellor - 3 years, 1 month ago

Has someone found a number that requires 22 copies yet?

Jesus Hernandez - 3 years, 1 month ago

Log in to reply

There is no number that requires 22 copies. Only when the number is unknown is when you need 22 copies to guarantee the number is a multiple of 11.

A Former Brilliant Member - 3 years, 1 month ago

Log in to reply

Thanks got it now.

Jesus Hernandez - 3 years, 1 month ago

You can check via calculator that n=11 satisfies this example. (Consider this as counterexample to your answer).

Mykola Musienko - 3 years, 1 month ago

This answer is base-independent!!

Charlie Recchia - 3 years, 1 month ago
Mark Hennings
Apr 4, 2018

Note that 10 1 ( m o d 11 ) 10 \equiv -1 \pmod{11} , and so 1 0 m ± 1 ( m o d 11 ) 10^m \equiv \pm1 \pmod{11} , depending on whether m m is even or odd. Thus 1 + 1 0 m + 1 0 2 m + + 1 0 10 m 0 ( m o d 11 ) 1 + 10^m + 10^{2m} + \cdots + 10^{10m} \equiv 0 \pmod{11} when m m is even, while 1 + 1 0 m 0 ( m o d 11 ) 1 + 10^m \equiv 0 \pmod{11} when m m is odd. Thus, if n n has an even number of digits, then the concatenation n n n n n n n n n n n \overline{nnnnnnnnnnn} (of 11 11 copies of n n ) is a multiple of n n (and, in general, the concatenation of a smaller number of copies of n n will not be). Also, if n n has an odd number of digits, then the concatenation n n \overline{nn} of two copies of n n is a multiple of 11 11 . Since 1 + x + x 2 + + x 21 = ( 1 + x + + x 10 ) ( 1 + x 11 ) = ( 1 + x ) ( 1 + x 2 + x + 4 + + x 20 ) 1 + x + x^2 + \cdots + x^{21} \; = \; (1 + x + \cdots + x^{10})(1 + x^{11}) \; = \; (1 + x)(1 + x^2 + x+4 + \cdots + x^{20}) we see that the concatenation n n n n n n n n n n n n n n n n n n n n n n \overline{nnnnnnnnnnnnnnnnnnnnnn} of 22 \boxed{22} copies of n n will always be a multiple of 11 11 , no matter how many digits n n has (and no smaller number of repeats will always give a multiple of 11 11 , although a smaller number of repeats can be found for any particular n n , if we know know many digits n n has).

Edit : The last few lines relate to a previous wording of the question.

This makes the answer 21 \boxed{21} .

Terminologically, the number 23232323 23232323 is more normally described as the 4 4 -fold concatenation of 23 23 , rather than as the result of concatenating 23 23 with itself 3 3 times.

The 2nd line of latex has 10^n, where I think you meant 10^m. Good solution, although maybe more complicated than it needs to be

Stephen Mellor - 3 years, 2 months ago

Log in to reply

One of the reasons for its length, rather than its complication, was your unusual use of terminology for concatenation. If I could have said:

  • if n n has an even number of digits, then its 11 11 -fold concatenation is a multiple of 11 11 , and hence its 22 22 -fold concatenation is a multiple of 11 11 ,
  • of n n has an odd number of digits, then its 2 2 -fold concatenation is a multiple of 11 11 , and hence its 22 22 -fold concatenation is a multiple of 11 11 ,

and hence a 22 22 -fold concatenation is always a multiple of 11 11 , then I would. The number 22 22 then occurs naturally as the LCM of 2 2 and 11 11 . Your terminology requires me to retrieve 21 21 from 1 1 and 10 10 , in that 21 + 1 21 + 1 is the LCM of 1 + 1 1+1 and 10 + 1 10+1 , which is more clumsy.

Mark Hennings - 3 years, 2 months ago

Log in to reply

I agree that there is another way to use the terminology, although you could have got the answer of 22 repetitions and then subtracted one for the context of the problem

Stephen Mellor - 3 years, 2 months ago

Log in to reply

@Stephen Mellor That is what I did. I also proved that it worked, rather than just stating the result.

Mark Hennings - 3 years, 2 months ago

I’m glad you included your last paragraph. When I first submitted 22 and was told it was incorrect I was a bit stumped.

Tom Shillington - 3 years, 2 months ago

A couple small typos. Twice early on, you wrote congruent to 1 (mod 11) when you meant congruent to 0 (mod 11). Easy, but pretty important, fixes. when m is even: 1 + 1 0 m + 1 0 2 m + + 1 0 10 m 0 ( m o d 11 ) \text{when m is even: } 1+ 10^m + 10^{2m} + \cdots + 10^{10m} \equiv \color{#D61F06}{0} \color{#333333}{ \pmod{11}} when m is odd: 1 + 1 0 m 0 ( m o d 11 ) \text{when m is odd: }1+ 10^m \equiv \color{#D61F06}{0} \color{#333333}{ \pmod{11}}

Also, in the next sentence, you wrote '... is a multiple of n n ' rather than '... is a multiple of 11.'

Matthew Feig - 3 years, 1 month ago

Log in to reply

Well spotted. Thanks.

Mark Hennings - 3 years, 1 month ago
X X
Apr 4, 2018

If n has odd digits,concatenate it 2-1=1 time.
If n has even digits,concatenate it 11-1=10 times.
So for any digits,concatenate it (2,11)-1=21 times.

Maybe I understood the problem wrong.

My simple answer is 2. You only need 1|1 = 11, 2|2 = 22 an so in till 9|9 = 99 so it is divisible into eleven.

I don't understand why my answer is wrong

Ovidio Carlos Molina Chapa - 3 years, 1 month ago

Log in to reply

For example,1010 is not an mutiple of 11

X X - 3 years, 1 month ago

Your Ans is right for single digit i.e 0(1)9, But for two or more, it is not applicable. Eg, 1212 is not divisible by 11

Amlan Saha Kundu - 2 years, 11 months ago
Jeremy Galvagni
Apr 16, 2018

The wording could be a little better. I agree with odd length requiring 2 copies and even requiring 11. Thus 11 copies will be sufficient according to my reading of the problem: You add copies of n n until you get a multiple of 11 and max ( 2 , 11 ) = 11 \max{(2,11)}=11

I suggest the wording should say final result is a multiple of 11

(I couldn't believe 11 wasn't the expected answer because I knew no number would require more than 11 copies. A couple of hours later I basically guessed 22.)

Edit: maybe it's just me. Other solvers seem to have understood the wording.

I agree with you - I dislike the wording. As see it, regardless of the length of the number, one doesn't need 22 copies to ensure a multiple of 11. One either needs 2 or 11. (Or 1.) I'd have liked the conditioning to be a bit clearer. I solved it as "given n of unknown length, what is the greatest possible number of copies needed to ensure a multiple of 11?" But I can see that people solved it is "what is the least value of m such that m concatenations of n is a multiple of 11?"

Richard Desper - 3 years, 1 month ago

Log in to reply

"Greatest possible number of copies" would not make sense as 22,44,66 etc. I think would all be answers.

However it does mention "ensure" in the question meaning that 22 is needed to ensure a multiple of 11

Stephen Mellor - 3 years, 1 month ago
Rishabh Bhardwaj
Apr 16, 2018

Simple,

If a number is divisible by 11, it means sum-diff(sum of odd places - sum of even places) should be a divisible of 11. For eg. 913, 9-1+3=11, divisible by 11.

Start:- For an odd digit number:

Let's take abc for now as its digits. The sum-diff will be a - b + c. Concatenation will make it abcabc and the sum will be (a-b+c) - (a-b+c) =0, divisible by 11. Similarly, for any odd digit number we need only two concatenations to get a sum 0, divisible by 11. Try- 9876598765

For an even digit number:

Let's take ab, the sum-diff will be a-b. For n concatenations it will be n(a-b). If a=b, we need no concatenations; otherwise, we need 11 concatenations for any value of a-b (that will be an integer between -8 and 9 except zero, and to get a multiple of 11 you need 11 summations of such digits, reason: 11 is a prime number). Similar is the case with any number of even digits.

Concluded: For odd number we need only 2 concatenations or any number that is divisible by 2. For even number we need 11 concatenations or any number that is divisible by 11. We would like to take LCM of 2 and 11.

It should be: 22

:)

Since the positive integer is of unknown digit length, we can split into 2 scenarios: either odd digit length or even digit length. This is very important because of the way multiples of 11 work.

To test whether a number is a multiple of 11, the alternating sum must be a multiple of 11.

If you look at a number which is odd in digit length, for example 215: 2 - 1 + 5; You will notice that if you concatenate 2 of these, the digits will cancel out and make 0: 2 - 1 + 5 - 2 + 1 - 5 = (2-2) + (-1+1) + (5-5) = 0 This pattern is noticed with ANY number with an odd digit length concatenated an even number of times. Therefore to accommodate the scenario of n having an odd digit length, the minimum number of copies must be even.

Now for the second option: if n has an even length. Because of the digit placement, the alternating sum does not cancel out nicely unlike the first scenario. If we use 21 as an example, we can look at it like this: 2 - 1 = 1; so if we concatenate it 5 times, for example, this sum adds up: 2 - 1 + 2 - 1 + 2 - 1 + 2 - 1 + 2 - 1 = 1 + 1 + 1 + 1 + 1 = 5; So to get a multiple of 11, simply concatenate the number 11 times because the digits will always add up. It doesn't matter if the alternating sum of n isn't 1, it will be required to be concatenated 11 times to produce an alternating sum that is a multiple of 11. Therefore for this scenario, the number of times the number is concatenated to create a multiple of 11 must be a multiple of 11.

Putting the two scenarios together (must be a multiple of 2 and must be a multiple of 11), this minimum number that does this is 22.

R Mathe
Apr 21, 2018

The lack of information of the length forces one to choose a number of copies that will work under all circumstances. Hence the problem is equivalent to:

What is the smallest number N N + N\in\mathbb{N}^{+} , such that for all n N + n\in\mathbb{N}^{+} the concatenation n N : = n 10 n 10 n 10 N n^{\otimes N}:=\underbrace{n_{10}\Vert n_{10}\Vert \ldots\Vert n_{10}}_{N} satisfies n N 0 n^{\otimes N}\equiv 0 mod 11 11 . Hereby k 10 k_{10} denotes the digit expansion of k k to base b = 10 b=10 . In other words, setting

C ( n ) : = { N N + n N 0 mod b + 1 } C(n):=\{N\in\mathbb{N}^{+}\mid n^{\otimes N}\equiv 0\text{ mod }b+1\}

for all n N + n\in\mathbb{N}^{+} , what is min n N + C ( n ) \min\bigcap_{n\in\mathbb{N}^{+}}C(n) ?

Under this formulation, one has the following approach.

First note that b + 1 P b+1\in\mathbb{P} and that b 1 b\equiv -1 mod b + 1 ( = 11 ) b+1(=11) . Let n N n\in\mathbb{N} be of length L N + L\in\mathbb{N}^{+} . Now, modulo b + 1 b+1 one computes for arbitrary N N + N\in\mathbb{N}^{+}

[ m c ] r c l n N = k < N b k L n k < N ( ( 1 ) L ) k n { [ m c ] l c l k < N 1 n : L is even k < N ( 1 ) k n : L is odd { [ m c ] l c l N n : L is even 0 : L is odd , N is even n : L is odd , N is odd \begin{array}{c}[mc]{rcl} n^{\otimes N} &= &\sum_{k<N}b^{kL}\cdot n\\ &\equiv &\sum_{k<N}((-1)^{L})^{k}\cdot n\\ &\equiv &\left\{ \begin{array}{c}[mc]{lcl} \sum_{k<N}1\cdot n &: &L\text{ is even}\\ \sum_{k<N}(-1)^{k}\cdot n &: &L\text{ is odd}\\ \end{array}\right.\\ &\equiv &\left\{ \begin{array}{c}[mc]{lcl} N\cdot n &: &L\text{ is even}\\ 0 &: &L\text{ is odd},~N\text{ is even}\\ n &: &L\text{ is odd},~N\text{ is odd}\\ \end{array}\right. \end{array}

  • Case 1. n 0 n\equiv 0 mod b + 1 b+1 . Then 1 1 copy suffices. Hence C ( n ) = N + C(n)=\mathbb{N}^{+} .
  • Case 2. n ≢ 0 n\not\equiv 0 mod b + 1 b+1 and n n is of odd length. Then by the above computation n N 0 n^{\otimes N}\equiv 0 mod b + 1 b+1 if an even number of copies is used, or else n N n ≢ 0 n^{\otimes N}\equiv n\not\equiv 0 mod b + 1 b+1 if one uses an odd number of copies. Hence C ( n ) = 2 N + C(n)=2\cdot\mathbb{N}^{+} .
  • Case 2. n ≢ 0 n\not\equiv 0 mod 11 11 and n n is of odd length. Then by the above computation, n N N n n^{\otimes N}\equiv Nn mod b + 1 b+1 . Since b + 1 P b+1\in\mathbb{P} and b + 1 b+1 does not divide n n , we have n N 0 n^{\otimes N}\equiv 0 if and only if N 0 N\equiv 0 mod b + 1 b+1 . Hence C ( n ) = ( b + 1 ) N + C(n)=(b+1)\cdot\mathbb{N}^{+} .

Now here comes the crux. If we knew what n n was, then the answer would be min C ( n ) \min C(n) , which is either 1 1 , 2 2 or b + 1 = 11 b+1=11 depending upon n n . The answer to the problem as stated (given the ‘unknowledge’) is

[ m c ] r c l min n N + C ( n ) = min ( N + 2 N + ( b + 1 ) N + ) = l c m ( 1 , 2 , ( b + 1 ) ) = 2 ( b + 1 ) = 22 \begin{array}{c}[mc]{rcl} \min\bigcap_{n\in\mathbb{N}^{+}}C(n) &= &\min(\mathbb{N}^{+}\cap 2\cdot\mathbb{N}^{+}\cap (b+1)\cdot\mathbb{N}^{+})\\ &= &lcm(1,2,(b+1))=2(b+1)=22\\ \end{array}

since 2 , b + 1 P 2,b+1\in\mathbb{P} and b + 1 2 + 1 = 3 > 2 b+1\geq 2+1=3>2 . Hence, 22 \fbox{22} is the minimum number of copies that will always work under all circumstances.

Ariijit Dey
Apr 18, 2018

Let d = 1 0 n 1 a n 1 + 1 0 n 2 a n 2 + . . . + 1 0 2 . a 2 + 10. a 1 + a 0 d=10^{n-1}a_{n-1}+10^{n-2}a_{n-2}+...+10^2.a_2+10.a_1+a_0 be a n n digit number. Also we know that 1 0 m { + 1 m 2 k 1 m ( 2 k + 1 ) 10^m \equiv \begin{cases} +1 & m \equiv 2k\\-1 & m \equiv (2k+1) \end{cases} Now for d d to be 0 m o d 11 0 \mod 11 n n must be odd because if n n is even then the magnitude of difference of the sum of digits in the odd places and the even places increases without bounds no matter whatever the value of n n may be. Note that in this case the digits in the odd places and that in the even places hold their position after each concatenation. SO that being said now for odd n n Let d d be a b c d e abcde for ex; now after 1st concatenation we have a b c d e a b c d e abcdeabcde Note that if the place of a digit i i in d d is 1 0 x 10^x then after d d being concatenated with itself i i occurs additionally at 1 0 x + n 10^{x+n} . Since n n is odd so the index of 10 10 corresponding to the two value of i i have odd parity!!! So after any odd number of concatenations we have an even number of i i with us half of which yields + i m o d 11 +i \mod 11 and the other half yields i m o d 11 -i \mod 11 for all i i ; That solves the problem for this case. In the second case when n is even then we need exactly 11 concatenations for the magnitude of the difference of sum of digits in the odd and even places to be a multiple of 11 11 . So combining the previous two cases we get our answer to be L C M ( c a s e 1 , c a s e 2 ) = 22 LCM(case 1,case 2) = 22 .

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...