All Topics  
Factorial

 

   Email Print
   Bookmark   Link






 

Factorial



 
 
In mathematics
Mathematics

Mathematics is the study of quantity, structure, space, change, and related topics of pattern and form. Mathematicians seek out patterns whether found in numbers, space, natural science, computers, imaginary abstractions, or elsewhere....
, the factorial of a non-negative
Negative and non-negative numbers

A negative number is a real number that is inequality 0 , such as -3. A positive number is a real number that is greater than zero, such as 2....
 integer
Integer

The integers are natural numbers including 0 and their negative and non-negative numberss . They are numbers that can be written without a fractional or decimal component, and fall within the set ....
 n, denoted by n!, is the product
Product (mathematics)

In the a mathematics, a product is the result of Multiplication, or an expression that identifies divisors to be multiplied. The order in real number or complex number numbers are multiplied has no bearing on the product; this is known as the Commutativity of multiplication....
 of all positive integers less than or equal to n. For example,

and

The notation n! was introduced by Christian Kramp
Christian Kramp

Christian Kramp was a France mathematician, who worked primarily with factorials.Christian Kramp's father was his teacher at grammar school in Strasbourg....
 in 1808.

factorial function is formally defined by

or recursively
Recursive

Recursive may refer to:*Recursion*Recursively enumerable language*Recursively enumerable set*Recursive filter*Recursive function*Recursive language...
 defined by

Both of the above definitions incorporate the instance

as an instance of the fact that the product of no numbers at all
Empty product

In mathematics, an empty product, or nullary product, is the result of multiplication no numbers. Its numerical value is 1 , the multiplicative identity element, just as the empty sum—the result of addition no numbers—is 0 , or the additive identity....
 is 1.






Discussion
Ask a question about 'Factorial'
Start a new discussion about 'Factorial'
Answer questions from other users
Full Discussion Forum



Encyclopedia


In mathematics
Mathematics

Mathematics is the study of quantity, structure, space, change, and related topics of pattern and form. Mathematicians seek out patterns whether found in numbers, space, natural science, computers, imaginary abstractions, or elsewhere....
, the factorial of a non-negative
Negative and non-negative numbers

A negative number is a real number that is inequality 0 , such as -3. A positive number is a real number that is greater than zero, such as 2....
 integer
Integer

The integers are natural numbers including 0 and their negative and non-negative numberss . They are numbers that can be written without a fractional or decimal component, and fall within the set ....
 n, denoted by n!, is the product
Product (mathematics)

In the a mathematics, a product is the result of Multiplication, or an expression that identifies divisors to be multiplied. The order in real number or complex number numbers are multiplied has no bearing on the product; this is known as the Commutativity of multiplication....
 of all positive integers less than or equal to n. For example,

and

The notation n! was introduced by Christian Kramp
Christian Kramp

Christian Kramp was a France mathematician, who worked primarily with factorials.Christian Kramp's father was his teacher at grammar school in Strasbourg....
 in 1808.

Definition

The factorial function is formally defined by

or recursively
Recursive

Recursive may refer to:*Recursion*Recursively enumerable language*Recursively enumerable set*Recursive filter*Recursive function*Recursive language...
 defined by

Both of the above definitions incorporate the instance

as an instance of the fact that the product of no numbers at all
Empty product

In mathematics, an empty product, or nullary product, is the result of multiplication no numbers. Its numerical value is 1 , the multiplicative identity element, just as the empty sum—the result of addition no numbers—is 0 , or the additive identity....
 is 1. This fact for factorials is useful, because:

  • the recurrence relation
    Recurrence relation

    In mathematics, a recurrence relation is an equation that defines a sequence recursion: each term of the sequence is defined as a Function of the preceding terms....
      works for ;
  • it allows simple construction of expressions for infinite polynomials, e.g. ;
  • this definition makes many identities in combinatorics
    Combinatorics

    Combinatorics is a branch of pure mathematics concerning the study of Countable set objects. It is related to many other areas of mathematics, such as algebra, probability theory, ergodic theory and geometry, as well as to applied subjects in computer science and statistical physics....
     valid for zero sizes. The number of combinations or permutations of an empty set is .


