Let's say we have a number of divisors N. And I want to find a minimum numberthat has N divisors.
My algorithm
- I found prime numbers (pm = [2,3,5,7, ..])
- I found N prime coefficients (N = 12, p = [2,2,3], inverse p rp = [3, 2, 2])
- number * =
pm[i]^(rp[i]-1), i = 1 ... length of simple coefficients
For N = 12, the answer 60 = 2^(3-1) * 3^(2-1) * 5^(2-1)
But for the number 243, my algorithm gives the wrong answer (5336100 - but this is not the minimum number that has 243 divisors). The expected number 2822400.
Where is my fault? Any literature?
source
share