In mathematics, specifically group theory, a subgroup H of a group G may be used to decompose the underlying set of G into disjoint, equal-size subsets called cosets. There are left cosets and right cosets. Cosets (both left and right) have the same number of elements (cardinality) as does H. Furthermore, H itself is both a left coset and a right coset. The number of left cosets of H in G is equal to the number of right cosets of H in G. This common value is called the index of H in G and is usually denoted by [G : H]. Cosets are a basic tool in the study of groups; for example, they play a central role in Lagrange's theorem that states that for any finite group G, the number of elements of every subgroup H of G divides the number of elements of G. Cosets of a particular type of subgroup (a normal subgroup) can be used as the elements of another group called a quotient group or factor group. Cosets also appear in other areas of mathematics such as vector spaces and error-correcting codes.
Definition Let H be a subgroup of the group G whose operation is written multiplicatively (juxtaposition denotes the group operation). Given an element g of G, the left cosets of H in G are the sets obtained by multiplying each element of H by a fixed element g of G (where g is the left factor). In symbols these are,
The right cosets are defined similarly, except that the element g is now a right factor, that is,
As g varies through the group, it would appear that many cosets (right or left) would be generated. Nevertheless, it turns out that any two left cosets (respectively right cosets) are either disjoint or are identical as sets. If the group operation is written additively, as is often the case when the group is abelian, the notation used changes to g + H or H + g, respectively. The symbol G/H is sometimes used for the set of (left) cosets {gH : g an element of G} (see below for a extension to right cosets and double cosets). However, some authors (including Dummit & Foote and Rotman) reserve this notation specifically for representing the quotient group formed from the cosets in the case where H is a normal subgroup of G.
First example Let G be the dihedral group of order six. Its elements may be represented by {I, a, a2, b, ab, a2b}. In this group, a3 = b2 = I and ba = a2b. This is enough information to fill in the entire Cayley table:
Let T be the subgroup {I, b}. The (distinct) left cosets of T are:
IT = T = {I, b}, aT = {a, ab}, and a2T = {a2, a2b}. Since all the elements of G have now appeared in one of these cosets, generating any more can not give new cosets; any new coset would have to have an element in common with one of these and therefore would be identical to one of these cosets. For instance, abT = {ab, a} = aT. The right cosets of T are:
TI = T = {I, b}, Ta = {a, ba} = {a, a2b} , and Ta2 = {a2, ba2} = {a2, ab}. In this example, except for T, no left coset is also a right coset. Let H be the subgroup {I, a, a2}. The left cosets of H are IH = H and bH = {b, ba, ba2}. The right cosets of H are HI = H and Hb = {b, ab, a2b} = {b, ba2, ba}. In this case, every left coset of H is also a right coset of H. Let H be a subgroup of a group G and suppose that g1, g2 ∈ G. The following statements are equivalent:
g1H = g2H Hg1−1 = Hg2−1 g1H ⊂ g2H g2 ∈ g1H g1−1g2 ∈ H
Properties The disjointness of non-identical cosets is a result of the fact that if x belongs to gH then gH = xH. For if x ∈ gH then there must exist an a ∈ H such that ga = x. Thus xH = (ga)H = g(aH). Moreover, since H is a group, left multiplication by a is a bijection, and aH = H. Thus every element of G belongs to exactly one left coset of the subgroup H, and H is itself a left coset (and the one that contains the identity). Two elements being in the same left coset also provide a natural equivalence relation. Define two elements of G, x and y, to be equivalent with respect to the subgroup H if xH = yH (or equivalently if x−1y belongs to H). The equivalence classes of this relation are the left cosets of H. As with any set of equivalence classes, they form a partition of the underlying set. A coset representative is a representative in the equivalence class sense. A set of representatives of all the cosets is called a transversal. There are other types of equivalence relations in a group, such as conjugacy, that form different classes which do not have the properties discussed here. Similar statements apply to right cosets. If G is an abelian group, then g + H = H + g for every subgroup H of G and every element g of G. For general groups, given an element g and a subgroup H of a group G, the right coset of H with respect to g is also the left coset of the conjugate subgroup g−1Hg with respect to g, that is, Hg = g(g−1Hg).
Normal subgroups A subgroup N of a group G is a normal subgroup of G if and only if for all elements g of G the corresponding left and right cosets are equal, that is, gN = Ng. This is the case for the subgroup H in the first example above. Furthermore, the cosets of N in G form a group called the quotient group or factor group G / N. If H is not normal in G, then its left cosets are different from its right cosets. That is, there is an a in G such that no element b satisfies aH = Hb. This means that the partition of G into the left cosets of H is a different partition than the partition of G into right cosets of H. This is illustrated by the subgroup T in the first example above. (Some cosets may coincide. For example, if a is in the center of G, then aH = Ha.) On the other hand, if the subgroup N is normal the set of all cosets forms a group called the quotient group G / N with the operation ∗ defined by (aN) ∗ (bN) = abN. Since every right coset is a left coset, there is no need to distinguish "left cosets" from "right cosets".
Index of a subgroup
Every left or right coset of H has the same number of elements (or cardinality in the case of an infinite H) as H itself. Furthermore, the number of left cosets is equal to the number of right cosets and is known as the index of H in G, written as [G : H]. Lagrange's theorem allows us to compute the index in the case where G and H are finite: |G|=[G:H]|H|. This equation can be generalized to the case where the groups are infinite.
More examples
… excerpt ends here. Continue reading the full article.

![Coset: .mw-parser-output .texhtml{font-family:"Nimbus Roman No9 L","Times New Roman",Times,serif;font-size:118%;line-height:1;font-variant-numeric:lining-nums tabular-nums;font-kerning:none}.mw-parser-output .texhtml .texhtml{font-size:100%}.mw-parser-output .texhtml-big{font-size:165%}.mw-parser-output .mvar{font-style:italic}@media(min-width:420px){.mw-parser-output .texhtml{white-space:nowrap}}G is the group ℤ/8ℤ, the integers mod 8 under addition. The subgroup H contains only 0 and 4. There are four left cosets of H: H itself, 1 + H, 2 + H, and 3 + H (written using additive notation since this is the additive group). Together they partition the entire group G into equal-size, non-overlapping sets. The index [G : H] is 4.](https://thumb.wikimedia.org/wikipedia/commons/thumb/d/d4/Left_cosets_of_Z_2_in_Z_8.svg/500px-Left_cosets_of_Z_2_in_Z_8.svg.png?utm_source=en.wikipedia.org&utm_campaign=parser&utm_content=thumbnail)