2019 Mock AMC 10B Problems/Problem 20
Problem
Define a permutation of the set to be if for all . Find the number of permutations.
Solution
No even numbers can be neighbors, since they are divisible by . This leaves possible sequences for the even numbers to occupy: , , , and .
Case #1: There are cases where the is on the end of a sequence. If so, there is place where the cannot go. Since and are relatively prime to all available numbers, there is no direct restriction on them. The number of cases . ( represents the number of permutations containing next to .)
Case #2: There are cases where the is in the middle of a sequence. If so, there are places where the can go. Since and are relatively prime to all available numbers, there is no direct restriction on them. The number of cases . ( represents the number of permutations containing next to .)
Therefore, the number of factor-hating permutations .