Skip to main content
NSWMaths Extension 1Syllabus dot point

What does the factorial n! count, and how do you simplify expressions built from factorials?

Define and evaluate factorials, use the recursive relation n! = n(n-1)!, and simplify factorial expressions and fractions by unrolling and cancelling

A first-contact answer to the HSC Maths Extension 1 dot point on factorial notation. What n! means, why 0! = 1, the recursive rule n! = n(n-1)!, and how unrolling cancels factorial fractions, combines them over a common factorial, and counts trailing zeroes, with the arranging-in-a-row motivation and worked examples.

Generated by Claude Opus 4.812 min answer

Reviewed by: AI editorial process; not yet individually human-reviewed

Have a quick question? Jump to the Q&A page

What this dot point is asking

Factorials are the arithmetic engine of the whole combinatorics topic, so Extension 1 starts you here, before permutations and combinations. NESA wants three things from this dot point. First, you should know what the symbol n!n! means and be able to evaluate it, including the special convention 0!=10! = 1. Second, you should understand the recursive rule n!=n(n1)!n! = n(n-1)!, because it is the rule that makes every later manipulation work. Third, and most often examined, you should be fluent at simplifying expressions and fractions built from factorials by "unrolling" and cancelling, rather than by computing two enormous numbers and dividing. The whole point of the notation is to let you cancel before you multiply.

The answer

Where factorials come from: arranging objects in a row

Almost every factorial you meet in this course answers the same kind of question: in how many ways can a set of distinct objects be arranged in a row? Suppose five people line up to form a queue at a bus stop. Fill the queue one position at a time, and count the choices at each stage.

  • The person at the front can be any of the 55 people: 55 choices.
  • One person is now placed, so the second position can be filled by any of the remaining 44: 44 choices.
  • Then 33 remain for the third position, then 22 for the fourth, and finally just 11 person is left for the last position.

Because the choices are made one after another and each is free of the others, you multiply the counts together (this is the multiplication principle, formalised on the next page). The number of possible queues is

5×4×3×2×1=120.5 \times 4 \times 3 \times 2 \times 1 = 120.

Five people forming a queue: the choices at each positionFive boxes for the five positions in a queue. The first position can be filled in five ways, the second in four ways once one person is placed, then three, two and finally one. Multiplying the choices, five times four times three times two times one, gives one hundred and twenty, which is five factorial.How many ways can 5 people line up?choices for each position in the queue5choices1st place×4choices2nd place×3choices3rd place×2choices4th place×1choices5th place5 × 4 × 3 × 2 × 1 = 120 = 5!

That descending product, 5×4×3×2×15 \times 4 \times 3 \times 2 \times 1, is written 5!5! and read "five factorial". The same reasoning with nn people in a row gives n×(n1)××2×1n \times (n-1) \times \dots \times 2 \times 1 arrangements, which is exactly n!n!. So whenever a question asks for the number of ways to arrange nn distinct objects in a line, the answer is n!n!, and that is why the notation earns its own section at the start of the topic.

The definition of n factorial

For each whole number n1n \ge 1, the number n!n! is the product of every whole number from nn down to 11:

n!=n×(n1)×(n2)××3×2×1.n! = n \times (n-1) \times (n-2) \times \dots \times 3 \times 2 \times 1.

The values grow extremely fast. It is worth knowing the first several by heart, because they recur constantly:

1!=1,2!=2,3!=6,4!=24,5!=120,6!=720,7!=5040.1! = 1, \quad 2! = 2, \quad 3! = 6, \quad 4! = 24, \quad 5! = 120, \quad 6! = 720, \quad 7! = 5040.

Beyond these, 8!=403208! = 40\,320, 9!=3628809! = 362\,880 and 10!=362880010! = 3\,628\,800. The domain of the factorial is the whole numbers 0,1,2,0, 1, 2, \dots only: there is no factorial of a negative number or of a fraction, which is why a calculator returns an error for, say, (3)!(-3)! or (2.5)!(2.5)!.

