Movatterモバイル変換


[0]ホーム

URL:


Jump to content
WikipediaThe Free Encyclopedia
Search

Factorial

This is a good article. Click here for more information.
From Wikipedia, the free encyclopedia
Product of numbers from 1 to n

This article is about a mathematical function. For the game, seeFactorio. For other uses, seeFactorial (disambiguation).

Selected factorials; values in scientific notation are rounded
n{\displaystyle n}n!{\displaystyle n!}
01
11
22
36
424
5120
6720
75040
840320
9362880
103628800
1139916800
12479001600
136227020800
1487178291200
151307674368000
1620922789888000
17355687428096000
186402373705728000
19121645100408832000
202432902008176640000
251.551121004×1025
503.041409320×1064
701.197857167×10100
1009.332621544×10157
4501.733368733×101000
10004.023872601×102567
32496.412337688×1010000
100002.846259681×1035659
252061.205703438×10100000
1000002.824229408×10456573
2050232.503898932×101000004
10000008.263931688×105565708
101001010101.9981097754820

Inmathematics, thefactorial of a non-negativeintegern{\displaystyle n}, denotedbyn!{\displaystyle n!}, is theproduct of all positive integers less than or equalton{\displaystyle n}. The factorialofn{\displaystyle n} also equals the product ofn{\displaystyle n} with the next smaller factorial:n!=n×(n1)×(n2)×(n3)××3×2×1=n×(n1)!{\displaystyle {\begin{aligned}n!&=n\times (n-1)\times (n-2)\times (n-3)\times \cdots \times 3\times 2\times 1\\&=n\times (n-1)!\\\end{aligned}}}For example,5!=5×4!=5×4×3×2×1=120.{\displaystyle 5!=5\times 4!=5\times 4\times 3\times 2\times 1=120.}The value of 0! is 1, according to the convention for anempty product.[1]

Factorials have been discovered in several ancient cultures, notably inIndian mathematics in the canonical works ofJain literature, and by Jewish mystics in the Talmudic bookSefer Yetzirah. The factorial operation is encountered in many areas of mathematics, notably incombinatorics, where its most basic use counts the possible distinctsequences – thepermutations – ofn{\displaystyle n} distinct objects: therearen!{\displaystyle n!}. Inmathematical analysis, factorials are used inpower series for theexponential function and other functions, and they also have applications inalgebra,number theory,probability theory, andcomputer science.

Much of the mathematics of the factorial function was developed beginning in the late 18th and early 19th centuries.Stirling's approximation provides an accurate approximation to the factorial of large numbers, showing that it grows more quickly thanexponential growth.Legendre's formula describes the exponents of the prime numbers in aprime factorization of the factorials, and can be used to count the trailing zeros of the factorials.Daniel Bernoulli andLeonhard Eulerinterpolated the factorial function to a continuous function ofcomplex numbers, except at the negative integers, the (offset)gamma function.

Many other notable functions and number sequences are closely related to the factorials, including thebinomial coefficients,double factorials,falling factorials,primorials, andsubfactorials. Implementations of the factorial function are commonly used as an example of differentcomputer programming styles, and are included inscientific calculators and scientific computing software libraries. Although directly computing large factorials using the product formula or recurrence is not efficient, faster algorithms are known, matching to within a constant factor the time for fastmultiplication algorithms for numbers with the same number of digits.

History

[edit]

The concept of factorials has arisen independently in many cultures:

  • InIndian mathematics, one of the earliest known descriptions of factorials comes from the Anuyogadvāra-sūtra,[2] one of the canonical works ofJain literature, which has been assigned dates varying from 300 BCE to 400 CE.[3] It separates out the sorted and reversed order of a set of items from the other ("mixed") orders, evaluating the number of mixed orders by subtracting two from the usual product formula for the factorial. The product rule for permutations was also described by 6th-century CE Jain monkJinabhadra.[2] Hindu scholars have been using factorial formulas since at least 1150, whenBhāskara II mentioned factorials in his workLīlāvatī, in connection with a problem of how many waysVishnu could hold his four characteristic objects (aconch shell,discus,mace, andlotus flower) in his four hands, and a similar problem for a ten-handed god.[4]
  • In the mathematics of the Middle East, the Hebrew mystic book of creationSefer Yetzirah, from theTalmudic period (200 to 500 CE), lists factorials up to 7! as part of an investigation into the number of words that can be formed from theHebrew alphabet.[5][6] Factorials were also studied for similar reasons by 8th-century Arab grammarianAl-Khalil ibn Ahmad al-Farahidi.[5] Arab mathematicianIbn al-Haytham (also known as Alhazen, c. 965 – c. 1040) was the first to formulateWilson's theorem connecting the factorials with theprime numbers.[7]
  • In Europe, althoughGreek mathematics included some combinatorics, andPlato famously used 5,040 (a factorial) as the population of an ideal community, in part because of its divisibility properties,[8] there is no direct evidence of ancient Greek study of factorials. Instead, the first work on factorials in Europe was by Jewish scholars such asShabbethai Donnolo, explicating the Sefer Yetzirah passage.[9] In 1677, British authorFabian Stedman described the application of factorials tochange ringing, a musical art involving the ringing of several tuned bells.[10][11]

From the late 15th century onward, factorials became the subject of study by Western mathematicians. In a 1494 treatise, Italian mathematicianLuca Pacioli calculated factorials up to 11!, in connection with a problem of dining table arrangements.[12]Christopher Clavius discussed factorials in a 1603 commentary on the work ofJohannes de Sacrobosco, and in the 1640s, French polymathMarin Mersenne published large (but not entirely correct) tables of factorials, up to 64!, based on the work of Clavius.[13] Thepower series for theexponential function, with the reciprocals of factorials for its coefficients, was first formulated in 1676 byIsaac Newton in a letter toGottfried Wilhelm Leibniz.[14] Other important works of early European mathematics on factorials include extensive coverage in a 1685 treatise byJohn Wallis, a study of their approximate values for large values ofn{\displaystyle n} byAbraham de Moivre in 1721, a 1729 letter fromJames Stirling to de Moivre stating what became known asStirling's approximation, and work at the same time byDaniel Bernoulli andLeonhard Euler formulating the continuous extension of the factorial function to thegamma function.[15]Adrien-Marie Legendre includedLegendre's formula, describing the exponents in thefactorization of factorials intoprime powers, in an 1808 text onnumber theory.[16]

The notationn!{\displaystyle n!} for factorials was introduced by the French mathematicianChristian Kramp in 1808.[17] Many other notations have also been used. Another later notation|n_{\displaystyle \vert \!{\underline {\,n}}}, in which the argument of the factorial was half-enclosed by the left and bottom sides of a box, was popular for some time in Britain and America but fell out of use, perhaps because it is difficult to typeset.[17] The word "factorial" (originally French:factorielle) was first used in 1800 byLouis François Antoine Arbogast,[18] in the first work onFaà di Bruno's formula,[19] but referring to a more general concept of products ofarithmetic progressions. The "factors" that this name refers to are the terms of the product formula for the factorial.[20]

