N is made only from the primes 3, 5, 7 and 11, each appearing at least once, and its total number of factors is 32. Writing \(N = 3^a5^b7^c11^d\), the factor count formula \((a+1)(b+1)(c+1)(d+1) = 32\) has to hold, with a, b, c, d each at least 1.
Since 32 breaks down as \(2^5\), and we need four numbers, each at least 2, multiplying to give 32, let's list out the only way this split can happen:
So exactly one of a, b, c, d equals 3, since 4 - 1 = 3, and the rest equal 1, since 2 - 1 = 1. This exponent of 3 can be handed to any one of the four primes, giving four possible values of N. Since we want the biggest and smallest of these four, we just need to try putting the exponent 3 on the biggest prime, 11, and on the smallest prime, 3:
| Prime getting exponent 3 | Resulting N |
|---|---|
| 3 | \(3^3 \times 5 \times 7 \times 11 = 27 \times 385 = 10,395\) |
| 11 | \(3 \times 5 \times 7 \times 11^3 = 105 \times 1331 = 1,39,755\) |
Giving the exponent 3 to a bigger prime always produces a bigger N, and giving it to the smallest prime always produces the smallest N, so the other two combinations, exponent 3 on 5 or on 7, do not even need checking; they land strictly between these two values.
Let's summarize:
The difference is 1,39,755 - 10,395 = Rs. 1,29,360, which is the price money Harsha won.