Why 0! = 1

The convention 0!=10! = 1 looks arbitrary the first time you see it, and it cannot come from the descending-product rule, because there is nothing to multiply. There are two ways to see that it is the only sensible choice, and you should be able to give at least one.

The counting argument is the cleaner one. n!n! counts the arrangements of nn objects in a row, so 0!0! should count the arrangements of 00 objects, that is, the arrangements of the empty set. There is exactly one such arrangement: the empty row, where nothing is placed. So 0!=10! = 1, not 00.

The pattern argument backs this up. Going down the table, each factorial is the next one divided by the top number: 4!=5!÷54! = 5! \div 5, 3!=4!÷43! = 4! \div 4, 2!=3!÷32! = 3! \div 3, 1!=2!÷21! = 2! \div 2. Continuing the pattern, 0!=1!÷1=10! = 1! \div 1 = 1. Defining 0!0! any other way would break every formula that uses factorials, including the permutation and combination formulas later in the topic, so the convention is forced on us by consistency.

The recursive rule: n! = n(n-1)!

The single most useful fact about factorials is that each one is the next number down times the factorial below it:

n!=n×(n1)!for every whole number n1.n! = n \times (n-1)! \qquad \text{for every whole number } n \ge 1.

This is true because n!=n×[(n1)×(n2)××1]n! = n \times \big[(n-1) \times (n-2) \times \dots \times 1\big], and the bracket is exactly (n1)!(n-1)!. For example 8!=8×7!8! = 8 \times 7! and 10!=10×9!10! = 10 \times 9!. Read forwards, the rule builds factorials up one step at a time, with 0!=10! = 1 as the starting value. Read backwards, it lets you peel a factor off the front of a factorial, and that is the key to all the simplifying that follows.

Unrolling to simplify factorial fractions

Almost every exam manipulation of factorials is a fraction in which most of the product cancels. The method is always the same: take the larger factorial and unroll it, one factor at a time, until you reach the smaller factorial, which then cancels top and bottom. You never need to evaluate either factorial in full.

Take 10!7!\dfrac{10!}{7!}. The bottom is 7!7!, so unroll the top down to 7!7!:

10!7!=10×9×8×7!7!=10×9×8=720.\frac{10!}{7!} = \frac{10 \times 9 \times 8 \times 7!}{7!} = 10 \times 9 \times 8 = 720.

Notice you wrote out only the three factors above 77 and stopped. The number of leftover factors is the gap between the two starting numbers: from 1010 down to (but not including) 77 is exactly 33 factors, 10,9,810, 9, 8.

The same move works with pronumerals, which is where Extension 1 most often takes it. To simplify (n+2)!(n1)!\dfrac{(n+2)!}{(n-1)!}, unroll the top from n+2n+2 down to (n1)!(n-1)!:

(n+2)!(n1)!=(n+2)(n+1)n(n1)!(n1)!=(n+2)(n+1)n.\frac{(n+2)!}{(n-1)!} = \frac{(n+2)(n+1)\,n\,(n-1)!}{(n-1)!} = (n+2)(n+1)\,n.

Again the count of leftover factors is the gap between the top index and the bottom index: (n+2)(n1)=3(n+2) - (n-1) = 3, so exactly 33 factors survive, (n+2)(n+2), (n+1)(n+1) and nn. The general pattern, which you will meet again as the permutation formula, is

n!(nr)!=n(n1)(n2)(nr+1)(r factors).\frac{n!}{(n-r)!} = n(n-1)(n-2) \cdots (n-r+1) \qquad (r \text{ factors}).

Combining factorial fractions over a common factorial

When two factorial fractions are added or subtracted, do not find some huge common denominator by multiplying the factorials together. Instead use the recursive rule to write the smaller factorial in terms of the larger one, so the larger factorial is already the common denominator.

For a numeric example, take 18!+110!\dfrac{1}{8!} + \dfrac{1}{10!}. Since 10!=10×9×8!10! = 10 \times 9 \times 8!, the common denominator is 10!10!, and 18!=10×910!=9010!\dfrac{1}{8!} = \dfrac{10 \times 9}{10!} = \dfrac{90}{10!}. Therefore