Applications


  • Factorials are used in combinatorics
    Combinatorics

    Combinatorics is a branch of pure mathematics concerning the study of Countable set objects. It is related to many other areas of mathematics, such as algebra, probability theory, ergodic theory and geometry, as well as to applied subjects in computer science and statistical physics....
    . For example, there are different ways of arranging n distinct objects in a sequence. (The arrangements are called permutation
    Permutation

    In several fields of mathematics the term permutation is used with different but closely related meanings. They all relate to the notion of mapping the element s of a set to other elements of the same set, i.e., exchanging elements of a set....
    s.) 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
    Binomial coefficient

    In mathematics, the binomial coefficient is the coefficient of the x k term in the polynomial expansion of the binomial exponentiation  n....


  • In permutation
    Permutation

    In several fields of mathematics the term permutation is used with different but closely related meanings. They all relate to the notion of mapping the element s of a set to other elements of the same set, i.e., exchanging elements of a set....
    s, if objects can be chosen from a total of n objects and arranged in different ways, where r = n, then the total number of distinct permutations is given by:




  • Factorials also turn up in calculus
    Calculus

    Calculus is a branch of mathematics that includes the study of limit , derivatives, integrals, and infinite series, and constitutes a major part of modern university education....
    . For example, Taylor's theorem
    Taylor's theorem

    In calculus, Taylor's theorem gives a sequence of approximations of a differentiable function around a given point by polynomials whose coefficients depend only on the derivatives of the function at that point....
     expresses a function f(x) as a power series
    Power series

    In mathematics, a power series is an infinite series of the formwhere an represents the coefficient of the nth term, c is a constant, and x varies around c ....
     in x, basically because the nth derivative
    Derivative

    In calculus, a branch of mathematics, the derivative is a measure of how a function changes as its input changes. Loosely speaking, a derivative can be thought of as how much a quantity is changing at a given point....
     of xn is n!.


  • Factorials are also used extensively in probability theory
    Probability theory

    Probability theory is the branch of mathematics concerned with analysis of Statistical randomness phenomena. The central objects of probability theory are random variables, stochastic processes, and event s: mathematical abstractions of determinism events or measured quantities that may either be single occurrences or evolve over time in an a...
    .


  • Factorials are often used as a simple example, along with Fibonacci number
    Fibonacci number

    In mathematics, the Fibonacci numbers are a sequence of numbers named after Leonardo of Pisa, known as Fibonacci . Fibonacci's 1202 book Liber Abaci introduced the sequence to Western European mathematics, although the sequence had been previously described in Indian mathematics....
    s, when teaching recursion
    Recursion (computer science)

    Recursion is a way of thinking about and solving problems. In fact, Recursion_ is one of the central ideas of computer science. Solving a problem using recursion means the solution depends on solutions to smaller instances of the same problem....
     in computer science
    Computer science

    Computer science is the study of the theoretical foundations of information and computation, and of practical techniques for their implementation and application in computer systems....
     because they satisfy the following recursive relationship (if n = 1):




Number theory


Factorials have many applications in number theory
Number theory

Number theory is the branch of pure mathematics concerned with the properties of numbers in general, and integers in particular, as well as the wider classes of problems that arise from their study....
. In particular, n! is necessarily divisible by all prime number
Prime number

In mathematics, a prime number is a natural number which has exactly two distinct natural number divisors: 1 and itself. An infinitude of prime numbers exists, as demonstrated by Euclid around 300 BC....
s up to and including n. As a consequence, n > 5 is a composite number
Composite number

A composite number is a negative and non-negative numbers integer which has a positive divisor other than one or itself. In other words, if 0 < n is an integer and there are integers 1 < a, b < n such that n = a ? b then n is composite....
 if and only if
If and only if

If and only if, in logic and fields that rely on it such as mathematics and philosophy, is a biconditional logical connective between statements....


A stronger result is Wilson's theorem
Wilson's theorem

In mathematics, Wilson's theorem states that p > 1 is a prime number if and only if....
, which states that

if and only if p is prime.

Adrien-Marie Legendre
Adrien-Marie Legendre

Adrien-Marie Legendre was a France mathematician. He made important contributions to statistics, number theory, abstract algebra and mathematical analysis....
 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 of the integers from to . The number of multiples of in the numbers to are given by ; however, this formula counts those numbers with two factors of only once. Hence another factors of must be counted too. Similarly for three, four, five factors, to infinity. The sum is finite since is less than or equal to for only finitely many values of , and the floor function
