Only 500 years or better through the dark age of the Galactic Empire?
The Seldon Plan:
1. Start a foundation.
2. Locate it at the outer rimes of the civilised galaxy.
3. Implement a technocratic cult governed by a dynasty of priests.
4. Engage in psychohistorical research for envisioning future risks.