Problem

Source: Cyprus 2022 TST-2 Problem 2

Tags: number theory



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