Theorem

Let p be an odd prime. The list of pth powers mod θ does not contain two consecutive nonzero (mod θ) integers if and only if xp + yp + zp = 0 mod θ implies x = 0 mod θ or y = 0 mod θ or z = 0 mod θ.

Proof

Suppose x, y, and z are all nonzero mod θ and xp + yp + zp = 0 mod θ. Then there is a nonzero (mod θ) integer a such that xa = 1 mod θ, and nonzero integers b and c with yb = 1 mod θ and zc = 1 mod θ. Then
xp + yp + zp = 0 mod θ
=> (ax)p + (ay)p + (az)p = 0 mod θ
=> (ay)p + (az)p = -1 mod θ
Let k = (ay)p mod θ. Note that k ≠ 0 mod θ since otherwise
(ay)p = 0 mod θ
=> 0 = apypbp = ap(yb)p = ap mod θ
which is impossible if a is nonzero mod θ.

Therefore (θ-az)p = -(az)p = k+1 mod θ. Thus (ay)p and (θ-az)p are consecutive nonzero pth powers.

Conversely, if ap = k and bp = k+1 are two consecutive nonzero (mod θ) integers, then let x=θ-a, y=b, and z=θ-1. Then

xp + yp + zp = -ap + bp - 1 = -k + k + 1 - 1 = 0 mod θ