Discrete math · Permutations, combinations, binomial theorem
Choosing with repeats allowed needs yet another counting method, and picking the right formula is half the problem.