Sexual and asexual reproduction. Mathematical models