Genetics, Dna, Ancestry, Simulation, Python.
formula for which ancestor would be the first (from the left), in a given generation, to be able to pass X-DNA to a female descendant. Then I noticed that the number of ancestors, as shown by the boxes with color in Figure 1, followed the pattern 2, 3, 5, 8, etc. I decided to investigate a little