Open sx349 opened 7 months ago
https://pe-cn.github.io/886/
Problem 886 Coprime PermutationsA permutation of ${2,3,\ldots,n}$ is a rearrangement of these numbers. A coprime permutation is a rearrangement such that all pairs of adjacent numbers are coprime.
https://pe-cn.github.io/886/
Problem 886 Coprime PermutationsA permutation of ${2,3,\ldots,n}$ is a rearrangement of these numbers. A coprime permutation is a rearrangement such that all pairs of adjacent numbers are coprime.