Problem:
A rigid motion of a cube can be thought of either as a permutation of its 8 vertices or as a permutation of its 6 sides. Find a rigid motion of a cube that has order 3, and express the permutation that represents it in both ways, as a permutation on 8 elements and as a permutation on 6 elements.
Provide complete and step by step solution for the question and show calculations and use formulas.