Foundation series
10,000 years in the future, all humans in the Galaxy live in an empire, ruled by an Emperor on the planet Trantor. Dr. Hari Seldon, a mathematician , arrives on Trantor to give a talk. He has an idea that the history of the human race can be predicted by mathematics, but the problem is too much for him alone. Seldon can see that the fall of the empire is coming and wants to help preserve the science of humans.