Factors Calculator
List all factors of a number, with factor pairs, the factor count, the sum of factors and the prime factorization. Divide n by each integer up to √n; every divisor i gives the pair (i, n ÷ i). Example: with number 360, the result is Number of factors = 24.
Last updated · By S. Dilshan · Runs in your browser, nothing is uploaded
Step-by-Step Solution
How do you use the Factors Calculator?
Enter a whole number up to one trillion. The calculator finds every factor, groups them into factor pairs, counts them, adds them and shows the prime factorization that explains the count.
What formula does the Factors Calculator use?
Divide n by each integer up to √n; every divisor i gives the pair (i, n ÷ i). If n = p₁^a₁ × p₂^a₂ × …, the number of factors is (a₁+1)(a₂+1)… and their sum is ∏ (p^(a+1) − 1)/(p − 1).
Worked example: Number 360
For 360 = 2³ × 3² × 5 the count is (3+1)(2+1)(1+1) = 24 factors, from 1 and 2 up to 180 and 360. The sum of the factors is 15 × 13 × 6 = 1170.
With the default values the calculator returns Number of factors = 24; All factors = 1, 2, 3, 4, 5, 6, 8, 9, 10, 12, 15, 18, 20, 24, 30, 36, 40, 45, 60, 72, 90, 120, 180, 360; Factor pairs = 1 × 360, 2 × 180, 3 × 120, 4 × 90, 5 × 72, 6 × 60, 8 × 45, 9 × 40, 10 × 36, 12 × 30, 15 × 24, 18 × 20; Sum of factors = 1170.
Where Is This Calculation Used?
Factor lists help with fractions, with arranging items in equal rows and with number-theory questions. Perfect squares are the only numbers with an odd number of factors, because one pair collapses to a repeated root.
What are the most common mistakes with the Factors Calculator?
- Missing the partner of each factor, such as forgetting 180 once you find 2.
- Leaving out 1 or the number itself.
- Confusing factors (divisors) with multiples.
What Is the Tested Example for the Default Values?
This example is computed by the same code that powers the calculator above, so you can compare it with your own numbers or a textbook answer.
| Input: Number | 360 |
|---|---|
| Number of factors | 24 |
| All factors | 1, 2, 3, 4, 5, 6, 8, 9, 10, 12, 15, 18, 20, 24, 30, 36, 40, 45, 60, 72, 90, 120, 180, 360 |
| Factor pairs | 1 × 360, 2 × 180, 3 × 120, 4 × 90, 5 × 72, 6 × 60, 8 × 45, 9 × 40, 10 × 36, 12 × 30, 15 × 24, 18 × 20 |
| Sum of factors | 1170 |
| Prime factorization | 2^3 × 3^2 × 5 |
Where Can You Verify These Formulas?
The definitions and formulas on this page follow standard references. Check them against these sources:
Built and maintained by S. Dilshan. Found a mistake? Email [email protected] with the page address.
Frequently Asked Questions
What are the factors of a number?
The whole numbers that divide it exactly. The factors of 12 are 1, 2, 3, 4, 6 and 12.
How many factors does a number have?
Write it as p^a × q^b × … and multiply (a+1)(b+1)… For 360 that gives 24.
Which numbers have exactly two factors?
Primes: their only factors are 1 and themselves.