How to count the number of ways to arrange books on a shelf with restrictions?
I'm studying combinatorics and I'm stuck on a problem involving permutations with restrictions.
Problem: \"How many ways can 5 distinct mathematics books and 3 distinct physics books be arranged on a shelf if all books of the same subject must be together?\"
I know the answer involves , but I want to understand why. Also, what if the restriction changes to \"mathematics books must be together\" but physics books can be anywhere? How does the counting change?
1 answers466 views