The Beetle's Round Trip

A beetle sits on corner A A of a square picture frame and crawls only along the frame's edges. Each minute it walks to one of the two adjacent corners, chosen with probability 12 \frac{1}{2} each, and every edge takes exactly one minute. On average, how many minutes pass before the beetle first returns to corner A A ?

Answer

Free accounts unlock one worked solution a day. Pro includes every answer.