seven factorial
- Number
- 5,040
- Second number, to compare
- 0
Prime factorization2 x 2 x 2 x 2 x 3 x 3 x 5 x 7
2^4 x 3^2 x 5 x 7, so 5 x 3 x 2 x 2 divisors
Open this exampleThe prime factorization of a number, with the divisor count computed from the exponents rather than by trial division. Comparing two factorizations shows their common factors, which is where the GCD and LCM both come from.
Also called: prime factors calculator, factorization calculator.
5,040 = 2 x 2 x 2 x 2 x 3 x 3 x 5 x 7, which is 4 distinct primes and 60 divisors in all. The exponents give the divisor count directly: 5 x 3 x 2 x 2 = 60. A divisor is built by choosing how many copies of each prime to take, which is why 4 distinct primes produce 60 divisors. Enter a second number to see which prime factors the two share, which is where the GCD and LCM come from.
| Prime | Exponent | Contributes |
|---|---|---|
| 2 | 4 | 16 |
| 3 | 2 | 9 |
| 5 | 1 | 5 |
| 7 | 1 | 7 |
Trial division by two and then by odd numbers up to the square root finds every prime factor, since any composite has a factor at or below its square root. The exponents then give the divisor count directly: multiply each exponent plus one together, because a divisor is built by choosing how many copies of each prime to include. That is why 5040, which is seven factorial, has sixty divisors from only five distinct primes. Comparing two factorizations makes the relationship between them visible: the shared primes at their lower exponents are the GCD, and at their higher exponents the LCM.
the fundamental theorem of arithmetic: every integer above one has exactly one such factorization, which is what makes the divisor count computable from the exponents aloneEach of these is asserted on every build. If a change to the engine ever moved one of these answers, the build would fail before the page could print it.
Prime factorization2 x 2 x 2 x 2 x 3 x 3 x 5 x 7
2^4 x 3^2 x 5 x 7, so 5 x 3 x 2 x 2 divisors
Open this examplePrime factorization9973
boundary: a prime has exactly two divisors
Open this exampleFormula version 1.0.0 · definition 1.0.0 · India · Report a problem with this calculator