gap> f:=3*SolutionsMod2[3] - SolutionsMod3[5];   #An example solution to Mf=0 mod 6.
[ 3, 3, -1, -1 ]

gap> Standard_f:=StandardCocycle(R,f,3,6);;

gap> g:=Random(G); h:=Random(G); k:=Random(G);
(1,2)
(1,3,2)
(1,3)

gap> Standard_f(g,h,k);
3
