Problem

Source: St Petersburg 2021 11.1

Tags: number theory, prime numbers



Let $p$ be a prime number. All natural numbers from $1$ to $p$ are written in a row in ascending order. Find all $p$ such that this sequence can be split into several blocks of consecutive numbers, such that every block has the same sum. A. Khrabov