Let G be a finite abelian group, say, $G={e,a_1,a_2...a_n}$ Prove the following:
a)$(a_1a_2...a_n)^2=e$
b)If there is no element $x \neq e$, $x=x^{-1}$, then $a_1a_2...a_n=e$
c)If there is exactly one $x\neq e$, $x=x^{-1}$, then $a_1a_2...a_n=x$
So these are pretty simple, but I'm not sure how to write out the logic mathematically. For example for part a all I could think to do was this: $a_1a_1a_2a_2...a_6a_7a_6a_7...ee=e$ In that the first group represents the elements that equal their own inverse, and the second part those who don't. What's a more elegant way to do it? Bonus points for telling me how to do $x^{-1}$ in $LaTeX$.