Dictionary:
fac·to·ri·al (făk-tôr'ē-əl, -tōr'-) ![]() |
| 5min Related Video: factorial |
| Statistics Dictionary: factorial |
If n is a positive integer, then factorial n, written as n!, is defined by
| Britannica Concise Encyclopedia: factorial |
For more information on factorial, visit Britannica.com.
| Computer Desktop Encyclopedia: factorial |
The number of sequences that can exist with a set of items, derived by multiplying the number of items by the next lowest number until 1 is reached. For example, three items have six sequences (3x2x1=6): 123, 132, 231, 213, 312 and 321. See factor and IFP.
Download Computer Desktop Encyclopedia to your iPhone/iTouch
| Business Dictionary: Factorial |
1. In statistics, design of experiment to investigate a number of Variables or Factors. Factorial design minimizes the number of observations required to test numerous variables. Every observation yields information on each variable.
2. In mathematics, product of all whole numbers up to the number considered. For example, eight factorial, abbreviated 8!, is 8 X 7 X 6 X 5 X 4 X 3 X 2 X 1, or 40,320.
| Wikipedia: Factorial |
| n | n! |
|---|---|
| 0 | 1 |
| 1 | 1 |
| 2 | 2 |
| 3 | 6 |
| 4 | 24 |
| 5 | 120 |
| 6 | 720 |
| 7 | 5,040 |
| 8 | 40,320 |
| 9 | 362,880 |
| 10 | 3,628,800 |
| 11 | 39,916,800 |
| 12 | 479,001,600 |
| 13 | 6,227,020,800 |
| 14 | 87,178,291,200 |
| 15 | 1,307,674,368,000 |
| 20 | 2,432,902,008,176,640,000 |
| 25 | 15,511,210,043,330,985,984,000,000 |
| 50 | 3.04140932... × 1064 |
| 70 | 1.19785717... × 10100 |
| 450 | 1.73336873... × 101,000 |
| 1754 | 1.979262... × 104,930 |
| 3,249 | 6.41233768... × 1010,000 |
| 25,206 | 1.205703438... × 10100,000 |
| 47,176 | 8.4485731495... × 10200,001 |
| 100,000 | 2.8242294079... × 10456,573 |
| 1,000,000 | 8.2639316883... × 105,565,708 |
| 10305 | 103.045657055180967... × 10307 |
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,

and

The notation n! was introduced by Christian Kramp in 1808.
Contents |
The factorial function is formally defined by

or recursively defined by

Both of the above definitions incorporate the instance

as an instance of the fact that the product of no numbers at all is 1. This fact for factorials is useful, because:
works for n > 0;
;
.



Factorials have many applications in number theory. In particular, n! is necessarily divisible by all prime numbers up to and including n. As a consequence, n > 5 is a composite number if and only if

A stronger result is Wilson's theorem, which states that

if and only if p is prime.
Adrien-Marie Legendre found that the multiplicity of the prime p occurring in the prime factorization of n! can be expressed exactly as

This fact is based on counting the number of factors p of the integers from 1 to n. The number of multiples of p in the numbers 1 to n are given by
; however, this formula counts those numbers with two factors of p only once. Hence another
factors of p must be counted too. Similarly for three, four, five factors, to infinity. The sum is finite since pi is less than or equal to n for only finitely many values of i, and the floor function results in 0 when applied to pi > n.
The only factorial that is also a prime number is 2, but there are many primes of the form
, called factorial primes.
All factorials greater than 0! and 1! are even, as they are all multiples of 2.
As n grows, the factorial n! becomes larger than all polynomials and exponential functions (but slower than double exponential functions) in n.
When n is large, n! can be estimated quite accurately using Stirling's approximation:

A weak version that can easily be proved with mathematical induction is

Note that for any natural n,
.
The logarithm of the factorial can be used to calculate the number of digits in a given base the factorial of a given number will take. It satisfies the identity:

