|english version||version française||česká verze|
This site is a reference for the factorial n! notation and tries to propose a more complete documentation to this subject. We hope you'll be satisfied; for any remarks, links, informations, suggestions etc. please don't hesitate to share with us your ideas! We'll be very thankful for that! :)
In mathematics, the factorial of a natural number n is the product of the positive integers less than or equal to n. This is written as n! and pronounced 'n factorial'.
The factorial function is formally defined by
This definition implies in particular that
because the product of no numbers at all is 1. Proper attention to the value of the empty product is important in this case, because
The factorial function can also be defined (for non-integer values of z), via the gamma function:
Factorials are important in combinatorics. For example, there are n! different ways of arranging n distinct objects in a sequence. (The arrangements are called permutations.) And the number of ways one can choose k objects from among a given set of n objects (the number of combinations), is given by the so-called binomial coefficient
Factorials also turn up in calculus. For example, Taylor's theorem expresses a function f(x) as a power series in x, basically because the n-th derivative of xn is n!. Factorials are also used extensively in probability theory.
The numeric value of n! can be calculated by repeated multiplication if n is not too large. That is basically what pocket calculators do. The largest factorial that most calculators can handle is 69!, because 70! > 10100.
When n is large, n! can be estimated quite accurately using Stirling's approximation:
The related gamma function Γ(z) is defined for all complex numbers z except for the nonpositive integers (z = 0, −1, −2, −3, ...). It is related to factorials in that it satisfies a recursive relationship similar to that of the factiorial function:
Together with the definition Γ(1) = 1 this yields the equation
Because of this relationship, the gamma function is often thought of as a generalization of the factorial function to the domain of complex numbers. This is justified for the following reasons.
A common related notation is to use multiple exclamation points to denote a multifactorial, the product of integers in steps of two (n!!), three (n!!!), or more.
n!! denotes the double factorial of n and is defined recursively by
For example, 8!! = 2 · 4 · 6 · 8 = 384 and 9!! = 1 · 3 · 5 · 7 · 9 = 945. The sequence of double factorials for n = 0, 1, 2,... starts
Some identities involving double factorials are:
One should be careful not to interpret n!! as the factorial of n!, which would be written (n!)! and is a much larger number.
The double factorial is the most commonly used variant, but one can similarly define the triple factorial (n!!!) and so on. In general, the k-th factorial, denoted by n!(k), is defined recursively as
Occasionally the hyperfactorial of n is considered. It is written as H(n) and defined by
For n = 1, 2, 3, 4,... the values of H(n) are 1, 4, 108, 27648,...
The hyperfactorial function is similar to the factorial, but produces larger numbers. The rate of growth of this function, however, is not much larger than a regular factorial.
The superfactorial of n, written as n$ (the $ should really be a factorial sign ! with an S superimposed) has been defined as
where the (4) notation denotes the hyper4 operator, or using Knuth's up-arrow notation.
The sequence of superfactorials starts:
A lot of formulas and examples are on the examples page.
|0!||10! .. 500!||666!|
|10 000!||20 000!||50 000!||2003!|
|100 000!||200 000!||500 000!||150 000!|
|1 000 000!||2 000 000!|
Download this calculations in compressed.tar.bz2 files.
Multiple scientists worked on this subject, but the principal inventors are J. Stirling in 1730 who gives the asymptotic formula after some work in collaboration with De Moivre, then Euler in 1751 and finally C. Kramp and Arbogast who introduces between 1808 and 1816 the actual notation: n!. Of course other scientists such as Taylor also worked a lot with this notation.
Factorial can be calculate with recursive or iterative algorithms. Some programs to calculate n!:
Calculate et give n! for 0 <= n <= 12.
By Julien Graziano.
By Calum Grant.
Evolution of a haskell programmer
By Fritz Ruehr.
Calculate and give n! for 0 <= n <= 12.
Calculate and give n! for n! < 2^32.
Calculate and give n! pour 0 <= n <= 12.
We didn't find any site dedicated to this notation. Then we decided to put online our works about n!, made in computer science and in the epistemological option "histoire du concept du nombre" (number's concept history), at the University of Sciences and Technologies of Lille. Then we never stop to work on it. Because we support the share of knowledge, we put a lot of parts of this site into Wikipedia, so they can be frequently improved.latest updates