Heptagonal Spider Web

A spider has its web in the shape of a regular heptagon (seven sides) . A fly is stuck to the web at a vertex that is three edges away from the vertex at which the spider is. The spider can walk freely along the edges of the heptagon. At each vertex, it randomly chooses between the two adjacent edges, with equal probability, then proceeds to walk along the chosen edge. On average, how many edge lengths will the spider walk before getting to the fly?

Inspired by this problem


The answer is 12.

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.

1 solution

Mark Hennings
May 29, 2019

Suppose the spider is walking on the sides of a regular N N -gon. Label the vertices 0 , 1 , 2 , . . . , N 1 0,1,2,...,N-1 , with 0 0 the vertex where the fly is. Let E j E_j be the expected number of edges that the spider has to move along to get to the fly, given that the spider is currently at vertex j j . Then E j = 1 + 1 2 ( E j + 1 + E j 1 ) 1 j N 1 E_j \; = \; 1 + \tfrac12(E_{j+1} + E_{j-1}) \hspace{2cm} 1 \le j \le N-1 with E 0 = E N = 0 E_0 = E_N = 0 . Thus we deduce that E j = F j j 2 E_j = F_j - j^2 for 0 j N 0 \le j \le N where F j = 1 2 ( F j + 1 + F j 1 ) 1 j N 1 F_j \; = \; \tfrac12(F_{j+1} + F_{j-1}) \hspace{2cm} 1 \le j \le N-1 and hence F j = A + B j F_j = A + Bj for 0 j N 0 \le j \le N for some constants A , B A,B . Thus E j = A + B j j 2 E_j = A + Bj - j^2 . Since E 0 = E N = 0 E_0 = E_N = 0 we deduce that E j = j ( N j ) E_j = j(N-j) for 0 j N 0 \le j \le N .

In this case N = 7 N=7 , and we want E 3 = 12 E_3 = \boxed{12} .

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...