What is a factorial

A factorial is a mathematical function defined on the positive integers set, which is the product of all concurring integers until one. It is denoted as n!. Let's take some examples: 5! = 5(4)(3)(2)(1)= 120, and per se, 220 - 110 / 2 = 5!. 0! is 1 due to definitions by the empty product

Examples in life

Imagine you have four friends and you have 4 cookies, in how many ways you can give the people four cookies? Well, you can give the first person any of the four cookies, the second any of the three, the third any of the two until the fourth gets one, now multiply: 4(3)(2)(1) = 24. In the branch of mathematics called combinatory, this case is called a permutation, where the order matters, example, ABC is not the same as BCA. The opposite of the former is a combination, where the order doesn't matter, so, ABC here is the same as BCA.

Formulas and examples

The universal formula for the permutation is n! ÷ (n-k)!, where n are the total objects and k are the objects we are selecting.

The universal formula for the combination is n! ÷ (n-k)! k!, where n are the total objects and k are the objects we are selecting.

Imagine you have 6 flavors of ice cream, but you want to choose 3. How many permutations are there? n = 6, k = 3, 6! ÷ (6-3)!,  6! ÷ 3!, = 6! ÷ 6, we know that n! ÷ n = (n-1)!, 5! = 120, so, there are 120 possible permutations of 3 flavors of ice cream.

Imagine there are 5 racers, and you want to place them into a podium of 3 racers. How many combinations are there? Formula: n! ÷ (n-k)! k!, n = 5, k = 3, 5! ÷ (5-3)! 3!, and we simplify,  2! 3! = 12, 120÷12 = 10, so there are 10 combinations of 5 racers in a podium of 3 racers.

Zero factorial

M

M

This is work in progress


Best Practices


Knowdhdjdbd