Four Digit Sum

Algebra Level 1

1234 1243 1324 1342 1423 1432 4123 4132 4213 4231 4312 4321 \begin{array} { ccccccc } 1234 & 1243 & 1324 & 1342 & 1423 & 1432 \\ \vdots & & & & & \vdots \\ 4123 & 4132 & 4213 & 4231 & 4312 & 4321 \\ \end{array}

The 24 distinct 4-digit numbers above have been listed out by arranging 1, 2, 3, and 4 in different orders. What is the sum of these 24 numbers?


Hint : You do not need to list out all 24 numbers to find the sum.


From: Derek Niederman's Math Puzzles for the Clever Mind


The answer is 66660.

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.

21 solutions

Considering the numbers that starts with the digit 1 1 ,

1234 1234

1243 1243

1324 1324

1342 1342

1423 1423

1432 1432

and so on... \text{and so on...}

We can see that 1 1 digit appeared in the first column 6 6 times, continuing this sequence, we can say therefore that each digit appears in each column 6 6 times. So each column must add up to 6 ( 1 + 2 + 3 + 4 ) = 60 6(1+2+3+4)=60

Therefore, the total is

60 ( 1000 ) + 60 ( 100 ) + 60 ( 10 ) + 60 ( 1 ) = 60 ( 1000 + 100 + 10 + 1 ) = 60 ( 1111 ) = 66660 60(1000)+60(100)+60(10)+60(1)=60(1000+100+10+1)=60(1111)=66660

Brilliant solution. I solved this way too.

Evan Huynh - 4 years, 1 month ago

Damn. I did the same thing but plugged in an extra 6 in my answer and when it was wrong i gave up after.

Dina Yehia - 4 years, 1 month ago

Can you explain that formula please!

fatma dawoud - 4 years, 1 month ago

Log in to reply

what part exactly?

A Former Brilliant Member - 4 years, 1 month ago

dont give up

Rhiannon Whitby - 4 years, 1 month ago

I'm getting a headache... :-)

Ken Ricklin - 4 years, 1 month ago

My way: The average of 1,2,3,4 is (1+2+3+4)/4 = 2.5 If we could have a number as 2.5 2.5 2.5 2.5 we then can multiply it with 24 to get the answer. To solve this we multiply 3333 by 24 = 79,992 and 2222 by 24 = 53,328 and the average between them is the answer 66,660

Issam Dawod - 4 years, 1 month ago

Could you explain the last part when you multiplied 60 by 1000 and so on?

Erfan Huq - 4 years, 1 month ago

There are not 24 distinct four digit numbers above. You failed to display most of them above.

Gilbert McGill - 4 years ago
Mehdi K.
Apr 24, 2017

Fro each one of the combinations there is exactly one reversed, so ( 1234 + 4321 ) × 12 = 66660 (1234 + 4321) \times 12 = 66660 .

Edit:Look at comment for the correct solution.

The term you're looking for is "5's complement". The 5's complement of abcd is 5555-abcd.

Richard Desper - 4 years, 1 month ago

I think Mehdi means that for each one of the combination is exactly one number which 'adds' this number to 5555. Like (2341 + 3214), (1423 + 4132), etc.

Kirill Finkelshteyn - 4 years, 1 month ago

Log in to reply

I think you are trying to say there will be 12 unique combinations of (Number + Complement number of 5555) =5555.

Complement number of 5555=5555-number

So, the required solution is (Number + Complement number of 5555)x 12=66660. I hope now @Mehdi K. will update the solution with additional information.

Venkatachalam J - 4 years, 1 month ago

Sum of (1234+4321)=5555, But for most of the number combination if you add the reversed one will not get the total 5555. Example: what about (2341+1432), (1423+3241)...etc., The number and reversed number will not give the total 5555. So, (number + reversed number)x12 =66660 logic is not correct.

Venkatachalam J - 4 years, 1 month ago

Log in to reply

There is a 'matching' inverse for every number it's just not the reverse. 2341's inverse is 3214. What's more, is that you can trivially show that there is one and only one inverse per number. So 5555 * 12 is a valid approach if we avoid the term 'reverse' for the matching 'inverse'.

Kurt Schwind - 3 years, 3 months ago

A neat adaptation of Gauss's famous trick!

Stewart Gordon - 4 years, 1 month ago

Thats how I solves it..

