Formula for combination and permutation