Mathematics — Graph Theory · digraph-cycles-number-theory
Problem
Let p be a prime number. Let (a1,a2,a3,…) be a sequence of integers that is periodic with period p (that is, that satisfies ai=ai+p for each i>0). Assume that a1+a2+⋯+ap is not divisible by p. Prove that there exists an i∈{1,2,…,p} such that none of the p numbers
ai,ai+ai+1,ai+ai+1+ai+2,…,ai+ai+1+⋯+ai+p−1
(that is, of the p sums ai+ai+1+⋯+aj for i≤j<i+p) is divisible by p.
[Remark: This would be false if p was not prime. For instance, for p=4, the sequence (0,2,2,2,0,2,2,2,…) would be a counterexample.]
[Hint: Use Exercise 4.1 (a). What is the digraph, and why does it have a cycle?]