Skip to content

Files

Latest commit

b2390d1 · Jul 27, 2017

History

History
This branch is up to date with Algorithm-archive/Learn-Data_Structure-Algorithm-by-Javascript:master.

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Jul 25, 2017
Jul 27, 2017
Jul 27, 2017
Jul 25, 2017

README.md

Factorial

In mathematics, the factorial of a non-negative integer n, denoted by n!, is the product of all positive integers less than or equal to n. For example:

 5! = 1 * 2 * 3 * 4 * 5
    = 120

We can easily calculate a factorial from the previous one:

Factorial Chart

So, the rule is:

n! = n × (n−1)!

The value of 0! is 1, according to the convention for an empty product.

Factorials are used in many areas of mathematics, but particularly in Combinations and Permutations.

More on this topic