A Neurotic Bug

Let A , B , C A, B, C and D D be the vertices of a regular tetrahedron, each of whose edges measures 1 meter. A bug, starting from vertex A A , observes the following rule:

At each vertex it chooses one of the three edges meeting at that vertex, each edge being equally likely, and crawls along that edge to the vertex at its opposite end.

Suddenly the bug remembers that it has left its antenna at A A .

Find the probability that the bug is at vertex A A when it has crawled exactly 7 meters.

If the probability is the form of p q \dfrac pq , where p p and q q are coprime positive integers, find p + q p+q .


The answer is 911.

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.

2 solutions

Otto Bretscher
Mar 8, 2016

Let us analyze this two-state Markov chain. Our main goal is to find a closed formula for the probability that the bug is at vertex A after having crawled n n meters.

Let p n = 1 4 + d n p_n=\frac{1}{4}+d_n be the probability that the bug finds itself at vertex A A after having traveled n n meters, where 1 4 \frac{1}{4} is the equilibrium state and d n d_n is the deviation from the equilibrium. The probability that the bug isn't at A A after having traveled n n meters is q n = 3 4 d n q_n=\frac{3}{4}-d_n so that p n + 1 = q n 3 = 1 4 d n 3 p_{n+1}=\frac{q_n}{3}=\frac{1}{4}-\frac{d_n}{3} . (The probability is 1/3 that the bug travels from a point other than A A to A A .) Note that d n + 1 = d n 3 d_{n+1}=-\frac{d_n}{3} . Starting from p 1 = 0 = 1 4 1 4 p_1=0=\frac{1}{4}-\frac{1}{4} , we find that d n = ( 1 ) n 4 3 n 1 d_n=\frac{(-1)^n}{4*3^{n-1}} and p n = 1 4 + d n = 1 4 ( 1 + ( 1 ) n 3 n 1 ) p_n=\frac{1}{4}+d_n=\frac{1}{4}\left(1+\frac{(-1)^n}{3^{n-1}}\right) In particular, we have p 7 = 182 729 p_7=\boxed{\frac{182}{729}} .

For full disclosure: I copied this solution from here , where the same problem was posed.

I see. :) Yea, this is a popular problem indeed.

Soumava Pal - 5 years, 3 months ago

I think in the context of this problem, you want to change "minutes" to "meters" - just 3 spots.

Bob Kadylo - 5 years, 3 months ago

Log in to reply

Thanks! That's what happens when you cut and paste old solutions ;)

Otto Bretscher - 5 years, 3 months ago
Soumava Pal
Mar 8, 2016

For n = 0,1,2,..., let a n a_n be the probability that the bug is at vertex A after crawling exactly n meters. Then we have the recursive relation a n + 1 a_{n+1} = 1 3 ( 1 a n ) \frac{1}{3}(1 -a_n) , _ _ (1)

because the bug can be at vertex A after crawling n + 1 meters if and only if

(a) it was not at A following a crawl of n meters (this has probability 1 a n 1-a_n ) and

(b) from one of the other vertices it heads toward A (this has probability 1 3 \frac{1}{3} .

Now, since a 0 a_0 = 1 (i.e., the bug starts at vertex A), from the recursive relation (1), we have a 1 = 0 a_1 = 0 , a 2 = 1 3 a_2 = \frac{1}{3} , .... , and the desired probability is p = a 7 = 182 729 a_7 = \frac{182}{729}

Now p=182, q=729 yields p+q=911.

911 is also the 'Emergency' number of many countries including India and the U.S.A. (Hence the title.)

Great solution! Just 1 typo that a 2 = 1 3 a_2 =\dfrac 13 not 2 3 \dfrac 23

neelesh vij - 5 years, 3 months ago

Log in to reply

Oops thanks for pointing out! I am editing it!

Soumava Pal - 5 years, 3 months ago

I live in India but I do not know that number.

Did you know this problem appeared in INMO 2015? Problem 5

Agnishom Chattopadhyay - 5 years, 2 months ago

Log in to reply

when your phone is locked... type 911..... or 112..... these are the only two numbers which when typed on the keypad while the phone is locked... actually appear on the screen.... this is because these are the two emergency numbers available in India.... (this used to happen in the older phones where there were keypads... i dont know about the touch phones....)

P.S. @Agnishom Chattopadhyay

Funny that you should mention that.... I sat for INMO 2015 after qualifying RMO 2014, and I gave the solution to the combinatorics problem, almost same in idea as this one, and I did not use recursion.... because I had wasted 1.5 hours trying to bash the first geometry problem, and I had done only 2 problems fully after 3hours 50 minutes.

When only 10 minutes were left, I looked at the combinatorics problem (I was not much a fan of combinatorics back then, so I left it for the last try) in utter desperation, because I wanted to get a decent score, and guess what!!

I wrote down whatever came to my mind in the next 5 minutes and left it there.

Essentially what I had used was the Principle of Inclusion and Exclusion (PIE) , and I fancy it was the only solution using PIE, because at first my scorecard showed 28, the credit for 2 problems , and after sending it for rechecking, it rose by 14 marks, only 3 marks short of a full credit. And I can only guess that they had overlooked the solution, because there was a calculation mistake where I was off by 10 , and later they found the solution to be correct. In fact, I only realized 3 days later that I had actually given a beautiful solution (shameless self-appraisal :P) by m i s t a k e mistake .

Soumava Pal - 5 years, 2 months ago

Log in to reply

What happens when I dial 911 from India?

Cool story, did you qualify to the training camp?

Agnishom Chattopadhyay - 5 years, 2 months ago

Log in to reply

@Agnishom Chattopadhyay You connect to the emergency center, I think.

Nope, I got 42, the merit list cutoff was 43. And the cutoff for camp was 52. :'(

Soumava Pal - 5 years, 2 months ago

Log in to reply

@Soumava Pal You still have a reason to celebrate.

42 is the answer to life, the universe and everything.

Agnishom Chattopadhyay - 5 years, 2 months ago

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...