OFFSET
1,6
COMMENTS
This is a more restricted variant of A163820, inspired by David A. Corneth's suggestion (personal e-mail) for optimizing its computation.
LINKS
Antti Karttunen, Table of n, a(n) for n = 1..179 (based on b-file of A163820 provided by David A. Corneth)
Antti Karttunen, Scheme-program for computing this sequence
FORMULA
EXAMPLE
The proper divisors of 12 are 2, 3, 4, 6, 12. a(12) = 9 because we can find nine permutations of them such that consecutive elements d and e are not coprime (that is, gcd(d,e) > 1) and where no divisor d is ever followed by divisor e such that A007947(d) = A007947(e) and e < d. These nine allowed permutations are (note that 2 must become before 4 and 6 must become before 12):
[2, 4, 6, 3, 12],
[2, 4, 6, 12, 3],
[2, 6, 3, 12, 4],
[2, 6, 4, 12, 3],
[3, 6, 2, 4, 12],
[3, 6, 2, 12, 4],
[3, 6, 12, 2, 4],
[6, 2, 4, 12, 3],
[6, 3, 12, 2, 4].
CROSSREFS
KEYWORD
nonn
AUTHOR
Antti Karttunen, Oct 22 2017
STATUS
approved