An integer is called balanced if it has an even number of prime divisors. Prove that there exist infinitely many positive integers such that among the numbers , , and there are exactly two balanced ones.
Problem 2072
Official solution
We argue by contradiction. Choose so large that no obeys this property. Now we partition all integers into maximal blocks of consecutive numbers which are either all balanced or not. We delete the first block from the following considerations, now starting from . Clearly, by assumption, there cannot meet two blocks with length . It is also impossible that there meet two blocks of length 1 (remember that we deleted the first block). Thus all balanced or all unbalanced blocks have length 1. All other blocks have length 3, at least.
Case 1: All unbalanced blocks have length 1.
We take an unbalanced number with (for instance for an odd prime ). Since all balanced blocks have length , , , and must be balanced. This implies that is unbalanced, is balanced, and is again unbalanced. Thus is an balanced block of length 1 — contradiction.
Case 2: All balanced blocks have length 1.
Now we take a balanced number with (for instance for distinct odd primes ). By similar arguments, is balanced, is unbalanced, and is again balanced. Now the balanced block gives the desired contradiction.