Formation and evolution of the Solar System in turn far closer to the Sun when they formed (most likely in the range of 15–20 AU), and in 50% of simulations ended up opposite locations, with Uranus farther from the Sun than Neptune. According to the Nice model, after the formation of the Solar System, the orbits of all the giant planets continued to change slowly, influenced by their interaction with the large number of remaining planetesimals. After 500–600 million years (about 4 billion years ago) Jupiter and Saturn fell into a 2:1 resonance: Saturn orbited the Sun once for every two Jupiter orbits. This resonance created a
Stability of the Solar System essentially the distance from sun to earth). These are now known as the Kirkwood gaps. Some asteroids were later discovered to orbit in these gaps, but their orbits are unstable and they will eventually break out of the resonance due to close encounters with a major planet. Another common form of resonance in the Solar System is spin–orbit resonance, where the period of spin (the time it takes the planet or moon to rotate once about its axis) has a simple numerical relationship with its orbital period. An example is our own Moon, which is in a 1:1 spin–orbit resonance