The Erdős–Ginzburg–Ziv theorem #
This file proves the Erdős–Ginzburg–Ziv theorem as a corollary of Chevalley-Warning. This theorem
states that among any (not necessarily distinct) 2 * n - 1
elements of ZMod n
, we can find n
elements of sum zero.
Main declarations #
Int.erdos_ginzburg_ziv
: The Erdős–Ginzburg–Ziv theorem stated using sequences inℤ
ZMod.erdos_ginzburg_ziv
: The Erdős–Ginzburg–Ziv theorem stated using sequences inZMod n