Problem

Source: 2024 Indonesia Regional MO Essay Problem 4

Tags: number theory, Quadratic Residues, quadratic reciprocity, Indonesia, RMO



Find the number of positive integer pairs $1\leqslant a,b \leqslant 2027$ that satisfy \[ 2027 \mid a^6+b^5+b^2.\](Note: For integers $a$ and $b$, the notation $a \mid b$ means that there is an integer $c$ such that $ac=b$.) Proposed by Valentio Iverson, Indonesia