Information AboutN |
| CATEGORIES ABOUT FACTORIAL | |
| combinatorics | |
| number theory | |
| gamma and related functions | |
| factorial and binomial topics | |
|
}} In Mathematics , the factorial of a Non-negative Integer is the Product of all positive integers less than or equal to . For example, : : :and : : where represents n factorial. The notation was introduced by Christian Kramp in 1808 . __TOC__ DEFINITION The 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 THEORY Factorials have many applications in Number Theory . In particular, is necessarily divisible by all Prime Number s up to and including . As a consequence, is a composite number If And Only If :. A stronger result is Wilson's Theorem , which states that : if and only if is prime. Adrien-Marie Legendre found that the multiplicity of the prime occurring in the prime factorization of 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 . These are called Factorial Prime s. RATE OF GROWTH As grows, the factorial becomes larger than all Polynomial s and Exponential Function s in . When is large, 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. can easily be calculated as follows: : Note that this function, if graphed, is approximately Linear , for small values; but the factor does grow arbitrarily large, although quite slowly. The graph of for between 0 and 20,000 is shown in the figure on the right. A simple approximation for based on Stirling's approximation is : A much better approximation for was given by Srinivasa Ramanujan : One can see from this that is Ο (''n'' log ''n''). This result plays a key role in the analysis of the Computational Complexity of Sorting Algorithm s (see Comparison Sort ). COMPUTATION The value of can be calculated by repeated multiplication if is not too large. The largest factorial that most calculators can handle is , because . Computer programs such as Microsoft Excel and Google Calculator can handle factorials as large as , which is the largest factorial less than ( in '' Hexadecimal '') and corresponds to a 2048 bit integer. and are respectively the largest factorials that can be stored in 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 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 from its prime factorization. As documented by Peter Borwein , prime factorization allows 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 ).Peter Borwein. "On the Complexity of Calculating Factorials". ''Journal of Algorithms'' 6, 376-380 (1985) Peter Luschny presents source code and benchmarks for several efficient factorial algorithms, with or without the use of a Prime Sieve .Peter Luschny, ''The Homepage of Factorial Algorithms'' . THE GAMMA FUNCTION , extends the factorial to a smooth function defined for all non-integer values.]] 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 for no z integers 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 this yields the equation for any nonnegative integer : : : 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 Number s 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:
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: : The product converges quickly for small values of . Applications of the gamma function
:: FACTORIAL-LIKE PRODUCTS There are several other integer sequences similar to the factorial that are used in mathematics: Primorial The Primorial is similar to the factorial, but with the product taken only over the Prime Number s. Double factorial denotes the double factorial of 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 starts as : 1, 1, 2, 3, 8, 15, 48, 105, 384, 945, 3840, ... The above definition can be used to define double factorials of negative numbers: : The sequence of double factorials for starts as : while the double factorial of negative even integers is infinite. Some identities involving double factorials are: : : : : : where is the Gamma Function . The last equation above can be used to define the double factorial as a function of any complex number , just as the Gamma function generalizes the factorial function. One should be careful not to interpret as the factorial of , which would be written and is a much larger number (for ). Multifactorials A common related notation is to use multiple exclamation points to denote a multifactorial, the product of integers in steps of two (), three (), or more. The double factorial is the most commonly used variant, but one can similarly define the triple factorial () and so on. In general, the ''k''th factorial, denoted by , is defined recursively as : Some mathematicians have suggested an alternative notation of for the double factorial and similarly for other multifactorials, but this has not come into general use. Quadruple factorial The Quadruple Factorial , however, is not a multifactorial; it is a much larger number given by . Superfactorials Neil Sloane and Simon Plouffe defined the superfactorial in 1995 as the product of the first factorials. So the superfactorial of 4 is : In general : The sequence of superfactorials starts (from ) as :1, 1, 2, 12, 288, 34560, 24883200, ... This idea was extended in 2000 by Henry Bottomley to the superduperfactorial as the product of the first superfactorials, starting (from ) as :1, 1, 2, 24, 6912, 238878720, 5944066965504000, ... and thus Recursively to any multiple-level factorial where the ''m''th-level factorial of is the product of the first th-level factorials, i.e. : where for and . Superfactorials (alternative definition) Clifford Pickover in his 1995 book ''Keys to Infinity'' defined the superfactorial of as : or as, : where the (4) notation denotes the Hyper4 Operator , or using Knuth's Up-arrow Notation , : This sequence of superfactorials starts: : : : Hyperfactorials Occasionally the hyperfactorial of is considered. It is written as and defined by : For ''n'' = 1, 2, 3, 4, ... the values ''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. However, ''H''(14) = 1.85...×1099 is already almost equal to a Googol , and ''H''(15) = 8.09...×10113 is almost of the same magnitiude as the Shannon Number , the theoretical number of possible chess games. The hyperfactorial function can be generalized to Complex Number s in a similar way as the factorial function. The resulting function is called the K-function . SEE ALSO
REFERENCES EXTERNAL LINKS
;Factorial calculators
;Factorial lists |
|
|