Daily

Random

Practice set

Baltic Way 2011 · Shortlist problem

Number Theory

Find the smallest value of kk with the following property: Among any kk consecutive positive integers there exists a number nn such that the sum of all positive divisors of nn is even.

Change pool

When you’re ready

Review material becomes available with the next Daily.

Review

Topics

Divisibility and factorization · Arithmetic functions

Solutions

Solution

We claim that k=3k = 3. Obviously k=2k = 2 is not enough: the numbers 11, 22 or 88, 99 have odd divisor sums.

Now suppose that the sum σ(n)\sigma(n) of all positive divisors of nn is odd. Consider a decomposition n=2r⋅mn = 2^r \cdot m, where r≥0r \ge 0 and mm is an odd positive integer. Then the set of odd divisors of nn coincides with the set of odd divisors of mm. Hence σ(n)\sigma(n) has the same parity as σ(m)\sigma(m). Also, σ(m)\sigma(m) has the same parity as the number of divisors of mm, since all of them are odd. But the divisors of mm can be grouped into pairs (d,m/d)(d, m/d), where d≤md \le \sqrt{m}, except for the divisor m\sqrt{m} if it is an integer. It follows that the number of divisors of mm is odd if and only if mm is a perfect square. Hence the σ(n)\sigma(n) is odd if and only if nn is a perfect square or a perfect square multiplied by 22.

Therefore, if three consecutive positive integers all have odd divisor sums, then each of them is either a perfect square or a perfect square multiplied by 22. Thus at least two of these numbers are perfect squares or at least two are perfect squares multiplied by 22. In both cases we obtain two distinct positive perfect squares with difference at most 22, which is not possible. This proves that k=3k = 3 has the required property.