combinatorial functions using math-numbers numbers