Set A consists of n = 1 0 0 0 0 distinct real numbers. The smallest and the next smallest elements of A are 1 3 and 3 1 , respectively. You are free to choose the other 9 9 9 8 elements of A . Define A + A = { a i + a j ∣ 1 ≤ i , j ≤ n } , which is the set of all pairwise sums of numbers from A . For example, for A = { 3 1 , 1 3 } , A + A = { 2 6 , 6 2 , 4 4 } and ∣ A + A ∣ = 3 .
Among all the sets that satisfy the above properties, let the set A ∗ minimize the cardinality of the pairwise sums ∣ A ∗ + A ∗ ∣ . Define C = ∣ A ∗ + A ∗ ∣ and S = a ∈ A ∗ ∑ a . Find C + S − 1 .
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.
@Abhishek Sinha My way provides more insight into what is happening. :P
Log in to reply
Well, proof by induction progresses along (almost) the same line. In my opinion, establishing that the optimal sequence is in AP is slightly cleaner by induction, as there we have to worry about the last term only.
Log in to reply
I agree that the first part is obvious by induction, because we have the additional terms a n + a n + 1 and a n + 1 + a n + 1 .
However, the second part is not obvious to me. For example, I do not see how to conclude that a 1 + a n + 1 = a 2 + a n without using the chain to force the position. From the phrase of "we have to worry about the last term only", are you assuming that the "best case scenario for P n + 1 must arise from the best case scenario for P n ?
Log in to reply
@Calvin Lin – No assumption- the whole scenario follows right from induction. First, it is enough to consider only sorted sets A . Assume the result to be true for some n . Since at least two new elements are added to the pairwise sum-set, it follows that if the sum-set for P n + 1 contains 2 ( n + 1 ) − 1 elements, then the sum-set for P n must contain 2 n − 1 elements. Thus, by induction assumption, P n is already in A.P.
Log in to reply
@Abhishek Sinha – Ah nice. I see how that works.
I still stand by "my solution provides more insight". We're using the restriction on the number of values to help us determine which terms are equal.
Let's agree to disagree :)
I think its easier to see with induction
I am only posting a hint for now. Show that the following two results hold:
Proposition 1: A ∗ + A ∗ has 2 n − 1 elements.
Proposition 2: The sorted elements of A ∗ are in A.P.
These results can be proved easily using induction (Hint: Use induction on n after sorting the set A ), and left as an exercise.
From the above propositions, it follows that common difference of the A.P. is 3 1 − 1 3 = 1 8 , with the first term equal to 1 3 . Hence S = 9 0 0 0 4 0 0 0 , and C = 2 n − 1 = 1 9 9 9 9 . The result follows from it.
Problem Loading...
Note Loading...
Set Loading...
We solve this problem for general n .
Let A = { a 1 , a 2 , … , a n } where the elements are arranged in increasing order. Observe that
a 1 + a 1 < a 1 + a 2 < a 1 + a 3 < … < a 1 + a n − 1 < a 1 + a n < a 2 + a n < … < a n − 1 + a n
Thus, this tells us that there must be at least 2 n − 1 elements in A + A .
Conversely, if there are exactly 2 n − 1 elements in A + A , consider a i + a j . We can similarly create a chain to demonstrate that
a 1 + a 1 < a 1 + a 2 < … < a 1 + a j < a 2 + a j < … < a i + a j < a i + 1 + a j < … < a n + a j < a n + a j + 1 < … < a n + a n
Since there are 2 n + 1 terms in this sequence, it must exactly match the first sequence. We can thus conclude that:
Hence, (skipping a step) we can conclude that a i is an arithmetic sequence.