Skip to main content
OlympiadHQ

Browse · MathNet

Print

Baltic Way 2023 Shortlist

Baltic Way 2023 number theory

Problem

For integers and , we say that is n-expressible if it can be written as a sum of distinct positive divisors of . The natural number is good if being n-expressible implies being n-expressible for all . Determine for which , both and are good.
Solution
For both versions of the problem, we begin with a lemma which classifies the good numbers in a more compact way.

Note that the largest integer that can be written as a sum of distinct divisors of is the sum of all its positive divisors, denoted by . Hence, a positive integer is good iff all the integers in the interval are -expressible.

Lemma: Classification of Good Integers Let the prime factorization of be , where is positive and the primes are sorted in ascending order, i.e. . Then is good iff for all , .

Proof. The only if direction may be seen from the fact that if we only consider sums of divisors containing the first prime divisors of , , then we can only create sums which are strictly smaller than and if we use any divisor containing a prime divisor not among the first, then the smallest possible sum equals , which yields the desired inequality.

To see that these inequalities are in fact sufficient, let , where , and let us prove by induction that, for all , is a good number.

The base case is easily seen to be good, hence for the induction step, we are given that is good and that , and want to prove that is good, as well.

The sums of distinct positive divisors of may be broken up into different separate sums, where each divisor is put into the group corresponding to how many times the prime divides the divisor . Moreover, if we consider any sum on the form where can be written as a sum of distinct positive divisors of , i.e. , then may be written as a sum of distinct divisors of , since we can split into its corresponding sum of distinct divisors of , none of them being divisible by .

this is essentially writing a number in base , except that we may have more coefficients available than those in the interval . However, the inequality guarantees that we have at least these available.

Hence, to express any number in the interval , we will start by determining the coefficient , which we will put equal to Observe that since and is multiplicative, Hence, and Thus, the remaining number to be expressed lies in the interval , which we know is expressible as as sum of the form by induction, since .

Thus, any number in the interval is expressible, meaning that is good.

The rest of the solution is dedicated to utilizing the Classification of Good Integers, to determine whether various integers are good.

For which is good: We will prove that, for all positive integers is good. Let us write . By virtue of being a factorial, the -s in this product will be the first primes for some . Indeed, if are primes and then for some , which implies and .

To prove that is good, we thus need to verify the inequalities . Note that the product is at least . Thus, it is sufficient to verify that the next prime is in the interval . However, this can be done by the classic observation that for all ,

Therefore, is good for all positive integers .

For which is good: To prove the if direction, we resort to the lemma Classification of Good Integers, and write in the form . Observe that when is even, .

We need to prove that, for all , the inequality holds. For , this is satisfied since , and for , we have , since .

Therefore, , meaning that is indeed good for even .
Final answer
n! is good for all positive integers n. The number n^n is good exactly when n is even or n equals 1. Hence both n! and n^n are good precisely for n even or n = 1.

Techniques

σ (sum of divisors)Prime numbersGreatest common divisors (gcd)