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
Jupiter trojan Jupiter trojans formed in the same part of the Solar System as Jupiter and entered their orbits while it was forming. The last stage of Jupiter's formation involved runaway growth of its mass through the accretion of large amounts of hydrogen and helium from the protoplanetary disk; during this growth, which lasted for only about 10,000 years, the mass of Jupiter increased by a factor of ten. The planetesimals that had approximately the same orbits as Jupiter were caught by the increased gravity of the planet. The capture mechanism was very efficient—about 50% of all remaining planetesimals were trapped. This