Find all positive integers satisfying both of the following conditions simultaneously:
(a) the number of positive divisors of is not a multiple of 8;
(b) for all integers , we have
Problem 626
Official solution
The answer is or any prime. We break this down into the following four steps.
1. has no square factor
Proof: If , take , then but , a contradiction.
2. or , where and are primes
Proof: Since has no square factor, must be of the form , hence the number of its divisors is . But since the number of its divisors is not divisible by 8, we must have , as claimed.
3. cannot be of the form
Proof: Without loss of generality assume , and take to be a primitive root of (that is, the smallest positive integer such that ). Based on , by minimality, we must have , hence
which contradicts the assumption that .
4. Both and satisfy the conditions of the problem
Proof: is obvious, and is Fermat's Little Theorem.