Count the Number of Ideal Arrays
Every element divides the next, so an ideal array is a divisor chain stretched by repeats; count chains and choose where repeats go.
Every element divides the next, so an ideal array is a divisor chain stretched by repeats; count chains and choose where repeats go.