18!+110!=9010!+110!=9110!.\frac{1}{8!} + \frac{1}{10!} = \frac{90}{10!} + \frac{1}{10!} = \frac{91}{10!}.

The algebraic version is the more common exam target. To combine 1n!+1(n+1)!\dfrac{1}{n!} + \dfrac{1}{(n+1)!}, note (n+1)!=(n+1)×n!(n+1)! = (n+1) \times n!, so (n+1)!(n+1)! is the common denominator and 1n!=n+1(n+1)!\dfrac{1}{n!} = \dfrac{n+1}{(n+1)!}. Hence

1n!+1(n+1)!=n+1(n+1)!+1(n+1)!=n+2(n+1)!.\frac{1}{n!} + \frac{1}{(n+1)!} = \frac{n+1}{(n+1)!} + \frac{1}{(n+1)!} = \frac{n+2}{(n+1)!}.

The numerator collapses to a short expression precisely because the recursive rule did the heavy lifting; reaching for the product n!×(n+1)!n! \times (n+1)! as a denominator would have made the algebra far messier for no benefit.

Trailing zeroes of a factorial

A neat application that NESA likes, because it tests understanding rather than button-pushing, is counting how many zeroes a factorial ends in. You cannot do it on a calculator beyond about 13!13!, since the display runs out of digits, but a short argument settles it exactly.

Every trailing zero comes from a factor of 1010, and 10=2×510 = 2 \times 5. In the product n!=n×(n1)××1n! = n \times (n-1) \times \dots \times 1 there are always far more factors of 22 than factors of 55 (every second number is even, but only every fifth is a multiple of 55). So each trailing zero is governed by a factor of 55, and the number of trailing zeroes equals the number of factors of 55 in the product.

To count the factors of 55 in n!n!, count the multiples of 55 up to nn, then add the multiples of 2525 (each of which contributes a second 55), then multiples of 125125, and so on:

n5+n25+n125+\left\lfloor \frac{n}{5} \right\rfloor + \left\lfloor \frac{n}{25} \right\rfloor + \left\lfloor \frac{n}{125} \right\rfloor + \cdots

For instance 25!25! has 255+2525=5+1=6\left\lfloor \frac{25}{5} \right\rfloor + \left\lfloor \frac{25}{25} \right\rfloor = 5 + 1 = 6 trailing zeroes, and 100!100! has 20+4+0=2420 + 4 + 0 = 24. The square term matters: 25=5225 = 5^2 slips in an extra factor of 55 that the first count alone would miss.

How exam questions ask about factorials

The wording is predictable, and each phrasing maps to one of the moves above.

  • "Evaluate 12!9!\dfrac{12!}{9!} (or with a 3!3! in the denominator) without a calculator." Unroll the larger factorial down to the smaller one and cancel; never compute the full factorials. If a factorial like 3!3! is left over, evaluate just that small piece.
  • "Simplify (n+2)!(n1)!\dfrac{(n+2)!}{(n-1)!}" or "write as a product of factors". Unroll the top to the bottom factorial; the number of surviving factors is the gap between the two indices.
  • "Write 1n!±1(n+1)!\dfrac{1}{n!} \pm \dfrac{1}{(n+1)!} as a single fraction." Use (n+1)!=(n+1)n!(n+1)! = (n+1)\,n! so the larger factorial is the common denominator; rewrite the smaller-denominator fraction and combine.
  • "How many zeroes does n!n! end in?" Count the factors of 55 with the floor-sum, remembering the extra 55 from multiples of 2525.
  • "Solve (n+2)!n!=30\dfrac{(n+2)!}{n!} = 30" or "n!(n2)!=56\dfrac{n!}{(n-2)!} = 56". Unroll to turn the left side into a short product, form a quadratic, solve, and reject any root that is not a whole number 0\ge 0.
  • "Show that k×k!=(k+1)!k!k \times k! = (k+1)! - k!, hence sum a series." Take out the common factor k!k! on the right to prove the identity, then use it to telescope the sum.

