In mathematics, Brewer sums are finite character sum introduced by related to Jacobsthal sums.
The Brewer sum is given by
Λn(a)=\sumx\bmod\binom{Dn+1(x,a)}{p}
D0(x,a)=2, D1(x,a)=x, Dn+1(x,a)=xDn(x,a)-aDn-1(x,a)
The Brewer sum is zero when n is coprime to q2−1.