Definition

[edit]

The factorial function of a positive integern{\displaystyle n} is defined by the product of all positive integers not greater thann{\displaystyle n}[1]n!=123(n2)(n1)n.{\displaystyle n!=1\cdot 2\cdot 3\cdots (n-2)\cdot (n-1)\cdot n.}This may be written more concisely inproduct notation as[1]n!=i=1ni.{\displaystyle n!=\prod _{i=1}^{n}i.}

If this product formula is changed to keep all but the last term, it would define a product of the same form, for a smaller factorial. This leads to arecurrence relation, according to which each value of the factorial function can be obtained by multiplying the previous valuebyn{\displaystyle n}:[21]n!=n(n1)!.{\displaystyle n!=n\cdot (n-1)!.}For example,5!=54!=524=120{\displaystyle 5!=5\cdot 4!=5\cdot 24=120}.

Factorial of zero

[edit]

The factorialof0{\displaystyle 0}is1{\displaystyle 1}, or in symbols,0!=1{\displaystyle 0!=1}. There are several motivations for this definition:

Applications

[edit]

The earliest uses of the factorial function involve countingpermutations: there aren!{\displaystyle n!} different ways of arrangingn{\displaystyle n} distinct objects into a sequence.[26] Factorials appear more broadly in many formulas incombinatorics, to account for different orderings of objects. For instance thebinomial coefficients(nk){\displaystyle {\tbinom {n}{k}}} count thek{\displaystyle k}-elementcombinations (subsets ofk{\displaystyle k} elements) from a set withn{\displaystyle n} elements, and can be computed from factorials using the formula[27](nk)=n!k!(nk)!.{\displaystyle {\binom {n}{k}}={\frac {n!}{k!(n-k)!}}.} TheStirling numbers of the first kind sum to the factorials, and count the permutationsofn{\displaystyle n} grouped into subsets with the same numbers of cycles.[28] Another combinatorial application is in countingderangements, permutations that do not leave any element in its original position; the number of derangements ofn{\displaystyle n} items is thenearest integerton!/e{\displaystyle n!/e}.[29]

Inalgebra, the factorials arise through thebinomial theorem, which uses binomial coefficients to expand powers of sums.[30] They also occur in the coefficients used to relate certain families of polynomials to each other, for instance inNewton's identities forsymmetric polynomials.[31] Their use in counting permutations can also be restated algebraically: the factorials are theorders of finitesymmetric groups.[32] Incalculus, factorials occur inFaà di Bruno's formula for chaining higher derivatives.[19] Inmathematical analysis, factorials frequently appear in the denominators ofpower series, most notably in the series for theexponential function,[14]ex=1+x1+x22+x36+=i=0xii!,{\displaystyle e^{x}=1+{\frac {x}{1}}+{\frac {x^{2}}{2}}+{\frac {x^{3}}{6}}+\cdots =\sum _{i=0}^{\infty }{\frac {x^{i}}{i!}},}and in the coefficients of otherTaylor series (in particular those of thetrigonometric andhyperbolic functions), where they cancel factors ofn!{\displaystyle n!} coming from then{\displaystyle n}th derivativeofxn{\displaystyle x^{n}}.[33] This usage of factorials in power series connects back toanalytic combinatorics through theexponential generating function, which for acombinatorial class withni{\displaystyle n_{i}} elements ofsizei{\displaystyle i} is defined as the power series[34]i=0xinii!.{\displaystyle \sum _{i=0}^{\infty }{\frac {x^{i}n_{i}}{i!}}.}

Innumber theory, the most salient property of factorials is thedivisibility ofn!{\displaystyle n!} by all positive integers upton{\displaystyle n}, described more precisely for prime factors byLegendre's formula. It follows that arbitrarily largeprime numbers can be found as the prime factors of the numbersn!±1{\displaystyle n!\pm 1}, leading to a proof ofEuclid's theorem that the number of primes is infinite.[35] Whenn!±1{\displaystyle n!\pm 1} is itself prime it is called afactorial prime;[36] relatedly,Brocard's problem, also posed bySrinivasa Ramanujan, concerns the existence ofsquare numbers of the formn!+1{\displaystyle n!+1}.[37] In contrast, the numbersn!+2,n!+3,n!+n{\displaystyle n!+2,n!+3,\dots n!+n} must all be composite, proving the existence of arbitrarily largeprime gaps.[38] An elementaryproof of Bertrand's postulate on the existence of a prime in any interval of theform[n,2n]{\displaystyle [n,2n]}, one of the first results ofPaul Erdős, was based on the divisibility properties of factorials.[39][40] Thefactorial number system is amixed radix notation for numbers in which the place values of each digit are factorials.[41]

Factorials are used extensively inprobability theory, for instance in thePoisson distribution[42] and in the probabilities ofrandom permutations.[43] Incomputer science, beyond appearing in the analysis ofbrute-force searches over permutations,[44] factorials arise in thelower bound oflog2n!=nlog2nO(n){\displaystyle \log _{2}n!=n\log _{2}n-O(n)} on the number of comparisons needed tocomparison sort a set ofn{\displaystyle n} items,[45] and in the analysis of chainedhash tables, where the distribution of keys per cell can be accurately approximated by a Poisson distribution.[46] Moreover, factorials naturally appear in formulae fromquantum andstatistical physics, where one often considers all the possible permutations of a set of particles. Instatistical mechanics, calculations ofentropy such asBoltzmann's entropy formula or theSackur–Tetrode equation must correct the count ofmicrostates by dividing by the factorials of the numbers of each type ofindistinguishable particle to avoid theGibbs paradox. Quantum physics provides the underlying reason for why these corrections are necessary.[47]

Properties

[edit]

Growth and approximation

[edit]
Comparison of the factorial, Stirling's approximation, and the simpler approximation(n/e)n{\displaystyle (n/e)^{n}}, on a doubly logarithmic scale
Relative error in a truncated Stirling series vs. number of terms
Main article:Stirling's approximation

