Sum these numbers

The digits 1,2,3 and 4 are used to generate 256 different 4 digit numbers.Find the sum of all these numbers.


The answer is 711040.

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.

3 solutions

Vignesh Rao
Dec 25, 2015

Using the formula:- x y × z × ( 111.. . y times ) \frac{x}{y} \times z \times (111..._{y \text{ times}})

Where,

x x = No of numbers formed

y y = No. of digits given

z z = Sum of given digits

256 4 ( 1 + 2 + 3 + 4 ) 1111 = 711040 \Rightarrow \frac{256}{4}*(1+2+3+4) * 1111 =\boxed{ 711040}

From where did you find that formula?

Shreyansh Mukhopadhyay - 3 years, 2 months ago

Log in to reply

Can be found using some combinatorics. Not a general formula as such.

Vignesh Rao - 3 years, 2 months ago
1
2
3
4
5
6
7
8
sum1 = 0
for a in xrange(1,5):
    for b in xrange(1,5):
        for c in xrange(1,5):
            for d in range(1,5):
                sum1 += ( 1000*a + 100*b + 10*c + d )

print sum1                

Nguyen Thanh Long
Jul 22, 2015

It is easy to get the result: 64 × ( 1000 + 100 + 10 + 1 ) × ( 1 + 2 + 3 + 4 ) = 711040 64 \times (1000+100+10+1) \times (1+2+3+4) = \boxed{711040}

How to get that? Can you explain it?

Anik Mandal - 5 years, 10 months ago

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...