// output of ./demo/comb/necklace-mod-color-demo.cc: // Description: //% Generate all pre-necklaces, necklaces, and Lyndon words with a given number of colors. //% The underlying equivalence relation additionally contains all permutations of colors (numbers). arg 1: 5 == n [length of strings >=1] default=5 arg 2: 5 == m [number of different beads >=2] default=5 1: ..... 1 N 2: ....1 5 N L 2: ...1. 4 3: ...11 5 N L 4: ...12 5 N L 4: ..1.. 3 5: ..1.1 5 N L 6: ..1.2 5 N L 6: ..11. 4 7: ..111 5 N L 8: ..112 5 N L 8: ..12. 4 9: ..121 5 N L 10: ..122 5 N L 11: ..123 5 N L 11: .1.1. 2 12: .1.11 5 N L 13: .1.12 5 N L 13: .1.2. 4 14: .1.21 5 N L 15: .1.22 5 N L 16: .1.23 5 N L 16: .11.1 3 17: .11.2 5 N L 17: .111. 4 18: .1111 5 N L 19: .1112 5 N L 19: .112. 4 20: .1121 5 N L 21: .1122 5 N L 22: .1123 5 N L 22: .12.1 3 23: .12.2 5 N L 24: .12.3 5 N L 24: .121. 4 25: .1211 5 N L 26: .1212 5 N L 27: .1213 5 N L 27: .122. 4 28: .1221 5 N L 29: .1222 5 N L 30: .1223 5 N L 30: .123. 4 31: .1231 5 N L 32: .1232 5 N L 33: .1233 5 N L 34: .1234 5 N L # pre-necklaces = 47, # necklaces = 34, # Lyndon words = 33