As a functionofn{\displaystyle n}, the factorial has faster thanexponential growth, but grows more slowly than adouble exponential function.[48] Its growth rate is similartonn{\displaystyle n^{n}}, but slower by an exponential factor. One way of approaching this result is by taking thenatural logarithm of the factorial, which turns its product formula into a sum, and then estimating the sum by an integral:lnn!=x=1nlnx1nlnxdx=nlnnn+1.{\displaystyle \ln n!=\sum _{x=1}^{n}\ln x\approx \int _{1}^{n}\ln x\,dx=n\ln n-n+1.}Exponentiating the result (and ignoring the negligible+1{\displaystyle +1} term) approximatesn!{\displaystyle n!} as(n/e)n{\displaystyle (n/e)^{n}}.[49]More carefully bounding the sum both above and below by an integral, using thetrapezoid rule, shows that this estimate needs a correction factor proportionalton{\displaystyle {\sqrt {n}}}. The constant of proportionality for this correction can be found from theWallis product, which expressesπ{\displaystyle \pi } as a limiting ratio of factorials and powers of two. The result of these corrections isStirling's approximation:[50]n!2πn(ne)n.{\displaystyle n!\sim {\sqrt {2\pi n}}\left({\frac {n}{e}}\right)^{n}\,.}Here, the{\displaystyle \sim } symbol means that, asn{\displaystyle n} goes to infinity, the ratio between the left and right sides approaches one in thelimit.Stirling's formula provides the first term in anasymptotic series that becomes even more accurate when taken to greater numbers of terms:[51]n!2πn(ne)n(1+112n+1288n213951840n35712488320n4+).{\displaystyle n!\sim {\sqrt {2\pi n}}\left({\frac {n}{e}}\right)^{n}\left(1+{\frac {1}{12n}}+{\frac {1}{288n^{2}}}-{\frac {139}{51840n^{3}}}-{\frac {571}{2488320n^{4}}}+\cdots \right).}An alternative version uses only odd exponents in the correction terms:[51]n!2πn(ne)nexp(112n1360n3+11260n511680n7+).{\displaystyle n!\sim {\sqrt {2\pi n}}\left({\frac {n}{e}}\right)^{n}\exp \left({\frac {1}{12n}}-{\frac {1}{360n^{3}}}+{\frac {1}{1260n^{5}}}-{\frac {1}{1680n^{7}}}+\cdots \right).}Many other variations of these formulas have also been developed, bySrinivasa Ramanujan,Bill Gosper, and others.[51]

Thebinary logarithm of the factorial, used to analyzecomparison sorting, can be very accurately estimated using Stirling's approximation. In the formula below, theO(1){\displaystyle O(1)} term invokesbig O notation.[45]log2n!=nlog2n(log2e)n+12log2n+O(1).{\displaystyle \log _{2}n!=n\log _{2}n-(\log _{2}e)n+{\frac {1}{2}}\log _{2}n+O(1).}

Divisibility and digits

[edit]
Main article:Legendre's formula

The product formula for the factorial implies thatn!{\displaystyle n!} isdivisible by allprime numbers that are atmostn{\displaystyle n}, and by no larger prime numbers.[52] More precise information about its divisibility is given byLegendre's formula, which gives the exponent of each primep{\displaystyle p} in the prime factorization ofn!{\displaystyle n!} as[53][54]i=1npi=nsp(n)p1.{\displaystyle \sum _{i=1}^{\infty }\left\lfloor {\frac {n}{p^{i}}}\right\rfloor ={\frac {n-s_{p}(n)}{p-1}}.}Heresp(n){\displaystyle s_{p}(n)} denotes the sum of thebase-p{\displaystyle p} digitsofn{\displaystyle n}, and the exponent given by this formula can also be interpreted in advanced mathematics as thep-adic valuation of the factorial.[54] Applying Legendre's formula to the product formula forbinomial coefficients producesKummer's theorem, a similar result on the exponent of each prime in the factorization of a binomial coefficient.[55] Grouping the prime factors of the factorial intoprime powers in different ways produces themultiplicative partitions of factorials.[56]

The special case of Legendre's formula forp=5{\displaystyle p=5} gives the number oftrailing zeros in the decimal representation of the factorials.[57] According to this formula, the number of zeros can be obtained by subtracting the base-5 digits ofn{\displaystyle n} fromn{\displaystyle n}, and dividing the result by four.[58] Legendre's formula implies that the exponent of the primep=2{\displaystyle p=2} is always larger than the exponent forp=5{\displaystyle p=5}, so each factor of five can be paired with a factor of two to produce one of these trailing zeros.[57] The leading digits of the factorials are distributed according toBenford's law.[59] Every sequence of digits, in any base, is the sequence of initial digits of some factorial number in that base.[60]

Another result on divisibility of factorials,Wilson's theorem, states that(n1)!+1{\displaystyle (n-1)!+1} is divisible byn{\displaystyle n} if and only ifn{\displaystyle n} is aprime number.[52] For any givenintegerx{\displaystyle x}, theKempner function ofx{\displaystyle x} is given by the smallestn{\displaystyle n} for whichx{\displaystyle x} dividesn!{\displaystyle n!}.[61] For almost all numbers (all but a subset of exceptions withasymptotic density zero), it coincides with the largest prime factorofx{\displaystyle x}.[62]

The product of two factorials,m!n!{\displaystyle m!\cdot n!}, always evenly divides(m+n)!{\displaystyle (m+n)!}.[63] There are infinitely many factorials that equal the product of other factorials: ifn{\displaystyle n} is itself any product of factorials, thenn!{\displaystyle n!} equals that same product multiplied by one more factorial,(n1)!{\displaystyle (n-1)!}. The only known examples of factorials that are products of other factorials but are not of this "trivial" form are9!=7!3!3!2!{\displaystyle 9!=7!\cdot 3!\cdot 3!\cdot 2!},10!=7!6!=7!5!3!{\displaystyle 10!=7!\cdot 6!=7!\cdot 5!\cdot 3!}, and16!=14!5!2!{\displaystyle 16!=14!\cdot 5!\cdot 2!}.[64] It would follow from theabc conjecture that there are only finitely many nontrivial examples.[65]

Thegreatest common divisor of the values of aprimitive polynomial of degreed{\displaystyle d} over the integers evenly dividesd!{\displaystyle d!}.[63]

Continuous interpolation and non-integer generalization

[edit]
The gamma function (shifted one unit left to match the factorials) continuously interpolates the factorial to non-integer values
Absolute values of the complex gamma function, showing poles at non-positive integers
Main article:Gamma function

There are infinitely many ways to extend the factorials to acontinuous function.[66] The most widely used of these[67] uses thegamma function, which can be defined for positive real numbers as theintegralΓ(z)=0xz1exdx.{\displaystyle \Gamma (z)=\int _{0}^{\infty }x^{z-1}e^{-x}\,dx.}The resulting function is related to the factorial of a non-negative integern{\displaystyle n} by the equationn!=Γ(n+1),{\displaystyle n!=\Gamma (n+1),}which can be used as a definition of the factorial for non-integer arguments.At all valuesx{\displaystyle x} for which bothΓ(x){\displaystyle \Gamma (x)} andΓ(x1){\displaystyle \Gamma (x-1)} are defined, the gamma function obeys thefunctional equationΓ(n)=(n1)Γ(n1),{\displaystyle \Gamma (n)=(n-1)\Gamma (n-1),}generalizing therecurrence relation for the factorials.[66]

The same integral converges more generally for anycomplex numberz{\displaystyle z} whose real part is positive. It can be extended to the non-integer points in the rest of thecomplex plane by solving for Euler'sreflection formulaΓ(z)Γ(1z)=πsinπz.{\displaystyle \Gamma (z)\Gamma (1-z)={\frac {\pi }{\sin \pi z}}.}However, this formula cannot be used at integers because, for them, thesinπz{\displaystyle \sin \pi z} term would produce adivision by zero. The result of this extension process is ananalytic function, theanalytic continuation of the integral formula for the gamma function. It has a nonzero value at all complex numbers, except for the non-positive integers where it hassimple poles. Correspondingly, this provides a definition for the factorial at all complex numbers other than the negative integers.[67]One property of the gamma function, distinguishing it from other continuous interpolations of the factorials, is given by theBohr–Mollerup theorem, which states that the gamma function (offset by one) is the onlylog-convex function on the positive real numbers that interpolates the factorials and obeys the same functional equation. A related uniqueness theorem ofHelmut Wielandt states that the complex gamma function and its scalar multiples are the onlyholomorphic functions on the positive complex half-plane that obey the functional equation and remain bounded for complex numbers with real part between 1 and 2.[68]