Note that this function, if graphed, looks approximately linear; but the factor log n!/n, and thereby the slope of the graph, is proportional to log n; therefore, the slope becomes arbitrarily large in the limit as n goes to infinity, although the rate at which it grows is quite slow. The graph of log(n!) for n between 0 and 20,000 is shown in the figure on the right.
A simple approximation for log n! based on Stirling's approximation is

A much better approximation for log n! was given by Srinivasa Ramanujan (Ramanujan 1988)

One can see from this that log n! is Ο(n log n). This result plays a key role in the analysis of the computational complexity of sorting algorithms (see comparison sort).
The value of n! can be calculated by repeated multiplication if n is not too large. The largest factorial that most calculators can handle is 69!, because 69! < 10100 < 70!. Calculators that use 3-digit exponents can compute larger factorials, up to, for example, 253! ≈ 5.2×10499 on HP calculators and 449! ≈ 3.9×10997 on the TI-86. The calculator seen in Mac OS X, Microsoft Excel and Google Calculator can handle factorials up to 170!, which is the largest factorial that can be represented as a 64-bit IEEE 754 floating-point value. The scientific calculator in Windows XP is able to calculate factorials up to at least 100000!. This calculator can display exponents of more than 1,000,000, although exponent input is limited to 10000. The values 12! and 20! are the largest factorials that can be stored in, respectively, the 32 bit and 64 bit integers commonly used in personal computers. In practice, most software applications will compute these small factorials by direct multiplication or table lookup. Larger values are often approximated in terms of floating-point estimates of the Gamma function, usually with Stirling's formula.
For number theoretic and combinatorial computations, very large exact factorials are often needed. Bignum factorials can be computed by direct multiplication, but multiplying the sequence 1 × 2 × ... × n from the bottom up (or top-down) is inefficient; it is better to recursively split the sequence so that the size of each subproduct is minimized.
The asymptotically-best efficiency is obtained by computing n! from its prime factorization. As documented by Peter Borwein, prime factorization allows n! to be computed in time O(n(log n log log n)2), provided that a fast multiplication algorithm is used (for example, the Schönhage-Strassen algorithm).[1] Peter Luschny presents source code and benchmarks for several efficient factorial algorithms, with or without the use of a prime sieve.[2]
The factorial function can also be defined for non-integer values, but this requires more advanced tools from mathematical analysis. One function that "fills in" the values of the factorial between the integers is called the Gamma function, denoted Γ(z) for integers z no less than 1, defined by

Euler's original formula for the Gamma function was

The Gamma function is related to factorials in that it satisfies a similar recursive relationship:


Together with Γ(1) = 1 this yields the equation for any nonnegative integer n:


Based on the Gamma function's value for 1/2, the specific example of half-integer factorials is resolved to

For example

