Permutation Sum

There are 6 permutations of the digits 1, 2, and 3: 123 , 132 , 213 , 231 , 312 , 321. 123, 132, 213, 231, 312, 321.
The sum of all these 6 numbers is divisible by 111.

Do all 3-digit numbers have this property in which the sum of all the permutations of its digits is divisible by 111?

Yes No

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.

10 solutions

Aaryan Maheshwari
Dec 14, 2017

All 3 digit numbers are of the form 100 a + 10 b + c 100a+10b+c . The permutations can be:

100 a + 10 b + c , 100 a + 10 c + b , 100 b + 10 a + c , 100 b + 10 c + a , 100 c + 10 a + b , a n d 100 c + 10 b + a 100a+10b+c,\space 100a+10c+b,\space 100b+10a+c,\space 100b+10c+a,\space 100c+10a+b,\space and\space 100c+10b+a

Adding all these, we get: 222 a + 222 b + 222 c = 111 ( 2 a + 2 b + 2 c ) , which is obviously divisible by 111. 222a+222b+222c=111(2a+2b+2c), \text{which is obviously divisible by 111.} All three digit numbers satisfy this property. \therefore\space \text{All three digit numbers satisfy this property.}

Your answer is not complete yet. There is also the case that we have less than 6 permutations.

Consider the question `is the sum divisible by 222?' The answer would be no. Look for example at 221. The permutations are 221, 212 and 122. The sum (555) is not divisible by 222.

Peter Ypma - 3 years, 5 months ago

Log in to reply

Then they would sum up to (if a=b, as in 221) 222a+111c. But then also, its divisible by 111. So, there's no clarification to be given. The reader should also do some work.

P.S- The question would have been interesting if it had asked for divisible by 222.

Aaryan Maheshwari - 3 years, 5 months ago

Log in to reply

It would be 222a+111c and not 222a+222c. That is the reason why it isn't always divisible by 222.

Peter Ypma - 3 years, 5 months ago

It would still have 6 permutations, each digit is it's own distinct number and you can't eliminate them just because they are equal to another of the permutations.

Chris Cheek - 3 years, 5 months ago

nicely explained!!

Mohammad Khaza - 3 years, 5 months ago

Log in to reply

thank you.

Aaryan Maheshwari - 3 years, 5 months ago

Yes, love the clear mathematical reasoning. I hope to get better at solving problems this way through daily participation on this site.

Adam Lenda - 3 years, 5 months ago

In regards to the question about dividing by 222: Doesn’t the proof tell us that the sum of the permutations is always divisible by 222 as well?

Hallo Leo - 3 years, 5 months ago

Log in to reply

This only works if all 3 digits are different. For instance, 122 has only three permutations, which add up to 555.

Stewart Gordon - 3 years, 5 months ago

Log in to reply

Thanks. Makes sense!

Hallo Leo - 3 years, 5 months ago

While messing round on my calculator it seemed that only consecutive number sets worked. I tried 8, 4, and 2 and it was not divisible by 11. I also tried 6, 4, and 2, it didn't work either. 4, 5, 6 did though. Am I messing up somewhere?

Wren Harder-Tessier - 3 years, 5 months ago

Log in to reply

yes.suppose, for 8,4 &2.

it will be= 842 + 824 + 482 + 428 + 284 + 248 = 3108 842+824+482+428+284+248=3108

now, 3108 111 = 28 \frac{3108}{111}=28

Mohammad Khaza - 3 years, 5 months ago

do this same for 6,4 &2.if any problem happens then let me know.

Mohammad Khaza - 3 years, 5 months ago

it's to divide by 111, not 11

Gabriela de Araújo - 3 years, 4 months ago

It seems like the right answer

陆 光华 - 3 years, 5 months ago

If it is a continuous 3 digits, what will the conclusion become?

陆 光华 - 3 years, 5 months ago

The question is not well formed. All three digit numbers of the form 100a+10b+c is a subset of all three digit numbers. The question asked about all three digit numbers.

Greg Alvord - 3 years, 5 months ago

Log in to reply

Can you give an example of a 3-digit set that cannot be expressed in this form?

Stewart Gordon - 3 years, 5 months ago

How bout 000?

Steve Powersuit - 3 years, 4 months ago

Log in to reply

If you divide that by 111 then you get 0, by my calculation.

Stewart Gordon - 3 years, 4 months ago

This is the right idea, but you have missed the cases when some of the digits are the same. In this case, there aren't six permutations.

Kelvin Rivera - 3 years, 4 months ago

Let A, B and C be the three numbers. Out of the six possible permutations ABC, ACB, BAC, BCA, CAB, CBA, the sum of the hundreds, tens and one are all 2A+2B+2C. Let 2A+2B+2C be k. The sum of the permutations is then 100k+10k+1k = 111k which always is divisible by 111.

Beautifully concise solution.

Thomas Sutcliffe - 3 years, 5 months ago
Adam Lenda
Dec 25, 2017

If anyone would like a brute force proof, run this C#:

 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
class Program
  {
    static void Main(string[] args)
    {
      // cross join, then cross join again
      var numbers = new int[] {1, 2, 3, 4, 5, 6, 7, 8, 9};
      var numbersX2 = numbers.SelectMany<int, int, int[]>(x => numbers, (a, b) => new int[2] {a, b});
      var numbersX3 = numbersX2.SelectMany<int[], int, int[]>(x => numbers, (a, b) => new int[3] {a[0], a[1], b});

      foreach (int[] number in numbersX3)
      {
        Console.Write($"Using {number[0]}{number[1]}{number[2]}... ");

        var v1 = (number[0] * 100) + (number[1] * 10) + number[2];
        var v2 = (number[0] * 100) + (number[2] * 10) + number[1];
        var v3 = (number[2] * 100) + (number[1] * 10) + number[0];
        var v4 = (number[2] * 100) + (number[0] * 10) + number[1];
        var v5 = (number[1] * 100) + (number[2] * 10) + number[0];
        var v6 = (number[1] * 100) + (number[0] * 10) + number[2];
        var sum = (decimal)(v1 + v2 + v3 + v4 + v5 + v6);
        var result = sum / 111.0M;
        Console.WriteLine($"{v1} + {v2} + {v3} + {v4} + {v5} + {v6} = {sum} / 111 = {result}");
        if (sum % 111.0M != 0)
        {
          Console.WriteLine("Does not divide evenly by 111!");
          return;
        }
      }
    }
  }

Certainly one way to prove it... %-)

Hallo Leo - 3 years, 5 months ago

I came to learn here..!!

AK Shama - 3 years, 5 months ago
James Gilbert
Dec 27, 2017

pick any a a , b b , c c because of both symmetry and each of the 3 numbers appear twice at each digit the sum of the permutations would be 200 ( a + b + c ) + 20 ( a + b + c ) + 2 ( a + b + c ) = 222 ( a + b + c ) 200(a + b + c) + 20(a + b + c) + 2(a + b + c) = 222(a+b+c)

Karthika G Kumar
Dec 29, 2017

For 3 digit numbers where digits are not repeated we have total 6 permutations and the sum of all such permutations will be divisible by 222 therefore also divisible by 111. For 3 digit numbers where 1 digits is repeated like abb. The sum of permutations (abb ,bab ,bba ) will be 111(a+2b) which is divisible by 111. For 3 digit numbers aaa =a*111,it is obviously divisible by 111 . So this follows for all types of 3 digit numbers .

Let l, m, n be the 3 digits of the number. Then sum of permutations is

l m n
l n m
m l n
m n l
n m l
n l m

each column summation will result into 2 x ( l + m + n) .

Let 2 x ( l + m + n ) = k

then the summation is,

 =   100 k +10 k + k

 =  (100 + 10 + 1) k

 = 111 k

And 111 k is divisible by 111. :)

Xiaoyu Jiang
Dec 28, 2017

No matter how many digits the number has: 1 2 3 4 5 Inverse it: 5 4 3 2 1 And add them one by one : 6 6 6 6 6 You will always get a long one made of a specific number, which is obviously divisible by 11111, Another example: 4213 +1342 =5555

Jozko Mrkvicka
Dec 27, 2017

We are making a permutation, so on every decimal position we will have the same set of numbers occurring every time.

Let's say the sum over each position is n.

We have then 100n+10n+1n = 111n, which is always divisible by 111 :-)

Manohar Dasari
Dec 27, 2017

Yes, 111 is factor of sum of all permutations of any 3-digit numbers because 111 is the factor of the sum derived from units.

Let's assume sum of three numbers A,B and C is X => X = A+B+C Now sum of all permutations should contain Summation of X twice at each digit place ex.

100s 10s 1s
A B C
A C B
B A C
B C A
C A B
C B A
100*(A+A+B+B+C+C) 10*(A+A+B+B+C+C) 1*(A+A+B+B+C+C)
100*(2A+2B+2C) 10*(2A+2B+2C) 1*(2A+2B+2C)
100 (2 (A+B+C) 10 (2 (A+B+C) 1 (2 (A+B+C)
100 (2 X) 10*(2X) 1*(2X)

SUM of all Permutations = 100 (2X)+10 (2X)+1*(2X) = 2X(100+10+1) = 111 (2X) =>

Resultant sum always going to have 111 as a factor so it is TRUE that all 3-digit numbers have this property in which the sum of all the permutations of its digits is divisible by 111

Any number which has sum of its digits as 3 will always be divisible by 3 and when we add 3 different numbers they are divisible by 3 so in this case 111 can divide a number which is falling in this category

Can't understand? how does this work for 567 for example - the sum of permutations I'd not divisible by 112

Tom Cooney - 3 years, 5 months ago

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...