The frequency of the dominant and recessive alleles in a population will remain constant from generation to generation provided certain conditions are met:
large population
random mating
no mutations
no immigration and emigration
no natural selection
→ Hardy-Weinberg equilibrium