Discrete math · Permutations, combinations, binomial theorem
Errors in transmitted data can be counted by asking how many positions differ, which also tells how a code can detect them.