Math Prize 2021 Problem 11
Source:
September 19, 2021
Math Prize for Girlsnumber theoryrelatively prime
Problem Statement
Say that a sequence , , , , , , , is cool if
* the sequence contains each of the integers 1 through 8 exactly once, and
* every pair of consecutive terms in the sequence are relatively prime. In other words, and are relatively prime, and are relatively prime, , and and are relatively prime.How many cool sequences are there?