|
|
Factorial
{{For}} {{For}}
The first few and selected larger members of the sequence of factorials {{OEIS}}
In mathematics, the factorial of a non-negative integer n is the product of all positive integers less than or equal to n. For example,
where n! represents n factorial. The notation n! was introduced by Christian Kramp in 1808.
{{clr}} DefinitionThe factorial function is formally defined by The above definition incorporates 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
Applications
Number theoryFactorials 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 which is finite since the floor function removes all The only factorial that is also a prime number is 2, but there are many primes of the form Rate of growthImage:Log-factorial.svg As n grows, the factorial n! becomes larger than all polynomials and exponential functions in n. When n is large, n! can be estimated quite accurately using Stirling's approximation: A weak version that can be proved with mathematical induction is 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. Note that this function, if graphed, is approximately linear, for small values; but the factor A simple approximation for A much better approximation for One can see from this that ComputationThe value of 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 The asymptotically-best efficiency is obtained by computing The gamma function{{main}} The factorial function can also be defined for non-integer values, but this requires more advanced tools from mathematical analysis. The function that "fills in" the values of the factorial between the integers is called the Gamma function, denoted 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 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
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: It can also be written as below:
The product converges quickly for small values of Applications of the gamma function
Factorial-like productsThere are several other integer sequences similar to the factorial that are used in mathematics: PrimorialThe primorial {{OEIS}} is similar to the factorial, but with the product taken only over the prime numbers. Double factorial
For example, 8!! = 2 · 4 · 6 · 8 = 384 and 9!! = 1 · 3 · 5 · 7 · 9 = 945. The sequence of double factorials {{OEIS}} for
The above definition can be used to define double factorials of negative numbers: The sequence of double factorials for while the double factorial of negative even integers is infinite. Some identities involving double factorials are: where MultifactorialsA common related notation is to use multiple exclamation points to denote a multifactorial, the product of integers in steps of two ( Some mathematicians have suggested an alternative notation of Quadruple factorialThe quadruple factorial, however, is not a multifactorial; it is a much larger number given by SuperfactorialsNeil Sloane and Simon Plouffe defined the superfactorial in 1995 as the product of the first In general The sequence of superfactorials starts (from
This idea was extended in 2000 by Henry Bottomley to the superduperfactorial as the product of the first
and thus recursively to any multiple-level factorial where the mth-level factorial of where Superfactorials (alternative definition)Clifford Pickover in his 1995 book Keys to Infinity defined the superfactorial of or as, where the (4) notation denotes the hyper4 operator, or using Knuth's up-arrow notation, This sequence of superfactorials starts: HyperfactorialsOccasionally the hyperfactorial of For n = 1, 2, 3, 4, ... the values H(n) are 1, 4, 108, 27648,... {{OEIS}}. 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. However, H(14) = 1.85...×1099 is already almost equal to a googol, and H(15) = 8.09...×10113 is almost of the same magnitude as the Shannon number, the theoretical number of possible chess games. 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. See also
References
External links
|
|||||||||||||||||||||||||||||||||||||||||||
|
All contents copyright of the author. ©2007. JAMWiki Version 0.6.0 |
||||||||||||||||||||||||||||||||||||||||||||