Problem

Source: CGMO 2024 P1

Tags: algebra



Let $\{a_n\}$ be a sequence defined by $a_1=0$ and $$a_n=\frac{1}{n}+\frac{1}{\lceil \frac{n}{2} \rceil}\sum_{k=1}^{\lceil \frac{n}{2} \rceil}a_k$$for any positive integer $n$. Find the maximal term of this sequence.