Problem

Source: Bulgarian Spring Tournament 2023 11.3

Tags: number theory



A positive integer $b$ is called good if there exist positive integers $1=a_1, a_2, \ldots, a_{2023}=b$ such that $|a_{i+1}-a_i|=2^i$. Find the number of the good integers.