Skip to main content
OlympiadHQ

Browse · MathNet

Print

European Mathematical Cup

North Macedonia number theory

Problem

Let denote the number of positive divisors of . For positive integer we define as where are all divisors of the number . We call an integer almost perfect if . Find all almost perfect numbers.
Solution
Alternative way to define is Let be the prime factorization of . We have . We prove the function is multiplicative, in particular, given coprime we have . Using are coprime for the second inequality and the fact that function is multiplicative we get: If we have . We note that divisors of are , so Combining this with the multiplicativity result for we deduce . We now prove that for primes and provided we have by induction on . As a basis for and . For the step it is enough to notice that in both cases. Similarly we can prove for that provided . By explicitly checking the remaining cases and and we conclude for all and for all and . Assuming we would have so the above considerations imply that only possible prime divisors are 2,3. If the only possible solution is . If we have and and which give 4 cases to check giving the other 2 solutions .

---

Alternative solution.

We hereby present one similar but different solution which does not use a lot of properties of the function . Firstly, we will prove the following lemma: Lemma. For any positive integer and prime we have The equality holds if and only if . Proof. For every integer we have that the set of divisors of the number is the union of the following two sets: set of divisors of set of divisors of multiplied by . Also those two mentioned sets are disjoint if and only if (if we have that are disjoint, then it is obvious that none of the divisors of are in both sets; if they are not coprime, then the number belongs to both sets). This is why we have and In both inequalities equality holds if and only if sets from before are disjoint, i.e. when .

Also, we simply see that . Notice that if for some positive integer we have , then for every we have . Consequently, if , then for every odd we have . Because of this, we will introduce new terms. Number is nice multiple of if and is odd number. Analogously, we define nice divisor. Our statement from above is: if for some we have , then neither of its nice multiplies is almost perfect number. Our strategy will be the following: check the cases of the small numbers and see ratio of numbers and . When we have that , conclude that there are not almost perfect numbers among their nice multiplies. With formula for conclude that for sufficiently big (when this is enough to conclude that there are no more almost perfect numbers. By induction, it is simple to prove that for . Thus, there are no almost perfect numbers of the form , where and is odd, since they all have as their nice divisor. We only have to check the numbers of the form , where and is odd. First case: For any odd prime we have . From that we see that is solution. Moreover, we do not have any more solutions: if some odd number has a prime divisor different from 3, since this number can not be almost perfect number; if it is a power of 3 bigger than 3, since , there are no more solutions as well (9 is nice divisor of every power of 3 bigger that 3). Second case: . For any odd prime we have . If then we have , so for all almost perfect numbers of the form number has to have prime divisors 3 and/or 5. We directly see that neither 6 or 10 is almost perfect. SO, in this case, almost perfect number has to be a nice divisor of the form or . For we have another solution, in other two cases we have inequality . If we want to seek new solution in this case, since they cannot be nice multiplies of 30 and 50, the only possibility is that almost perfect number has nice divisor . But we have (equality case in lemma) that . So, there are no more solutions in this case. Third case: For any odd prime we have . If then we have , so for all almost perfect numbers of the form number has to have prime divisors 3 and/or 5. We directly see that neither 12 or 20 is almost perfect. So, in this case, almost perfect number has to have a nice divisor of the form or . For we have another solution, in other two cases we have inequality . If we want to seek new solution in this case, since they cannot be nice multiplies of 60 and 100, the only possibility is that almost perfect number has nice divisor . But we have (equality case in lemma), that . So, there are no more solutions in this case. Fourts case: For any odd prime we have . Similarly to other cases, we only observe candidates of the form . Number 8\cdot 3 is not almost perfect, all other candidates have nice divisor 8\cdot 9. But, we have . As we always concluded, we do not have any new solutions. So all almost perfect numbers are 3,18,36.
Final answer
3, 18, 36

Techniques

τ (number of divisors)Greatest common divisors (gcd)Factorization techniques