The user-friendly version of this content is available here.

The following content is copyright (c) 2009-2013 by Goods of the Mind, LLC.

This problem trains for: AMC-8, AMC-10, AMC-12, AIME.

What is the difference between the smallest even number and the smallest odd number that have 18 distinct positive divisors?

98 can be written as any of the following products:

equation

equation

equation

Therefore, the number we are looking for may have any of the following prime factorizations:

equation

equation

equation

The smallest numbers with such factorizations are the ones with the smallest prime factors at the highest exponents and larger primes at smaller powers. Also, one the numbers must be even, the other must be odd.

Out of the candidates for the even number:

equation

equation

equation

it is quite obvious that the first one is the smallest.

Similarly, for the odd candidates:

equation

equation

equation

the smallest one is the first.

The difference that is asked for is:

equation