to some intermediate vertex , and edge from to . By the product rule for counting, the number of such paths is the product of the number of paths of length r from . to. namely, b, and the number of edges from . to .namely, a'' when these products are added for all possible intermediate vertices .. the desired result follows by the sum rule for counting