orbit function

Orbits of integers