The Gamma function is in fact defined for all complex numbers z except for the nonpositive integers
. It is often thought of as a generalization of the factorial function to the complex domain, which is justified for the following reasons:
On the other hand it should also be noticed that the Gamma function is not the only complex function which interpolates the factorial values. In fact complex functions which are provable simpler in the sense of analytic function theory exist which interpolate the factorial values, for example Hadamard's 'Gamma'-function (Hadamard 1894) which is an entire function [3]
Euler also developed a convergent product approximation for the non-integer factorials, which can be seen to be equivalent to the formula for the Gamma function above:
![n! = \left[ \left(\frac{2}{1}\right)^n\frac{1}{n+1}\right]\left[ \left(\frac{3}{2}\right)^n\frac{2}{n+2}\right]\left[ \left(\frac{4}{3}\right)^n\frac{3}{n+3}\right]\dots](http://wpcontent.answers.com/math/f/5/0/f5015b487000ebd0938e1405fb2013f5.png)
It can also be written as below:

However, the rate of convergence is too slow for practical use.

Representation through the Gamma-function allows evaluation of factorial of complex argument. Equilines of amplitude and phase of factorial are shown in figure. Let
. Several levels of constant modulus (amplitude) ρ = const and constant phase
are shown. The grid covers range
,
with unit step. The scratched line shows the level
.
Thin lines show intermediate levels of constant modulus and constant phase. At poles
, phase and amplitude are not defined. Equilines are dense in vicinity of singularities along negative integer values of the argument.
For moderate values of | z | < 1, the Taylor expansions can be used:

The first coefficients of this expansion are
| n | gn | approximation |
|---|---|---|
| 0 | 1 | 1 |
| 1 | − γ | − 0.5772156649 |
| 2 | ![]() |
0.9890559955 |
| 3 | ![]() |
− 0.9074790760 |
where γ is the Euler constant and ζ is the Riemann function. Computer algebra systems such as Mathematica can generate many terms of this expansion.
For the large values of the argument, factorial can be approximated through the integral of the psi function, using the continued fraction representation [4].



The first coefficients in this continued fraction are

There is common misconception, that log(z!) = P(z) or
for any complex z ≠ 0. Indeed, the relation through the logarithm is valid only for specific range of values of z in vicinity of the real axis, while
. The larger is the real part of the argument, the smaller should be the imaginary part. However, the inverse relation, z! = exp(P(z)), is valid for the whole complex plane, the only, z in the continued fraction should not be zero, and the convergence is poor in vicinity of the negative part of the real axis. (It is difficult to have good convergence of any approximation in vicinity of the singularities). While
or
, the 8 coefficients above are sufficient for the evaluation of the factorial with the complex<double> precision.
The relation
allows one to compute the factorial for an integer given the factorial for a smaller integer. The relation can be inverted so that one can compute the factorial for an integer given the factorial for a larger integer:

Note, however, that this recursion does not permit us to compute the factorial of a negative integer; use of the formula to compute ( − 1)! would require a division by zero, and thus blocks us from computing a factorial value for every negative integer. (Similarly, the Gamma function is not defined for negative integers, though it is defined for all other negative numbers.)
In particular, factorials for the negative integers are not based on mulitplying integers that are sequentially closer to zero. That is,

There are several other integer sequences similar to the factorial that are used in mathematics:
The primorial (sequence A002110 in OEIS) is similar to the factorial, but with the product taken only over the prime numbers.
n!! denotes the double factorial of n and is defined recursively for odd numbers by

For example, 9!! = 1 × 3 × 5 × 7 × 9 = 945. One should be careful not to interpret n!! as the factorial of n!, which would be written (n!)! and is a much larger number (for n > 2).
Sometimes n!! is defined for even numbers as well, with

For example, with this definition, 8!! = 2 × 4 × 6 × 8 = 384. However, note that such use is inconsistent with the extension of the definition of n!! to real and complex numbers n, which is achieved via the Gamma function; see below.
The sequence of double factorials for n = 1,3,5,7,... (sequence A001147 in OEIS) starts as
The sequence for n = 0,1,2,3,4,... (sequence A006882 in OEIS) starts as
The definition of the double factorial for positive odd numbers can be rewritten to define double factorials for negative odd numbers:

The sequence of double factorials for
starts as

Some identities involving double factorials (with the above definition for even values of n) are:






Disregarding the above definition of n!! for even values of n, the double factorial for odd integers is extended to real and complex numbers via the formula

where Γ is the Gamma function. This bears similarity to the Gamma function generalization of the factorial function. With this definition, n!! is defined for all complex numbers except the negative even numbers.
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. The double factorial is the most commonly used variant, but one can similarly define the triple factorial (n!!!) and so on. One can define the kth factorial, denoted by n!(k), recursively for non-negative integers as

though see the alternative definition below.
Some mathematicians have suggested an alternative notation of n!2 for the double factorial and similarly n!k for other multifactorials, but this has not come into general use.
With the above definition, (kn)!(k) = knn!.
In the same way that n! is not defined for negative integers, and n!! is not defined for negative even integers, n!(k) is not defined for negative integers evenly divisible by k.
Alternatively, the multifactorial n!(k) is defined for the complex number n (except for the negative integers evenly divisible by k) with

This definition is consistent with the earlier definition only for those integers n satisfying (n mod k) = 1. In addition to extending n!(k) to the complex numbers, this definition has the feature of working for positive non-integral values of k.
The so-called quadruple factorial, however, is not the multifactorial n!(4); it is a much larger number given by
, starting as
It is also equal to
.
Neil Sloane and Simon Plouffe defined the superfactorial in 1995 as the product of the first n factorials. So the superfactorial of 4 is

In general

The sequence of superfactorials starts (from n = 0) as
This idea was extended in 2000 by Henry Bottomley to the superduperfactorial as the product of the first n superfactorials, starting (from n = 0) as
and thus recursively to any multiple-level factorial where the mth-level factorial of n is the product of the first n (m − 1)th-level factorials, i.e.

where mf(n,0) = n for n > 0 and mf(0,m) = 1.
Clifford Pickover in his 1995 book Keys to Infinity used a new notation, n$, to define the superfactorial

or as,

where the (4) notation denotes the hyper4 operator, or using Knuth's up-arrow notation,

This sequence of superfactorials starts:



Here, as is usual for compound exponentiation, the grouping is understood to be from right to left:

Occasionally the hyperfactorial of n is considered. It is written as H(n) and defined by

For n = 1, 2, 3, 4, ... the values H(n) are 1, 4, 108, 27648,... (sequence A002109 in OEIS).
The asymptotic growth rate is
where A = 1.2824... is the Glaisher-Kinkelin constant.[5] H(14) = 1.8474...×1099 is already almost equal to a googol, and H(15) = 8.0896...×10116 is almost of the same magnitude as the Shannon number, the theoretical number of possible chess games. For a function that grows even faster than the hyperfactorial, see the Ackermann function.
The hyperfactorial function can be generalized to complex numbers in a similar way as the factorial function. The resulting function is called the K-function.
This entry is from Wikipedia, the leading user-contributed encyclopedia. It may not have been reviewed by professional editors (see full disclaimer)
| Best of the Web: factorial |
Some good "factorial" pages on the web:
Math mathworld.wolfram.com |
| factor | |
| main effect (statistics) | |
| Stirling's formula (mathematics) |
| Where is the ebay factory? Read answer... | |
| What is factory industry? Read answer... | |
| Auschwitz was a factory of what? Read answer... |
| Where is your factory? | |
| How do get out of the factory? | |
| What is a factory and what does it do? |
Copyrights:
![]() | Dictionary. The American Heritage® Dictionary of the English Language, Fourth Edition Copyright © 2007, 2000 by Houghton Mifflin Company. Updated in 2009. Published by Houghton Mifflin Company. All rights reserved. Read more | |
![]() | Statistics Dictionary. A Dictionary of Statistics. Second edition revised. Copyright © Oxford University Press, 2008. All rights reserved. Read more | |
![]() | Britannica Concise Encyclopedia. Britannica Concise Encyclopedia. © 2006 Encyclopædia Britannica, Inc. All rights reserved. Read more | |
![]() | Computer Desktop Encyclopedia. THIS COPYRIGHTED DEFINITION IS FOR PERSONAL USE ONLY. All other reproduction is strictly prohibited without permission from the publisher. © 1981-2009 Computer Language Company Inc. All rights reserved. Read more | |
![]() | Business Dictionary. Dictionary of Business Terms. Copyright © 2000 by Barron's Educational Series, Inc. All rights reserved. Read more | |
![]() | Wikipedia. This article is licensed under the Creative Commons Attribution/Share-Alike License. It uses material from the Wikipedia article "Factorial". Read more |
Mentioned in