Example 1: first cousins
First cousins share two grandparents. Each grandparent sits two generations from parent 1 and two generations from parent 2. Each path contributes (1/2)5, or 1/32.
Two grandparents produce 1/32 + 1/32 = 1/16. The offspring F equals 0.0625, or 6.25%.
