RobinHankin / permutations

https://robinhankin.github.io/permutations/
5 stars 3 forks source link

nice application of group-theoretic conjugation #38

Open RobinHankin opened 1 year ago

RobinHankin commented 1 year ago

Been pondering issue #37 and came up with this:

> allcyc(4)
[1] (1234) (1243) (1342) (1324) (1423) (1432)
[coerced from word form]
> allcyc(4) ^ as.cycle(c(1,8))
[1] (2348) (2438) (2834) (2483) (2384) (2843)
[coerced from word form]
> 

Above, the second line takes all cycles of length 4 but switches the 4 for 8. Pretty neat. We are exploiting the fact that conjugation does not change the shape of a permutation.