Problem

Source: Russian TST 2015, Day 10 P2 (Group NG)

Tags: number theory, prime numbers



Let $p\geqslant 5$ be a prime number. Prove that the set $\{1,2,\ldots,p - 1\}$ can be divided into two nonempty subsets so that the sum of all the numbers in one subset and the product of all the numbers in the other subset give the same remainder modulo $p{}$.