If $G$ is a group, then class equation is given by
$$|G|=|Z(G)|+ \sum_{i=1}^K[G:C_{G}(x_i)] $$
where $x_i\notin Z(G)$
For dihedral group $D_8$, class equation is given by
$$2+2+2+2$$
but there is another way to write this is
$$1+1+2+2+2$$
My question is: why here two representaions for center of a group is? If order of center is 3( or >3), then is it possible to write as $1+2 $ ? please someone help.Thanks