Formulas for permutation and combination