I am not sure how to I tried to use the class equation to prove that the centre $Z(G)$ of a group $ G$ of order 45 cannot have order 9 or 15, but I’m struggling with how to proceed, especially since ( G ) is not specified as non-abelian.
I tried to use the class equation: $$ |G| = |Z(G)| + \sum_{i} [G : C_G(x_i)], $$ where the sum is over representatives $ x_i $ of the conjugacy classes of $ G $ that are not in the centre, and $ C_G(x_i) $ is the centralizer of $ x_i $.
I tried using this to prove that $|Z(G)|$ couldn't be 20, but I am not sure how to proceed.
Any help would be greatly appreciated.