31 And Darius the Mede succeeded to the kingdom, being sixty-two years .