Problem

Source: Brazilian Mathematical Olympiad 2023, Level 3, Problem 1

Tags: number theory, Sequence



Show an infinite sequence $a_1, a_2, \ldots$ of integers with both of the following properties: • $a_i \neq 0$ for every positive integer $i$, that is, no term in the sequence is equal to zero; • for all positive integer $n$, $a_n + a_{2n} + \ldots + a_{2023n} = 0$.