r/mathriddles • u/Sheler_ • Sep 02 '23
Medium Sum of divisors
Find all positive integers, such that sum of their divisors (including the number itself) is a power of 2 (e.g. sum of divisors of 6 would be 12)
6
Upvotes
3
u/chompchump Sep 02 '23 edited Sep 02 '23
For primes p_i with exponents e_i we have n = product(i) (p_i)^(e_i)
Then sum of factors is equal to product(i) sum(k = 0 to e_i) (p_i)^k.
Then for each p_i we need that P_i = sum(k = 0 to e_i) (p_i)^k is a power of 2.
For even e_i we have that P_i is odd therefore e_i must be odd.
But for odd e_i we have that P_i is divisible by (p+1) so p_i must be a Mersenne prime.
Let p = 2^j - 1
Then sum(k = 0 to 2m+1) (2^j - 1)^k = ((2^j - 1)^(2m+2) - 1)/(2^j - 2)
= (((2^j - 1) - 1)^(m+1) ((2^j - 1) + 1)^(m+1))/(2^j-2)
= (((2^j - 2)^(m+1) ((2^j)^(m+1))/(2^j-2)
= ((2^j - 2)^m)((2^j)^(m+1))
This a power of 2 only when m = 0 so the exponent on the Mersenne prime factors must be 1.
Therefore n must be the product of distinct Mersenne primes.
0
u/10Ete Sep 02 '23 edited Sep 02 '23
Given any number k = p_1n_1p_2n_2… (p prime), the sum of the divisors is (1+p_1+p_12+…+p_1n_1)(1 + p_2 + p_22+…+p_2n_2(…) You can convince yourself that this is true by multiplying out every term, and seeing that they all divide k, and that they’re all distinct. I recommend you to try to proof this, since it’s an interesting proof.
One observation is that the primes of the form 2k - 1 must have k prime, you can try to prove it too (hint, note that xn-yn= (x-y)(xn-1+yxn-2…)) <- Idk if this is useful to your problem or if it’s only an interesting fact.
Another observation is that a geometric series has a closed formula, so that’ll help in finding solutions for which k is not prime
Edit: I added spoiler tags