I'd like to iterate over a group ring $kG$ for small finite $|k|$ and $|G|$ or make a list of its elements so I can run my algorithm on them. (Say A = GroupAlgebra(DihedralGroup(3), GF(2))
.) However, attempting to use for i in A
or list(A)
throws ValueError: variable name '0' does not start with a letter
.
How can one circumvent this?