← ALL NOTES
Math

2338. Count the Number of Ideal Arrays

An array of length n is ideal if every element is in [1, maxValue] and each element is divisible by the previous one (arr[i] % arr[i-1] == 0). Count ideal arrays of length n, modulo 1e9+7. With n and…

Loading…