Help! I can't remember a formula and Google isn't helping.

I remember there is a formula that gives total quantity of combinations, but I can not recall.

The problem is something like theres a 4 digit code where you can choose 1-4 for each digit, but no two digits can be the same. It was something along the lines of multiplying the number of digits by the possible values for each digit...

This subreddit is for discussion of mathematical links and questions. Please read the FAQ and the rules below before posting.

If you're asking for help understanding something mathematical, post in the Simple Question thread or /r/learnmath. This includes reference requests - also see our lists of recommended books and free online resources. Here is a more recent thread with book recommendations.