Combination and permutation calculator

Count selections of k items from n distinct items.

Enter n and k, then choose whether the same item may be selected more than once.

Combinations: order ignored
—

Permutations: order matters
—