"Source: Text/Group/GrpFree.text";
"Line: 455";
"Date: Thu Sep 25 14:47:45 2025";
"Main: Fri Sep 26 14:29:19 2025";
// original file: Text/Group/GrpFree.text, line: 455
// Example: H78E3 ()
print "Example: H78E3";
ei := GetEchoInput();
SetEchoInput(true);
F<a,b,c> := FreeGroup(3);

w := Random(F, 4, 6);
w;
#w;

Weight(w, a);
while w ne Identity(F) do
   g := LeadingGenerator(w);
   print g;
   w := g^-1 * w;
end while;
SetEchoInput(ei);
