The cyclic rotations of earth, sun and moon