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

Powerful Factorial

Age 11 to 14
Challenge Level Yellow starYellow starYellow star
  • Problem
  • Getting Started
  • Student Solutions
  • Teachers' Resources

There were lots of interesting patterns that could be identified and explained in this problem. Ngoc from Nguyen Truong To junior high school (Vietnam) identified some interesting patterns along with giving the answers. Well done Ngoc. It is also good, once you have identified patterns, to try to explain them in terms of the mathematics they came from. So where do the patterns Ngoc and Andrei (School 205, Bucharest) come from?

Ngoc's contribution:

The highest power of 2 that divides exactly to 100! is 97
The highest power of 3 that divides exactly to 100! is 48

General form:

with all n, k are positive integers, n > k
The highest power of k (called y) that divides exactly to n! is:

y = n/k + n/k 2 + n/k 3 + ... + n/k z
with n/k, n/k 2 ... are nearest integers, and z < = n

Andrei's Contribution

I started working with 100!.

  • I observe that the greatest number - power of 2 that is smaller than 100 is 2 6 . It enters 100 only once.
  • Now, I consider the consecutive power of 2 smaller than 2 6 (2 5 ). This number enters in 100 3 times. However, it is clear that 2 6 is divisible with 2 5 . Therefore, I take this number (3 - 1 =) 2 times.
  • Now, I take 2 4 . It enters in 100 6 times. However, three of the six combinations is also a multiple of 32 (including 64).So, I take this number (6 - 3 =) 3 times.
  • It is now the turn of 2 3 . It enters in 100 12 times. However, here it is also the case that six were also multiples of 16. So, there remain only six combinations.
  • The case of 2 2 is similar it enters in 100 25 times, but there remain only 13 combinations.
  • Finally, two. It enters in 100 50 times, but I use only 25 of them.

To calculate the total highest power of two that divides exactly into 100! is calculating by multiplying the corresponding power of two with the number of solutions and multiplying the results, because it is 100!:

(2 6 ) 1 * (2 5 ) 2 * (2 4 ) 3 * (2 3 ) 6 * (2 2 ) 13 * (2 1 ) 25 = 2 6 * 2 10 * 2 12 * 2 18 * 2 26 * 2 25 = 2 97

I use the same method for dividing 100! into powers of three:

Power of 3 3n < 100! Combinations Result
3 4 1 1 1
3 3 3 3 - 1 2
3 2 11 11 - 3 8
3 33 33 - 11 2

Here the greatest power of three that divides exactly into 100!:

(3 4 ) 1 * (3 3 ) 2 * (3 2 ) 8 * (3 1 ) 22 = 3 4 * 3 6 * 3 16 * 3 22 = 3 48

Now, the general method with n! as the number, and x as the number whose powers enter n!:

  • Calculate the greatest power of x k that is smaller than n and observe how many times it enters n. Note the result with a.
  • Calculate how many times x k-1 enters n. Then subtract the precedent result (before subtracting something). Note the result with b.
  • Continue this method up to x 1 .
  • Now, calculate the greatest power of x that divides exactly into n: (x k ) a * (x k-1 ) b * (x k-2 ) c * ... * (x 1 ) z

I would like to mention that I used for 100! and for the powers of 2 the traditional method, it means 100 is divisible by 2 2 , 98 by 2, ? and so on, and I obtained the same result as before.


You may also like

Adding All Nine

Make a set of numbers that use all the digits from 1 to 9, once and once only. Add them up. The result is divisible by 9. Add each of the digits in the new number. What is their sum? Now try some other possibilities for yourself!

Counting Factors

Is there an efficient way to work out how many factors a large number has?

Repeaters

Choose any 3 digits and make a 6 digit number by repeating the 3 digits in the same order (e.g. 594594). Explain why whatever digits you choose the number will always be divisible by 7, 11 and 13.

  • 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