Mathematical Food for Thought

 
 
google
yahoo
bing
 
  • About

    Serves a Daily Special and an All-You-Can-Eat Course in Problem Solving. Courtesy of me, Jeffrey Wang.
 
Something To Think About. Topic: Probability. Level: AMC/AIME. April 18th, 2007

Problem: A coin is repeatedly flipped. What is the expected number of flips to get two heads in a row?  n heads in a row?

——————–

I will be out of town for the next four days, so have fun with the problem!

Frogger. Topic: Combinatorics. Level: AIME. March 17th, 2007

Problem: (2007 AIMEI – #6) A frog is placed at the origin on the number line, and moves according to the following rule: in a given move, the frog advances to either the closest point with a greater integer coordinate that is a multiple of  3 , or to the closest point with a greater integer coordinate that is a multiple of  13 . A move sequence is a sequence of coordinates which correspond to valid moves, beginning with  0 , and ending with  39 . For example,  0, 3, 6, 13, 15, 26, 39 is a move sequence. How many move sequences are possible for the frog?

Solution: Let  S_k be the number of possible move sequences starting from  0 and ending up at  k . Clearly it is only interesting when  k is divisible by  3 or  13 . So let’s try to construct the sequence.

 S_0 = 1 is our base case. There is only one way to get to the value  3 from  0 , so  S_3 = 1 . Similarly,  S_6 = 1 ,  S_9 = 1 , and  S_{12} = 1 . But how many ways can we get to  13 ? Well, if we start at any of the previously mentioned numbers there we can go straight to  13 from them (by using the next multiple of  13 move). So

 S_{13} = S_0+S_3+S_6+S_9+S_{12} = 5 .

Now how about  S_{15} ? Well we can get there from either  12 or  13 , so

 S_{15} = S_{12}+S_{13} = 6 .

Continuing, we have  S_{18} = S_{21} = S_{24} = 6 because we can only get to these from the previous multiples of  3 . Then

 S_{26} = S_{13}+S_{15}+S_{18}+S_{21}+S_{24} = 29 .

In this similar fashion, we obtain  S_{27} = S_{30} = S_{33} = S_{36} = 35 and finally  S_{39} = S_{26}+S_{27}+S_{30}+S_{33}+S_{36} = 169 . QED.

——————–

Comment: This is a cool problem, though they could have made it harder to brute force (i.e. have the answer be  500+ ) to really weed out the people who did not actually know how to intelligently count it. It is based on a nice recursive concept known as “dynamic programming,” which is one of the coolest computer science techniques ever. The idea is to use solutions of subproblems to construct the solution to a larger problem, like in this case using smaller values of  S_k to calculate  S_{39} .

——————–

Practice Problem: (2007 AIMEI – #1) How many positive perfect squares less than  10^6 are multiples of  24 ?

Recurrences Are Cool. Topic: Probability/S&S. Level: AIME. February 27th, 2007

Problem: Let  p_k be the probability of choosing a positive integer  n from the interval  [2^{k-1}, 2^k-1] such that the binary representation of  n does not contain three consecutive  1 ’s. Evaluate the infinite summation  p_1+p_2+\cdots .

Solution: First, let  S_k be the number of positive integers  n in the interval  [2^{k-1}, 2^k-1] that do not contain three consecutive  1 ’s in their binary representations – note that it is equivalent to the number of binary strings of length  k starting with a  1 that satisfy that property. By testing, we have  S_1 = 1 ,  S_2 = 2 ,  S_3 = 3 ,  S_4 = 6 ,  S_5 = 11 ,  S_6 = 20 . You can construct a certain type of table to make these calculations easier. We notice that the recurrence  S_{k+3} = S_{k+2}+S_{k+1}+S_k seems to hold, so we want to try and prove this.

We categorize the strings of length  k+3 based on the last occurence of  0 . It must either be in the last, second to last, or third to last spots. If it is in the last spot, the string is  \text{blah}0 where  \text{blah} has length  k+2 so there are  S_{k+2} of those. Similarly, the other possibilities are  \text{blah}01 or  \text{blah}001 , where the  \text{blah} ’s have length  k+1 and  k , respectively, giving the recurrence. Now it remains to sum it.

We want to evaluate  \displaystyle \sum_{k=1}^{\infty} p_k = \sum_{k=1}^{\infty} \frac{S_k}{2^{k-1}} since there are  2^{k-1} binary strings of length  k that begin with  1 .

Luckily, we know a cool way to evaluate recurrences over a geometric sequence. Let  \displaystyle S = \sum_{k=1}^{\infty} \frac{S_k}{2^{k-1}} . Then

 \displaystyle 2S = 2S_1+\sum_{k=1}^{\infty} \frac{S_{k+1}}{2^{k-1}}

 \displaystyle 4S = 4S_1+2S_2+\sum_{k=1}^{\infty} \frac{S_{k+2}}{2^{k-1}}

 \displaystyle 8S = 8S_1+4S_2+2S_3+\sum_{k=1}^{\infty} \frac{S_{k+3}}{2^{k-1}} .

Notice, now that if we take  S = 8S-4S-2S-S a lot of terms cancel due to the recurrence. In fact, all of the summations do! So

 \displaystyle S = (8S_1+4S_2+2S_3)-(4S_1+2S_2)-2S_1+ \sum_{k=1}^{\infty} \frac{S_{k+3}-S_{k+2}-S_{k+1}-S_k}{2^{k-1}}

 S = 2S_1+2S_2+2S_3 = 12 .

QED.

——————–

Comment: Both parts of this problem are pretty classical. The first, finding a recurrence for a string satisfying a certain property, and the second, evaluating an infinite summation of the terms of a sequence divided by a geometric series. These two techniques are very useful, however, in approaching many problems. It would not be fun to solve a problem and get to the last step only to find that you do not know how to evaluate the summation to get the final answer.

——————–

Practice Problem: Evaluate  \displaystyle \sum_{k=1}^{\infty} \frac{F_k}{n^k} , where  n > 1 is a positive integer and  F_k is the Fibonacci sequence (i.e.  F_0 = F_1 = 1 and  F_{k+1} = F_k+F_{k-1} for all positive integers  k ).

Mean. Topic: Algebra/Probability & Combinatorics/Calculus. Level: Olympiad. February 4th, 2007

Problem: (1983 Canada – #5) Show that the geometric mean of a set  S of positive numbers equals the geometric mean of the geometric means of all non-empty subsets of  S . [Reworded]

Solution: Let  S = \{a_1, a_2, \ldots, a_n\} , so the geometric mean is  (a_1a_2 \cdots a_n)^{\frac{1}{n}} . We will show that the geometric mean of the geometric means of all non-empty subsets of  S is equivalent to this. It suffices to show it is true for an arbitrary  a_i . Consider dividing the subsets of  S that contain  a_i into groups based on the number of elements it contains. We will count how many of them there are:

 1 -element subsets containing  a_i – clearly just the set  \{a_i\} . There is only  1 ;

 2 -element subsets containing  a_i – the set  \{a_i, a_j\} for any  j \neq i . There are  (n-1)C1 of these;

 3 -element subsets containing  a_i – there are  (n-1)C2 of these.

It’s pretty clear that if we want a  k -element subset containing  a_i we are free to choose the other  k-1 elements from the remaining  n-1 elements of  S . If we take the geometric mean of these subsets, however, we find that

 1 -element subsets give a full power of  a_i ;

 2 -element subsets give a  \frac{1}{2} power of  a_i ;

 3 -element subsets give a  \frac{1}{3} power of  a_i ;

and so on. So when we multiply these all together, we get an exponent of

 \displaystyle 1+(n-1)C1 \cdot \frac{1}{2}+(n-1)C2 \cdot \frac{1}{3}+ \cdots +(n-1)C(n-1) \cdot \frac{1}{n} = \sum_{k=1}^n \frac{1}{k} \cdot (n-1)C(k-1) .

It remains to evaluate this sum, but we can do that through generating functions. Since  \displaystyle (1+x)^{n-1} = \sum_{k=1}^n (n-1)C(k-1) \cdot x^{k-1} , we integrate both sides to get

 \displaystyle \frac{(1+x)^n}{n} = C+\sum_{k=1}^n \frac{1}{k}(n-1)C(k-1) \cdot x^k .

Using  x = 0 , we obtain  C = \frac{1}{n} , so  \displaystyle \frac{(1+x)^n-1}{n} = \sum_{k=1}^n \frac{1}{k}(n-1)C(k-1) \cdot x^k .

Finally, by the substitution  x = 1 , we get the desired summation:

 \displaystyle \sum_{k=1}^n \frac{1}{n} \cdot (n-1)C(k-1) = \frac{2^n-1}{n} .

So prior to the last geometric mean, we have  (a_i)^{\frac{2^n-1}{n}} , but we know that there are  2^n-1 non-empty subsets of  S , which means the last geometric mean is a power of  \frac{1}{2^n-1} , and we have

 \left(a_i^{\frac{2^n-1}{n}}\right)^{\frac{1}{2^n-1}} = (a_i)^{\frac{1}{n}} ,

the same power as the original geometric mean we computed. QED.

——————–

Comment: A very nice problem because it branched together several aspects of mathematics all into a single problem, which is always cool. There is probably a non-calculus method of evaluating that sum, but basically any time you see a sum like that you can use generating functions and then apply derivatives/integrals to make it what you want. Apparantly a symmetry argument can also be made, but that’s probably just the lazy way to do this problem…

——————–

Practice Problem: (1983 Canada – #4) Given an arbitrary prime  p , show that we can find infinitely many positive integers  n such that  2^n-n is a multiple of  p .

Guess What? Topic: Probability/Sets. Level: AIME/Olympiad. January 11th, 2007

Problem: (2002 Putnam – B4) An integer  n , unknown to you, has been randomly chosen in the interval  [1, 2002] with uniform probability. Your objective is to select  n in an odd number of guesses. After each incorrect guess, you are informed whether  n is higher or lower, and you must guess an integer on your next turn among the numbers that are still feasibly correct. Show that you have a strategy so that the chance of winning is greater than  2/3 .

Solution: We first prove that, in the interval  [1, 3k] , we can guess with a strategy that allows us to get the desired number in an even number of guesses with  \frac{2}{3} probability. This is easy by induction.

Base case:  [1,3] . Pick  2 . If  n = 2 , it’s an odd number, but if  n \neq 2 , we can get it in the subsequent guess. So there is a  \frac{2}{3} chance.

Induction step: Suppose it’s true for the interval  [1,3k] . We want to show it is true for the interval  [1,3k+3] . Start by choosing  3k+2 . If  n = 3k+2 , it’s an odd number of guesses, but if  n = 3k+3 , it’s even. Then guess  3k+1 (if we find that  n < 3k+2 ) on the second guess. So if  n = 3k+1, 3k+3 , we can get it in an even number of guess. If we find that  n < 3k+1 , it's just choosing from the interval  [1,3k] in an even number of guesses, so by the inductive hypothesis this is  \frac{2}{3} . Hence the probabability in the interval  [1, 3k+3] is

 P(n=3k+3)+P(n=3k+1)+P(n&lt;3k+1) \cdot P(\text{even # of guesses}) = \frac{1}{3k+3}+\frac{1}{3k+3}+\frac{3k}{3k+3} \cdot \frac{2}{3} = \frac{2}{3}

completing the induction.

So now we have the interval  [1, 2002] . Choose  2002 . If  n = 2002 , we're done in an odd number of guesses. Otherwise, we want to guess  n which is in  [1,2001] = [1,3 \cdot 667] in an even number of guesses. By the lemma above, the probability of this is  \frac{2}{3} .

Therefore, the total probability is  P(n = 2002)+P(n&lt;2002) \cdot P(\text{even # of guesses}) = \frac{1}{2002}+\frac{2001}{2002} \cdot \frac{2}{3} = \frac{1335}{2002} > \frac{2}{3} , as desired. QED.

——————–

Comment: This was a pretty neat problem. The way I figured out the solution was by an interesting recursion that find the best strategy for  [1,m] based on optimizing the best strategies for  [1,k] with  k < m in trying to get an even and odd number of guesses. The pattern revealed the first lemma, which lead directly to the solution. It seems like some of the later problems on the test were a little easier than the earlier problems.

——————–

Practice Problem: (2002 Putnam – A3) Let  n \ge 2 be an integer and  T_n be the number of non-empty subsets  S of  \{1, 2, \ldots, n\} with the property that the average of the elements of  S is an integer. Prove that  T_n-n is always even.

Google

 

 
 
free web counters
Etronics