Computer simulations of the galaxy's formation and evolution show that the sun may have originated far from where we find ourselves today. Steve Mirsky reports