Problem

Source: 2022 CGMO Day1 P4

Tags: number theory



Given a prime number $p\ge 5$. Find the number of distinct remainders modulus $p$ of the product of three consecutive positive integers.