Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Deduplicated permutationsI'm thinking the result should just be combinations, no?
nCk = n!: n ^ k for d >= k n ^ k /- n ^ (k!(n -k)! d) for d < k
Deduplicated permutations should just be combinations, no?
nCk = n! / (k!(n-k)!)
I'm thinking the result should be: n ^ k for d >= k n ^ k - n ^ (k - d) for d < k