What is the correct terminology for Permutation & Combination formulae that allow repeating elements. Let me explain by example.
Q: Given four possible values, {1,2,3,4}, how many 2 value permutations are there ?
nPm and nCm give you the number ways to choose two elements (in either case no element can be chosen twice). nPm cares about the order (so $(1,2)\neq(2,1)$), nCm does not. So the answers correclty are 12 and 6. What you want is just an exponential. For n distinct elements (4) forming a sequence of m elements (2), there are $m^n$ possible combinations (16).
