Arithmetic Number Calculator
Check whether the average of the divisors of n is an integer.
What it does
An arithmetic number is an integer for which the average of its positive divisors is itself an integer. Equivalently, the number of divisors divides the sum of divisors. The sequence begins 1, 3, 5, 6, 7, 11 and 13.
The property was studied by Subbarao and others as a natural companion to perfect and abundant classifications. Unlike those, it depends on the ratio of two arithmetic functions rather than a simple inequality.
This page computes the divisor sum from the prime factorization and the divisor count from the exponents, then tests divisibility. When the division succeeds, the integer average is reported.
The computation is exact and fast up to one million. The tool returns a readable message for inputs outside the allowed range.
Every odd prime is arithmetic because its divisors 1 and p have average (p plus one) over two, which is an integer.
How to use
- Enter a whole number n from 1 to 1,000,000.
- Read the classification in the main result box.
- Check the divisor sum and divisor count beside it.
- If the test passes, read the integer average.
- The default n = 6 reproduces the worked example.
- Try n = 2 to see a prime that fails the test.
Formula
- n
- The integer being tested.
- sigma(n)
- The sum of positive divisors of n.
- d(n)
- The number of positive divisors of n.
For a prime power p^a the divisor count is a plus one, and the divisor sum is the geometric series. The functions are multiplicative, so both values are computed from the factorization. The average is shown only when it is a whole number.
Worked example
Example: n = 6
The page opens with n = 6.
- Factor 6 as 2 x 3.
- The divisor sum is 3 x 4 = 12.
- The divisor count is 2 x 2 = 4.
- Divide 12 by 4 to get 3, a whole number.
- The tool reports sigma 12, divisor count 4, average 3, and Arithmetic.
- For 2 the sum is 3 and count is 2, giving 1.5, so it is not arithmetic.
Reference table
| n | sigma(n) | d(n) | Average | Arithmetic |
|---|---|---|---|---|
| 1 | 1 | 1 | 1 | Yes |
| 2 | 3 | 2 | n/a | No |
| 3 | 4 | 2 | 2 | Yes |
| 6 | 12 | 4 | 3 | Yes |
| 8 | 15 | 4 | n/a | No |
Limits
- Inputs above 1,000,000 are rejected to keep the output simple.
- The divisor sum includes n itself.
- Only positive integers are accepted.
- The average is printed only when it is a whole number.
Common mistakes
- Using proper divisors rather than all divisors.
- Dividing the number by its divisor count instead of the sum.
- Rounding the average rather than testing divisibility.
- Assuming every odd number is arithmetic.
- Confusing this with arithmetic progressions.
Try it yourself
Quick checks. Answers sit tucked under each question.
Is 6 arithmetic?
Yes. The divisor sum 12 divided by 4 divisors gives average 3.
Is 2 arithmetic?
No. The average of 1 and 2 is 1.5.
Is 3 arithmetic?
Yes. The average of 1 and 3 is 2.
Questions
What is an arithmetic number?
An integer whose divisors have an integer average.
Who studied them?
The property is associated with work by Subbarao and others.
Are all odd primes arithmetic?
Yes, because p plus one is even.
How are the two functions computed?
From the prime factorization using multiplicative formulas.
Are results exact?
Yes, integer arithmetic is used.
What input range is accepted?
Whole numbers from 1 through 1,000,000.