Problems(1)
An infinite sequence of positive integers a1,a2,… is called good if
(1) a1 is a perfect square, and
(2) for any integer n≥2, an is the smallest positive integer such that na1+(n−1)a2+⋯+2an−1+an is a perfect square.
Prove that for any good sequence a1,a2,…, there exists a positive integer k such that an=ak for all integers n≥k.
(reposting because the other thread didn't get moved) EGMOEGMO2022