The factorial function represents the number of ways in which n distinct objects can be arranged in a line, or the number of permutations of n objects. The number of combinations of k objects chosen from a set of n objects can be calculated as n! / (k! * (n-k)!), which is a binomial coefficient.