The science
The csd (complementary sex determiner) gene decides sex in honeybees. Hemizygous or heterozygous eggs develop as haploid males or diploid females; a fertilised egg that is homozygous at csd becomes a diploid drone that workers remove, leaving the shotgun brood pattern.
Ne = 4 Nm Nf / (Nm + Nf)
copies = max(4, round(2 Ne))
F(t+1) = 1/copies + (1 - 1/copies) F(t)
loss = sum p_i^2 (= F, homozygosity)
Each generation resamples copies gene copies from the current allele frequencies (Wright-Fisher drift), so rare alleles are lost and loss rises towards 100%. With k equally common alleles loss starts at 1/k. Fresh stock injects a new allele with a random share of 12-22%.
Simplifications: no selection on colony fitness, one locus, queens and drones drawn from one pool, and Nm (drone contributors) is an illustrative mapping from the drone-control slider (2 to max(24, 3 lines)). Real csd has many alleles in wild populations and brood loss also depends on mating number; this page is a teaching model, not a breeding forecast.