8. To color the eight vertices of the cube with four different colors, such that the two endpoints of the same edge have different colors, there are a total of coloring methods.
Problem 634
Official solution
8. 2652 .
First, color the four points above, with 84 coloring methods. Then consider the four points below, using the principle of inclusion-exclusion, the total number of methods is