Let X be a randomly chosen subset of { 1 , 2 , . . . , 2 0 1 7 }. A positive integer n is said to be "good" if both n and n + ∣ X ∣ are elements of X (where ∣ X ∣ denotes the number of elements of X ). Find the expected value of the number of "good" integers.
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.
Suppose that we are choosing subsets of { 1 , 2 , . . . , N } randomly. Let Z be the number of good numbers, and let X j be the random variable which is equal to 1 if j is a good number, and 0 otherwise, for 1 ≤ j ≤ N . Then Z = ∑ j = 1 N X j , so that E [ Z ] = j = 1 ∑ N E [ X j ] = j = 1 ∑ N p j where p j is the probability that j is a good number.
For any 1 ≤ j ≤ N and 0 ≤ k ≤ N , let n k ( j ) be the number of subsets of { 1 , 2 , 3 , . . . , N } of size k for which j is good. Then n k ( j ) = { ( k − 2 N − 2 ) 0 1 ≤ j ≤ N − k o . w 0 ≤ k ≤ N (both j and j + k have to belong to X , and we can choose the other k − 2 elements freely). Thus p j = 2 N 1 k = 0 ∑ N n k ( j ) = 2 N 1 k = 2 ∑ N − j ( k − 2 N − 2 ) = 2 N 1 k = 0 ∑ N − 2 − j ( k N − 2 ) 1 ≤ j ≤ N − 2 with p N − 1 = p N = 0 , and hence E [ Z ] = j = 1 ∑ N p j = 2 N 1 j = 1 ∑ N − 2 k = 0 ∑ N − 2 − j ( k N − 2 ) = 2 N 1 [ j = 0 ∑ N − 2 k = 0 ∑ N − 2 − j ( k N − 2 ) − 2 N − 2 ] = 2 N 1 [ j + k ≤ N − 2 0 ≤ j , k ≤ N − 2 ∑ ( k N − 2 ) − 2 N − 2 ] = 2 N 1 [ k = 0 ∑ N − 2 ( N − 1 − k ) ( k N − 2 ) − 2 N − 2 ] = 2 N 1 k = 0 ∑ N − 2 ( N − 2 − k ) ( k N − 2 ) = 2 N 1 k = 0 ∑ N − 3 ( N − 2 − k ) ( k N − 2 ) = 2 N 1 k = 0 ∑ N − 3 ( N − 2 ) ( k N − 3 ) = 2 N 1 × ( N − 2 ) 2 N − 3 = 8 1 ( N − 2 ) With N = 2 0 1 7 this makes the answer 8 2 0 1 5 = 2 5 1 . 8 7 5 .
Problem Loading...
Note Loading...
Set Loading...
Suppose n is a good number with respect to a set X with k elements, and all the elements of X are chosen randomly from the set { 1 , 2 , . . . , N }
Then n , n + k ∈ X , and so we can subject 2 constraints to the values of k : k ≥ 2 and k ≤ N − n
The remaining k − 2 elements of X can be chosen from the remaining N − 2 elements
Thus, there are ( k − 2 N − 2 ) such sets X , and this gives us for each fixed n , there are ( 0 N − 2 ) + ( 1 N − 2 ) + . . . + ( N − 2 − n N − 2 )
sets such that n is a good number.
Notice that n is at most N − 2 (otherwise the constraints of k will be violated) and at least 1 .
Summing over all possible values of n , we have the total number of good number is S = ( N − 2 ) ( 0 N − 2 ) + ( N − 3 ) ( 1 N − 2 ) + . . . + ( N − 3 N − 2 )
Applying the indentity ( r m ) = ( m − r m ) , we have S = ( N − 2 ) ( N − 2 N − 2 ) + ( N − 3 ) ( N − 3 N − 2 ) + . . . + ( 1 N − 2 )
Adding these, we obtain 2 S = ( N − 2 ) [ ( 0 N − 2 ) + ( 1 N − 2 ) + . . . + ( N − 2 N − 2 ) ] = ( N − 2 ) 2 N − 2
Hence, the expected value of the total number of good numbers is 2 N S = 2 N ( N − 2 ) 2 N − 3 = 8 N − 2
For this particular problem, N = 2 0 1 7 , therefore the required expected value is 8 2 0 1 7 − 2 = 8 2 0 1 5 = 2 5 1 . 8 7 5