Permutations and Divisors

Let P be a permutation of length n where each value from 1 to n occurs exactly once. A subsequence of P is called good if every element is a divisor of its immediate next element of the subsequence.


This is a companion discussion topic for the original entry at https://toph.co/p/permutations-and-divisors