"Source: Text/Group/GrpFree.text";
"Line: 455";
"Date: Fri Nov  8 14:16:37 2019";
"Main: Thu May 25 10:02:38 2023";
// original file: Text/Group/GrpFree.text, line: 455
// Example: H76E3 ()
print "Example: H76E3";
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);
