Hardy-Weinberg: with allele frequencies p = 1 - q and q the genotype frequencies are AA = p², Aa = 2pq, aa = q². If affected (aa) individuals have fitness 1 - s, the next generation has q' = q (1 - s q) / (1 - s q²), then new mutations A→a add μ(1 - q). For a lethal recessive (s = 1, μ = 0) the closed form is q_n = q0 / (1 + n q0), so halving q takes 1/q0 generations; the rarer the allele, the slower it disappears. At mutation-selection balance q̂ ≈ √(μ/s).
Simplifications: infinite random-mating population (no drift), single locus, no back-mutation, no inbreeding, constant selection; modern medicine lowers s for many conditions, which raises q̂. This shows why a population cannot be made "genetically perfect" by selection alone, and why screening and gene therapy act on individuals rather than on allele frequencies. Example frequencies (a recessive condition at about 1 in 2,500 births means q about 0.02) are only typical values.