Floor function

In mathematics and computer science, the floor and ceiling function s map a real number to the next smallest or next largest integer. More precisely, floor is the largest integer not greater than x and ceiling is the smallest integer not less than x....
 results in 0 when applied to

The only factorial that is also a prime number is 2, but there are many primes of the form , called factorial prime
Factorial prime

A factorial prime is a prime number that is one less or one more than a factorial . The first few factorial primes are:n! − 1 is prime for :...
s.

All factorials greater than 0! and 1! are even, as they are all multiples of 2.

Rate of growth

As n grows, the factorial n! becomes larger than all polynomial
Polynomial

In mathematics, a polynomial is an expression constructed from variables and constants, using the operations of addition, subtraction, multiplication, and constant non-negative whole number exponents....
s and exponential function
Exponential function

The exponential function is a function in mathematics. The application of this function to a value x is written as exp. Equivalently, this can be written in the form ex, where e is the mathematical constant that is the base of the natural logarithm and that is also known as Euler's number....
s (but slower than double exponential function
Double exponential function

A double exponential function is a constant raised to the power of an exponential function. The general formula is , which grows even faster than an exponential function....
s) in n.

When n is large, n! can be estimated quite accurately using Stirling's approximation
Stirling's approximation

In mathematics, Stirling's approximation is an approximation for large factorials. It is named after James Stirling .The formula is written as...
:

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

Mathematical induction is a method of mathematical proof typically used to establish that a given statement is true of all natural numbers. It is done by proving that the first statement in the infinite sequence of statements is true, and then proving that if any one statement in the infinite sequence of statements is true, then...
 is

The logarithm
Logarithm

In mathematics, the logarithm of a number to a given base is the Power or exponent to which the base must be raised in order to produce the number....
 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
Linear function

In mathematics, the term linear function can refer to either of two different but related concepts: a first-degree polynomial function of one variable; or a map between two vector spaces that preserves vector addition and scalar multiplication....
; but the factor log n!/n, and thereby the slope of the graph, grows arbitrarily large, although quite slowly. The graph of log(n!) for n between 0 and 20,000 is shown in the figure on the right.

A simple approximation for based on Stirling's approximation
Stirling's approximation

In mathematics, Stirling's approximation is an approximation for large factorials. It is named after James Stirling .The formula is written as...
 is

A much better approximation for was given by Srinivasa Ramanujan
Srinivasa Ramanujan

Srinivasa Ramanujan Ivengar Fellow of the Royal Society, better known as Srinivasa Ramanujan was an Indian mathematician, who, with almost no formal training in pure mathematics, made substantial contributions to mathematical analysis, number theory, infinite series and continued fractions....
:

One can see from this that is ?
Big O notation

In mathematics, big O notation describes the asymptotic analysis of a function when the argument tends towards a particular value or infinity, usually in terms of simpler functions....
(n log n). This result plays a key role in the analysis of the computational complexity
Computational complexity theory

Computational complexity theory, as a branch of the theory of computation in computer science, investigates the problems related to the Computational resource required for the execution of algorithms , and the inherent difficulty in providing efficient algorithms for specific computational problems....
 of sorting algorithm
Sorting algorithm

In computer science and mathematics, a sorting algorithm is an algorithm that puts elements of a List in a certain Total order. The most-used orders are numerical order and lexicographical order....
s (see comparison sort
Comparison sort

A comparison sort is a type of sorting algorithm that only reads the list elements through a single abstract comparison operation that determines which of two elements should occur first in the final sorted list....
).

Computation


The value of can be calculated by repeated multiplication if is not too large. The largest factorial that most calculators can handle is 69!, because 70! > 10100 (except for most HP calculators which can handle 253! as their exponent can be up to 499). The calculator seen in Mac OS X, Microsoft Excel
Microsoft Excel

Microsoft Excel is a spreadsheet-application written and distributed by Microsoft for Microsoft Windows and Mac OS X. It features calculation, graphing tools, pivot tables and a macro programming language called VBA ....
 and Google Calculator can handle factorials up to 170!, which is the largest factorial less than 21024 (10100 in hexadecimal
Hexadecimal

In mathematics and computer science, hexadecimal is a numeral system with a radix, or base, of 16. It uses sixteen distinct symbols, most often the symbols 09 to represent values zero to nine, and A, B, C, D, E, F to represent values ten to fifteen....
) and corresponds to a 1024 bit integer. The scientific calculator in Windows XP is able calculate factorials up to at least 100000!. This calculator can display exponents of more than 1000000, 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
Gamma function

