Coding Challenge · ADVANCED
At a city festival, organizers must arrange a row of booths, each with a unique positive integer size. The total length of the row must be exactly N units. For aesthetic reasons, no two adjacent booths can have sizes that share a common divisor greater than 1. Given N, return the number of distinct ways to arrange the …