In mathematics, specifically group theory, the index of a subgroup H in a group G is the "relative size" of H in G: equivalently, the number of "copies" (cosets) of H that fill up G. For example, if H has index 2 in G, then intuitively "half" of the elements of G lie in H. The index of H in G is usually denoted |G : H| or [G : H] or (G:H).
Formally, the index of H in G is defined as the number of cosets of H in G. (It is always the case that the number of left cosets of H in G is equal to the number of right cosets.) For example, let Z be the group of integers under addition, and let 2Z be the subgroup of Z consisting of the even integers. Then 2Z has two cosets in Z (namely the even integers and the odd integers), so the index of 2Z in Z is two. To generalize,
for any positive integer n.
If N is a normal subgroup of G, then the index of N in G is also equal to the order of the quotient group G / N, since this is defined in terms of a group structure on the set of cosets of N in G.
If G is infinite, the index of a subgroup H will in general be a non-zero cardinal number. It may be finite - that is, a positive integer - as the example above shows.
If G and H are finite groups, then the index of H in G is equal to the quotient of the orders of the two groups:
This is Lagrange's theorem, and in this case the quotient is necessarily a positive integer.
If H has an infinite number of cosets in G, then the index of H in G is said to be infinite. In this case, the index |G : H| is actually a cardinal number. For example, the index of H in G may be countable or uncountable, depending on whether H has a countable number of cosets in G. Note that the index of H is at most the order of G, which is realized for the trivial subgroup, or in fact any subgroup H of infinite cardinality less than that of G.