A Factorial function is used to multiply a series of natural numbers. Factorials are often used in combinations and permutations. A factorial is represented by the highest value followed by an exclamation mark (!), for example, the function five factorial is written as 5! Factorials are written in expanded form to do calculations:

5! = 5 × 4 × 3 × 2 × 1 = 120
From this point, the math solutions are regular:

factorial example

Here is a script to calculate factorials:

  Main Menu   Email Jeff
©Jeff LeMieux, revised March 2013