Dear Drew Krause and Gap-forum, have a look at the file lib/alglie.gi in the Gap distribution. Maybe you will find something useful for you. Best regards, Marco Costantini > Hello, I'd be interested to see if anyone has done work with generating > (not necessarily enumerating) Lyndon Words using GAP. I'm attempting it > myself -- any pointers?