In mathematics, the Gamma function is an extension of the factorial function to real number and complex number numbers. For a complex number z with positive real part the Gamma function is defined by...
, usually with Stirling's formula.

For number theoretic
Number theory

Number theory is the branch of pure mathematics concerned with the properties of numbers in general, and integers in particular, as well as the wider classes of problems that arise from their study....
 and combinatorial
Combinatorics

Combinatorics is a branch of pure mathematics concerning the study of Countable set objects. It is related to many other areas of mathematics, such as algebra, probability theory, ergodic theory and geometry, as well as to applied subjects in computer science and statistical physics....
 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
Peter Borwein

Peter Benjamin Borwein is a Canada mathematicianand a professor at Simon Fraser University. He is known for co-authoring the paper for the Bailey?Borwein?Plouffe formula ....
, prime factorization allows to be computed in time O
Big O notation

In mathematics, big O notation describes the asymptotic analysis of a function when the argument tends towards a particular value or infinity, usually in terms of simpler functions....
(n(log n log log n)2), provided that a fast multiplication algorithm
Multiplication algorithm

A multiplication algorithm is an algorithm to multiplication two numbers. Depending on the size of the numbers, different algorithms are in use....
 is used (for example, the Schönhage-Strassen algorithm
Schönhage-Strassen algorithm

The Sch?nhage?Strassen algorithm is an asymptotically fast multiplication algorithm for large integers. It was developed by Arnold Sch?nhage and Volker Strassen in 1971....
). Peter Luschny presents source code and benchmarks for several efficient factorial algorithms, with or without the use of a prime sieve.

Extension of factorial to non-integer values of argument


The gamma function


Gamma Plot
The factorial function can also be defined for non-integer values, but this requires more advanced tools from mathematical analysis
Mathematical analysis

Mathematical analysis, which mathematicians refer to simply as analysis, has its beginnings in the rigorous formulation of calculus. It is the branch of mathematics most explicitly concerned with the notion of a limit , whether the limit of a sequence or the limit of a function....
. The function that "fills in" the values of the factorial between the integers is called the Gamma function
Gamma function

In mathematics, the Gamma function is an extension of the factorial function to real number and complex number numbers. For a complex number z with positive real part the Gamma function is defined by...
, denoted for integers z no less than 1, defined by

Euler's
Leonhard Euler

Leonhard Paul Euler was a pioneering Swiss mathematician and physicist who spent most of his life in Russia and Germany.Euler made important discoveries in fields as diverse as calculus and graph theory....
 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
Half-integer

In mathematics, a half-integer is a number of the form,where is an integer. For example,are all half-integers. Note that a half of an integer is not always a half-integer: half of an even integer is an integer but not a half-integer....
 factorials is resolved to

For example

The Gamma function is in fact defined for all complex number
Complex number

In mathematics, the complex numbers are an extension of the real numbers obtained by adjoining an imaginary unit, denoted i, which satisfies:...
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:
  • Shared meaning. The canonical definition of the factorial function shares the same recursive relationship with the Gamma function.
  • Context. The Gamma function is generally used in a context similar to that of the factorials (but, of course, where a more general domain is of interest).
  • Uniqueness (Bohr–Mollerup theorem
    Bohr–Mollerup theorem

    In mathematics mathematical analysis, the Bohr?Mollerup theorem is named after the Danish mathematicians Harald Bohr and Johannes Mollerup, who proved it....
    ). The Gamma function is the only function which satisfies the aforementioned recursive relationship for the domain of complex numbers, is meromorphic, and is log-convex on the positive real axis. That is, it is the only smooth, log-convex function that could be a generalization of the factorial function to 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 n.

Applications of the gamma function


  • The volume
    Volume

    The volume of any solid, liquid, plasma, vacuum or theoretical object is how much three-dimensional space it occupies, often quantified numerically....
     of an n-dimension
    Dimension

    In mathematics, the dimension of a space is roughly defined as the minimum number of coordinates needed to specify every point within it. For example: a point on the unit circle in the plane can be specified by two Cartesian coordinates but one can make do with a single coordinate , so the circle is 1-dimensional even though it exists in...
    al hypersphere
    Hypersphere

    In mathematics, an n-sphere is a generalization of the surface of an ordinary sphere to arbitrary dimension. For any natural number n, an n-sphere of radius r is defined as the set of points in -dimensional Euclidean space which are at distance r from a central point, where the radius r may be any positive real num...
     is




