Olympiad Maths Prep

Track / Stage 5 / 399 of 400 #999 of 2000

Problem 999

AIME late
Number theory Difficulty 6.0 Prove it

6. Prove that there are infinitely many natural numbers nn such that the number of distinct odd prime divisors of the number n(n+3)n(n+3) is divisible by three.

This one wants a proof. Work it on paper, read the official solution, then mark yourself honestly — the ladder only means something if the record is true.

Official solution

Solution. Let ana_{n} denote the number of distinct odd prime divisors of the number n(n+3)n(n+3). Suppose that there are only finitely many numbers for which ana_{n} is divisible by three. Then for some mm, when nmn \geqslant m, the number ana_{n} will not be divisible by three.

Consider the product

n(n+1)(n+3)(n+4)=n(n+4)(n+1)(n+3)=n(n+4)(n(n+4)+3) n(n+1)(n+3)(n+4)=n(n+4) \cdot(n+1)(n+3)=n(n+4) \cdot(n(n+4)+3)

Let's see what common prime divisors the numbers n(n+3)n(n+3) and (n+1)(n+4)(n+1)(n+4) can have. The numbers nn and n+1n+1, as well as the numbers n+3n+3 and n+4n+4, are coprime. The numbers n+1n+1 and n+3n+3, as well as the numbers nn and n+4n+4, can have only two as a common prime divisor. Therefore, an(n+4)=an+an+1a_{n(n+4)}=a_{n}+a_{n+1}. If nmn \geqslant m, then ana_{n}, an+1a_{n+1}, and an(n+4)a_{n(n+4)} do not divide by three. But this will not be the case if the remainders of the numbers ana_{n} and an+1a_{n+1} are different. This means that the remainders of the numbers ana_{n} and an+1a_{n+1} for nmn \geqslant m are the same. Then all remainders of the numbers ana_{n} modulo three for nmn \geqslant m are the same and not equal to zero. But this contradicts the equality an(n+4)=an+an+1a_{n(n+4)}=a_{n}+a_{n+1}.

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