Beautiful Arrangement

perm[i] is divisible by i. i is divisible by perm[i].

Last updated