selected letter occupies this first positionall the other letters are then anagrammed (arranged in every possible positionfor catwhich has only lettersrotating the remaining letters simply switches them the sequence is shown in table figure rotating word table anagramming the word cat word display wordfirst letter remaining letters action cat yes at rotate at cta yes ta rotate ta cat no at rotate cat atc yes tc rotate tc act yes ct rotate ct atc no tc rotate atc tca yes ca rotate ca tac yes ac rotate ac tca no ca rotate tca cat no at done notice that we must rotate back to the starting point with two letters before performing -letter rotation this leads to sequences like catctacat the redundant combinations aren' displayed