Let $R$ be a finite ring, and $G$ be a finite group. I need to compute the number of elements of the group ring $R(G)$ in terms of $|R|$ and $|G|$ (where $|R|$ is the number of elements in the ring $R$, and $|G|$ is the number of elements in the group $G$).
Recall that a group ring $R(G)$ is the set of equivalence classes of all formal sums
$r_{1}g_{1}+r_{2}g_{2}+\cdots + r_{k}g_{k}$
where the $r_{i} \in R$, $g_{i} \in G$.
We say that two formal sums are said to be equivalent if they have the same reduced form.
In each sum, we have $k$ terms, and $|R|$ choices for each coefficient, so if we didn't care about repeats or whether we should choose only one representative from each equivalence class, I'd say the group ring contained $k|R|$ elements.
However, I'm assuming that in calculating the size of a group ring, we count each representative of an equivalence class only once. So, how do I factor this in when counting the number of elements in $R(G)$? Also, how does $|G|$ come into play?
Thank you in advance!