<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://mathresearch.utsa.edu/wiki/index.php?action=history&amp;feed=atom&amp;title=Factorials</id>
	<title>Factorials - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://mathresearch.utsa.edu/wiki/index.php?action=history&amp;feed=atom&amp;title=Factorials"/>
	<link rel="alternate" type="text/html" href="https://mathresearch.utsa.edu/wiki/index.php?title=Factorials&amp;action=history"/>
	<updated>2026-04-14T21:12:35Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.34.1</generator>
	<entry>
		<id>https://mathresearch.utsa.edu/wiki/index.php?title=Factorials&amp;diff=3846&amp;oldid=prev</id>
		<title>Khanh at 18:24, 14 November 2021</title>
		<link rel="alternate" type="text/html" href="https://mathresearch.utsa.edu/wiki/index.php?title=Factorials&amp;diff=3846&amp;oldid=prev"/>
		<updated>2021-11-14T18:24:25Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;Revision as of 18:24, 14 November 2021&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l82&quot; &gt;Line 82:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 82:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;math display=block&amp;gt;n!\approx\sqrt{2\pi n}\left(\frac{n}{e}\right)^n\exp\left({\frac 1{12n}-\frac 1{360n^3}}\right) \,.&amp;lt;/math&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;math display=block&amp;gt;n!\approx\sqrt{2\pi n}\left(\frac{n}{e}\right)^n\exp\left({\frac 1{12n}-\frac 1{360n^3}}\right) \,.&amp;lt;/math&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;References&lt;/del&gt;==&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Licensing &lt;/ins&gt;==  &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;# Graham, Ronald L.; Knuth, Donald E.; Patashnik, Oren (1988), Concrete Mathematics, Reading, MA: Addison-Wesley, ISBN 0-201-14236-8&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Content obtained and&lt;/ins&gt;/&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;or adapted &lt;/ins&gt;from:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;# Wilson, Robin; Watkins, John J.; Graham, Ronald (2013). Combinatorics: Ancient &amp;amp; Modern. Oxford University Press. p. 111. ISBN 978-0-19-965659-2.&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;* [https&lt;/ins&gt;:&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;//en&lt;/ins&gt;.&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;wikipedia&lt;/ins&gt;.&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;org/wiki&lt;/ins&gt;/&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Factorial Factorial&lt;/ins&gt;, &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Wikipedia] under a CC BY&lt;/ins&gt;-&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;SA license&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;# Biggs, Norman L. (May 1979). &amp;quot;The roots of combinatorics&amp;quot;. Historia Mathematica. 6 (2): 109–136. doi:10.1016&lt;/del&gt;/&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;0315-0860(79)90074-0. ISSN 0315-0860.&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;# Stedman, Fabian (1677), Campanalogia, London The publisher is given as &amp;quot;W.S.&amp;quot; who may have been William Smith, possibly acting as agent for the Society of College Youths, to which society the &amp;quot;Dedicatory&amp;quot; is addressed.&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;# Aggarwal, M.L. (2021). &amp;quot;8. Permutations and Combinations&amp;quot;. Understanding ISC Mathematics Class XI. I. Industrial Area, Trilokpur Road, Kala Amb-173030, Distt. Simour (H.P.): Arya Publications (Avichal Publishing Company). p. A-400. ISBN 978-81-7855-743-4.&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;# Higgins, Peter (2008), Number Story: From Counting to Cryptography, New York: Copernicus, ISBN 978-1-84800-000-1&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;# Cheng, Eugenia (2017-03-09). Beyond Infinity: An expedition to the outer limits of the mathematical universe. Profile Books. ISBN 9781782830818.&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;# Conway, John H.; Guy, Richard (1998-03-16). The Book of Numbers. Springer Science &amp;amp; Business Media. ISBN 9780387979939.&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;# Knuth, Donald E. (1997-07-04). The Art of Computer Programming: Volume 1: Fundamental Algorithms. Addison-Wesley Professional. ISBN 9780321635747.&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;# &amp;quot;18.01 Single Variable Calculus, Lecture 37: Taylor Series&amp;quot;. MIT OpenCourseWare. Fall 2006. Archived &lt;/del&gt;from &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;the original on 2018-04-26. Retrieved 2017-05-03.&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;# Kardar, Mehran (2007-06-25). &amp;quot;Chapter 2&lt;/del&gt;: &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;Probability&amp;quot;. Statistical Physics of Particles. Cambridge University Press. pp. 35–56. ISBN 9780521873420.&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;# &amp;quot;18.01 Single Variable Calculus, Lecture 4&lt;/del&gt;: &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;Chain rule, higher derivatives&amp;quot;&lt;/del&gt;. &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;MIT OpenCourseWare&lt;/del&gt;. &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;Fall 2006. Archived from the original on 2018-04-26. Retrieved 2017-05-03.&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;# Impens, Chris (2003), &amp;quot;Stirling's series made easy&amp;quot;, American Mathematical Monthly, 110 (8): 730–735, doi:10.2307&lt;/del&gt;/&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;3647856&lt;/del&gt;, &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;hdl:1854/LU&lt;/del&gt;-&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;284957, JSTOR 3647856, MR 2024001&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Khanh</name></author>
		
	</entry>
	<entry>
		<id>https://mathresearch.utsa.edu/wiki/index.php?title=Factorials&amp;diff=1184&amp;oldid=prev</id>
		<title>Khanh: Created page with &quot;In mathematics, the '''factorial''' of a non-negative integer {{mvar|n}}, denoted by {{math|''n''!}}, is the product of all positive integers less than or equal to {{mvar|n}}:...&quot;</title>
		<link rel="alternate" type="text/html" href="https://mathresearch.utsa.edu/wiki/index.php?title=Factorials&amp;diff=1184&amp;oldid=prev"/>
		<updated>2021-09-17T20:28:05Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;In mathematics, the &amp;#039;&amp;#039;&amp;#039;factorial&amp;#039;&amp;#039;&amp;#039; of a non-negative integer {{mvar|n}}, denoted by {{math|&amp;#039;&amp;#039;n&amp;#039;&amp;#039;!}}, is the product of all positive integers less than or equal to {{mvar|n}}:...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;In mathematics, the '''factorial''' of a non-negative integer {{mvar|n}}, denoted by {{math|''n''!}}, is the product of all positive integers less than or equal to {{mvar|n}}:&lt;br /&gt;
