Let be a positive integer, be the number of positive divisors of of the form and be the number of positive divisors of of the form , where is a nonnegative integer. Find all positive integers such that and have different parity.
Problem 1765
Official solution
Let where for are distinct prime numbers. If is a divisor of of the form , then is a divisor of (in other words, is not divisible by or by ). Also, all divisors of are of the form . If and are of different parity then is odd. Therefore, the number has an odd number of divisors and since the number of divisors equals we conclude that is a perfect square. Hence, .