Problem

Source: KMO 2023 P2

Tags: combinatorics



Sets $A_0, A_1, \dots, A_{2023}$ satisfy the following conditions: $A_0 = \{ 3 \}$ $A_n = \{ x + 2 \mid x \in A_{n - 1} \} \ \cup \{x(x+1) / 2 \mid x \in A_{n - 1} \}$ for each $n = 1, 2, \dots, 2023$. Find $|A_{2023}|$.