Formula for permutation and combination