formula_2 = formula_3 + formula_4 si 0 < k < n