Other complex functions that interpolate the factorial values includeHadamard's gamma function, which is anentire function over all the complex numbers, including the non-positive integers.[69][70] In thep-adic numbers, it is not possible to continuously interpolate the factorial function directly, because the factorials of large integers (a dense subset of thep-adics) converge to zero according to Legendre's formula, forcing any continuous function that is close to their values to be zero everywhere. Instead, thep-adic gamma function provides a continuous interpolation of a modified form of the factorial, omitting the factors in the factorial that are divisible byp.[71]

Thedigamma function is thelogarithmic derivative of the gamma function. Just as the gamma function provides a continuous interpolation of the factorials, offset by one, the digamma function provides a continuous interpolation of theharmonic numbers, offset by theEuler–Mascheroni constant.[72]

Computation

[edit]
TI SR-50A, a 1975 calculator with a factorial key (third row, center right)

The factorial function is a common feature inscientific calculators.[73] It is also included in scientific programming libraries such as thePython mathematical functions module[74] and theBoost C++ library.[75] If efficiency is not a concern, computing factorials is trivial: just successively multiply a variable initializedto1{\displaystyle 1} by the integers upton{\displaystyle n}. The simplicity of this computation makes it a common example in the use of different computer programming styles and methods.[76]

The computation ofn!{\displaystyle n!} can be expressed inpseudocode usingiteration[77] as

define factorial(n):f := 1  fori := 1, 2, 3, ...,n:f :=f *i  returnf

or usingrecursion[78] based on its recurrence relation as

define factorial(n):  if (n = 0) return 1  returnn * factorial(n − 1)

Other methods suitable for its computation includememoization,[79]dynamic programming,[80] andfunctional programming.[81] Thecomputational complexity of these algorithms may be analyzed using the unit-costrandom-access machine model of computation, in which each arithmetic operation takes constant time and each number uses a constant amount of storage space. In this model, these methods can computen!{\displaystyle n!} in timeO(n){\displaystyle O(n)}, and the iterative version uses spaceO(1){\displaystyle O(1)}. Unless optimized fortail recursion, the recursive version takes linear space to store itscall stack.[82] However, this model of computation is only suitable whenn{\displaystyle n} is small enough to allown!{\displaystyle n!} to fit into amachine word.[83] The values 12! and 20! are the largest factorials that can be stored in, respectively, the32-bit[84] and64-bitintegers.[85]Floating point can represent larger factorials, but approximately rather than exactly, and will still overflow for factorials larger than170!{\displaystyle 170!}.[84]

The exact computation of larger factorials involvesarbitrary-precision arithmetic, because offast growth andinteger overflow. Time of computation can be analyzed as a function of the number of digits or bits in the result.[85] By Stirling's formula,n!{\displaystyle n!} hasb=O(nlogn){\displaystyle b=O(n\log n)} bits.[86] TheSchönhage–Strassen algorithm can produce ab{\displaystyle b}-bit product in timeO(blogbloglogb){\displaystyle O(b\log b\log \log b)}, and fastermultiplication algorithms taking timeO(blogb){\displaystyle O(b\log b)} are known.[87] However, computing the factorial involves repeated products, rather than a single multiplication, so these time bounds do not apply directly. In this setting, computingn!{\displaystyle n!} by multiplying the numbers from 1ton{\displaystyle n} in sequence is inefficient, because it involvesn{\displaystyle n} multiplications, a constant fraction of which take timeO(nlog2n){\displaystyle O(n\log ^{2}n)} each, giving total timeO(n2log2n){\displaystyle O(n^{2}\log ^{2}n)}. A better approach is to perform the multiplications as adivide-and-conquer algorithm that multiplies a sequence ofi{\displaystyle i} numbers by splitting it into two subsequences ofi/2{\displaystyle i/2} numbers, multiplies each subsequence, and combines the results with one last multiplication. This approach to the factorial takes total timeO(nlog3n){\displaystyle O(n\log ^{3}n)}: one logarithm comes from the number of bits in the factorial, a second comes from the multiplication algorithm, and a third comes from the divide and conquer.[88]

Even better efficiency is obtained by computingn! from its prime factorization, based on the principle thatexponentiation by squaring is faster than expanding an exponent into a product.[86][89] An algorithm for this byArnold Schönhage begins by finding the list of the primes upton{\displaystyle n}, for instance using thesieve of Eratosthenes, and uses Legendre's formula to compute the exponent for each prime. Then it computes the product of the prime powers with these exponents, using a recursive algorithm, as follows:

  • Use divide and conquer to compute the product of the primes whose exponents are odd
  • Divide all of the exponents by two (rounding down to an integer), recursively compute the product of the prime powers with these smaller exponents, and square the result
  • Multiply together the results of the two previous steps

The product of all primes up ton{\displaystyle n} is anO(n){\displaystyle O(n)}-bit number, by theprime number theorem, so the time for the first step isO(nlog2n){\displaystyle O(n\log ^{2}n)}, with one logarithm coming from the divide and conquer and another coming from the multiplication algorithm. In the recursive calls to the algorithm, the prime number theorem can again be invoked to prove that the numbers of bits in the corresponding products decrease by a constant factor at each level of recursion, so the total time for these steps at all levels of recursion adds in ageometric seriestoO(nlog2n){\displaystyle O(n\log ^{2}n)}. The time for the squaring in the second step and the multiplication in the third step are againO(nlog2n){\displaystyle O(n\log ^{2}n)}, because each is a single multiplication of a number withO(nlogn){\displaystyle O(n\log n)} bits. Again, at each level of recursion the numbers involved have a constant fraction as many bits (because otherwise repeatedly squaring them would produce too large a final result) so again the amounts of time for these steps in the recursive calls add in a geometric seriestoO(nlog2n){\displaystyle O(n\log ^{2}n)}. Consequentially, the whole algorithm takestimeO(nlog2n){\displaystyle O(n\log ^{2}n)}, proportional to a single multiplication with the same number of bits in its result.[89]

Related sequences and functions

[edit]
Main article:List of factorial and binomial topics

Several other integer sequences are similar to or related to the factorials:

