Skip over navigation
Cambridge University Faculty of Mathematics NRich logo
menu search
  • Teachers expand_more
    • Early years
    • Primary
    • Secondary
    • Post-16
    • Events
    • Professional development
  • Students expand_more
    • Primary
    • Secondary
    • Post-16
  • Parents expand_more
    • Early Years
    • Primary
    • Secondary
    • Post-16
  • Problem-Solving Schools
  • About NRICH expand_more
    • About us
    • Impact stories
    • Support us
    • Our funders
    • Contact us
  • search

Or search by topic

Number and algebra

  • The Number System and Place Value
  • Calculations and Numerical Methods
  • Fractions, Decimals, Percentages, Ratio and Proportion
  • Properties of Numbers
  • Patterns, Sequences and Structure
  • Algebraic expressions, equations and formulae
  • Coordinates, Functions and Graphs

Geometry and measure

  • Angles, Polygons, and Geometrical Proof
  • 3D Geometry, Shape and Space
  • Measuring and calculating with units
  • Transformations and constructions
  • Pythagoras and Trigonometry
  • Vectors and Matrices

Probability and statistics

  • Handling, Processing and Representing Data
  • Probability

Working mathematically

  • Thinking mathematically
  • Developing positive attitudes
  • Cross-curricular contexts

Advanced mathematics

  • Decision Mathematics and Combinatorics
  • Advanced Probability and Statistics
  • Mechanics
  • Calculus

For younger learners

  • Early Years Foundation Stage

Stirling Work

Age 16 to 18
Challenge Level Yellow starYellow star
  • Problem
  • Student Solutions

You are going to use a computer to work out the values of $\sqrt{n}$, $n^n$ and $e^{-n}$ for a few values of the whole number $n$.

Before you start, can you estimate values of $n$ beyond which each function is larger than $100$, $1\,000\, 000$ or $1\,000\, 000\,000\, 000$? It would be great if you could specify as tight a range as possible between which you know these values will be exceeded.

Try them out on a computer. How close were you?

Excel can cope with numbers up to about $10^{308}$ (to a precision of 16 places) What values of $n$ do you think will cause Excel to break down for each function. Were you correct?

For large n, the factorial function can be approximated very well with an expression of the following form:

$$n! \sim A n^{\pm n\pm 0.5} e^{\pm n}$$

Your challenge is to experiment using a calculator or spreadsheet to find the constant $A$ and whether or not each $\pm$ is $+$ or $-$

Warning: You will need to think about this task, as although the approximation gives a smaller and smaller percentage error as $n$ increases, the absolute error increases as $n$ increases!

When you find the correct form of the formula, can you numerically calculate some large factorials to 8 significant figures? How large a factorial will you be able to calculate?

You can now use this formula algebraically to perform calculations beyond the limit of the computer. For example, you can estimate the chance of getting $500$ heads if you toss a coin $1000$ times or (equivalently) the number of ways of choosing $500$ people from a group of $1000$ people.


 

You may also like

Big, Bigger, Biggest

Which is the biggest and which the smallest of $2000^{2002}, 2001^{2001} \text{and } 2002^{2000}$?

Infinite Continued Fractions

In this article we are going to look at infinite continued fractions - continued fractions that do not terminate.

Gosh Cosh

Explore the hyperbolic functions sinh and cosh using what you know about the exponential function.

  • Tech help
  • Accessibility Statement
  • Sign up to our newsletter
  • Twitter X logo

The NRICH Project aims to enrich the mathematical experiences of all learners. To support this aim, members of the NRICH team work in a wide range of capacities, including providing professional development for teachers wishing to embed rich mathematical tasks into everyday classroom practice.

NRICH is part of the family of activities in the Millennium Mathematics Project.

University of Cambridge logo NRICH logo