Solved problem 62 (cubic permutations).