Practice questions

Original practice questions graded from foundation to exam level, each with a full worked solution. Try them before revealing the solution.

foundation2 marksEvaluate (i) 6!6! and (ii) 8!5!\dfrac{8!}{5!} without a calculator, showing the cancelling in part (ii).
Show worked solution →

Evaluate 6!6! by multiplying down to 11. By the definition,

6!=6×5×4×3×2×1=720.6! = 6 \times 5 \times 4 \times 3 \times 2 \times 1 = 720.

Unroll the top of 8!5!\dfrac{8!}{5!} until 5!5! appears. Write 8!8! as 8×7×6×5!8 \times 7 \times 6 \times 5! so the 5!5! cancels:

8!5!=8×7×6×5!5!=8×7×6=336.\frac{8!}{5!} = \frac{8 \times 7 \times 6 \times 5!}{5!} = 8 \times 7 \times 6 = 336.

Answer. (i) 6!=7206! = 720; (ii) 8!5!=336\dfrac{8!}{5!} = 336.

foundation2 marksSimplify (n+1)!(n2)!\dfrac{(n+1)!}{(n-2)!}, writing the answer as a product of factors.
Show worked solution →

Unroll the larger factorial down to the smaller one. The top is (n+1)!(n+1)! and the bottom is (n2)!(n-2)!, so unroll (n+1)!(n+1)! three steps until (n2)!(n-2)! appears:

(n+1)!=(n+1)×n×(n1)×(n2)!.(n+1)! = (n+1) \times n \times (n-1) \times (n-2)!.

Cancel the common factorial. Dividing by (n2)!(n-2)!,

(n+1)!(n2)!=(n+1)n(n1)(n2)!(n2)!=(n+1)n(n1).\frac{(n+1)!}{(n-2)!} = \frac{(n+1)\,n\,(n-1)\,(n-2)!}{(n-2)!} = (n+1)\,n\,(n-1).

Check with a value. At n=5n = 5 the left side is 6!3!=7206=120\dfrac{6!}{3!} = \dfrac{720}{6} = 120, and the right side is 6×5×4=1206 \times 5 \times 4 = 120: they agree.

Answer. (n+1)!(n2)!=(n+1)n(n1)\dfrac{(n+1)!}{(n-2)!} = (n+1)\,n\,(n-1).

core3 marksWrite 1n!1(n+1)!\dfrac{1}{n!} - \dfrac{1}{(n+1)!} as a single fraction in simplest form.
Show worked solution →

Find the common denominator. The denominators are n!n! and (n+1)!(n+1)!. Because (n+1)!=(n+1)×n!(n+1)! = (n+1) \times n!, the larger one (n+1)!(n+1)! is the common denominator.

Rewrite the first fraction over (n+1)!(n+1)!. Multiply top and bottom of 1n!\dfrac{1}{n!} by (n+1)(n+1):

1n!=n+1(n+1)!.\frac{1}{n!} = \frac{n+1}{(n+1)!}.

Subtract over the common denominator. Now both fractions share (n+1)!(n+1)!:

n+1(n+1)!1(n+1)!=(n+1)1(n+1)!=n(n+1)!.\frac{n+1}{(n+1)!} - \frac{1}{(n+1)!} = \frac{(n+1) - 1}{(n+1)!} = \frac{n}{(n+1)!}.

Check with a value. At n=4n = 4 the left side is 1241120=4120=130\dfrac{1}{24} - \dfrac{1}{120} = \dfrac{4}{120} = \dfrac{1}{30}, and n(n+1)!=4120=130\dfrac{n}{(n+1)!} = \dfrac{4}{120} = \dfrac{1}{30}: they agree.

Answer. 1n!1(n+1)!=n(n+1)!\dfrac{1}{n!} - \dfrac{1}{(n+1)!} = \dfrac{n}{(n+1)!}.