Alternating factorial
Thealternating factorial is the absolute value of thealternating sum of the firstn{\displaystyle n} factorials,i=1n(1)nii!{\textstyle \sum _{i=1}^{n}(-1)^{n-i}i!}. These have mainly been studied in connection with their primality; only finitely many of them can be prime, but a complete list of primes of this form is not known.[90]
Bhargava factorial
TheBhargava factorials are a family of integer sequences defined byManjul Bhargava with similar number-theoretic properties to the factorials, including the factorials themselves as a special case.[63]
Double factorial
The product of all the odd integers up to some odd positiveintegern{\displaystyle n} is called thedouble factorialofn{\displaystyle n}, and denoted byn!!{\displaystyle n!!}.[91] That is,(2k1)!!=i=1k(2i1)=(2k)!2kk!.{\displaystyle (2k-1)!!=\prod _{i=1}^{k}(2i-1)={\frac {(2k)!}{2^{k}k!}}.} For example,9!! = 1 × 3 × 5 × 7 × 9 = 945. Double factorials are used intrigonometric integrals,[92] in expressions for thegamma function athalf-integers and thevolumes of hyperspheres,[93] and in countingbinary trees andperfect matchings.[91][94]
Exponential factorial
Just astriangular numbers sum the numbers from1{\displaystyle 1}ton{\displaystyle n}, and factorials take their product, theexponential factorial exponentiates. The exponential factorial is defined recursivelyasa0=1, an=nan1{\displaystyle a_{0}=1,\ a_{n}=n^{a_{n-1}}}. For example, the exponential factorial of 4 is4321=262144.{\displaystyle 4^{3^{2^{1}}}=262144.} These numbers grow much more quickly than regular factorials.[95]
Falling factorial
The notations(x)n{\displaystyle (x)_{n}} orxn_{\displaystyle x^{\underline {n}}} are sometimes used to represent the product of the greatestn{\displaystyle n} integers counting up to andincludingx{\displaystyle x}, equal tox!/(xn)!{\displaystyle x!/(x-n)!}. This is also known as afalling factorial or backward factorial, and the(x)n{\displaystyle (x)_{n}} notation is a Pochhammer symbol.[96] Falling factorials count the number of different sequences ofn{\displaystyle n} distinct items that can be drawn from a universe ofx{\displaystyle x} items.[97] They occur as coefficients in thehigher derivatives of polynomials,[98] and in thefactorial moments ofrandom variables.[99]
Hyperfactorials
Thehyperfactorial ofn{\displaystyle n} is the product1122nn{\displaystyle 1^{1}\cdot 2^{2}\cdots n^{n}}. These numbers form thediscriminants ofHermite polynomials.[100] They can be continuously interpolated by theK-function,[101] and obey analogues to Stirling's formula[102] and Wilson's theorem.[103]
Jordan–Pólya numbers
TheJordan–Pólya numbers are the products of factorials, allowing repetitions. Everytree has asymmetry group whose number of symmetries is a Jordan–Pólya number, and every Jordan–Pólya number counts the symmetries of some tree.[104]
Primorial
Theprimorialn#{\displaystyle n\#} is the product ofprime numbers less than or equalton{\displaystyle n}; this construction gives them some similar divisibility properties to factorials,[36] but unlike factorials they aresquarefree.[105] As with thefactorial primesn!±1{\displaystyle n!\pm 1}, researchers have studiedprimorial primesn#±1{\displaystyle n\#\pm 1}.[36]
Subfactorial
Thesubfactorial yields the number ofderangements of a set ofn{\displaystyle n} objects. It is sometimes denoted!n{\displaystyle !n}, and equals the closest integerton!/e{\displaystyle n!/e}.[29]
Superfactorial
Thesuperfactorial ofn{\displaystyle n} is the product of the firstn{\displaystyle n} factorials. The superfactorials are continuously interpolated by theBarnes G-function.[106]

References

