In mathematics, the Herbrand–Ribet theorem is a result on the class group of certain number fields. It is a strengthening of Ernst Kummer's theorem to the effect that the prime p divides the class number of the cyclotomic field of p-th roots of unity if and only if p divides the numerator of the n-th Bernoulli number Bn for some n, 0 < n < p − 1. The Herbrand–Ribet theorem specifies what, in particular, it means when p divides such an Bn. Statement The Galois group Δ of the cyclotomic field of pth roots of unity for an odd prime p, Q(ζ) with ζp = 1, consists of the p − 1 group elements σa, where . As a consequence of Fermat's little theorem, in the ring of p-adic integers we have p − 1 roots of unity, each of which is congruent mod p to some number in the range 1 to p − 1; we can therefore define a Dirichlet character ω (the Teichmüller character) with values in by requiring that for n relatively prime to p, ω(n) be congruent to n modulo p. The p part of the class group is a -module (since it is p-primary), hence a module over the group ring . We now define idempotent elements of the group ring for each n from 1 to p − 1, as It is easy to see that and where is the Kronecker delta. This allows us to break up the p part of the ideal class group G of Q(ζ) by means of the idempotents; if G is the p-primary part of the ideal class group, then, letting Gn = εn(G), we have . The Herbrand–Ribet theorem states that for odd n, Gn is nontrivial if and only if p divides the Bernoulli number Bp−n. The theorem makes no assertion about even values of n, but there is no known p for which Gn is nontrivial for any even n: triviality for all p would be a consequence of Vandiver's conjecture. Proofs The part saying p divides Bp−n if Gn is not trivial is due to Jacques Herbrand. The converse, that if p divides Bp−n then Gn is not trivial is due to Kenneth Ribet, and is considerably more difficult. By class field theory, this can only be true if there is an unramified extension of the field of pth roots of unity