Reed Chaber - 4 years, 1 month ago

I found the solution in a way that seemed logical to me. There are 24 possibilities, but only 4 numbers. I added 1234+2143+3412+4321 to get 11110, then multiplied that by 6 to get the answer. I'm not very good at expressing this mathematically and I'm not even sure why this worked!

Sarah Orme - 4 years, 1 month ago

@Venkatachalam J is close to right, but Richard Desper has it better. Just drop the word 'reverse' and go for 'complement'. Your solution is still valid.

Kurt Schwind - 3 years, 3 months ago
Zee Ell
Apr 15, 2017

Each digit can occupy each place 6 times.

Hence, our sum can be calculated as:

6 × ( 1 + 2 + 3 + 4 ) × ( 1000 + 100 + 10 + 1 ) = 6 × (1 + 2 + 3 + 4) × (1000 + 100 + 10 + 1) =

= 6 × 10 × 1111 = 66660 = 6 × 10 × 1111 = \boxed {66660}

where do supply feedback? I answered 66,660 and was marked wrong. So I removed the comma!

tom brodsky - 4 years, 1 month ago

This is how I did it. +1

Jerry McKenzie - 4 years, 1 month ago
Mark Geha
Apr 24, 2017

If we pair off each number so that each pair equals 5555, 1234+4321 gives 5555. As there are 12 pairs of these numbers that give 5555, 5555*12 = 66660

Ah, nice pairing up of numbers. An underrated approach!

Pi Han Goh - 4 years, 1 month ago
Venkatachalam J
Apr 24, 2017

Let be (a), (a+1), (a+2) and (a+3) 4 following digits.

The number LaTex: ( a ) ( a + 1 ) ( a + 2 ) ( a + 3 ) (a)(a+1)(a+2)(a+3) is equal to

LaTeX: a 1 0 3 + ( a + 1 ) 1 0 2 + ( a + 2 ) 1 0 1 + ( a + 3 ) 1 0 0 a10^{3}+(a+1)10^{2}+(a+2)10^{1}+(a+3)10^{0}

The number of permutations of the 4 digits are :

