I will not post the entire proof here. Just one part of the proof that they seem to use, then it will be simpler for you to read.
They use that
All the elements of $\mathbb{Z}_n$ that are relatively prime to n, form a group with operation multiplication modulo n. Let c be the order of this group, that is the number of elements in the group.
Then they say that $b^c =1$(mod n).
But why is this? If the group was cyclic I would have seen it, but the group may not be cyclic? I only need help with the statement in bold text, not all the info before that.