I have a feeling that this problem is easy if I know what to search for, but have spent some time trying to do it and can’t at the moment.
I am trying to generate a list of n elements, where each of the elements is a label from {1,…,k}. This is easy- there are k^n of them.
However, I want to exclude any lists which are the same if you change the
(
Read more... )