Please help me with this.
Let $G$ be abelian group, and let $A_k$ be a family of subgroups of $G$. Prove that $G=\sum A_k$ (internal) if and only if every non-zero element $g\in G$ has a unique expression of the form $g=a_{k_1}+...+a_{k_n}$, where $a_{k_i} \in A_{k_i}$, the $k_i$ are distinct and each $a_{k_i}\neq 0$.
I have a hunch that the term "$g$ has a unique expression" here means that $A_k \bigcap A_j =\{0\}$. If so, how do we reason it and proved it to be so?