core3 marksHow many final zeroes are there when 30!30! is written out in full? Justify your count.
Show worked solution →
Reduce the question to counting factors of 55
A final zero comes from a factor of 10=2×510 = 2 \times 5. In a factorial the factors of 22 far outnumber the factors of 55, so the number of final zeroes equals the number of factors of 55 in the product 30×29××130 \times 29 \times \cdots \times 1.
Count multiples of 55 up to 3030
These are 5,10,15,20,25,305, 10, 15, 20, 25, 30, giving 305=6\left\lfloor \dfrac{30}{5} \right\rfloor = 6 factors of 55 so far.
Add the extra factor from multiples of 2525
The number 25=5225 = 5^2 carries a second factor of 55 that has not yet been counted, and 3025=1\left\lfloor \dfrac{30}{25} \right\rfloor = 1. There are no multiples of 125125 below 3030, so the count stops.
Total
The number of factors of 55 is 6+1=76 + 1 = 7, so 30!30! ends in 77 zeroes.
exam3 marksSolve (n+2)!n!=30\dfrac{(n+2)!}{n!} = 30 for the whole number nn.
Show worked solution →

Unroll the numerator down to n!n!. Write (n+2)!=(n+2)(n+1)n!(n+2)! = (n+2)(n+1)\,n!, so the n!n! cancels:

(n+2)!n!=(n+2)(n+1)n!n!=(n+2)(n+1).\frac{(n+2)!}{n!} = \frac{(n+2)(n+1)\,n!}{n!} = (n+2)(n+1).

Form a quadratic equation. The equation becomes (n+2)(n+1)=30(n+2)(n+1) = 30. Expanding,

n2+3n+2=30    n2+3n28=0.n^2 + 3n + 2 = 30 \implies n^2 + 3n - 28 = 0.

Factor and solve
Factoring, (n4)(n+7)=0(n - 4)(n + 7) = 0, so n=4n = 4 or n=7n = -7.
Reject the invalid root
A factorial is only defined for whole numbers n0n \ge 0, so n=7n = -7 is rejected, leaving n=4n = 4.
Check
With n=4n = 4, (n+2)!n!=6!4!=72024=30\dfrac{(n+2)!}{n!} = \dfrac{6!}{4!} = \dfrac{720}{24} = 30, as required. So n=4n = 4.
exam4 marks(a) Show that k×k!=(k+1)!k!k \times k! = (k+1)! - k! for every whole number k0k \ge 0. (b) Hence evaluate 1×1!+2×2!+3×3!1 \times 1! + 2 \times 2! + 3 \times 3!.
Show worked solution →

Start from the right side of part (a). Take out the common factor k!k! from (k+1)!k!(k+1)! - k!, using (k+1)!=(k+1)×k!(k+1)! = (k+1) \times k!:

(k+1)!k!=(k+1)k!k!=((k+1)1)k!=k×k!.(k+1)! - k! = (k+1)\,k! - k! = \big((k+1) - 1\big)k! = k \times k!.

This proves k×k!=(k+1)!k!k \times k! = (k+1)! - k!.

Apply the identity to each term in part (b). Replacing each k×k!k \times k! by (k+1)!k!(k+1)! - k! turns the sum into a telescoping chain:

1×1!+2×2!+3×3!=(2!1!)+(3!2!)+(4!3!).1 \times 1! + 2 \times 2! + 3 \times 3! = (2! - 1!) + (3! - 2!) + (4! - 3!).

Cancel the middle terms. The 2!2! and 3!3! each appear once with a plus and once with a minus, so they cancel, leaving

4!1!=241=23.4! - 1! = 24 - 1 = 23.

Check directly. Adding term by term, 1×1+2×2+3×6=1+4+18=231 \times 1 + 2 \times 2 + 3 \times 6 = 1 + 4 + 18 = 23, which agrees.

Answer. 1×1!+2×2!+3×3!=231 \times 1! + 2 \times 2! + 3 \times 3! = 23.

Related dot points