Problem

Source: Turkey National MO 2024 P3

Tags: number theory



For all $n\ge2$ positive integer, let $f(n)$ denote the product of all distinct prime divisors of $n$. For example, $f(5)=5$, $f(8)=2$, and $f(12)=6$. Given a sequence ${a_n}$, where $a_1\ge2$, defined as follows: $$a_{n+1}=a_n+f(a_n)$$ Show that for any prime $p$, there exists a term $a_k$ in the sequence such that $p|a_k$.