Maths Olympiad Prep

Track / Stage 6 / 46 of 400 #1046 of 1964

Problem 1046

National olympiad, first round
Number theory Difficulty 6.0 Prove it

T-4 Let nn be a positive integer. Prove that if the sum of all positive divisors of nn is a perfect power of 2 , then the number of these divisors is also a perfect power of 2 .

This one wants a proof. Work it on paper, then read the official solution and mark yourself. Be honest about it: the record is only any use to you if it is.

Official solution

Solution. Suppose that n=p1s1p2s2pkskn=p_{1}^{s_{1}} p_{2}^{s_{2}} \ldots p_{k}^{s_{k}}, where p1,,pkp_{1}, \ldots, p_{k} are distinct primes and si1s_{i} \geqslant 1 for each ii, and that the sum of all positive divisors of nn, which is given by

(1+p1+p12++p1s1)(1+p2+p22++p2s2)(1+pk+pk2++pksk) \left(1+p_{1}+p_{1}^{2}+\cdots+p_{1}^{s_{1}}\right)\left(1+p_{2}+p_{2}^{2}+\cdots+p_{2}^{s_{2}}\right) \ldots\left(1+p_{k}+p_{k}^{2}+\cdots+p_{k}^{s_{k}}\right)

is a perfect power of 2 . Then each of the factors

fi=1+pi+pi2++pisi f_{i}=1+p_{i}+p_{i}^{2}+\cdots+p_{i}^{s_{i}}

is also a perfect power of 2 greater than 1 and hence both pip_{i} and sis_{i} are odd. Suppose that si>1s_{i}>1. In this case we have

fi=(1+pi)(1+pi2+pi4++pisi1) f_{i}=\left(1+p_{i}\right)\left(1+p_{i}^{2}+p_{i}^{4}+\cdots+p_{i}^{s_{i}-1}\right)

Since fif_{i} has no odd divisor greater than 1 , the even integer si1s_{i}-1 (which is supposed to be positive) must be of the form 4k+24 k+2 and thus we can make another factorization

fi=(1+pi)(1+pi2)(1+pi4+pi8++pisi3) f_{i}=\left(1+p_{i}\right)\left(1+p_{i}^{2}\right)\left(1+p_{i}^{4}+p_{i}^{8}+\cdots+p_{i}^{s_{i}-3}\right)

Consequently, both 1+pi1+p_{i} and 1+pi21+p_{i}^{2} are powers of 2 , hence 1+pi1+pi21+p_{i} \mid 1+p_{i}^{2}, which contradicts to 1+pi2=(1+pi)(pi1)+21+p_{i}^{2}=\left(1+p_{i}\right)\left(p_{i}-1\right)+2 (as 1+pi21+p_{i} \mid 2 is impossible). This means that si=1s_{i}=1 for each ii and thus the number of divisors of nn equals 2k2^{k}.

Note that the above solution can be finished without observing the fact that 1+pi1+p_{i} and 1+pi21+p_{i}^{2} cannot be powers of 2 at the same time. Indeed, repeating the procedure of factorization we get finally

fi=(1+pi)(1+pi2)(1+pi4)(1+pi2i) f_{i}=\left(1+p_{i}\right)\left(1+p_{i}^{2}\right)\left(1+p_{i}^{4}\right) \ldots\left(1+p_{i}^{2_{i}}\right)

hence si=2ti+11s_{i}=2^{t_{i}+1}-1 with some ti0t_{i} \geqslant 0 for each ii and thus the number of divisors of nn equals 2k+t1+t2++tk2^{k+t_{1}+t_{2}+\cdots+t_{k}}. (As we know from the original solution, ti=0t_{i}=0 for each ii.)

Source: NuminaMath-1.5, licensed Apache-2.0. Statement and solution reproduced as published; topic, difficulty and ordering added by this site.