NeuroEducation

Alternating on the Shelf

Difficulty: Medium · Topics: Discrete Mathematics, Combinatorics, Permutations

Four different science-fiction novels and four different classic novels are placed on a straight shelf so that no two novels of the same type are next to each other.

In how many ways can this be done?