Mathematics, genetics and evolution