Derek's random integers

For positive integers A A and B B , 1 A B 100 1 \leq A \leq B \leq 100 , suppose that A A distinct integers are randomly chosen among the first B B positive integers. Let C C be the smallest integer among the A A integers chosen. How many pairs ( A , B ) ( A,B) are there such that the expected value of C C is greater than or equal to 10 10 ?

This problem is posed by Derek K .


The answer is 378.

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.

4 solutions

Mark Hennings
Aug 26, 2013

The probability that C n C \ge n is the probability that all of the A A numbers chosen lie between n n and B B . Thus P [ C n ] = { ( B A ) 1 ( B + 1 n A ) 1 n B A + 1 0 n > B A + 1 P[C \ge n] \; = \; \left\{ \begin{array}{ll} {B \choose A}^{-1} {B+1-n \choose A} & 1 \le n \le B-A+1 \\ 0 & n > B-A+1 \end{array}\right. Thus E [ C ] = n 1 P [ C n ] = ( B A ) 1 n = 1 B A + 1 ( B + 1 n A ) = ( B A ) 1 n = A B ( n A ) = ( B A ) 1 ( B + 1 A + 1 ) = B + 1 A + 1 \begin{array}{rcl} E[C] & = & \sum_{n\ge1}P[C \ge n] \; = \; {B \choose A}^{-1}\sum_{n=1}^{B-A+1}{B+1-n \choose A} \\ & = & {B \choose A}^{-1}\sum_{n=A}^B {n \choose A} \; = \; {B \choose A}^{-1}{B+1 \choose A+1} \\ & = & \frac{B+1}{A+1} \end{array} Thus we want to know the number of ordered pairs ( A , B ) (A,B) such that B 10 A + 9 B \ge 10A+9 . This is A = 1 9 ( 100 ( 10 A + 8 ) ) = A = 1 9 ( 92 10 A ) = 92 × 9 5 × 9 × 10 = 378 \begin{array}{rcl}\sum_{A=1}^9 (100 - (10A+8)) & = & \sum_{A=1}^9 (92 - 10A) \\ & = & 92\times9 -5\times9\times10 \; = \; 378 \end{array}

Awesome! A welcome sight after all those pages full of my failed attempts XD

Ton de Moree - 7 years, 9 months ago
Wei Liang Gan
Aug 26, 2013

We first prove an identity that will be used later. Consider the number of ways to pick A + 1 A+1 numbers from the first B + 1 B+1 positive integers. If the second smallest number is k k , there are k 1 k-1 choices for the smallest number and ( B ( k + 1 ) A 1 ) \binom{B-(k+1)}{A-1} ways to pick the remaining numbers.

As k k can range from 2 2 to B A + 2 B-A+2 , the total number of ways is ( B + 1 A + 1 ) = k = 2 B A + 2 ( k 1 ) ( B ( k + 1 ) A 1 ) = k = 1 B A + 1 k ( B k A 1 ) \binom{B+1}{A+1} = \sum_{k=2}^{B-A+2} (k-1)\binom{B-(k+1)}{A-1} = \sum_{k=1}^{B-A+1} k\binom{B-k}{A-1}

Now note that ( B A ) P ( C = k ) = ( B k A 1 ) \binom{B}{A}P(C=k)=\binom{B-k}{A-1} since we only need to pick the A 1 A-1 largest numbers from the B k B-k remaining numbers and there are a total of ( B A ) \binom{B}{A} sets.

Hence, ( B A ) E ( C ) = k = 1 B A + 1 ( B A ) k P ( C = k ) \binom{B}{A}E(C)=\sum_{k=1}^{B-A+1} \binom{B}{A}kP(C=k) = k = 1 B A + 1 k ( B k A 1 ) = ( B + 1 A + 1 ) =\sum_{k=1}^{B-A+1} k\binom{B-k}{A-1}=\binom{B+1}{A+1} from the identity above.

Thus E ( C ) 10 ( B + 1 A + 1 ) 10 ( B A ) E(C)\geq 10 \Rightarrow \binom{B+1}{A+1} \geq 10\binom{B}{A} B + 1 A + 1 ( B A ) 10 ( B A ) B + 1 A + 1 10 \Rightarrow \frac{B+1}{A+1}\binom{B}{A} \geq 10\binom{B}{A} \Rightarrow \frac{B+1}{A+1} \geq 10 After rearranging, we obtain 10 A + 9 B 100 10A+9 \leq B \leq 100 so for a given A A we have 100 + 1 ( 10 A + 9 ) = 92 10 A 100+1-(10A+9)=92-10A choices for B B .

For A = 1 , 2 , . . . , 9 A=1,2,...,9 we have 82 , 72 , . . . 2 82,72,...2 choices for B B respectively and any higher will give us no choices for B B so the total number of pairs is 82 + 72 + . . . + 2 = 378 82+72+...+2=\boxed{378}

Nhat Le
Aug 28, 2013

Let f ( a , b ) f(a,b) be the expected value of the smallest number when we choose a a numbers out of the first b b positive integers. We will prove that f ( a , b ) = b + 1 a + 1 f(a,b)=\frac{b+1}{a+1} using mathematical induction.

Given a positive integer a a , let P ( b ) P(b) be the statement f ( a , b ) = b + 1 a + 1 f(a,b)=\frac{b+1}{a+1} for all positive integers b a b \geq a

The base case is b = a b=a (since b b doesn't start from 1 1 , but from a a ). Thus we will have to verify P ( a ) P(a) , which states that f ( a , a ) = a + 1 a + 1 f(a,a)=\frac{a+1}{a+1} . Indeed, if we choose a a numbers from a a numbers, all numbers are guaranteed to be chosen, so the expected value of the smallest number must be 1 1 , which is the same as a + 1 a + 1 \frac{a+1}{a+1} . Thus the base case has been verified.

Next, we perform the inductive step. Assume P ( k ) P(k) is true some integer k a k \geq a . In other words, the expected value for the smallest integer when choosing a a out of the first k k positive integers is k + 1 a + 1 \frac{k+1}{a+1} . We will use this to show that the expected value of the smallest integer when choosing a a out of the first k + 1 k+1 positive integers is k + 2 a + 1 \frac{k+2}{a+1}

Indeed, if we choose a a out of the first k + 1 k+1 integers, there are two cases. In the first case, the largest integer is not chosen. This happens with probability ( k a ) ( k + 1 a ) \frac{\binom{k}{a}}{\binom{k+1}{a}} . Since the largest integer is not chosen, the expected value for this case will just be the expected value when choosing a a out of the first k k integers, or k + 1 a + 1 \frac{k+1}{a+1} .

In the second case, the largest integer is chosen, together with a 1 a-1 other numbers. This happens with probability ( k a 1 ) ( k + 1 a ) \frac{\binom{k}{a-1}}{\binom{k+1}{a}} . The expected value for this is the same as if we choose a 1 a-1 numbers out of the first k k integers, or f ( a 1 , k ) = k + 1 a f(a-1,k)=\frac{k+1}{a}

Hence, we have f ( a , k + 1 ) = ( k a ) ( k + 1 a ) k + 1 a + 1 + ( k a 1 ) ( k + 1 a ) k + 1 a f(a,k+1)= \frac{\binom{k}{a}}{\binom{k+1}{a}} \frac{k+1}{a+1} + \frac{\binom{k}{a-1}}{\binom{k+1}{a}} \frac{k+1}{a}

Doing simplification, we will have ( k a ) ( k + 1 a ) = k a + 1 k + 1 \frac{\binom{k}{a}}{\binom{k+1}{a}} = \frac{k-a+1}{k+1} and ( k a 1 ) ( k + 1 a ) = a k + 1 \frac{\binom{k}{a-1}}{\binom{k+1}{a}} = \frac{a}{k+1} , so

f ( a , k + 1 ) = k a + 1 k + 1 k + 1 a + 1 + a k + 1 k + 1 a f(a,k+1)=\frac{k-a+1}{k+1}\frac{k+1}{a+1} + \frac{a}{k+1}\frac{k+1}{a} f ( a , k + 1 ) = k a + 1 a + 1 + 1 = k + 2 a + 1 f(a,k+1)=\frac{k-a+1}{a+1} + 1 =\frac{k+2}{a+1} , as we desire.

Hence we conclude that the expected value of C C is B + 1 A + 1 \frac{B+1}{A+1}

Thus we want to find all pairs of A A and B B such that B + 1 A + 1 10 \frac{B+1}{A+1} \geq 10 , or B 10 ( A + 1 ) 1 B \geq 10(A+1)-1

When A = 1 A=1 , we have B 10 ( 2 ) 1 = 19 B \geq 10(2)-1=19 , there are 82 82 pairs

When A = 2 A=2 , we have B 10 ( 3 ) 1 = 29 B \geq 10(3)-1=29 , there are 72 72 pairs

When A = 3 A=3 , we have B 10 ( 4 ) 1 = 39 B \geq 10(4)-1=39 , there are 62 62 pairs

When A = 4 A=4 , we have B 10 ( 5 ) 1 = 49 B \geq 10(5)-1=49 , there are 52 52 pairs

When A = 5 A=5 , we have B 10 ( 6 ) 1 = 59 B \geq 10(6)-1=59 , there are 42 42 pairs

When A = 6 A=6 , we have B 10 ( 7 ) 1 = 69 B \geq 10(7)-1=69 , there are 32 32 pairs

When A = 7 A=7 , we have B 10 ( 8 ) 1 = 79 B \geq 10(8)-1=79 , there are 22 22 pairs

When A = 8 A=8 , we have B 10 ( 9 ) 1 = 89 B \geq 10(9)-1=89 , there are 12 12 pairs

When A = 9 A=9 , we have B 10 ( 10 ) 1 = 99 B \geq 10(10)-1=99 , there are 2 2 pairs

When A 10 A\geq10 , we have B 10 ( 11 ) 1 = 109 B \geq 10(11)-1=109 , there are no pairs.

Thus the total number of pairs is 2 + 12 + 22 + 32 + 42 + 52 + 62 + 72 + 82 = 378 2+12+22+32+42+52+62+72+82=\fbox{378}

Alex Wice
Aug 27, 2013

We compute the expected value of C C directly:

E ( A , B ) E(A,B)

= 1 ( B A ) k = 1 k ( B k A 1 ) = \frac{1}{\binom{B}{A}}\sum_{k=1} k\binom{B-k}{A-1}

= 1 ( B A ) j = 1 k = j ( B k A 1 ) = \frac{1}{\binom{B}{A}}\sum_{j=1}\sum_{k=j}\binom{B-k}{A-1}

= 1 ( B A ) j = 1 ( B j + 1 A ) = \frac{1}{\binom{B}{A}}\sum_{j=1} \binom{B-j+1}{A}

= 1 ( B A ) ( B + 1 A + 1 ) = \frac{1}{\binom{B}{A}}\binom{B+1}{A+1}

= B + 1 A + 1 = \frac{B+1}{A+1}

by repeated use of the hockey stick theorem. Then it remains to find all pairs ( A , B ) (A,B) in the required domain with B 10 A 9 B \geq 10A-9 . It turns out to be 2 + 12 + 22 + . . . + 72 + 82 = 378 2 + 12 + 22 + ... + 72 + 82 = \fbox{378}

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...