Arithmetic Derivative Calculator
Factorization
- Factor first: 60 = 2^2 x 3 x 5.
- The arithmetic derivative obeys the Leibniz product rule D(ab) = a D(b) + b D(a), with D(p) = 1 for prime p; combined, D(n) = n x (sum of a_i / p_i) over the factorization.
- Here the sum is 2/2 + 1/3 + 1/5 = 23/15, so D(60) = 60 x 23/15 = 92.
- Unlike the calculus derivative it can be zero only at 0 and 1, and D(p) = 1 for every prime - 61 is prime, so its derivative is 1.
The Arithmetic Derivative Calculator computes D(n), the arithmetic derivative of a whole number. It applies the same Leibniz product rule used in calculus, translated into arithmetic: D(p) = 1 for every prime, and D(ab) = a D(b) + b D(a). From the prime factorization, the result equals n times the sum of a_i / p_i over n = the product of p_i^a_i. For example, 60 = 2^2 x 3 x 5 gives the sum 2/2 + 1/3 + 1/5 = 23/15, and 60 x 23/15 = 92, so D(60) = 92. Likewise D(100) = 140, and D(97) = 1, since the derivative of any prime is 1. One difference from the calculus derivative: D(n) is zero only at n = 0 and n = 1.
This factorization method is the accepted standard for arithmetic derivatives because it follows directly from the defining rules: D(p) = 1 for primes and the Leibniz product rule D(ab) = a D(b) + b D(a). Applying those rules to a prime factorization produces the n times the sum of a_i / p_i formula, so the method rests on the definition itself rather than on a shortcut. The page shows that formula, step-by-step workings for each calculation, worked examples such as D(60) = 92, D(100) = 140 and D(97) = 1, and the sources behind the method, so you can check every result yourself.
Worked examples
Arithmetic derivative of 60
(60)
| D(60) - the arithmetic derivative | 92 |
| prime factorization | 2^2 x 3 x 5 |
| sum of a_i / p_i | 23/15 |
| D(61) for comparison | 1 |
Arithmetic derivative of 100
(100)
| D(100) - the arithmetic derivative | 140 |
| prime factorization | 2^2 x 5^2 |
| sum of a_i / p_i | 7/5 |
| D(101) for comparison | 1 |
Arithmetic derivative of the prime 97
(97)
| D(97) - the arithmetic derivative | 1 |
| prime factorization | 97 |
| sum of a_i / p_i | 1/97 |
| D(98) for comparison | 77 |
What is the arithmetic derivative?
The arithmetic derivative is a function D defined on the nonnegative integers that borrows the shape of the Leibniz product rule from calculus and applies it to ordinary multiplication. Two rules fully determine it. First, D(p) = 1 for every prime p. Second, D(ab) = a D(b) + b D(a) for any nonnegative integers a and b. The second rule is the Leibniz rule written in arithmetic form. The construction is credited to Barbeau (1961), who studied this derivative on the natural numbers.
Because the product rule is built in, you can compute D(n) from the prime factorization of n. If n is the product of p_i^a_i, then the arithmetic derivative equals n times the sum of a_i / p_i. In other words, each prime power p^a in the factorization contributes the fraction a/p, and the total is multiplied by n itself. This makes the arithmetic derivative a natural companion to factoring: once you know the prime factorization, the derivative follows by a short calculation.
A worked example shows how the pieces fit together. Take n = 60, whose factorization is 2^2 x 3 x 5. The sum of a_i / p_i is 2/2 + 1/3 + 1/5, which equals 23/15. Multiplying by 60 gives 60 x 23/15 = 92, so D(60) = 92. Two more values illustrate the range of the function: D(100) = 140, and D(97) = 1, since 97 is prime and the derivative of any prime is 1.
One consequence may surprise anyone used to the calculus derivative. Unlike the calculus derivative, D(n) is zero only at n = 0 and n = 1. There is no other nonnegative integer whose arithmetic derivative vanishes, so the function does not flatten out the way a smooth curve might. For every other input, the value is nonzero.
If you are working through a set of values by hand, these checks help keep the calculation on track:
- Confirm that D(p) = 1 for every prime p, including large primes such as 97.
- Factor n completely before applying the sum of a_i / p_i, then multiply the sum by n.
- Check your result against known values such as D(60) = 92 and D(100) = 140.
- Remember that only n = 0 and n = 1 give D(n) = 0.
The factorization formula
The arithmetic derivative is built from two rules that copy the Leibniz product rule into ordinary whole numbers. For any prime p, D(p) = 1, and for any two numbers a and b, D(ab) = a D(b) + b D(a). Those two rules are enough to compute D(n) for every n, but applying them one multiplication at a time gets slow. The factorization formula turns the same rules into a single expression.
Write n as a product of prime powers: n = p_1^a_1 x p_2^a_2 x ... x p_k^a_k. Then the arithmetic derivative equals n times the sum of a_i / p_i over all the prime factors. The reason is that each prime power p^a contributes a factor of a/p. Applying the product rule to p^a repeatedly pulls down the exponent a and leaves p^(a-1), so D(p^a) = a x p^(a-1) = (a/p) x p^a. When the prime powers are multiplied together, the product rule adds their relative contributions, which gives n x (a_1/p_1 + a_2/p_2 + ... + a_k/p_k).
The example D(60) = 92 shows how this works in full. First factor 60: 60 = 2^2 x 3 x 5, so the primes are 2, 3 and 5 with exponents 2, 1 and 1. Each exponent divided by its prime gives 2/2, 1/3 and 1/5. Adding those fractions over a common denominator of 15 gives 15/15 + 5/15 + 3/15 = 23/15. Multiply by 60: 60 x 23/15 = 4 x 23 = 92. So D(60) = 92.
Two more checks confirm the formula. For 100 = 2^2 x 5^2, the sum is 2/2 + 2/5 = 1 + 0.4 = 1.4, and 100 x 1.4 = 140, so D(100) = 140. For the prime 97, there is a single factor with exponent 1, giving the sum 1/97, and 97 x 1/97 = 1. That matches the rule that the derivative of any prime is 1, so D(97) = 1.
One consequence separates this from the calculus derivative: D(n) is zero only at n = 0 and n = 1. Every other whole number has at least one prime factor, and the sum of a_i / p_i is positive, so multiplying by n cannot give zero. The factorization formula is therefore the fastest route to the arithmetic derivative for any number whose prime factors you can find.
Worked values
A few worked values show how the arithmetic derivative behaves in practice. Start with 60, which factors as 2^2 x 3 x 5. The exponent-and-prime sum is 2/2 + 1/3 + 1/5, which equals 23/15. Multiplying 60 by 23/15 gives 92, so D(60) = 92. Notice that the answer is larger than the input — a reminder that D(n) is not a rate of change in the calculus sense.
The same recipe handles 100. Its factorization is 2^2 x 5^2, so the sum of a_i / p_i is 2/2 + 2/5, and multiplying 100 by that sum produces 140. For a prime input the rule is simpler still: D(p) = 1 for every prime, so D(97) = 1. That single value is the building block behind every other result, since the Leibniz rule D(ab) = a D(b) + b D(a) lets you assemble D(n) from the primes in its factorization.
Comparing D(n) with D(n + 1) is a useful sanity check on any calculator output, because consecutive integers can have wildly different derivatives. The pair 97 and 98 is a good illustration of the contrast in scale: D(97) = 1 because 97 is prime, while the neighboring value depends on a factorization with several small prime factors. The same kind of jump appears between 99 and 100, where D(100) = 140. These side-by-side comparisons make it clear that the arithmetic derivative tracks prime structure, not the smooth slope you would see in calculus.
One property worth keeping in mind when you read a table of values: unlike the calculus derivative, D(n) is zero only at n = 0 and n = 1. Every other input, including every prime, returns a nonzero result. That is why a row of small inputs does not trend toward zero the way a calculus derivative might; the values depend entirely on which primes divide the number and to what powers.
| n | Factorization | Sum of a_i / p_i | D(n) |
|---|---|---|---|
| 60 | 2^2 x 3 x 5 | 2/2 + 1/3 + 1/5 = 23/15 | 92 |
| 100 | 2^2 x 5^2 | 2/2 + 2/5 | 140 |
| 97 | prime | D(p) = 1 for primes | 1 |
How it differs from calculus
If you come to the arithmetic derivative expecting the behavior of the derivative you learned in calculus, the results will surprise you. The arithmetic derivative D(n) copies the Leibniz product rule into arithmetic: D(p) = 1 for primes and D(ab) = a D(b) + b D(a). From the factorization it equals n times the sum of a_i / p_i over n = the product of p_i^a_i. That single rule produces numbers that behave nothing like slopes.
The first surprise is size. A calculus derivative usually describes a gentler rate of change, but the arithmetic derivative can be larger than the number it comes from. D(60) = 92, because 60 = 2^2 x 3 x 5 gives the sum 2/2 + 1/3 + 1/5 = 23/15 and 60 x 23/15 = 92. The derivative of 60 is 92, well above 60 itself. D(100) = 140 shows the same effect: the derivative of 100 is 140. So the arithmetic derivative is not a rate that stays small relative to its input; it can overshoot it.
The second surprise concerns primes. In calculus, a constant function has derivative zero, so you might guess that a prime, which has no smaller factors, would have derivative zero. The opposite is true. D(97) = 1, since the derivative of any prime is 1. Every prime, no matter how large, has arithmetic derivative exactly 1. This is the base case the whole definition is built on, and it is why the product rule matters so much: composite numbers inherit their derivatives from the primes that make them up.
The third surprise is where the derivative vanishes. Unlike the calculus derivative, D(n) is zero only at n = 0 and n = 1. There is no whole family of inputs with zero derivative, as there is in calculus, where any constant function has derivative zero everywhere. Here, only the two smallest values give zero, and every other number gives something nonzero. That makes the arithmetic derivative a sharply different object: it does not flatten out on intervals, because it is defined number by number, not on a continuous curve.
Taken together, these three facts show why the arithmetic derivative is its own subject. It borrows the product rule from calculus but applies it to factorization, so its values can exceed the input, primes all map to 1, and only 0 and 1 give zero. Working through examples like 60, 100 and 97 is the quickest way to see the difference.
FAQs
What is the arithmetic derivative of 60?
The arithmetic derivative of 60 is 92. Start from the prime factorization 60 = 2^2 x 3 x 5. The rule gives the sum 2/2 + 1/3 + 1/5, which equals 23/15. Multiplying 60 by 23/15 gives 92. So D(60) = 92.
What is the arithmetic derivative of a prime?
The arithmetic derivative of any prime is 1. This holds for every prime, without exception, and it is one of the defining rules of the arithmetic derivative. Just as the ordinary derivative treats a variable as having derivative 1, the arithmetic derivative treats each prime as contributing 1.
What is the arithmetic derivative of 100?
The arithmetic derivative of 100 is 140. Using the rule that each prime power contributes a_i x n / p_i, the factorization 100 = 2^2 x 5^2 gives 2 x 100/2 + 2 x 100/5, which is 100 + 40 = 140. So D(100) = 140.
When is the arithmetic derivative zero?
The arithmetic derivative is zero only at 0 and 1. This differs from the calculus derivative, where the derivative of any constant is zero. In the arithmetic setting, no other number has a derivative of zero, so 0 and 1 are the only cases.
Who invented the arithmetic derivative?
The arithmetic derivative was introduced by E. J. Barbeau in 1961. It was later popularised through problems about iterating it, that is, applying the derivative repeatedly to a number. The operation is therefore a relatively recent addition to number theory, dating from the early 1960s.
Can the arithmetic derivative be bigger than the number?
Yes. The arithmetic derivative can exceed the number itself: D(100) = 140 already exceeds 100. This happens because each prime power contributes a_i x n / p_i, and when a number has several small prime factors, these contributions can add up to more than the original number.