The sequence of positive integers $a_1,a_2,a_3,\dots$ is brazilian if $a_1=1$ and $a_n$ is the least integer greater than $a_{n-1}$ and $a_n$ is coprime with at least half elements of the set $\{a_1,a_2,\dots, a_{n-1}\}$. Is there any odd number which does not belong to the brazilian sequence?
Problem
Source: Brazil EGMO TST 2023 #4
Tags: number theory
11.11.2022 17:07
13.11.2022 04:10
I am the creator of this problem and actually there are infinitely many odd numbers that do not belong to the sequence. We prove the following lemma: $\textbf{Lemma:}$ Let $\varphi(n)$ be the number of positive integers less than $n$ coprime with $n$. Then, $$\liminf_{n\to\infty}\frac{\varphi(n)}{n}=0,$$or in other words, for all $\epsilon>0$, there exists a positive integer $n$ such that $\frac{\varphi(n)}{n}<\epsilon$. $\textbf{Proof:}$ We can prove using the tangent-line trick that $e^x\geq 1+x$, for $x\in\mathbb{R}$. Now, let $n=p_1p_2\dots p_k$ be the product of $k$ odd primes. Then $$\frac{\varphi(n)}{n}=\prod_{1\leq i\leq k}\frac{p_i-1}{p_i}$$$$\implies\ln\left(\frac{\varphi(n)}{n}\right)=\sum_{1\leq i\leq k}\ln\left(\frac{p_i-1}{p_i}\right)\leq-\sum_{1\leq i\leq k}\frac{1}{p_i},$$and by taking $k\to\infty$, since the harmonic sum of the primes diverges, we get $$\ln\left(\frac{\varphi(n)}{n}\right)\to-\infty\implies\frac{\varphi(n)}{n}\to0,$$as we wanted. $\square$ Now suppose that there are no odd numbers that do not belong to the sequence. Now take an odd integer $n$ such that $$\varphi(n)<\frac{n}{4}.$$See that if all odd numbers smaller than $n$ are in the sequence, then there are $m\geq\frac{n}{2}$ integers before $n$ in the sequence. But if $n$ appears in the sequence, at least $\frac{m}{2}\geq\frac{n}{4}$ integers in the sequence are coprime with $n$, which is a contradiction since there are at less than $\frac{n}{4}$ integers less than $n$ that are coprime with $n$. Thus our hypothesis that all odd numbers appear in the sequence is wrong and we conclude that there are, indeed, odd numbers not belonging to the sequence. We can easily repeat the same argument supposing that only a finite number of odd numbers do not appear in the sequence and arrive at the same contradiction, thus proving that there are an infinite number of odd integers not in the sequence. $\blacksquare$ $\textbf{Ps:}$ Me and the other proposer of this problem checked and the first odd that isn't in the sequence is $15015$