Determine for how many positive integers $n \in \{1, 2, \ldots, 2022\}$ it holds that $402$ divides at least one of
\[ n^2 - 1, \quad n^3 - 1, \quad n^4 - 1 \]

Let's think step by step and output the final answer within \boxed{}.
user