Orbits in what sense of the word? There isn't an action mentioned. If you mean though the orbit in the sense of say dynamics (i.e. iteratives of the function) then it's pretty easy to see that if and only if if and only if where is the residue class modulo five. Does that help?