Combined digit sum

Algebra Level 3

Let S S be the set of natural numbers whose digits are different and belong to the set { 1 , 3 , 5 , 7 } \{1, 3, 5, 7\} . Calculate the sum of the elements of S S .


The answer is 117856.

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

Richard Desper
Nov 16, 2020

Let's split S S into four subsets: S 4 , S 3 , S 2 S_4, S_3, S_2 , and S 1 S_1 according to the length of the numbers. There are 4 ! = 24 4!=24 four-digit numbers, 4 ! = 24 4!=24 three-digit numbers, 4 3 = 12 4*3=12 two-digit numbers, and 4 4 one-digit numbers.

I'll calculate the sum of the elements of S S by separately summing S k S_k and then combining those four sums. For each k k , the sum of S k S_k is the cardinality of S k S_k multiplied by the average value of a member.

Lemma: the average value of S k = i = 0 k 1 4 × 1 0 i S_k = \sum_{i=0}^{k-1} 4 \times 10^i (I.e., the average value of S 1 S_1 is 4 4 , the average value of S 2 S_2 is 44 44 , the average value of S 3 S_3 is 444 444 , and the average value of S 4 S_4 is 4444 4444 .)

This is pretty obvious: for example, for each a b c d S 4 abcd \in S_4 , ( 8 a ) ( 8 b ) ( 8 c ) ( 8 d ) (8-a)(8-b)(8-c)(8-d) is also in S 4 S_4 . The average of this pair is 4444 4444 . The entirety of S 4 S_4 can be partitioned into such pairs. Since the average value in each pair is 4444 4444 , the average over the entire set is also 4444 4444 .

Thus the sum of S 4 S_4 is 24 4444 24*4444 , the sum of S 3 S_3 is 24 444 24*444 , the sum of S 2 S_2 is 12 44 12*44 , and the sum of S 1 S_1 is 4 4 4*4 . The grand total is 117856 117856 .

Chew-Seong Cheong
Nov 16, 2020

The number of single-digit elements n 1 = 4 n_1 = 4 . Therefore 1 1 , 3 3 , 5 5 , and 7 7 each appears once. Then the sum of single-digit elements S 1 = 1 + 3 + 5 + 7 = 16 S_1 = 1+3+5+7 = 16 .

The number of two-digit elements n 2 = 4 × 3 = 12 n_2 = 4 \times 3 = 12 . Therefore 1 1 , 3 3 , 5 5 , and 7 7 each appears three times as unit digit and three times as tens digit. Then the sum of two-digit elements S 2 = 33 ( 1 + 3 + 5 + 7 ) = 528 S_2 = 33(1+3+5+7) = 528 .

The number of three-digit elements n 3 = 4 × 3 × 2 = 24 n_3 = 4 \times 3 \times 2 = 24 . Therefore 1 1 , 3 3 , 5 5 , and 7 7 each appears six times as unit, tens, and hundreds digits. Then the sum of three-digit elements S 3 = 666 ( 1 + 3 + 5 + 7 ) = 10656 S_3 = 666(1+3+5+7) = 10656 .

The number of four-digit elements n 4 = 4 × 3 × 2 × 1 = 24 n_4 = 4 \times 3 \times 2 \times 1 = 24 . Therefore 1 1 , 3 3 , 5 5 , and 7 7 each appears six times as unit, tens, hundreds, and thousands digits. Then the sum of four-digit elements S 4 = 6666 ( 1 + 3 + 5 + 7 ) = 106656 S_4 = 6666(1+3+5+7) = 106656 .

Therefore the sum of all elements of set S S , S a l l = S 1 + S 2 + S 3 + S 4 = 16 + 528 + 10656 + 106656 = 117856 S_{\rm all} = S_1 + S_2 + S_3+S_4 = 16 + 528 + 10656+106656 = \boxed{117856} .

Hongqi Wang
Nov 16, 2020
  • 1 digit: S 1 = 1 + 3 + 5 + 7 = 16 S_1 = 1 + 3 + 5 + 7 = 16

  • 2 digits: each digit appears 3 times at each place, so S 2 = 3 ( 10 + 1 ) S 1 = 33 S 1 \\ S_2 = 3 \cdot (10+1) \cdot S_1 = 33 \cdot S_1

  • 3 digits: each digit appears 6 times at each place, so S 3 = 666 S 1 \\S_3 = 666 \cdot S_1

  • 4 digits: each digit appears 6 times at each place, so S 4 = 6666 S 1 \\S_4 = 6666 \cdot S_1

S = i = 1 4 S i = 16 × ( 1 + 33 + 666 + 6666 ) = 117856 \therefore \sum S = \sum\limits_{i=1}^4 S_i \\= 16 \times (1 + 33 + 666 + 6666) \\= 117856

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...