Problem 526 · Medium

Beautiful Arrangement

Count the number of beautiful arrangements where each position i is divisible by the number placed there.

Open the interactive visualisation