So the formula for calculating the number of combinations is the number of permutations/k!. the number of permutations is equal to n!/(n-k)! so the number of combinations is equal to (n!/(n-k)!)/k!