Concatenating four copies of 23 produces 2 3 ∣ ∣ 2 3 ∣ ∣ 2 3 ∣ ∣ 2 3 = 2 3 2 3 2 3 2 3 .
Now, suppose you concatenate x copies of any positive integer n .
What is the minimum value of x such that the result of this concatenation is guaranteed to be a multiple of 11?
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.
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.
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.
Such a nice problem! I did it in 2 minutes though ;)
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
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
|
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 |
|
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 |
|
Calvin, can you post as a solution please? Got my original logic wrong hence incorrect
Log in to reply
You will need to @mention somebody i think for notifications
Has someone found a number that requires 22 copies yet?
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.
You can check via calculator that n=11 satisfies this example. (Consider this as counterexample to your answer).
This answer is base-independent!!
Note that 1 0 ≡ − 1 ( m o d 1 1 ) , and so 1 0 m ≡ ± 1 ( m o d 1 1 ) , depending on whether m is even or odd. Thus 1 + 1 0 m + 1 0 2 m + ⋯ + 1 0 1 0 m ≡ 0 ( m o d 1 1 ) when m is even, while 1 + 1 0 m ≡ 0 ( m o d 1 1 ) when m is odd. Thus, if n has an even number of digits, then the concatenation n n n n n n n n n n n (of 1 1 copies of n ) is a multiple of n (and, in general, the concatenation of a smaller number of copies of n will not be). Also, if n has an odd number of digits, then the concatenation n n of two copies of n is a multiple of 1 1 . Since 1 + x + x 2 + ⋯ + x 2 1 = ( 1 + x + ⋯ + x 1 0 ) ( 1 + x 1 1 ) = ( 1 + x ) ( 1 + x 2 + x + 4 + ⋯ + x 2 0 ) 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 of 2 2 copies of n will always be a multiple of 1 1 , no matter how many digits n has (and no smaller number of repeats will always give a multiple of 1 1 , although a smaller number of repeats can be found for any particular n , if we know know many digits n has).
Edit : The last few lines relate to a previous wording of the question.
This makes the answer 2 1 .
Terminologically, the number 2 3 2 3 2 3 2 3 is more normally described as the 4 -fold concatenation of 2 3 , rather than as the result of concatenating 2 3 with itself 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
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:
and hence a 2 2 -fold concatenation is always a multiple of 1 1 , then I would. The number 2 2 then occurs naturally as the LCM of 2 and 1 1 . Your terminology requires me to retrieve 2 1 from 1 and 1 0 , in that 2 1 + 1 is the LCM of 1 + 1 and 1 0 + 1 , which is more clumsy.
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
Log in to reply
@Stephen Mellor – That is what I did. I also proved that it worked, rather than just stating the result.
I’m glad you included your last paragraph. When I first submitted 22 and was told it was incorrect I was a bit stumped.
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 1 0 m ≡ 0 ( m o d 1 1 ) when m is odd: 1 + 1 0 m ≡ 0 ( m o d 1 1 )
Also, in the next sentence, you wrote '... is a multiple of n ' rather than '... is a multiple of 11.'
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
Log in to reply
For example,1010 is not an mutiple of 11
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
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 until you get a multiple of 11 and max ( 2 , 1 1 ) = 1 1
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?"
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
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.
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 + , such that for all n ∈ N + the concatenation n ⊗ N : = N n 1 0 ∥ n 1 0 ∥ … ∥ n 1 0 satisfies n ⊗ N ≡ 0 mod 1 1 . Hereby k 1 0 denotes the digit expansion of k to base b = 1 0 . In other words, setting
C ( n ) : = { N ∈ N + ∣ n ⊗ N ≡ 0 mod b + 1 }
for all n ∈ N + , what is min ⋂ n ∈ N + C ( n ) ?
Under this formulation, one has the following approach.
First note that b + 1 ∈ P and that b ≡ − 1 mod b + 1 ( = 1 1 ) . Let n ∈ N be of length L ∈ N + . Now, modulo b + 1 one computes for arbitrary N ∈ 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 ∑ k < N ( − 1 ) k ⋅ n : : L is even L is odd ⎩ ⎨ ⎧ [ m c ] l c l N ⋅ n 0 n : : : L is even L is odd , N is even L is odd , N is odd
Now here comes the crux. If we knew what n was, then the answer would be min C ( n ) , which is either 1 , 2 or b + 1 = 1 1 depending upon 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 ) = 2 2
since 2 , b + 1 ∈ P and b + 1 ≥ 2 + 1 = 3 > 2 . Hence, 2 2 is the minimum number of copies that will always work under all circumstances.
Let d = 1 0 n − 1 a n − 1 + 1 0 n − 2 a n − 2 + . . . + 1 0 2 . a 2 + 1 0 . a 1 + a 0 be a n digit number. Also we know that 1 0 m ≡ { + 1 − 1 m ≡ 2 k m ≡ ( 2 k + 1 ) Now for d to be 0 m o d 1 1 n must be odd because if 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 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 Let d be a b c d e for ex; now after 1st concatenation we have a b c d e a b c d e Note that if the place of a digit i in d is 1 0 x then after d being concatenated with itself i occurs additionally at 1 0 x + n . Since n is odd so the index of 1 0 corresponding to the two value of i have odd parity!!! So after any odd number of concatenations we have an even number of i with us half of which yields + i m o d 1 1 and the other half yields − i m o d 1 1 for all 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 1 1 . 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 ) = 2 2 .
Problem Loading...
Note Loading...
Set Loading...
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 has an odd number of digits
For example let n = 3 6 1 . If we concatenate it with itself once we get 3 6 1 3 6 1 Alternating Sum = 3 − 6 + 1 − 3 + 6 − 1 = 0 When the second half is written out, each digit occurs in the different colour, since n has an odd number of digits. This means that 1 concatenation (2 copies of 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 has an even number of digits
For example let n = 6 8 5 9 . If we concatenate it with itself once, we get 6 8 5 9 6 8 5 9 Alternating Sum = 6 − 8 + 5 − 9 + 6 − 8 + 5 − 9 = − 1 2 ≡ 1 0 m o d 1 1 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 of 0 ≤ a ≤ 1 0 m o d 1 1 6 8 5 9 Alternating Sum = 6 − 8 + 5 − 9 = − 6 ≡ 5 m o d 1 1 For each extra concatenation, the alternating sum is increased by this amount (5 in this case). Since a and 1 1 will be coprime, 10 concatenations (11 copies of n ) will be needed to ensure that the alternating sum is divisible by 11. In our example, the alternating sum would equal 1 1 × 5 = 5 5 ≡ 0 m o d 1 1 .
As one case requires 2 copies of n and the other case requires 11 copies of n , to ensure that the result will be a multiple no matter how many digits n has we need Lowest Common Multiple ( 2 , 1 1 ) = 2 2 copies of n .