Consider the multiplication of any two distinct integers chosen from 1 to 100 inclusive. Define set S denote the set which contains all such numbers (not necessarily distinct).
What is the sum of all the numbers in set S ?
Details and Assumptions :
Order is irrelevant, ( 1 , 4 ) and ( 4 , 1 ) count as 1 combination. Also, the integers chosen within a pair have to be unequal.
You might want to use a calculator as the calculation is large.
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.
There's an alternative approach that can simplify the work by a lot.
Hint: Consider the algebraic expansion of ( a 1 + a 2 + … + a n ) 2 . Do you see the resemblance if I substitute a 1 = 1 , a 2 = 2 , … a n = 1 0 0 ?
Bonus question : Can you solve the question if the problem statements begins with "Consider the square of the multiplication of.." instead?
1·1 | 1·2 | ... | 1·99 | 1·100 |
2·1 | 2·2 | ... | 2·99 | 2·100 |
3·1 | 3·2 | ... | 3·99 | 3·100 |
⋮ | ⋮ | ... | ⋮ | ⋮ |
100·1 | 100·2 | ... | 99·100 | 100·100 |
We want the sum of the bold products, which lie under the diagonal.
Let's sum everything, subtract the sum of the diagonal and divide by 2.
The whole sum is ( 1 + 2 + ⋯ + 1 0 0 ) ⋅ ( 1 + 2 + ⋯ + 1 0 0 ) = 5 0 5 0 2 .
The sum of the diagonal is 1 2 + 2 2 + ⋯ + 1 0 0 2 = 3 3 8 ′ 3 5 0 .
Answer is then 2 ( ∑ i = 1 1 0 0 i ) 2 − ∑ i = 1 1 0 0 i 2 = 2 5 0 5 0 2 − 3 3 8 ′ 3 5 0 = 1 2 ′ 5 8 2 ′ 0 7 5 .
I used the well known formulas:
∑ i = 1 n i = 2 n ( n + 1 ) and ∑ i = 1 n i 2 = 6 n ( n + 1 ) ( 2 n + 1 )
First, we establish the set of integers from 1 to 100:
A = { n ∣ n ∈ Z ∧ 1 ≤ n ≤ 1 0 0 } = { 1 , 2 , 3 , 4 , 5 , 6 , . . . , 9 8 , 9 9 , 1 0 0 }
Then, we find the unique combinations by going down the set.
Starting off with 1 , we go down the set finding ( 1 , 2 ) , ( 1 , 3 ) , ( 1 , 4 ) , ( 1 , 5 ) , and so on.
There are 99 of these combinations based on 1 , as ( 1 , 1 ) is rejected.
The two numbers in each combination above are multiplied together and all the 99 products are added to give:
1 ( 2 ) + 1 ( 3 ) + 1 ( 4 ) + . . . + 1 ( 9 9 ) + 1 ( 1 0 0 ) = 1 ( 2 + 3 + 4 + . . . + 9 9 + 1 0 0 ) = 1 [ ( 1 + 2 + 3 + 4 + . . . + 9 9 + 1 0 0 ) − ( 1 ) ] = 1 ( 2 1 0 0 × 1 0 1 − 2 1 × 2 ) = 1 ( 5 0 5 0 − 2 1 × 2 )
Then we move on to 2 , finding ( 2 , 3 ) , ( 2 , 4 ) , ( 2 , 5 ) , ( 2 , 6 ) , and so on, as we move down the set.
There 98 such combinations based on 2 , because ( 2 , 1 ) is already counted for as ( 1 , 2 ) , and ( 2 , 2 ) is rejected.
Similarly, the two numbers in each combination above are multiplied together and all the 98 products are added to give:
2 ( 3 ) + 2 ( 4 ) + 2 ( 5 ) + . . . + 2 ( 9 9 ) + 2 ( 1 0 0 ) = 2 ( 3 + 4 + 5 + . . . + 9 9 + 1 0 0 ) = 2 [ ( 1 + 2 + 3 + 4 + . . . + 9 9 + 1 0 0 ) − ( 1 + 2 ) ] = 2 ( 2 1 0 0 × 1 0 1 − 2 2 × 3 ) = 2 ( 5 0 5 0 − 2 2 × 3 )
There are 99 such "sums of products" as there are "sums of products" based on 1 through 9 9 , but there is no "sum of products" based on 1 0 0 .
We can now generalise the "sum of products" for any element n in the set A:
n [ 5 0 5 0 − 2 n ( n + 1 ) ] = n [ 5 0 5 0 − 2 n 2 + n ] = n [ − 2 n 2 + n − 1 0 1 0 0 ] = − 2 n 3 + n 2 − 1 0 1 0 0 n
Finally, we find the sum of all 99 "sums of products":
∑ n = 1 9 9 − 2 n 3 + n 2 − 1 0 1 0 0 n = 1 2 5 8 2 0 7 5
Problem Loading...
Note Loading...
Set Loading...
If we take the hint for those pairs from 1 to 4 ,
The total sum of possible pairs could be enumerated, that is,
1 × 2
1 × 3
1 × 4
2 × 3
2 × 4
3 × 4
We could simplify this to
1 × ( 2 + 3 + 4 )
2 × ( 3 + 4 )
3 × 4 .
In a similar way, if we have 10 numbers to choose from, we can simplify the sum to be
1 × ( 2 + 3 + . . . + 1 0 )
2 × ( 3 + 4 + . . . + 1 0 )
3 × ( 4 + 5 + . . . + 1 0 )
...
8 × ( 9 + 1 0 )
9 × 1 0 .
Thus, for an integer n , the possible combinations would be
∑ k = 1 n − 1 ( k ∑ j = k + 1 n j )
∑ k = 1 n − 1 k ( 2 n − k ( n + k + 1 ) )
∑ k = 1 n − 1 k ( 2 n 2 − k 2 + n − k )
∑ k = 1 n − 1 ( 2 n 2 k − k 3 + n k − k )
2 1 ∑ k = 1 n − 1 ( k ( n 2 + n ) − k 2 − k 3 )
Using the formula for summation of consecutive integers, squares, and cubes, we simplify this to
2 1 ( 2 ( n 2 + n ) ( n 2 − n ) − 6 ( n − 1 ) ( n ) ( 2 n − 1 ) − 4 ( n − 1 ) 2 ( n ) 2 )
Now, substituting n = 1 0 0 , we get 1 2 5 8 2 0 7 5 .