&amp;lt;math display=block&amp;gt;n! = n  \cdot  (n-1)  \cdot (n-2)  \cdot  (n-3) \cdot \cdots \cdot  3 \cdot  2 \cdot  1 \,. &amp;lt;/math&amp;gt;&lt;br /&gt;
For example,&lt;br /&gt;
&amp;lt;math display=block&amp;gt;5! = 5  \cdot  4  \cdot  3  \cdot  2  \cdot  1 = 120 \,. &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The value of 0! is 1, according to the convention for an empty product.&lt;br /&gt;
The factorial operation is encountered in many areas of mathematics, notably in combinatorics, algebra, and mathematical analysis. Its most basic use counts the possible distinct sequences – the permutations – of {{mvar|n}} distinct objects: there are {{math|''n''!}}.&lt;br /&gt;
&lt;br /&gt;
The factorial function can also be extended to non-integer arguments while retaining its most important properties by defining {{math|1=''x''! = Γ(''x'' + 1)}}, where {{math|Γ}} is the gamma function; this is undefined when {{mvar|x}} is a negative integer.&lt;br /&gt;
&lt;br /&gt;
==Notation==&lt;br /&gt;
Factorial of {{mvar|n}} is denoted by {{math|''n''!}} or {{math|1=&amp;lt;span style=&amp;quot;border-bottom: 1px #000 solid; border-left: 1px #000 solid; display: inline; line-height: 1em; padding: 0 0.25em;&amp;quot;&amp;gt;''n''&amp;lt;/span&amp;gt;}}. The notation {{math|''n''!}} was introduced by the French mathematician Christian Kramp in 1808.&lt;br /&gt;
&lt;br /&gt;
==Definition==&lt;br /&gt;
The factorial function is defined by the product&lt;br /&gt;
&amp;lt;math display=block&amp;gt;n!  = 1 \cdot 2 \cdot 3 \cdots (n-2) \cdot (n-1) \cdot n,&amp;lt;/math&amp;gt;&lt;br /&gt;
for integer {{math|''n'' ≥ 1}}.  This may be written in pi product notation as&lt;br /&gt;
&amp;lt;math display=block&amp;gt;n!  = \prod_{i = 1}^n i.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This leads to the recurrence relation&lt;br /&gt;
&amp;lt;math display=block&amp;gt; n! = n \cdot (n-1)! .&amp;lt;/math&amp;gt;&lt;br /&gt;
For example, &lt;br /&gt;
&amp;lt;math display=block&amp;gt;\begin{align}&lt;br /&gt;
 5! &amp;amp;=  5 \cdot  4! \\&lt;br /&gt;
 6! &amp;amp;=  6 \cdot  5! \\&lt;br /&gt;
50! &amp;amp;= 50 \cdot 49!&lt;br /&gt;
\end{align}&amp;lt;/math&amp;gt;&lt;br /&gt;
and so on.&lt;br /&gt;
&lt;br /&gt;
===Factorial of zero===&lt;br /&gt;
The factorial of {{math|0}} is {{math|1}}, or in symbols, {{math|1=0! = 1}}.&lt;br /&gt;
&lt;br /&gt;
There are several motivations for this definition:&lt;br /&gt;
* For {{math|1= ''n'' = 0}}, the definition of {{math|''n''!}} as a product involves the product of no numbers at all, and so is an example of the broader convention that the product of no factors is equal to the multiplicative identity.&lt;br /&gt;
* There is exactly one permutation of zero objects (with nothing to permute, the only rearrangement is to do nothing).&lt;br /&gt;
* It makes many identities in combinatorics valid for all applicable sizes. The number of ways to choose 0 elements from the empty set is given by the binomial coefficient: &amp;lt;math display=block&amp;gt;\binom{0}{0} = \frac{0!}{0!0!} = 1. &amp;lt;/math&amp;gt; More generally, the number of ways to choose all {{mvar|n}} elements among a set of {{mvar|n}} is: &amp;lt;math display=block&amp;gt;\binom{n}{n} = \frac{n!}{n!0!} = 1. &amp;lt;/math&amp;gt;&lt;br /&gt;
* It allows for the compact expression of many formulae, such as the exponential function, as a power series: &amp;lt;math display=block&amp;gt; e^x = \sum_{n = 0}^\infty \frac{x^n}{n!}.&amp;lt;/math&amp;gt;&lt;br /&gt;
* It extends the recurrence relation to 0.&lt;br /&gt;
* It matches the gamma function &amp;lt;math&amp;gt;0! = \Gamma(0+1) = 1&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
==Applications==&lt;br /&gt;
Although the factorial function has its roots in combinatorics, formulas involving factorials occur in many areas of mathematics.&lt;br /&gt;
* There are {{math|''n''!}} different ways of arranging {{mvar|n}} distinct objects into a sequence, the permutations of those objects.&lt;br /&gt;
* Often factorials appear in the denominator of a formula to account for the fact that ordering is to be ignored. A classical example is counting {{mvar|k}}-combinations (subsets of {{mvar|k}} elements) from a set with {{mvar|n}} elements. One can obtain such a combination by choosing a {{mvar|k}}-permutation: successively selecting and removing one element of the set, {{mvar|k}} times, for a total of &amp;lt;math display=block&amp;gt;(n-0)(n-1)(n-2)\cdots\left(n-(k-1)\right) = \frac{n!}{(n-k)!} = n^{\underline k}&amp;lt;/math&amp;gt; possibilities. This, however, produces the {{mvar|k}}-combinations in a particular order that one wishes to ignore; since each {{mvar|k}}-combination is obtained in {{math|''k''!}} different ways, the correct number of {{mvar|k}}-combinations is &amp;lt;math display=block&amp;gt;\frac{n(n-1)(n-2)\cdots(n-k+1)}{k(k-1)(k-2)\cdots 1} = \frac{n^{\underline k}}{k!}=  \frac{n!}{(n-k)!k!} = \binom {n}{k}.&amp;lt;/math&amp;gt; This number is known as the binomial coefficient, because it is also the coefficient of {{math|''x''&amp;lt;sup&amp;gt;''k''&amp;lt;/sup&amp;gt;}} in {{math|(1 + ''x'')&amp;lt;sup&amp;gt;''n''&amp;lt;/sup&amp;gt;}}. The term &amp;lt;math&amp;gt;n^{\underline k}&amp;lt;/math&amp;gt; is often called a falling factorial (pronounced &amp;quot;''n'' to the falling ''k''&amp;quot;).&lt;br /&gt;
* Factorials occur in algebra for various reasons, such as via the already mentioned coefficients of the binomial formula, or through averaging over permutations for symmetrization of certain operations.&lt;br /&gt;
* Factorials also turn up in calculus; for example, they occur in the denominators of the terms of Taylor's formula, where they are used as compensation terms due to the {{mvar|n}}th derivative of {{math|''x''&amp;lt;sup&amp;gt;''n''&amp;lt;/sup&amp;gt;}} being equivalent to {{math|''n''!}}.&lt;br /&gt;
* Factorials are also used extensively in probability theory and number theory.&lt;br /&gt;
* Factorials can be useful to facilitate expression manipulation. For instance the number of {{mvar|k}}-permutations of {{mvar|n}} can be written as &amp;lt;math display=block&amp;gt;n^{\underline k}=\frac{n!}{(n-k)!}\,;&amp;lt;/math&amp;gt; while this is inefficient as a means to compute that number, it may serve to prove a symmetry property of binomial coefficients: &amp;lt;math display=block&amp;gt;\binom nk=\frac{n^{\underline k}}{k!}=\frac{n!}{(n-k)!k!} = \frac{n^{\underline{n-k}}}{(n-k)!} = \binom n{n-k}\,.&amp;lt;/math&amp;gt;&lt;br /&gt;
* The factorial function can be shown, using the power rule, to be &amp;lt;math display=block&amp;gt;n! = D^n\,x^n = \frac{d^n}{dx^n}\,x^n&amp;lt;/math&amp;gt; where {{math|''D''&amp;lt;sup&amp;gt;''n''&amp;lt;/sup&amp;gt; ''x''&amp;lt;sup&amp;gt;''n''&amp;lt;/sup&amp;gt;}} is Euler's notation for the {{mvar|n}}th derivative of {{math|''x&amp;lt;sup&amp;gt;n&amp;lt;/sup&amp;gt;''}}.&lt;br /&gt;
&lt;br /&gt;
==Rate of growth and approximations for large ''{{mvar|n}}''==&lt;br /&gt;
[[File:Log-factorial.svg|upright=1.35|thumb|right|Plot of the natural logarithm of the factorial]]&lt;br /&gt;
As {{mvar|n}} grows, the factorial {{math|''n''!}} increases faster than all polynomials and exponential functions (but slower than &amp;lt;math&amp;gt;n^n&amp;lt;/math&amp;gt; and double exponential functions) in {{mvar|n}}.&lt;br /&gt;
&lt;br /&gt;
Most approximations for ''n''! are based on approximating its natural logarithm&lt;br /&gt;
&amp;lt;math display=block&amp;gt;\ln n! = \sum_{x=1}^n \ln x \,.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The graph of the function ''f''(''n'') = ln ''n''! is shown in the figure on the right. It looks approximately linear for all reasonable values of {{mvar|n}}, but this intuition is false. We get one of the simplest approximations for {{math|ln ''n''!}} by bounding the sum with an integral from above and below as follows:&lt;br /&gt;
&amp;lt;math display=block&amp;gt; \int_1^n \ln x \, dx \leq \sum_{x=1}^n \ln x \leq \int_0^n \ln (x+1) \, dx&amp;lt;/math&amp;gt;&lt;br /&gt;
which gives us the estimate&lt;br /&gt;
&amp;lt;math display=block&amp;gt; n\ln\left(\frac{n}{e}\right)+1 \leq \ln n! \leq (n+1)\ln\left( \frac{n+1}{e} \right) + 1 \,.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Hence {{math|ln ''n''! ∼ ''n'' ln ''n''}}. This result plays a key role in the analysis of the computational complexity of sorting algorithms. From the bounds on {{math|ln ''n''!}} deduced above we get that&lt;br /&gt;
&amp;lt;math display=block&amp;gt;\left(\frac ne\right)^n e \leq n! \leq \left(\frac{n+1}e\right)^{n+1} e \,.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
It is sometimes practical to use weaker but simpler estimates. Using the above formula it is easily shown that for all {{mvar|n}} we have (&amp;lt;math&amp;gt;\frac{n}{3}&amp;lt;/math&amp;gt;)&amp;lt;sup&amp;gt;''n''&amp;lt;/sup&amp;gt; &amp;lt; ''n''!}}, and for all {{math|''n'' ≥ 6}} we have {{math|''n''! &amp;lt; (&amp;lt;math&amp;gt;\frac{n}{2}&amp;lt;/math&amp;gt;)&amp;lt;sup&amp;gt;''n''&amp;lt;/sup&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
[[File:Mplwp factorial gamma stirling.svg|thumb|right|upright=1.35|Comparison of Stirling's approximation with the factorial]]&lt;br /&gt;
For large {{mvar|n}} we get a better estimate for the number {{math|''n''!}} using Stirling's approximation:&lt;br /&gt;
&amp;lt;math display=block&amp;gt;n!\sim\sqrt{2\pi n}\left(\frac{n}{e}\right)^n\,.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This in fact comes from an asymptotic series for the logarithm, and {{mvar|n}} factorial lies between this and the next approximation:&lt;br /&gt;
&amp;lt;math display=block&amp;gt;\sqrt{2\pi n}\left(\frac{n}{e}\right)^n&amp;lt;n!&amp;lt;\sqrt{2\pi n}\left(\frac{n}{e}\right)^ne^{1/(12n)} \,.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Another approximation for {{math|ln ''n''!}} is given by Srinivasa Ramanujan (Ramanujan 1988)&lt;br /&gt;
&amp;lt;math display=block&amp;gt;\begin{align}&lt;br /&gt;
\ln n! &amp;amp;\approx n\ln n - n + \frac {\ln\Bigl(n\bigl(1+4n(1+2n)\bigr)\Bigr)}{6} + \frac {\ln\pi}{2} \\[6px]&lt;br /&gt;
\Longrightarrow \; n!&amp;amp;\approx\sqrt{2\pi n}\left(\frac{n}{e}\right)^n\left(1 +\frac 1{2n} +\frac 1{8n^2}\right)^{1/6} \,.&lt;br /&gt;
\end{align}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Both this and Stirling's approximation give a relative error on the order of &amp;lt;math&amp;gt;\frac{1}{n^3}&amp;lt;/math&amp;gt;, but Ramanujan's is about four times more accurate. However, if we use ''two'' correction terms in a Stirling-type approximation, as with Ramanujan's approximation, the relative error will be of order &amp;lt;math&amp;gt;\frac{1}{n^5}&amp;lt;/math&amp;gt;:&lt;br /&gt;
&amp;lt;math display=block&amp;gt;n!\approx\sqrt{2\pi n}\left(\frac{n}{e}\right)^n\exp\left({\frac 1{12n}-\frac 1{360n^3}}\right) \,.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
# Graham, Ronald L.; Knuth, Donald E.; Patashnik, Oren (1988), Concrete Mathematics, Reading, MA: Addison-Wesley, ISBN 0-201-14236-8&lt;br /&gt;
# Wilson, Robin; Watkins, John J.; Graham, Ronald (2013). Combinatorics: Ancient &amp;amp; Modern. Oxford University Press. p. 111. ISBN 978-0-19-965659-2.&lt;br /&gt;
# Biggs, Norman L. (May 1979). &amp;quot;The roots of combinatorics&amp;quot;. Historia Mathematica. 6 (2): 109–136. doi:10.1016/0315-0860(79)90074-0. ISSN 0315-0860.&lt;br /&gt;
# Stedman, Fabian (1677), Campanalogia, London The publisher is given as &amp;quot;W.S.&amp;quot; who may have been William Smith, possibly acting as agent for the Society of College Youths, to which society the &amp;quot;Dedicatory&amp;quot; is addressed.&lt;br /&gt;
# Aggarwal, M.L. (2021). &amp;quot;8. Permutations and Combinations&amp;quot;. Understanding ISC Mathematics Class XI. I. Industrial Area, Trilokpur Road, Kala Amb-173030, Distt. Simour (H.P.): Arya Publications (Avichal Publishing Company). p. A-400. ISBN 978-81-7855-743-4.&lt;br /&gt;
# Higgins, Peter (2008), Number Story: From Counting to Cryptography, New York: Copernicus, ISBN 978-1-84800-000-1&lt;br /&gt;
# Cheng, Eugenia (2017-03-09). Beyond Infinity: An expedition to the outer limits of the mathematical universe. Profile Books. ISBN 9781782830818.&lt;br /&gt;
# Conway, John H.; Guy, Richard (1998-03-16). The Book of Numbers. Springer Science &amp;amp; Business Media. ISBN 9780387979939.&lt;br /&gt;
# Knuth, Donald E. (1997-07-04). The Art of Computer Programming: Volume 1: Fundamental Algorithms. Addison-Wesley Professional. ISBN 9780321635747.&lt;br /&gt;
# &amp;quot;18.01 Single Variable Calculus, Lecture 37: Taylor Series&amp;quot;. MIT OpenCourseWare. Fall 2006. Archived from the original on 2018-04-26. Retrieved 2017-05-03.&lt;br /&gt;
# Kardar, Mehran (2007-06-25). &amp;quot;Chapter 2: Probability&amp;quot;. Statistical Physics of Particles. Cambridge University Press. pp. 35–56. ISBN 9780521873420.&lt;br /&gt;
# &amp;quot;18.01 Single Variable Calculus, Lecture 4: Chain rule, higher derivatives&amp;quot;. MIT OpenCourseWare. Fall 2006. Archived from the original on 2018-04-26. Retrieved 2017-05-03.&lt;br /&gt;
# Impens, Chris (2003), &amp;quot;Stirling's series made easy&amp;quot;, American Mathematical Monthly, 110 (8): 730–735, doi:10.2307/3647856, hdl:1854/LU-284957, JSTOR 3647856, MR 2024001&lt;/div&gt;</summary>
		<author><name>Khanh</name></author>
		
	</entry>
</feed>