I need to compute first cohomology group with coefficients in $(\mathbb{Z}/n\mathbb{Z})^m$ of specific finite groups. I reduced the computation of cocycles to the following problem: compute the kernel of a matrix $A$ with coefficients in $\mathbb{Z}/n\mathbb{Z}$.
- How do I compute it in general? Is there some good algorithm?
- Is there a GAP function / package for that?
Thanks for your answers!
You can use the function
BasisNullspaceModNfor that (it is undocumented, unfortunately, though we could change that in the next version of GAP). See also my answer here, which also describes a functionNullspaceModNimplemented usingBasisNullspaceModN