Factorial at the complex plane

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) and constant phase are shown. The grid covers range , with unit step. The scratched line shows the level .

Thin lines show internediate 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 , the Taylor expansions can be used: The first coefficients of this expansion are































approximation
0
1
2
3


where is the Euler constant and is the Riemann function
Riemann function

Riemann function may refer to one of the several function named after the mathematician Bernhard Riemann, including:*Riemann zeta function*Thomae's function...
. Computer algebra system
Computer algebra system

A computer algebra system is a Application software that facilitates symbolic mathematics. The core functionality of a CAS is manipulation of mathematical expressions in symbolic form....
s such as Mathematica
Mathematica

Mathematica is a computational software program used widely in scientific, engineering, and mathematical fields and other areas of technical computing....
 can generate many terms of this expansion.

Approximations of factorial

For the large values of the argument, factorial can be approximated through the integral of the Psi function
Digamma function

In mathematics, the digamma function is defined as the logarithmic derivative of the gamma function:It is the first of the polygamma functions....
, using the continued fraction
Continued fraction

In mathematics, a continued fraction is an expression such aswhere a0 is an integer and all the other numbers ai are positive integers....
 representation .
The first coefficients in this continuous fraction are

There is common misconception
Misconception

A misconception happens when a person belief in a concept which is Objective approach false.Due to the subjective nature of humanity, it can be assumed that everyone has some kind of misconception....
, that or for any complex . Indeed, the relation through the logarithm is valid only for specific range of values of 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, , is valid for the whole complex plane, the only, in the continuous 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 precision.

Factorial-like products

There are several other integer sequences similar to the factorial that are used in mathematics:

Primorial

The primorial
Primorial

The name primorial is attributed to Harvey Dubner and is a portmanteau of prime number and factorial. There are two definitions for primorial: one for prime numbers and one for natural numbers....
  is similar to the factorial, but with the product taken only over the prime number
Prime number

In mathematics, a prime number is a natural number which has exactly two distinct natural number divisors: 1 and itself. An infinitude of prime numbers exists, as demonstrated by Euclid around 300 BC....
s.

Double factorial

denotes the double factorial of and is defined recursively by

For example, 8!! = 2 · 4 · 6 · 8 = 384
384 (number)

Three hundred [and] eighty four is an even composite positive integer....
 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 odd numbers:

The sequence of double factorials for starts as


while the double factorial of negative even integers is undefined.

Some identities involving double factorials are:


where is the Gamma function
Gamma function

In mathematics, the Gamma function is an extension of the factorial function to real number and complex number numbers. For a complex number z with positive real part the Gamma function is defined by...
. 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 kth 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.

In the same way that is not defined for integers, and is not defined for even integers, is not defined for .

Also,

Quadruple factorial

The so-called quadruple factorial
Catalan number

In combinatorics, the Catalan numbers form a sequence of natural numbers that occur in various counting problems, often involvingrecursion defined objects....
, however, is not a multifactorial; it is a much larger number given by , starting as

1, 2, 12, 120, 1680, 30240, 665280, ... .


Superfactorials

Neil Sloane
Neil Sloane

Neil James Alexander Sloane is a United KingdomUnited States mathematician. He studied at Cornell University under Frederick Jelinek and Wolfgang Heinrich Johannes Fuchs, receiving his Ph.D....
 and Simon Plouffe
Simon Plouffe

Simon Plouffe is a Quebec mathematician born on June 11 1956 in :fr:Saint-Jovite, Quebec. He discovered the formula for the BBP algorithm which permits the computation of the nth binary numeral system digit of pi, in 1995....
 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
Recursion

Recursion, in mathematics and computer science, is a method of defining Function in which the function being defined is applied within its own definition....
 to any multiple-level factorial where the mth-level factorial of is the product of the first th-level factorials, i.e.

where for and .

