The distribution of earthquakes