What is the smallest positive integer that has precisely 180 positive divisors ?
Note : Please include a proof that the value you found is indeed the lowest.
This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.
Relevant wiki: Number of Factors
Using the divisor count formula, the number n = p 1 e 1 p 2 e 2 p 3 e 3 … has ( 1 + e 1 ) ( 1 + e 2 ) ( 1 + e 3 ) … divisors. (Note that e 1 , e 2 , e 3 , … may be zero, in which case the corresponding 1 + e 1 , 1 + e 2 , 1 + e 3 , … are 1 and thus don't contribute anything to the product.) In order to have 180 divisors, we need 1 + e 1 , 1 + e 2 , 1 + e 3 , … to multiply to 180. If I'm not mistaken, there are 26 such ways, ignoring order and ignoring 1s:
(The only way I can think of to find these is by careful case-by-case analysis.)
Now, given a product 1 8 0 = ( 1 + e 1 ) ( 1 + e 2 ) ( 1 + e 3 ) … where e 1 ≥ e 2 ≥ e 3 ≥ … , we'd like to find p 1 , p 2 , p 3 , … that makes the resulting number the smallest. It's clearly better to keep p 1 < p 2 < p 3 < … . One simple way to realize this is that if for some i , j where i < j , we have p i > p j , then swapping them will multiply the number by p i e j − e i p j e i − e j = ( p i p j ) e i − e j . Because e i ≥ e j , the exponent is nonnegative. Because p i > p j , the base is less than 1 (and positive). Thus this multiplier is not greater than 1, and so the original unswapped number cannot be the minimum; at best, it's tied for the minimum, and at worst, swapping will give a smaller result. So we can assume p i < p j for all i , j where i < j . In other words, p 1 , p 2 , p 3 , … are the prime numbers in that order; p 1 = 2 , p 2 = 3 , p 3 = 5 , … .
Now, we can compute the minimum number given by each product. For example, take the product 1 0 ⋅ 3 ⋅ 3 ⋅ 2 . Then 1 + e 1 = 1 0 , 1 + e 2 = 3 , 1 + e 3 = 3 , 1 + e 4 = 2 , or in other words, e 1 = 9 , e 2 = 2 , e 3 = 2 , e 4 = 1 . Thus the number given by this product is 2 9 ⋅ 3 2 ⋅ 5 2 ⋅ 7 1 = 8 0 6 4 0 0 .
By computing each of the 26 possible smallest numbers, we obtain 26 candidates; simply pick the smallest. In this case, it happens with the last product: 2 4 ⋅ 3 2 ⋅ 5 2 ⋅ 7 1 ⋅ 1 1 1 = 2 7 7 2 0 0 .
Note that we do need figuring out at least some of the products; we can't take shortcuts. For example, saying "assign the largest prime factor to the smallest base, then the next largest prime factor to the next smallest base, and so on" doesn't work, because with a product of 8, it would give 2 1 ⋅ 3 1 ⋅ 5 1 = 3 0 and not 2 3 ⋅ 3 1 = 2 4 . Even if we modify "smallest base" to "smallest base raised to its current exponent" (so that in the above case, the last 2 will get assigned to 2 2 = 4 instead of 5 1 = 5 ), we will still stumble for a product of 24, where 2 2 ⋅ 3 1 ⋅ 5 1 ⋅ 7 1 = 4 2 0 is not the optimal solution; 2 3 ⋅ 3 2 ⋅ 5 1 = 3 6 0 is. That requires us to put the factor 3 to base 3 and not base 2.