LaTeX: A 4 4 = P 4 = 4 ! = 4 × 3 × 2 × 1 = 24 A^4_4 = P_4 = 4! = 4 \times 3 \times 2 \times 1 = {\color{#D61F06} 24}

In each rank LaTeX: 1 0 n 10^{n} , we have LaTeX: P 4 × a P_4 \times a or LaTex: 24 × a {\color{#D61F06}24 \times a } and LaTex: 6 × ( S 4 ) {\color{#3D99F6}6 \times (S_4) }

LaTeX: S 4 = 6 j = 0 j = 3 j = S 3 = 6 j = 1 j = 3 j = 6 × ( 1 + 2 + 3 ) = 6 × 3 × 4 2 = 36 S_4 = 6\displaystyle \sum_{j=0}^{j=3}j = S_3 = 6\displaystyle \sum_{j=1}^{j=3}j = 6 \times (1+2+3) = 6 \times\frac {3 \times 4}{2} = {\color{#3D99F6}36}

We get taking into account each rank :

LaTeX: i = 1 i = 4 [ 1 0 ( i 1 ) [ 24 a + j = 1 j = 3 j ] ] = i = 1 i = 4 [ 1 0 ( i 1 ) [ 24 a + 36 ] ] = [ 24 a + 36 ] [ i = 1 i = 4 [ 1 0 ( i 1 ) ] \displaystyle \sum_{i=1}^{i=4}[10^{(i-1)}[{\color{#D61F06}24a} + \displaystyle \sum_{j=1}^{j=3}j ]]= \displaystyle \sum_{i=1}^{i=4}[10^{(i-1)}[{\color{#D61F06}24a} + {\color{#3D99F6}36} ]] = [{\color{#D61F06}24a} + {\color{#3D99F6}36} ][ \displaystyle \sum_{i=1}^{i=4}[10^{(i-1)}]

LaTeX: ( 24 a + 36 ) ( 1 0 0 + 1 0 1 + 1 0 2 + 1 0 3 ) = ( 24 a + 36 ) ( 1 + 10 + 100 + 1000 ) ({\color{#D61F06}24a} + {\color{#3D99F6}36})(10^{0} + 10^{1} + 10^{2} + 10^{3}) = ({\color{#D61F06}24a} + {\color{#3D99F6}36})(1 + 10 + 100 + 1000)

LaTeX: ( 24 a + 36 ) ( 1111 ) = 26664 a + 39996 ({\color{#D61F06}24a} + {\color{#3D99F6}36})(1111) = \boxed{26664a + 39996}

In the case we are interested in, LaTeX: a = 1 a = 1

And at last, we get : LaTeX: 26664 + 39996 = 66660 26664 + 39996 = {\color{blueviolet}\boxed{66660}}

Hana Wehbi
Apr 24, 2017

The Gaussian insight is to realize that each column, ones, tens, hundreds, and thousands contain the same digits which are 6 ones, 6 twos, 6 threes, and 6 fours even though the order of the digits will be different in each column.

( 6 × 1 ) + ( 6 × 2 ) + ( 6 × 3 ) + ( 6 × 4 ) = 60 (6\times 1) +( 6\times 2)+ (6 \times 3)+ ( 6\times 4)= 60 .

The total sum is 60 + 600 + 6000 + 60 , 000 = 66660 60+600+6000+60,000= 66660 .

Neat approach! We can rearrange the terms so they become easy to add. This is much simpler than directly adding the given 24 numbers.

Pranshu Gaba - 4 years, 1 month ago

Log in to reply

Thank you.

Hana Wehbi - 4 years, 1 month ago
Kevin Tong
Apr 26, 2017

There are 24 combinations of using the digits 1 , 2 , 3 , 4 1, 2, 3, 4 exactly once. There are 4 4 possible numbers per digit with equal probability for the thousands, hundreds, tens and ones digits, therefore, there are 24 4 \frac{24}{4} or 6 6 numbers with each number in each digit. For example, there are 6 numbers with 1 in the ones digit, 6 numbers with 4 in the tens digit etc. The sum of all 24 24 numbers of each digit are 6 + 6 ( 2 ) + 6 ( 3 ) + 6 ( 4 ) = 60. 6+6(2)+6(3)+6(4) = 60. Doing the addition gets us 60 + 600 + 6000 + 60000 = 66660 60+600+6000+60000 = \boxed{66660}

Very nicely explained! We can rearrange the digits and add them in any order that we feel convenient, because addition is commutative as well as associative.

Pranshu Gaba - 4 years, 1 month ago
Annie Li
Apr 26, 2017

Firstly, we all know that 4 6 4*6 equals to 24, 3 6 3*6 equals to 18, 2 6 2*6 equals to 12 and 1 6 1*6 equals to 6. Using those numbers, we add them all up so that it equals to 60. Next we take the 60 and add that to 600 then 6000 then 60000 which should get the answer 66660. The reason we added an extra 0 is because we are actually adding the tens column then the hundreds then the thousands and so on. P.S i hope this make sense! :)

Yup, this makes sense. Out of the 24 combinations, each digit appears 6 times in the units places, tens place, hundreds place and the thousands place. We can add them in any order that we feel convenient.

Pranshu Gaba - 4 years, 1 month ago
Kendall Starr
Apr 25, 2017

Average the maximum and minimum values, then multiply by 24:

( 1234 + 4321 ) 2 \frac{(1234 + 4321)}{2} = 5555 2 \frac{5555}{2} = 2777.5

2777.5(24) = 66660

@Pi Han Goh ,

First of all, the number 24 is not random. There are 24 unique numbers that can be made from the four supplied digits (4 factorial). Since these 24 numbers account for all permutations of each digit, we know every digit appears in each position the same amount of times.

It stands to reason, then, that averaging the highest and lowest values is the same as averaging all 24. But doing the min and max allows us to skip over writing them all down and adding them up. Then we can simply multiply the average by the amount of unique numbers (24) to get the sum.

It works with any amount of digits and is more simple than writing down all the combinations starting with a chosen digit, counting those, adding the supplied digits together, multiplying that by the number of times that digit appears in each column, then multiplying by [11111...etc], as is seen in the most upvoted solution here. I haven't looked at this thread since I posted, but I'm honestly pretty surprised that my solution didn't receive a single upvote.

It's worth clarifying that the 24 was supplied in the question (4 digits can be arranged 24 ways because 4! = 24). If you were to do this with the number set [1,2,3,4,5], it goes like this:

( 12345 + 54321 ) 2 \frac{(12345 + 54321)}{2} (5!) = 3999960

Kendall Starr - 4 years ago

Log in to reply

Good explanation.

Yeah, not much people noticed your solution especially when there's already a lot more other solutions present.. Upvoted!

Pi Han Goh - 4 years ago

Why does this method work? Why can we just take their average and multiply by a random number of 24?

Pi Han Goh - 4 years, 1 month ago

Let (a), (a+1), (a+2) and (a+3) 4 following digits.

The number LaTex: ( a ) ( a + 1 ) ( a + 2 ) ( a + 3 ) (a)(a+1)(a+2)(a+3) is equal to

LaTeX: a 1 0 3 + ( a + 1 ) 1 0 2 + ( a + 2 ) 1 0 1 + ( a + 3 ) 1 0 0 a10^{3}+(a+1)10^{2}+(a+2)10^{1}+(a+3)10^{0}

The number of permutations of the 4 digits are :

LaTeX: A 4 4 = P 4 = 4 ! = 4 × 3 × 2 × 1 = 24 A^4_4 = P_4 = 4! = 4 \times 3 \times 2 \times 1 = {\color{#D61F06} 24}

In each rank LaTeX: 1 0 n 10^{n} , we have LaTeX: P 4 × a P_4 \times a or LaTex: 24 × a {\color{#D61F06}24 \times a } and LaTex: 6 × ( S 4 ) {\color{#3D99F6}6 \times (S_4) }

LaTeX: S 4 = 6 j = 0 j = 3 j = S 3 = 6 j = 1 j = 3 j = 6 × ( 1 + 2 + 3 ) = 6 × 3 × 4 2 = 36 S_4 = 6\displaystyle \sum_{j=0}^{j=3}j = S_3 = 6\displaystyle \sum_{j=1}^{j=3}j = 6 \times (1+2+3) = 6 \times \frac {3 \times 4}{2} = {\color{#3D99F6}36}

We get taking into account each rank :

LaTeX: i = 1 i = 4 [ 1 0 ( i 1 ) [ 24 a + j = 1 j = 3 j ] ] = i = 1 i = 4 [ 1 0 ( i 1 ) [ 24 a + 36 ] ] = [ 24 a + 36 ] [ i = 1 i = 4 [ 1 0 ( i 1 ) ] \displaystyle \sum_{i=1}^{i=4}[10^{(i-1)}[{\color{#D61F06}24a} + \displaystyle \sum_{j=1}^{j=3}j ]]= \displaystyle \sum_{i=1}^{i=4}[10^{(i-1)}[{\color{#D61F06}24a} + {\color{#3D99F6}36} ]] = [{\color{#D61F06}24a} + {\color{#3D99F6}36} ][ \displaystyle \sum_{i=1}^{i=4}[10^{(i-1)}]

LaTeX: ( 24 a + 36 ) ( 1 0 0 + 1 0 1 + 1 0 2 + 1 0 3 ) = ( 24 a + 36 ) ( 1 + 10 + 100 + 1000 ) ({\color{#D61F06}24a} + {\color{#3D99F6}36})(10^{0} + 10^{1} + 10^{2} + 10^{3}) = ({\color{#D61F06}24a} + {\color{#3D99F6}36})(1 + 10 + 100 + 1000)

LaTeX: ( 24 a + 36 ) ( 1111 ) = 26664 a + 39996 ({\color{#D61F06}24a} + {\color{#3D99F6}36})(1111) = \boxed{26664a + 39996}

In the case we are interested in, LaTeX: a = 1 a = 1

And at last, we get : LaTeX: 26664 + 39996 = 66660 26664 + 39996 = {\color{blueviolet}\boxed{66660}}

Frédéric Deleria - 4 years, 1 month ago

Log in to reply

Oh this is a nice exposition! You should post this as a separate solution!!

Pi Han Goh - 4 years, 1 month ago

Log in to reply

I've been discovering it and really don't know how to do it !

Frédéric Deleria - 4 years, 1 month ago

Log in to reply

@Frédéric Deleria If you answered this problem correctly, there's a box directly below the "Add your own solution" text.

Pi Han Goh - 4 years, 1 month ago

Log in to reply

@Pi Han Goh Sorry but I cannot see any box and "Add your own solution" text.

Frédéric Deleria - 4 years, 1 month ago

Log in to reply

@Frédéric Deleria @Calvin Lin , can you help this person? Thanks.

Pi Han Goh - 4 years, 1 month ago
Ben Smith Lea
Apr 24, 2017

Each digit will appear an equal number of times in each column. The average value of each column in each addition operation is therefore (1+2+3+4)/4 or 2.5

24 * 2.5 = 60

Adjusting the value for each column gives: (60 * 1000) + (60 * 100) +(60 * 10) + 60

Nice approach! We can make use of the symmetry in the numbers to say that each digit will appear an equal number of times in each column.

Pranshu Gaba - 4 years, 1 month ago
Vu Vincent
Jun 29, 2017

If we consider the number 1234 1234 , there exists a number that adds 1234 1234 up to 5555 5555 , and indeed, that number is 4321 4321 .

Another example would be: 4231 4231 + 1324 1324 = 5555 5555

This applies for all configuration of these 6-digits numbers; there exists a number that adds that certain number up to 5555 5555 , and so this gives a "parity" to the 24 numbers as above, and as 24 numbers pairs, then there are: 12 12 pairs of numbers that each adds up to 5555 5555 . Therefore, the sum of the 24 numbers above is:

5555 × 12 = 66660 5555 \times 12 = \boxed{66660}

veri nais problem :)

M H
Apr 29, 2017

(4+3+2+1)×(1000+100+10+1)×6 is the easiest way I guess.

C B
Apr 29, 2017

Take one set of 4 combinations and add together:

1,234 + 2,341 + 3,412 + 4,123 = 11,110

This uses 4 of the 24 combinations 24 / 4 = 6

So the total is 11,110 x 6 = 66,660

Dan Wimmer
Apr 28, 2017

As given we can rearrange the columns so that in each column we get the four term sum 11110. There are six such columns which gives 66660

Alkis Piskas
Apr 28, 2017

Marvin's solution is very elegant. (I have added the numbers of the 2 rows displayed and got 33330: So the total is the double (66660) since the remaining 2 rows are complementary. According to "You do not need to list out all 24 numbers to find the sum", the solution is correct, but then, too many calculations!)

These numbers are an evenly (well perhaps regularly) spaced comb on the number line. 24 times the average of the extreme values equals 66660

What do you mean by numbers are "evenly spaced comb on the number line"? Can you elaborate more?

Christopher Boo - 4 years, 1 month ago
Brad White
Apr 26, 2017

The first number is 1234 and the last is 4321. The average between them is 2777.5; multiply by 24 is 66660.

This solution doesn't always work, right? Suppose the problem is the 6 permutation of a 3-digit number 137. Then 137 + 173 + 317 + 371 + 713 + 731 = 2442 137+173+317+371+713+731=2442 but ( 137 + 173 ) × 0.5 × 6 = 2604 2442 (137+173)\times0.5 \times 6=2604\neq 2442 .

Christopher Boo - 4 years, 1 month ago
Har WiltZ
Apr 26, 2017

For each digit, there are 6 ways to choose the other three digits, since all digits are distinct and 3 2 1=6. If you imagine adding the numbers using grade school addition, where you add digits column-wise, for each digit in the sum you are adding every digit from 1 to 4, 6 times each. That means the sum of each column is 6*(1+2+3+4) = 60. So you carry over to each next column. The ones column will be 0 (because rightmost sum is 60), followed by a 6 (60+6 = 66), followed by another 6, and then the leftmost column sums to 66. So, you get

66660

Good observation, each digit appears in each place exactly six times.

Pranshu Gaba - 4 years, 1 month ago
Nick Rees
Apr 26, 2017

Add smallest (1234) and largest (4321) to give 5555, divide by 2 to get average (2777.5) and x total (24) to give 66660.

I get that the average of the highest and lowest value is 2777.5 . Could you explain why the average of the highest and lowest value would be the same as the average of all 24 values?

Pranshu Gaba - 4 years, 1 month ago
Adam Batsford
Apr 26, 2017

Lowest value = 1234 Highest Value = 4321

Sum of these = 5555

5555 / 2 = 2777.5

2777.5 x 24 = 66660

I get that the average of the highest and lowest value is 2777.5 . Could you explain why the average of the highest and lowest value would be the same as the average of all 24 values?

Pranshu Gaba - 4 years, 1 month ago

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...