The Idea
This is equivalent to the problem of finding the least common multiple of numbers from 1 to 20. Stated differently, we are finding the least amount of times we need to include each prime in the prime factorization. For example,
24=16 is the most number of times we have a factor of 2. While 3 has a max power of 2 under 20, and all primes greater than 3 have a maximum power of 1. Therefore, we multiply
24 by
32 and all of the other primes greater than 3 but less than 20 to find the final answer.