MathLabs

Problem 3

For any positive integer n n , let d(n) d(n) denote the number of positive divisors of n n (including 11 and n n itself). Determine all positive integers k k such that d(n2)d(n)=k\frac{d(n^2)}{d(n)}=k for some n n .
Step 6 of 6: Realize every representation
In plain words

Turn the factor representation into an integer.

k=∏i2ai+1ai+1⇒n=∏ipiaik=\prod_i\frac{2a_i+1}{a_i+1}\Rightarrow n=\prod_i p_i^{a_i}
Detailed analysis

Choose distinct primes pi p_i and set n=∏piai n=\prod p_i^{a_i} (omitting any exponent ai=0 a_i=0 if desired). The divisor formula then realizes the chosen product. Thus every positive odd k k occurs, and the answer is precisely all positive odd integers.