Ruskeyand Sawada. Generating Necklaces and Strings with Forbidden Substrings. Springer Berlin Heidelberg, 2000, doi:10.1007/3-540-44968-x_33.