*Note that it’s assumed the reader is familiar with groups and subgroups. And note to subscribers, the way that the math (or maths for my British friends) is formatted on phones in emails is downright awful! I recommend you read this online. *
Have you ever seen a movie where the ending was so amazing that you left the theater feeling excited, energetic, and like you could do anything? For me, those movies are Avengers Endgame and Interstellar. Now I’m not saying that this blog will be like that, but…. it will be! I know that’s a bold statement! (pun intended)
Let me ask you some questions:
When can we guarantee that a group is cyclic? Can we tell when a subset cannot be a subgroup by only how large it is? Can we predict the possible orders that elements from G can have?
We will answer these questions with little effort. Little in the sense that we will prove one thing that leads to the rest. And the way we do so will make the answers soooo transparently obvious that you will wonder why they seem difficult now!
Wait there’s more! Just like for any ‘good’ infomercial…
We will (in another article) develop tools to learn when two groups are secretly the same group G. At that point, we will also develop a way to construct groups that are identical in structure to G. And it all starts with this topic!
Everything above uses this one thing called a COSET!
What’s A Coset?
We will not motivate this definition at all. Mostly, because I am not sure why someone would even think to come up with this other than curiosity at its finest. Well… I have one idea… it comes from number theory…
Definition: (Left/Right Cosets) Let G be a group and H be a subgroup of G. Fix an element . We define the left coset of H with representative g to be the set:
Likewise, the right coset of H with representative g is the set,
In plain English, find some subgroup of some group G. Then, fix some . Lastly, multiply all the elements of H with on the left (or right) to get (or ).
For a special case, since we have any subgroup is a right (and left) coset of that subgroup! So
Now I hear you asking: “Why on Earth would we care about a coset?” I thought the same thing but trust me the payoff is awesome!
Note: A coset is not necessarily a group/subgroup. A coset is generally a set, just a set. If cosets were able to sing, they’d sing, “I’m just a set. Yes, I’m only a set...” (for those of you who remember School House Rock you get the joke).
Little Lemma
Before we begin it would be useful to know when two cosets are the same. Meaning, for when is ? This definitely happens when , but can it happen when ?
Yes, in general when .
Little Lemma: If , then .
Proof: Let . Do you recall how to prove when two sets are the same? We will show (i) and (ii) . This can only happen if .1
(i) Let’s consider some and show that this implies too.2 Since , by the definition of a coset, is of the form:
,
Where . Recall, so has a similar form,
,
where . We can combine these two expressions and deduce:
Since has the form of: (element from H)b, we concluded that . Thus, . On to step two.
(ii) Consider another . Then, where . We already know that , which implies
Cleanly written: . Thus, we conclude,
.
Since has the form of: (element from H)a, we concluded that . Therefore, .
Since (i) and (ii) we conclude
We’re done! We will use this tool a lot!
Positively Partitioning
We claim that cosets partition all the elements of G. This means that every element in G is in one and only one coset. We can picture this by blocking off sections of a group G. Each element falls into one of these coset sections:

Proof: Since we need every element in G to be in one and only one coset, we have to show two things: (1) two cosets and are either equal or disjoint and (2) every element falls into some coset. To this end, let and by two cosets of H. If they are disjoint, then we’re done! So, we will assume they are not disjoint and show they are equal sets.
Since and aren’t disjoint there is some and . Then, we know by our Little Lemma that and . In other words, .
Almost there, we just need to explain why every element in G is in a coset. Well, isn’t in the coset ? Yup! We can see this since the element .
Therefore, cosets partition the set G.
Cool Correspondence between Ha and H.
A fact about cosets, is that there are as many elements in any coset as in the subgroup H. This may seem obvious since the elements of are the elements of H multiplied on the right by a. Indeed, this is the way to think about it.
There is a more mathy way to state this correspondence:
There is a one-to-one correspondence between elements of H and the elements of Ha.
Proof: Recall that to show a one-to-one correspondence between sets we must find a bijection.3 The first one you might think of, the one that maps , is one that works.
Let be defined by . We now show that is bijective.
Injective: Let then . By multiplying on the right by we conclude . Thus, is injective!
Surjective: This one’s not so bad. Let , then is such that . Therefore is surjective.
Since is both injective and surjective, it’s bijective.
In conclusion, there is a one-to-one corresponded between elements of H to . Or, .
Short Recap
What have we learned so far?
Well first off, it hasn’t been that much work to show that cosets partition G and there is a one-to-one correspondence between elements of H to . So, each coset partitions the same number of elements since each coset is the same size. This means the image showing cosets of G should have been neater. Sort of like this,

