Population dynamics of earthquakes and mathematical modeling