Let S be the set of natural numbers whose digits are different and belong to the set { 1 , 3 , 5 , 7 } . Calculate the sum of the elements of S .
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 number of single-digit elements n 1 = 4 . Therefore 1 , 3 , 5 , and 7 each appears once. Then the sum of single-digit elements S 1 = 1 + 3 + 5 + 7 = 1 6 .
The number of two-digit elements n 2 = 4 × 3 = 1 2 . Therefore 1 , 3 , 5 , and 7 each appears three times as unit digit and three times as tens digit. Then the sum of two-digit elements S 2 = 3 3 ( 1 + 3 + 5 + 7 ) = 5 2 8 .
The number of three-digit elements n 3 = 4 × 3 × 2 = 2 4 . Therefore 1 , 3 , 5 , and 7 each appears six times as unit, tens, and hundreds digits. Then the sum of three-digit elements S 3 = 6 6 6 ( 1 + 3 + 5 + 7 ) = 1 0 6 5 6 .
The number of four-digit elements n 4 = 4 × 3 × 2 × 1 = 2 4 . Therefore 1 , 3 , 5 , and 7 each appears six times as unit, tens, hundreds, and thousands digits. Then the sum of four-digit elements S 4 = 6 6 6 6 ( 1 + 3 + 5 + 7 ) = 1 0 6 6 5 6 .
Therefore the sum of all elements of set S , S a l l = S 1 + S 2 + S 3 + S 4 = 1 6 + 5 2 8 + 1 0 6 5 6 + 1 0 6 6 5 6 = 1 1 7 8 5 6 .
1 digit: S 1 = 1 + 3 + 5 + 7 = 1 6
2 digits: each digit appears 3 times at each place, so S 2 = 3 ⋅ ( 1 0 + 1 ) ⋅ S 1 = 3 3 ⋅ S 1
3 digits: each digit appears 6 times at each place, so S 3 = 6 6 6 ⋅ S 1
4 digits: each digit appears 6 times at each place, so S 4 = 6 6 6 6 ⋅ S 1
∴ ∑ S = i = 1 ∑ 4 S i = 1 6 × ( 1 + 3 3 + 6 6 6 + 6 6 6 6 ) = 1 1 7 8 5 6
Problem Loading...
Note Loading...
Set Loading...
Let's split S into four subsets: S 4 , S 3 , S 2 , and S 1 according to the length of the numbers. There are 4 ! = 2 4 four-digit numbers, 4 ! = 2 4 three-digit numbers, 4 ∗ 3 = 1 2 two-digit numbers, and 4 one-digit numbers.
I'll calculate the sum of the elements of S by separately summing S k and then combining those four sums. For each k , the sum of S k is the cardinality of 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 (I.e., the average value of S 1 is 4 , the average value of S 2 is 4 4 , the average value of S 3 is 4 4 4 , and the average value of S 4 is 4 4 4 4 .)
This is pretty obvious: for example, for each a b c d ∈ S 4 , ( 8 − a ) ( 8 − b ) ( 8 − c ) ( 8 − d ) is also in S 4 . The average of this pair is 4 4 4 4 . The entirety of S 4 can be partitioned into such pairs. Since the average value in each pair is 4 4 4 4 , the average over the entire set is also 4 4 4 4 .
Thus the sum of S 4 is 2 4 ∗ 4 4 4 4 , the sum of S 3 is 2 4 ∗ 4 4 4 , the sum of S 2 is 1 2 ∗ 4 4 , and the sum of S 1 is 4 ∗ 4 . The grand total is 1 1 7 8 5 6 .