It might be really surprising but we are basically done.
Legendary Legrange
Lagrange’s Theorem: Let G be a finite group and let H be any subgroup of G. Then, the order of H divides the order of G. Or, the order of G is a multiple of the order of H.
Wowww…. how cool is that?!? Would you have thought that the number of elements in H must divide the number of element in G????
Proof: We’ve already proved it, since the collection of cosets partition G it must be that the order of G is the sum of each of the orders of the cosets,
.
Where there are cosets of H. And is finite since |G| is finite. But, all the cosets have the same order (size) as H,
.
So that where is the number of cosets of H.
Just like that, we’re done! The reason why this theorem is so cool is because of the quick corollaries it gives.
When is a Group Guaranteed to be Cyclic?
If G has prime order , then every nonidentity element is a generator of G. Or, G is cyclic!
Proof: Let the order of G be a prime and be a nonidentity element of G. Denote the order of by . Recall is always a subgroup and (If you are unfamiliar with these facts, I challenge you to prove them!). By Lagrange’s theorem divides . But, then or since is prime.
Wait, if k=1 then , and we didn’t want to be the identity!
Therefore, , and since they both have elements!
Is there a Subgroup?
Let’s say |G| = 10. Can there be a subgroup H of order 4? NO! Since . You can do this with any |G|. How awesome!
Well, what if |G|=p is a prime number? Then, the only numbers that divide p are 1 and p. Thus |H| = 1 or |H|=p=|G|.
This means that the only subgroups of G are and G=H itself when G has prime order.
Fermat’s Little Theorem
Fermat’s Little Theorem is a corollary too! For those in the know:
If is a prime then,
.
When .
To see this, consider the set again. It is still a subgroup of with multiplication. By Lagrange’s theorem the order of must divide the order of G which is |G|=p-1. Denote the order of by . Thus must divides p-1 and therefore .
Finally,
.
Boom. Mike drop.
Closing Remarks
This theorem is so amazing because it’s both so ‘simple’ and has a ‘how would anyone think of it?’ kind of feeling. I hope you had half as much fun as I did when I learned it for the first time. We’ve barely scratched the surface of it.
Oh, just in case you want some of the ‘kick in discovery’ fun too. Try to prove the following:
- If H and K are subgroups of G with |H| and |K| relatively prime (meaning
), then. - Euler’s Little Theorem:4 Denote the number of elements relatively prime to
by(this is called Euler’s Totient function). Then for allsuch that, we have.
Leave your proofs in the comments!
Footnotes:
- This is analogous to numbers. If
and, then. ↩︎ - For two set A and B, by showing
implies, it must be that. Can you see why? ↩︎ - A bijection is a fancy term that means a function that is an injection and surjection. And an injection is a fancy way to say that the element f(x) is unique to x. Or, no two elements
andhave the sameor. This is equivalent to saying:
INJECTION Criteria: ifthen.
And a surjection means that every element in Ha is equal to some f(h).
SURJECTION Criteria: for anythere is somesuch that. ↩︎ - This is not the standard name of this theorem! ↩︎

Leave a reply to Newbie Number Theory (Part 6): Fermat’s Fantastic Little Theorem – A Kick in the Discovery Cancel reply