Skip to content

Commit b2390d1

Browse files
committed
Factorial README file added
1 parent d22738d commit b2390d1

File tree

2 files changed

+25
-0
lines changed

2 files changed

+25
-0
lines changed

Number Theory/Factorial/README.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# Factorial
2+
3+
In mathematics, the **factorial** of a non-negative integer n, denoted by **n!**, is the product of all positive integers less than or equal to n. For example:
4+
5+
```
6+
5! = 1 * 2 * 3 * 4 * 5
7+
= 120
8+
```
9+
10+
We can easily calculate a factorial from the previous one:
11+
12+
![Factorial Chart](./images/factorial_chart.png)
13+
14+
So, the rule is:
15+
```
16+
n! = n × (n−1)!
17+
```
18+
> The value of 0! is 1, according to the convention for an [empty product](https://en.wikipedia.org/wiki/Empty_product).
19+
20+
Factorials are used in many areas of mathematics, but particularly in Combinations and Permutations.
21+
22+
### More on this topic
23+
- [Wikipedia](https://en.wikipedia.org/wiki/Factorial)
24+
- [Factorial - MathisFun](https://www.mathsisfun.com/numbers/factorial.html)
25+
- [khanacademy](https://www.khanacademy.org/computing/computer-science/algorithms/recursive-algorithms/a/the-factorial-function)
Loading

0 commit comments

Comments
 (0)