(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
Tetration

In mathematics, tetration is an iterated function exponential function, the first hyper operator after exponentiation. The portmanteau tetration was coined by English mathematician Reuben Louis Goodstein from tetra- and iteration....
 operator
Operator

In mathematics, an operator is a function which operates on another function. Often, an "operator" is a function which acts on functions to produce other functions ; or it may be a generalization of such a function, as in linear algebra, where some of the terminology reflects the origin of the subject in operations on the functions which ar...
, or using Knuth's up-arrow notation
Knuth's up-arrow notation

In mathematics, Knuth's up-arrow notation is a method of notation of large number integers introduced by Donald Knuth in 1976. It is closely related to the Ackermann function....
, This sequence of superfactorials starts: Here, as is usual for compound exponentiation
Exponentiation

Exponentiation is a mathematics operation , written 'an', involving two numbers, the base a and the exponent n....
, the grouping is understood to be from right to left:

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
Googol

A googol is the large number 10100, that is, the numerical digit 1 followed by one hundred 0 .The term was coined in 1938 by Milton Sirotta , nephew of American mathematician Edward Kasner....
, and H(15) = 8.09...×10116 is almost of the same magnitude as the Shannon number
Shannon number

The Shannon number, 10120, is an estimated lower bound on the game-tree complexity of chess, calculated by information theory Claude Shannon as an aside in his 1950 paper "Programming a Computer for Playing Chess "....
, the theoretical number of possible chess games. For a function that grows even faster than the hyperfactorial, see the Ackermann function
Ackermann function

In computability theory, the Ackermann function or Ackermann?P?ter function is a simple example of a computable function that is not Primitive recursive function....
.

The hyperfactorial function can be generalized to complex number
Complex number

In mathematics, the complex numbers are an extension of the real numbers obtained by adjoining an imaginary unit, denoted i, which satisfies:...
s in a similar way as the factorial function. The resulting function is called the K-function
K-function

In mathematics, the K-function, typically denoted K, is a generalization of the hyperfactorial to complex numbers, similar to the generalization of the factorial to the Gamma function....
.

See also


  • Alternating factorial
    Alternating factorial

    In mathematics, an alternating factorial is the absolute value of the alternating sum of the first n factorials.This is the same as their sum, with the odd-indexed factorials multiplied by -1 if n is even, and the even-indexed factorials multiplied by −1 if n is odd, resulting in an alternation of signs of the summands ....
  • Digamma function
    Digamma function

    In mathematics, the digamma function is defined as the logarithmic derivative of the gamma function:It is the first of the polygamma functions....
  • Exponential factorial
    Exponential factorial

    An exponential factorial is a positive integer n exponentiation of n − 1, which in turn is raised to the power of n − 2, and so on and so forth, that is,...
  • Factoradic
    Factoradic

    In combinatorics, factoradic is a specially constructed number system. Factoradics provide a lexicographical index for permutations, so they have potential application to computer security....
  • Factorial prime
    Factorial prime

    A factorial prime is a prime number that is one less or one more than a factorial . The first few factorial primes are:n! − 1 is prime for :...
  • Factorion
    Factorion

    A factorion is a natural number that equals the sum of the factorials of its decimal digits. For example, 145 is a factorion because 1! + 4! + 5! = 1 + 24 + 120 = 145....
  • Stirling's approximation
    Stirling's approximation

    In mathematics, Stirling's approximation is an approximation for large factorials. It is named after James Stirling .The formula is written as...
  • Trailing zeros of factorial
  • Triangular number
    Triangular number

    A triangular number is the number of dots in an equilateral triangle evenly filled with dots. For example, three dots can be arranged in a triangle; thus three is a triangle number....
    , the additive analogue of factorial


External links

  • by Paul Niquette
Factorial calculators and algorithms
  • : computes factorials up to 150,000!.
  • : instantly finds factorials up to 10^14!
  • : shows factorials calculated as if by hand using common elementary school aglorithms
  • by Ed Pegg, Jr.
    Ed Pegg, Jr.

    Ed Pegg, Jr. is an expert on mathematical puzzles and is a self-described recreational mathematician. He creates puzzles for the Mathematical Association of America online at Ed Pegg, Jr.'s Math Games....
     and Rob Morris, Wolfram Demonstrations Project
    Wolfram Demonstrations Project

    The Wolfram Demonstrations Project is a website developed by Wolfram Research, whose stated goal is to bring computational exploration to the widest possible audience....
    , 2007.