Unitary Divisor Sum Calculator

Add the divisors whose complement shares no factor with them, with the count of such divisors shown.

Math and PercentUpdated 2026-11-182 min read
Unitary Divisor Sum Calculator
A whole number from 1 to 1,000,000,000,000.
Sum of unitary divisors
...
Number of unitary divisors...
Prime factorization...

What it does

A divisor d of n is called unitary when d and the quotient n divided by d have no common factor greater than one. For 12 the ordinary divisors are 1, 2, 3, 4, 6 and 12, but only 1, 3, 4 and 12 are unitary, because 2 and 6 fail the coprime test with their complements.

The unitary divisor sum adds exactly those qualifying divisors. For 12 the sum is 1 plus 3 plus 4 plus 12, which is 20. The same value comes from a short product formula: each prime power in the factorization contributes one plus that power, and the contributions multiply.

Unitary divisors were introduced as a variation on ordinary divisor theory, and they lead to unitary analogues of many classical functions. Because a prime power is kept whole rather than split across a divisor and its complement, the counting rule reduces to a simple choice: include the full prime power or leave it out.

This page factors the input, applies the product of one plus each prime power, and reports the sum together with the count of unitary divisors. The factorization is shown so every contribution can be checked.

The input limit is one trillion. Results are exact integers, and the tool returns a clear error for values outside the allowed range.

How to use

  1. Enter a whole number n from 1 upward.
  2. Read the unitary divisor sum in the main result box.
  3. Check the count of unitary divisors beside it.
  4. Use the factorization to see the one plus prime power terms.
  5. The default n = 12 reproduces the worked example.
  6. Try n = 30 to see three independent prime power choices.

Formula

sigma*(n) = product over prime powers p^a in n of (1 + p^a)
n
The positive integer whose divisors are examined.
p^a
A complete prime power in the factorization of n.
sigma*(n)
The sum of the unitary divisors of n.

A unitary divisor is built by selecting some whole prime powers and omitting the rest. Each prime power gives exactly two choices, so the number of unitary divisors is two raised to the number of distinct primes. Adding the selected products over all choices gives the product of one plus each prime power.

Worked example

Example: sigma*(12)

The page opens with n = 12.

  1. Factor 12 into 2^2 x 3.
  2. The prime powers are 4 and 3.
  3. Form the contributions: 1 + 4 = 5 and 1 + 3 = 4.
  4. Multiply them: 5 x 4 = 20.
  5. The tool reports unitary sum 20, unitary count 4, and factorization 2^2 x 3.
  6. Check by listing the unitary divisors 1, 3, 4 and 12, whose total is 20.
  7. For 30 the contributions are 3, 4 and 6, giving a sum of 72 and a count of 8.

Reference table

Unitary divisor sums for sample numbers
nFactorizationUnitary sumUnitary count
1none11
82^392
122^2 x 3204
302 x 3 x 5728
362^2 x 3^2504

Limits

  • Only positive divisors are considered.
  • Inputs above one trillion are rejected to keep factoring fast.
  • The tool gives the sum and count, not the divisor list.
  • Unitary divisors differ from ordinary divisors whenever prime powers repeat.

Common mistakes

  • Splitting a prime power between divisor and complement.
  • Using p plus one instead of p to the power a plus one.
  • Counting all divisors instead of unitary ones.
  • Assuming the unitary count equals the ordinary divisor count.
  • Forgetting that the contribution for n = 1 is the empty product, which is 1.

Try it yourself

Quick checks. Answers sit tucked under each question.

What is the unitary divisor sum of 8?

8 = 2^3, so the sum is 1 + 8 = 9 and the count is 2.

What is the unitary divisor sum of 30?

The contributions are 3, 4 and 6, so the sum is 3 x 4 x 6 = 72.

What is the unitary divisor sum of 12?

12 = 2^2 x 3 gives 5 x 4 = 20, with 4 unitary divisors.

Questions

What makes a divisor unitary?

The divisor and its complementary quotient must be coprime.

Why does each prime power contribute one plus itself?

A unitary divisor either takes the whole prime power or none of it, so the sum over choices multiplies out.

How many unitary divisors are there?

Two raised to the number of distinct prime factors.

How does this differ from the ordinary divisor sum?

Ordinary divisors may split a prime power, so their product formula uses a geometric series instead of one plus the power.

Is the sum exact?

Yes. Only integer powers and products are used.

What input range works here?

Whole numbers from 1 through 1,000,000,000,000.

Sources

How this page was checked. The formula above was matched against the cited sources, and the worked example was run through the tool on this page before publishing. If you spot an error, contact us so we can fix it and note the correction.