Eratosthenes, then thirty years old, accepted Ptolemy's invitation and traveled to Alexandria, where he lived for the rest of his life.