Here is a cool trick a coworker of mine had shown me. It's not textbook but it works:
n! = (n+1)! / (n+1)
------
0! = 1! / 1
0! = 1 / 1
0! = 1
------
3! = 4! / 4
3! = 24 / 4
3! = 6
let check our work
3! = 1*2*3 = 6
------
9! = 10! / 10
9! = 3,628,800 / 10
9! = 362,880
lets check our work
3! = 1*2*3*4*5*6*7*8*9 = 362,880
Chat with our AI personalities
factorial of -1
The factorial of a number is the product of all the whole numbers, except zero, that are less than or equal to that number.
Factorial(0), or 0! = 1.
145 1! = 1 4! = 24 5! = 120
5 factorial = 5*4*3*2*1 = 120