I've generally been seeing the formula nPr = n!/(n-r)! to calculate the number of permutations.
But this is the case only when elements cannot be repeated, am I correct?
If elements can be repeated, then it would just be n^r right?
If someone could tell me if I'm understanding this properly, that would be great.