[edit]
  1. ^abcGraham, Ronald L.;Knuth, Donald E.;Patashnik, Oren (1988).Concrete Mathematics. Reading, MA: Addison-Wesley. p. 111.ISBN 0-201-14236-8.
  2. ^abDatta, Bibhutibhusan; Singh, Awadhesh Narayan (2019). "Use of permutations and combinations in India". In Kolachana, Aditya; Mahesh, K.; Ramasubramanian, K. (eds.).Studies in Indian Mathematics and Astronomy: Selected Articles of Kripa Shankar Shukla. Sources and Studies in the History of Mathematics and Physical Sciences. Springer Singapore. pp. 356–376.doi:10.1007/978-981-13-7326-8_18.ISBN 978-981-13-7325-1.S2CID 191141516.. Revised by K. S. Shukla from a paper inIndian Journal of History of Science 27 (3): 231–249, 1992,MR1189487. See p. 363.
  3. ^Jadhav, Dipak (August 2021)."Jaina Thoughts on Unity Not Being a Number".History of Science in South Asia.9. University of Alberta Libraries:209–231.doi:10.18732/hssa67.S2CID 238656716.. See discussion of dating on p. 211.
  4. ^Biggs, Norman L. (May 1979). "The roots of combinatorics".Historia Mathematica.6 (2):109–136.doi:10.1016/0315-0860(79)90074-0.MR 0530622.
  5. ^abKatz, Victor J. (June 1994). "Ethnomathematics in the classroom".For the Learning of Mathematics.14 (2):26–30.JSTOR 40248112.
  6. ^Sefer Yetzirah at Wikisource, Chapter IV, Section 4
  7. ^Rashed, Roshdi (1980). "Ibn al-Haytham et le théorème de Wilson".Archive for History of Exact Sciences (in French).22 (4):305–321.doi:10.1007/BF00717654.MR 0595903.S2CID 120885025.
  8. ^Acerbi, F. (2003). "On the shoulders of Hipparchus: a reappraisal of ancient Greek combinatorics".Archive for History of Exact Sciences.57 (6):465–502.doi:10.1007/s00407-003-0067-0.JSTOR 41134173.MR 2004966.S2CID 122758966.
  9. ^Katz, Victor J. (2013). "Chapter 4: Jewish combinatorics". In Wilson, Robin; Watkins, John J. (eds.).Combinatorics: Ancient & Modern.Oxford University Press. pp. 109–121.ISBN 978-0-19-965659-2. See p. 111.
  10. ^Hunt, Katherine (May 2018)."The Art of Changes: Bell-Ringing, Anagrams, and the Culture of Combination in Seventeenth-Century England"(PDF).Journal of Medieval and Early Modern Studies.48 (2):387–412.doi:10.1215/10829636-4403136.
  11. ^Stedman, Fabian (1677).Campanalogia. London. pp. 6–9. The publisher is given as "W.S." who may have been William Smith, possibly acting as agent for theSociety of College Youths, to which society the "Dedicatory" is addressed.
  12. ^Knobloch, Eberhard (2013). "Chapter 5: Renaissance combinatorics". In Wilson, Robin; Watkins, John J. (eds.).Combinatorics: Ancient & Modern.Oxford University Press. pp. 123–145.ISBN 978-0-19-965659-2. See p. 126.
  13. ^Knobloch 2013, pp. 130–133.
  14. ^abcEbbinghaus, H.-D.;Hermes, H.;Hirzebruch, F.;Koecher, M.;Mainzer, K.;Neukirch, J.; Prestel, A.;Remmert, R. (1990).Numbers. Graduate Texts in Mathematics. Vol. 123. New York: Springer-Verlag. p. 131.doi:10.1007/978-1-4612-1005-4.ISBN 0-387-97202-1.MR 1066206.
  15. ^Dutka, Jacques (1991). "The early history of the factorial function".Archive for History of Exact Sciences.43 (3):225–249.doi:10.1007/BF00389433.JSTOR 41133918.MR 1171521.S2CID 122237769.
  16. ^Dickson, Leonard E. (1919)."Chapter IX: Divisibility of factorials and multinomial coefficients".History of the Theory of Numbers. Vol. 1. Carnegie Institution of Washington. pp. 263–278. See in particular p. 263.
  17. ^abCajori, Florian (1929)."448–449. Factorial "n"".A History of Mathematical Notations, Volume II: Notations Mainly in Higher Mathematics. The Open Court Publishing Company. pp. 71–77.
  18. ^Miller, Jeff."Earliest Known Uses of Some of the Words of Mathematics (F)".MacTutor History of Mathematics archive. University of St Andrews.
  19. ^abCraik, Alex D. D. (2005). "Prehistory of Faà di Bruno's formula".The American Mathematical Monthly.112 (2):119–130.doi:10.1080/00029890.2005.11920176.JSTOR 30037410.MR 2121322.S2CID 45380805.
  20. ^Arbogast, Louis François Antoine (1800).Du calcul des dérivations (in French). Strasbourg: L'imprimerie de Levrault, frères. pp. 364–365.
  21. ^abHamkins, Joel David (2020).Proof and the Art of Mathematics. Cambridge, Massachusetts: MIT Press. p. 50.ISBN 978-0-262-53979-1.MR 4205951.
  22. ^Dorf, Richard C. (2003)."Factorials".CRC Handbook of Engineering Tables. CRC Press. p. 5-5.ISBN 978-0-203-00922-2.
  23. ^Goldenberg, E. Paul; Carter, Cynthia J. (October 2017). "A student asks about (−5)!".The Mathematics Teacher.111 (2):104–110.doi:10.5951/mathteacher.111.2.0104.JSTOR 10.5951/mathteacher.111.2.0104.
  24. ^Haberman, Bruria; Averbuch, Haim (2002). "The case of base cases: Why are they so difficult to recognize? Student difficulties with recursion". In Caspersen, Michael E.; Joyce, Daniel T.; Goelman, Don; Utting, Ian (eds.).Proceedings of the 7th Annual SIGCSE Conference on Innovation and Technology in Computer Science Education, ITiCSE 2002, Aarhus, Denmark, June 24-28, 2002. Association for Computing Machinery. pp. 84–88.doi:10.1145/544414.544441.
  25. ^Farrell, Orin J.; Ross, Bertram (1971).Solved Problems in Analysis: As Applied to Gamma, Beta, Legendre and Bessel Functions. Dover Books on Mathematics. Courier Corporation. p. 10.ISBN 978-0-486-78308-6.
  26. ^Conway, John H.;Guy, Richard (1998). "Factorial numbers".The Book of Numbers. Springer Science & Business Media. pp. 55–56.ISBN 978-0-387-97993-9.
  27. ^Graham, Knuth & Patashnik 1988, p. 156.
  28. ^Riordan, John (1958).An Introduction to Combinatorial Analysis. Wiley Publications in Mathematical Statistics. Chapman & Hall. p. 76.ISBN 9781400854332.MR 0096594.
  29. ^abGraham, Knuth & Patashnik 1988, p. 195.
  30. ^Graham, Knuth & Patashnik 1988, p. 162.
  31. ^Randić, Milan (1987). "On the evaluation of the characteristic polynomial via symmetric function theory".Journal of Mathematical Chemistry.1 (1):145–152.doi:10.1007/BF01205340.MR 0895533.S2CID 121752631.
  32. ^Hill, Victor E. (2000)."8.1 Proposition: Symmetric groupSn".Groups and Characters. Chapman & Hall. p. 70.ISBN 978-1-351-44381-4.MR 1739394.
  33. ^Christensen, Kim; Moloney, Nicholas R. (2005)."Appendix A: Taylor expansion".Complexity and Criticality. Advanced physics texts. Vol. 1. Imperial College Press. p. 341.ISBN 978-1-86094-504-5.
  34. ^Wilf, Herbert S. (2006).generatingfunctionology (3rd ed.). Wellesley, Massachusetts: A K Peters. p. 22.ISBN 978-1-56881-279-3.MR 2172781.
  35. ^Ore, Øystein (1948).Number Theory and Its History. New York: McGraw-Hill. p. 66.ISBN 9780486656205.MR 0026059.
  36. ^abcCaldwell, Chris K.; Gallot, Yves (2002)."On the primality ofn!±1{\displaystyle n!\pm 1} and2×3×5××p±1{\displaystyle 2\times 3\times 5\times \dots \times p\pm 1}".Mathematics of Computation.71 (237):441–448.doi:10.1090/S0025-5718-01-01315-1.MR 1863013.
  37. ^Guy, Richard K. (2004). "D25: Equations involving factorialn{\displaystyle n}".Unsolved Problems in Number Theory. Problem Books in Mathematics. Vol. 1 (3rd ed.). New York: Springer-Verlag. pp. 301–302.doi:10.1007/978-0-387-26677-0.ISBN 0-387-20860-7.MR 2076335.
  38. ^Neale, Vicky (2017).Closing the Gap: The Quest to Understand Prime Numbers. Oxford University Press. pp. 146–147.ISBN 978-0-19-878828-7.
  39. ^Erdős, Pál (1932)."Beweis eines Satzes von Tschebyschef" [Proof of a theorem of Chebyshev](PDF).Acta Litt. Sci. Szeged (in German).5:194–198.Zbl 0004.10103.
  40. ^Chvátal, Vašek (2021)."1.5: Erdős's proof of Bertrand's postulate".The Discrete Mathematical Charms of Paul Erdős: A Simple Introduction. Cambridge, England: Cambridge University Press. pp. 7–10.doi:10.1017/9781108912181.ISBN 978-1-108-83183-3.MR 4282416.S2CID 242637862.
  41. ^Fraenkel, Aviezri S. (1985). "Systems of numeration".The American Mathematical Monthly.92 (2):105–114.doi:10.1080/00029890.1985.11971550.JSTOR 2322638.MR 0777556.
  42. ^Pitman, Jim (1993). "3.5: The Poisson distribution".Probability. New York: Springer. pp. 222–236.doi:10.1007/978-1-4612-4374-8.ISBN 978-0-387-94594-1.
  43. ^Pitman 1993, p. 153.
  44. ^Kleinberg, Jon;Tardos, Éva (2006).Algorithm Design. Addison-Wesley. p. 55.
  45. ^abKnuth, Donald E. (1998).The Art of Computer Programming, Volume 3: Sorting and Searching (2nd ed.). Addison-Wesley. p. 182.ISBN 978-0-321-63578-5.
  46. ^Sedgewick, Robert; Wayne, Kevin (2011).Algorithms (4th ed.). Addison-Wesley. p. 466.ISBN 978-0-13-276256-4.
  47. ^Kardar, Mehran (2007).Statistical Physics of Particles.Cambridge University Press. pp. 107–110,181–184.ISBN 978-0-521-87342-0.OCLC 860391091.
  48. ^Cameron, Peter J. (1994). "2.4: Orders of magnitude".Combinatorics: Topics, Techniques, Algorithms. Cambridge University Press. pp. 12–14.ISBN 978-0-521-45133-8.
  49. ^Magnus, Robert (2020)."11.10: Stirling's approximation".Fundamental Mathematical Analysis. Springer Undergraduate Mathematics Series. Cham: Springer. p. 391.doi:10.1007/978-3-030-46321-2.ISBN 978-3-030-46321-2.MR 4178171.S2CID 226465639.
  50. ^Palmer, Edgar M. (1985). "Appendix II: Stirling's formula".Graphical Evolution: An introduction to the theory of random graphs. Wiley-Interscience Series in Discrete Mathematics. Chichester: John Wiley & Sons. pp. 127–128.ISBN 0-471-81577-2.MR 0795795.
  51. ^abcChen, Chao-Ping; Lin, Long (2012)."Remarks on asymptotic expansions for the gamma function".Applied Mathematics Letters.25 (12):2322–2326.doi:10.1016/j.aml.2012.06.025.MR 2967837.
  52. ^abBeiler, Albert H. (1966).Recreations in the Theory of Numbers: The Queen of Mathematics Entertains. Dover Recreational Math Series (2nd ed.). Courier Corporation. p. 49.ISBN 978-0-486-21096-4.
  53. ^Chvátal 2021. "1.4: Legendre's formula". pp. 6–7.
  54. ^abRobert, Alain M. (2000). "3.1: Thep{\displaystyle p}-adic valuation of a factorial".A Course inp{\displaystyle p}-adic Analysis.Graduate Texts in Mathematics. Vol. 198. New York: Springer-Verlag. pp. 241–242.doi:10.1007/978-1-4757-3254-2.ISBN 0-387-98669-3.MR 1760253.
  55. ^Peitgen, Heinz-Otto;Jürgens, Hartmut;Saupe, Dietmar (2004). "Kummer's result and Legendre's identity".Chaos and Fractals: New Frontiers of Science. New York: Springer. pp. 399–400.doi:10.1007/b97624.ISBN 978-1-4684-9396-2.
  56. ^Alladi, Krishnaswami; Grinstead, Charles (1977)."On the decomposition of n! into prime powers".Journal of Number Theory.9 (4):452–458.doi:10.1016/0022-314x(77)90006-3.
  57. ^abKoshy, Thomas (2007)."Example 3.12".Elementary Number Theory with Applications (2nd ed.). Elsevier. p. 178.ISBN 978-0-08-054709-1.
  58. ^Sloane, N. J. A. (ed.)."Sequence A027868 (Number of trailing zeros in n!; highest power of 5 dividing n!)".TheOn-Line Encyclopedia of Integer Sequences. OEIS Foundation.
  59. ^Diaconis, Persi (1977)."The distribution of leading digits and uniform distribution mod 1".Annals of Probability.5 (1):72–81.doi:10.1214/aop/1176995891.MR 0422186.
  60. ^Bird, R. S. (1972). "Integers with given initial digits".The American Mathematical Monthly.79 (4):367–370.doi:10.1080/00029890.1972.11993051.JSTOR 2978087.MR 0302553.
  61. ^Kempner, A. J. (1918). "Miscellanea".The American Mathematical Monthly.25 (5):201–210.doi:10.2307/2972639.JSTOR 2972639.
  62. ^Erdős, Paul; Kastanas, Ilias (1994)."The smallest factorial that is a multiple ofn (solution to problem 6674)"(PDF).The American Mathematical Monthly.101: 179.doi:10.2307/2324376.JSTOR 2324376..
  63. ^abcBhargava, Manjul (2000)."The factorial function and generalizations".The American Mathematical Monthly.107 (9):783–799.CiteSeerX 10.1.1.585.2265.doi:10.2307/2695734.JSTOR 2695734.
  64. ^Guy 2004. "B23: Equal products of factorials". p. 123.
  65. ^Luca, Florian (2007). "On factorials which are products of factorials".Mathematical Proceedings of the Cambridge Philosophical Society.143 (3):533–542.Bibcode:2007MPCPS.143..533L.doi:10.1017/S0305004107000308.MR 2373957.S2CID 120875316.
  66. ^abDavis, Philip J. (1959)."Leonhard Euler's integral: A historical profile of the gamma function".The American Mathematical Monthly.66 (10):849–869.doi:10.1080/00029890.1959.11989422.JSTOR 2309786.MR 0106810. Archived fromthe original on 2023-01-01. Retrieved2021-12-20.
  67. ^abBorwein, Jonathan M.; Corless, Robert M. (2018). "Gamma and factorial in theMonthly".The American Mathematical Monthly.125 (5):400–424.arXiv:1703.05349.doi:10.1080/00029890.2018.1420983.MR 3785875.S2CID 119324101.
  68. ^Remmert, Reinhold (1996). "Wielandt's theorem about theΓ{\displaystyle \Gamma }-function".The American Mathematical Monthly.103 (3):214–220.doi:10.1080/00029890.1996.12004726.JSTOR 2975370.MR 1376175.
  69. ^Hadamard, J. (1968) [1894]."Sur l'expression du produit1·2·3· · · · ·(n−1) par une fonction entière"(PDF).Œuvres de Jacques Hadamard (in French). Paris: Centre National de la Recherche Scientifiques.
  70. ^Alzer, Horst (2009). "A superadditive property of Hadamard's gamma function".Abhandlungen aus dem Mathematischen Seminar der Universität Hamburg.79 (1):11–23.doi:10.1007/s12188-008-0009-5.MR 2541340.S2CID 123691692.
  71. ^Robert 2000. "7.1: The gamma functionΓp{\displaystyle \Gamma _{p}}". pp. 366–385.
  72. ^Ross, Bertram (1978). "The psi function".Mathematics Magazine.51 (3):176–179.doi:10.1080/0025570X.1978.11976704.JSTOR 2689999.MR 1572267.
  73. ^Brase, Charles Henry; Brase, Corrinne Pellillo (2014).Understandable Statistics: Concepts and Methods (11th ed.). Cengage Learning. p. 182.ISBN 978-1-305-14290-9.
  74. ^"math — Mathematical functions".Python 3 Documentation: The Python Standard Library. Retrieved2021-12-21.
  75. ^"Factorial".Boost 1.78.0 Documentation: Math Special Functions. Retrieved2021-12-21.
  76. ^Addis, Tom; Addis, Jan (2009).Drawing Programs: The Theory and Practice of Schematic Functional Programming. Springer. pp. 149–150.ISBN 978-1-84882-618-2.
  77. ^Chapman, Stephen J. (2019)."Example 5.2: The factorial function".MATLAB Programming for Engineers (6th ed.). Cengage Learning. p. 215.ISBN 978-0-357-03052-3.
  78. ^Hey, Tony; Pápay, Gyuri (2014).The Computing Universe: A Journey through a Revolution. Cambridge University Press. p. 64.ISBN 9781316123225.
  79. ^Bolboaca, Alexandru (2019).Hands-On Functional Programming with C++: An effective guide to writing accelerated functional code using C++17 and C++20. Packt Publishing. p. 188.ISBN 978-1-78980-921-3.
  80. ^Gray, John W. (2014).Mastering Mathematica: Programming Methods and Applications. Academic Press. pp. 233–234.ISBN 978-1-4832-1403-0.
  81. ^Torra, Vicenç (2016).Scala From a Functional Programming Perspective: An Introduction to the Programming Language. Lecture Notes in Computer Science. Vol. 9980. Springer. p. 96.ISBN 978-3-319-46481-7.
  82. ^Sussman, Gerald Jay (1982). "LISP, programming, and implementation".Functional Programming and Its Applications: An Advanced Course. CREST Advanced Courses. Cambridge University Press. pp. 29–72.ISBN 978-0-521-24503-6. See in particularp. 34.
  83. ^Chaudhuri, Ranjan (June 2003). "Do the arithmetic operations really execute in constant time?".ACM SIGCSE Bulletin.35 (2). Association for Computing Machinery:43–44.doi:10.1145/782941.782977.S2CID 13629142.
  84. ^abFateman, Richard J. (April 11, 2006)."Comments on Factorial Programs"(PDF). University of California, Berkeley.
  85. ^abWinkler, Jürgen F. H.; Kauer, Stefan (March 1997)."Proving assertions is also useful".ACM SIGPLAN Notices.32 (3). Association for Computing Machinery:38–41.doi:10.1145/251634.251638.S2CID 17347501.
  86. ^abBorwein, Peter B. (1985). "On the complexity of calculating factorials".Journal of Algorithms.6 (3):376–380.doi:10.1016/0196-6774(85)90006-9.MR 0800727.
  87. ^Harvey, David;van der Hoeven, Joris (2021)."Integer multiplication in timeO(nlogn){\displaystyle O(n\log n)}"(PDF).Annals of Mathematics. Second Series.193 (2):563–617.doi:10.4007/annals.2021.193.2.4.MR 4224716.S2CID 109934776.
  88. ^Arndt, Jörg (2011). "34.1.1.1: Computation of the factorial".Matters Computational: Ideas, Algorithms, Source Code(PDF). Springer. pp. 651–652. See also "34.1.5: Performance", pp. 655–656.
  89. ^abSchönhage, Arnold (1994).Fast algorithms: a multitape Turing machine implementation. B.I. Wissenschaftsverlag. p. 226.
  90. ^Guy 2004. "B43: Alternating sums of factorials". pp. 152–153.
  91. ^abCallan, David (2009). "A combinatorial survey of identities for the double factorial".arXiv:0906.1317 [math.CO].
  92. ^Meserve, B. E. (1948). "Classroom Notes: Double Factorials".The American Mathematical Monthly.55 (7):425–426.doi:10.2307/2306136.JSTOR 2306136.MR 1527019.
  93. ^Mezey, Paul G. (2009). "Some dimension problems in molecular databases".Journal of Mathematical Chemistry.45 (1):1–6.doi:10.1007/s10910-008-9365-8.S2CID 120103389..
  94. ^Dale, M. R. T.; Moon, J. W. (1993). "The permuted analogues of three Catalan sets".Journal of Statistical Planning and Inference.34 (1):75–87.doi:10.1016/0378-3758(93)90035-5.MR 1209991..
  95. ^Luca, Florian; Marques, Diego (2010)."Perfect powers in the summatory function of the power tower".Journal de Théorie des Nombres de Bordeaux.22 (3):703–718.doi:10.5802/jtnb.740.MR 2769339.
  96. ^Graham, Knuth & Patashnik 1988, pp. x, 47–48.
  97. ^Sagan, Bruce E. (2020)."Theorem 1.2.1".Combinatorics: the Art of Counting. Graduate Studies in Mathematics. Vol. 210. Providence, Rhode Island: American Mathematical Society. p. 5.ISBN 978-1-4704-6032-7.MR 4249619.
  98. ^Hardy, G. H. (1921)."Examples XLV".A Course of Pure Mathematics (3rd ed.). Cambridge University Press. p. 215.
  99. ^Daley, D. J.; Vere-Jones, D. (1988)."5.2: Factorial moments, cumulants, and generating function relations for discrete distributions".An Introduction to the Theory of Point Processes. Springer Series in Statistics. New York: Springer-Verlag. p. 112.ISBN 0-387-96666-8.MR 0950166.
  100. ^Sloane, N. J. A. (ed.)."Sequence A002109 (Hyperfactorials: Product_{k = 1..n} k^k)".TheOn-Line Encyclopedia of Integer Sequences. OEIS Foundation.
  101. ^Kinkelin, H. (1860). "Ueber eine mit der Gammafunction verwandte Transcendente und deren Anwendung auf die Integralrechung" [On a transcendental variation of the gamma function and its application to the integral calculus]. Journal für die reine und angewandte Mathematik (in German).1860 (57):122–138.doi:10.1515/crll.1860.57.122.S2CID 120627417.
  102. ^Glaisher, J. W. L. (1877)."On the product11.22.33...nn".Messenger of Mathematics.7:43–47.
  103. ^Aebi, Christian; Cairns, Grant (2015). "Generalizations of Wilson's theorem for double-, hyper-, sub- and superfactorials".The American Mathematical Monthly.122 (5):433–443.doi:10.4169/amer.math.monthly.122.5.433.JSTOR 10.4169/amer.math.monthly.122.5.433.MR 3352802.S2CID 207521192.
  104. ^Sloane, N. J. A. (ed.)."Sequence A001013 (Jordan-Polya numbers: products of factorial numbers)".TheOn-Line Encyclopedia of Integer Sequences. OEIS Foundation.
  105. ^Nelson, Randolph (2020).A Brief Journey in Discrete Mathematics. Cham: Springer. p. 127.doi:10.1007/978-3-030-37861-5.ISBN 978-3-030-37861-5.MR 4297795.S2CID 213895324.
  106. ^Barnes, E. W. (1900)."The theory of theG-function".The Quarterly Journal of Pure and Applied Mathematics.31:264–314.JFM 30.0389.02.

External links

[edit]
Wikimedia Commons has media related toFactorial (function).
Precalculus
Limits
Differential calculus
Integral calculus
Vector calculus
Multivariable calculus
Sequences and series
Special functions
and numbers
History of calculus
Lists
Integrals
Miscellaneous topics
Integer sequences
Basic
Advanced(list)
Fibonacci spiral with square sizes up to 34.
Properties of sequences
Properties of series
Series
Convergence
Explicit series
Convergent
Divergent
Kinds of series
Hypergeometric series
Authority control databases: NationalEdit this at Wikidata
Retrieved from "https://en.wikipedia.org/w/index.php?title=Factorial&oldid=1278906418"
Categories:
Hidden categories:

[8]ページ先頭

©2009-2025 Movatter.jp