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.
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 means and be able to evaluate it, including the special convention . Second, you should understand the recursive rule , 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 people: choices.
- One person is now placed, so the second position can be filled by any of the remaining : choices.
- Then remain for the third position, then for the fourth, and finally just 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
That descending product, , is written and read "five factorial". The same reasoning with people in a row gives arrangements, which is exactly . So whenever a question asks for the number of ways to arrange distinct objects in a line, the answer is , 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 , the number is the product of every whole number from down to :
The values grow extremely fast. It is worth knowing the first several by heart, because they recur constantly:
Beyond these, , and . The domain of the factorial is the whole numbers only: there is no factorial of a negative number or of a fraction, which is why a calculator returns an error for, say, or .
Why 0! = 1
The convention 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. counts the arrangements of objects in a row, so should count the arrangements of objects, that is, the arrangements of the empty set. There is exactly one such arrangement: the empty row, where nothing is placed. So , not .
The pattern argument backs this up. Going down the table, each factorial is the next one divided by the top number: , , , . Continuing the pattern, . Defining 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:
This is true because , and the bracket is exactly . For example and . Read forwards, the rule builds factorials up one step at a time, with 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 . The bottom is , so unroll the top down to :
Notice you wrote out only the three factors above and stopped. The number of leftover factors is the gap between the two starting numbers: from down to (but not including) is exactly factors, .
The same move works with pronumerals, which is where Extension 1 most often takes it. To simplify , unroll the top from down to :
Again the count of leftover factors is the gap between the top index and the bottom index: , so exactly factors survive, , and . The general pattern, which you will meet again as the permutation formula, is
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 . Since , the common denominator is , and . Therefore
The algebraic version is the more common exam target. To combine , note , so is the common denominator and . Hence
The numerator collapses to a short expression precisely because the recursive rule did the heavy lifting; reaching for the product 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 , since the display runs out of digits, but a short argument settles it exactly.
Every trailing zero comes from a factor of , and . In the product there are always far more factors of than factors of (every second number is even, but only every fifth is a multiple of ). So each trailing zero is governed by a factor of , and the number of trailing zeroes equals the number of factors of in the product.
To count the factors of in , count the multiples of up to , then add the multiples of (each of which contributes a second ), then multiples of , and so on:
For instance has trailing zeroes, and has . The square term matters: slips in an extra factor of 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 (or with a 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 is left over, evaluate just that small piece.
- "Simplify " 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 as a single fraction." Use so the larger factorial is the common denominator; rewrite the smaller-denominator fraction and combine.
- "How many zeroes does end in?" Count the factors of with the floor-sum, remembering the extra from multiples of .
- "Solve " or "". Unroll to turn the left side into a short product, form a quadratic, solve, and reject any root that is not a whole number .
- "Show that , hence sum a series." Take out the common factor 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) and (ii) without a calculator, showing the cancelling in part (ii).Show worked solution →
Evaluate by multiplying down to . By the definition,
Unroll the top of until appears. Write as so the cancels:
Answer. (i) ; (ii) .
foundation2 marksSimplify , writing the answer as a product of factors.Show worked solution →
Unroll the larger factorial down to the smaller one. The top is and the bottom is , so unroll three steps until appears:
Cancel the common factorial. Dividing by ,
Check with a value. At the left side is , and the right side is : they agree.
Answer. .
core3 marksWrite as a single fraction in simplest form.Show worked solution →
Find the common denominator. The denominators are and . Because , the larger one is the common denominator.
Rewrite the first fraction over . Multiply top and bottom of by :
Subtract over the common denominator. Now both fractions share :
Check with a value. At the left side is , and : they agree.
Answer. .
core3 marksHow many final zeroes are there when is written out in full? Justify your count.Show worked solution →
- Reduce the question to counting factors of
- A final zero comes from a factor of . In a factorial the factors of far outnumber the factors of , so the number of final zeroes equals the number of factors of in the product .
- Count multiples of up to
- These are , giving factors of so far.
- Add the extra factor from multiples of
- The number carries a second factor of that has not yet been counted, and . There are no multiples of below , so the count stops.
- Total
- The number of factors of is , so ends in zeroes.
exam3 marksSolve for the whole number .Show worked solution →
Unroll the numerator down to . Write , so the cancels:
Form a quadratic equation. The equation becomes . Expanding,
- Factor and solve
- Factoring, , so or .
- Reject the invalid root
- A factorial is only defined for whole numbers , so is rejected, leaving .
- Check
- With , , as required. So .
exam4 marks(a) Show that for every whole number . (b) Hence evaluate .Show worked solution →
Start from the right side of part (a). Take out the common factor from , using :
This proves .
Apply the identity to each term in part (b). Replacing each by turns the sum into a telescoping chain:
Cancel the middle terms. The and each appear once with a plus and once with a minus, so they cancel, leaving
Check directly. Adding term by term, , which agrees.
Answer. .
Related dot points
- Use the multiplication principle to count ordered selections across stages, count ordered selections with repetition as n^r and without repetition as nPr = n!/(n-r)!, and apply restriction techniques: deal with the difficulty first, fix a position, keep items together as a block, and count 'at least one' by the complement
A first-contact answer to the HSC Maths Extension 1 dot point on counting ordered selections. The multiplication principle across stages, ordered selections with repetition (n^r) versus without (nPr), and the restriction moves: deal with the difficulty first, fix a position, keep items together as a block, and count at-least-one by the complement, using the filled-box slot method.
- Count the distinct arrangements of n objects when some are identical: divide n! by the factorial of each repeat count to get n! over r1! r2! ... rk!, and handle the two-type special case where every object is one of two kinds (2^n arrangements in all, or choose the positions of one kind with a combination)
Why arranging objects with repeats needs n! over r1! r2! ... rk!: plain n! overcounts because swapping identical objects changes nothing, so you divide by the factorial of each repeat count. Covers word arrangements like PRESSES, the binary two-type case (2^n or choose positions with a combination), cases, and separating identical items.
- Use the multiplication principle and the permutation formula to count ordered arrangements, including restrictions and repeated elements
A focused answer to the HSC Maths Extension 1 dot point on permutations. The multiplication principle, the formula for arrangements of from , permutations of objects with repeats, circular permutations, and counting with restrictions, with stepped diagrams and worked examples.
- Use the combination formula to count unordered selections, including with restrictions and complementary counting
A focused answer to the HSC Maths Extension 1 dot point on combinations. The combination formula, why you divide by , key identities, applications including complementary counting, splitting into groups, and at-least/at-most counts, with a stepped diagram and worked examples.
- State and use the binomial theorem, identify general and specific terms, and relate it to Pascal's triangle
A focused answer to the HSC Maths Extension 1 dot point on the binomial theorem. The expansion of using binomial coefficients, the general term , applications to coefficient finding and approximation, and Pascal's triangle built row by row, with worked examples.
- State and apply the pigeonhole principle in counting and existence problems
A focused answer to the HSC Maths Extension 1 dot point on the pigeonhole principle. The basic and generalised forms, identifying boxes and pigeons in a problem, and using the principle to prove existence statements, with a stepped objects-into-boxes diagram and worked examples.