So, let's consider a fictional triploid species (that is, with three pairs of chromosomes instead of two).
Females of that species can either produce haploid eggs, like we do, or diploid eggs.
Males only produce haploid sperm.
So we've something like this
Code: Select all
Male Female
XYZ ABC
Sperm Egg
X A
Y B
Z C
AB
BC
CA
- diploid offspring (haploid sperm + haploid egg): XA, XB, XC, YA, YB and so on.
- triploid offspring (haploid sperm + diploid egg): XAB, XBC, YAB, and so on.
Now, I've got a solution using simple brute force and checking all possible combinations... But I wonder if there is a more elegant solution to that problem? (Ideally, I'd like to figure out a formula that I could generalize -- it'd be less error prone and I could try and check different scenarios with different numbers of chromosomes)