Double Arithmetic Derivative

d d x n 0 ? \Large \frac{d}{dx} n \neq 0?

In calculus, when you take the derivative of a constant you get zero as an answer. In number theory, there is something called the arithmetic derivative which allows you to differentiate a number and get a nonzero answer. The arithmetic derivative works as follows.

Where n n' denotes the arithmetic derivative of n n :

p = 1 p' = 1 for all primes p p

( a b ) = a b + a b (ab)'=a'b+ab'

0 = 1 = 0 0'=1'=0

For example, 6 = ( 2 × 3 ) = ( 2 ) ( 3 ) + ( 2 ) ( 3 ) = ( 1 ) ( 3 ) + ( 2 ) ( 1 ) = 5 6'=(2\times3)'=(2')(3)+(2)(3')=(1)(3)+(2)(1)=5

The double arithmetic derivative, denoted by n n'' , is simply defined by n = ( n ) n''=(n')' .

Find the sum of all positive integers n < 100 n<100 such that n = 1 n''=1


The answer is 498.

This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try refreshing the page, (b) enabling javascript if it is disabled on your browser and, finally, (c) loading the non-javascript version of this page . We're sorry about the hassle.

4 solutions

Garrett Clarke
Jun 27, 2015

The arithmetic derivative is a beautiful example of number theory and has a surprising number of connections to other open problems in a variety of fields of mathematics.

My solution correlates to a paper written by Victor Ufnarovski and Bo Åhlander which can be found here .

According to the paper there are two such solutions to the problem.

Solution 1: Let n = p q r n=pqr , where p p , q q , and r r are distinct prime numbers.

n = ( p q r ) = p ( q r ) + p ( q r + q r ) = q r + p r + p q n'=(pqr)'=p'(qr)+p(q'r+qr')=qr+pr+pq

If q r + p r + p q qr+pr+pq is prime, then n = 1 n''=1 .

Checking numbers under 100 leads to the following solutions:

2 × 3 × 5 = 30 2\times3\times5=30

2 × 3 × 7 = 42 2\times3\times7=42

2 × 3 × 11 = 66 2\times3\times11=66

2 × 5 × 7 = 70 2\times5\times7=70

2 × 3 × 13 = 78 2\times3\times13=78

Solution 2: Let n = 2 p n=2p for some prime p p :

n = ( 2 p ) = ( 2 ) ( p ) + ( 2 ) ( p ) = ( 1 ) ( p ) + ( 2 ) ( 1 ) = p + 2 n'=(2p)'=(2')(p)+(2)(p')=(1)(p)+(2)(1)=p+2

If p + 2 p+2 is prime as well, then n = 1 n''=1 , therefore 2 p 2p is a solution to our problem.

If p p and p + 2 p+2 are primes, then these numbers are what are known as "Twin Primes". Examples of this are 3 3 & 5 5 , 29 29 & 31 31 , etc. Whether there are an infinite number of Twin Primes is still an open problem, and proving that there are an infinite number of Twin Primes proves that there are an infinite number of solutions to our problem, n = 1 n''=1 .

Here is the list of primes of the form ( p , p + 2 ) (p,p+2) where 2 p < 100 2p < 100 : ( 3 , 5 ) (3,5) , ( 5 , 7 ) (5,7) , ( 11 , 13 ) (11,13) , ( 17 , 19 ) (17,19) , ( 29 , 31 ) (29,31) , & ( 41 , 43 ) (41,43)

Our final answer is equal to the sum of our answers from solution 1 and twice the sum of the first prime in each of the pairs of twin primes.

( 30 + 42 + 66 + 70 + 78 ) + 2 ( 3 + 5 + 11 + 17 + 29 + 41 ) = 498 (30+42+66+70+78)+2(3+5+11+17+29+41)=\boxed{498}

What got you interested in looking at the arithmetic derivative?

Calvin Lin Staff - 5 years, 11 months ago

Log in to reply

Ever since my junior year of high school I've wanted to become a number theorist; I just happened to run across it while looking up information on the twin prime conjecture! It's a beautiful example of how everything in math is connected, and because of it's beauty I felt that it was something that had to be shared with the people at Brilliant!

Garrett Clarke - 5 years, 11 months ago

The solution number 2 could be generalized for primes with a gap of a between them ... its great to see such beautiful correlation ... I have a doubt, does solution 2 cover all the possibilities? ........thanks !

Abhinav Raichur - 5 years, 11 months ago

Log in to reply

If your question regards Solution 2, it can be easily shown that the only numbers of the form p q pq where p p and q q are prime is when on of them is 2 2 and the other is of the form 6 n 1 6n-1 where n is an integer with only 3 3 as the exception. For any p p and q q we have:

( p q ) = p q + p q = q + p (pq)'=p'q+pq'=q+p

All primes are odd except for 2 2 , and the sum of two odd numbers is an even number, which will certainly be composite. For numbers greater than 3 3 , prime numbers assume the form 6 n 1 6n-1 and 6 n + 1 6n+1 because all others are either divisible by 2 2 , 3 3 or both.

( 6 n + 1 ) + 2 = 6 n + 3 = 3 ( 2 n + 1 ) (6n+1)+2=6n+3=3(2n+1)

( 6 n 1 ) + 2 = 6 n + 1 (6n-1)+2=6n+1

Therefore the only solutions are when p = 2 p=2 and q = 6 n 1 q=6n-1 where 6 n + 1 6n+1 is prime, AKA q q and q + 2 q+2 are twin primes. Thanks for the question!

Garrett Clarke - 5 years, 11 months ago

Log in to reply

thanks! .... keep posting interesting problems :)

Abhinav Raichur - 5 years, 11 months ago

Let N = 2p where p is prime Then N' = 2'p + 2p' = p + 2 Then (N')' = p' + 2' = 2 ??? where did I go wrong

Bill Woolson - 4 years, 4 months ago

Log in to reply

There is no "sum rule" of arithmetic derivation. Hence, it's not true that ( N ) = ( p + 2 ) = p + 2 (N')' = (p+2)' = p'+2' .

Calvin Lin Staff - 4 years, 4 months ago

Why do the primes have to be distinct? 28=7 2 2 28'=11 28"=1 Why is 28 not a solution?

Raphael Million - 3 years, 12 months ago

Log in to reply

Let N=p1 p1 p2 , let's calculate N', N'= p1' (p1 . p2)+p1(p1.p2)' since p' = 1 if p is prime N' =p1.p2+p1(p1'.p2+p2'.p1) =p1^2+2p1.p2 =p1.(2p2+p1) which is not prime So N'' cant be 1 In your exemple 28=7.2.2 28'=2(2.7+2) = 32 and not 11

malek harzi - 7 months, 1 week ago

Are we doing 1/2 = (1/1 - 1/2) or not

Ryan Matthew - 3 years, 4 months ago

Could u pls explain why r u evaluating "twice the sum of the first prime in each of the pairs of twin primes."and not both nos. each set of twin primes????

erica phillips - 2 years, 11 months ago

Very nice, but we need a few extra steps to complete your proof. To finish you need to show that there are no other solutions to the "differential equation" n''=1. To do that it's enough to observe that:

1) if n is is divisible by the square of a prime then n' is not prime (just note that if n=(p^2)m, where p is prime, then n'=(p^2)'m+(p^2)m'=2pm+(p^2)m', which is divisible by p and hence not a prime)

and

2) if n has at least 4 distinct prime factors then n>100 (just note that any such number is greater than or equal to 2 × 3 × 5 × 7 = 210 2 \times 3 \times 5 \times 7=210 ).

The Sicilian Magician - 2 years, 10 months ago

This could have been a nice exercise in functional programming.

1
2
3
4
5
6
7
8
d :: Int -> Int
d n
    | n == 0 = 0
    | n == 1 = 0
    | otherwise = (n `div` p) + p * (d (n `div` p))
        where p = head [x | x <- [2..], n `mod` x == 0]

main = putStrLn $ show (sum [n | n <- [1..100], (d.d) n == 1])

Moderator note:

What would be the general formula for the derivative of

p 1 q 1 × p 1 q 2 × ? p_1 ^ { q_1} \times p_1 ^ { q_2 } \times \ldots ?

If n = p 1 q 1 × p 2 q 2 × , n = p_1^{q_1}\times p_2^{q_2}\times \cdots, then n = n ( q 1 p 1 + q 2 p 2 + ) . n' = n\cdot\left(\frac{q_1}{p_1} + \frac{q_2}{p_2} + \cdots\right). This is inspiration to define the "logarithmic derivative", D L n = n n = q 1 p 1 + q 2 p 2 + . D_L n = \frac{n'}{n} = \frac{q_1}{p_1} + \frac{q_2}{p_2} + \cdots. It has the defining properties D L p = 1 p , D L ( n m ) = D L n + D L m . D_L p = \frac 1 p, \ \ \ D_L (nm) = D_L n + D_L m. Compare this to usual logarithmic derivatives: d d x ln x n = n x , d d x ln ( f g ) = d d x ln f + d d x ln g . \tfrac{d}{dx}\ln x^n = \frac n x,\ \ \ \tfrac{d}{dx}\ln (fg) = \tfrac{d}{dx}\ln f + \tfrac{d}{dx}\ln g.

Arjen Vreugdenhil - 5 years, 6 months ago

Log in to reply

Exactly! I noticed this as well; I suggest that you try another problem I created: Logarithmic Arithmetic Derivative

Garrett Clarke - 5 years, 6 months ago

Great solution, very minimal coding, impressive!

Garrett Clarke - 5 years, 11 months ago
K T
Aug 11, 2019

Since the derivatives of 0, 1 and all primes are nonnegative integers, and nonnegativity is preserved by the rule ( a b ) = a b + a b (ab)'=a'b+ab' , all derivatives of composites are nonnegative integers too.

All numbers below will be nonnegative integers.

Let P P denote the set of all prime numbers.

First establish Lemma 1: n = 1 n P n'=1 \Leftrightarrow n \in P The arrow from right to left is by definition; and if n is composite ( n = a p n=ap with a 2 , p P a\geq 2, p \in P ), then n = a p + a p a 2 n'=a'p+ap'\geq a \geq 2 . So composites never have derivative 1, which proves the arrow from left to right. ■

Lemma 2:. Let p be prime and k a positive integer, then ( p k ) = k p k 1 (p^k)'=kp^{k-1} For k = 1 k=1 this is just p = 1 p'=1 , which is the case by definition. For k>1: Step: ( p k ) = ( p p k 1 ) = 1 × p k 1 + p × ( p k 1 ) (p^k)'=(p\cdot p^{k-1})' = 1×p^{k-1}+p×(p^{k-1})' .

Applying this step by induction we get ( p k ) = p k 1 + p ( p k 2 + p ( p k 3 + . . . ) ) (p^k)'=p^{k-1}+p(p^{k-2}+p(p^{k-3}+...)) = p k 1 + p p k 2 + p 2 p k 3 . . . + p k 1 p 0 = k p k 1 =p^{k-1}+pp^{k-2}+p^2p^{k-3}...+p^{k-1}p^0=kp^{k-1} . ■

By lemma 1, we are looking for n, such that n P n' \in P . All nonnegative integers fall in one of the following sets:

  • 0 or 1. n { 0 , 1 } n\in \{0, 1\} By definition n = 0 n'=0 and therefore n = 0 1 n''=0 \neq 1 .
  • primes. n P n \in P . By definition n = 1 n'=1 and hence n = 0 1 n''=0 \neq 1 .
  • prime powers. n { p k p P , k > 1 } n \in \{p^k|p \in P, k>1\} . By lemma 2, n = k p k 1 n' = kp^{k-1} , which is composite for k > 1 k \gt 1 , so n 1 n'' \neq 1
  • multiples of prime powers. n { a p k a , k > 1 , p a } n \in \{ap^k| a,k >1, p\nmid a\} . n = a p k + a k p k 1 = ( a p + a k ) p k 1 n'=a'p^k+akp^{k-1}=(a'p+ak)p^{k-1} . This is composite because both factors are larger than 1, so n 1 ''\neq 1
  • products of two distinct primes. If n = p q n=pq , then n = p + q n'=p+q In order for n n'' to be 1, p + q p+q needs to be prime, which is only odd if one of the primes (say q) equals 2. Then n = ( 2 p ) = 2 + p n'=(2p)'=2+p , This is prime if p is the lower of a twin prime. E.g. p=2, q=3. n=6, n'=2+3=5. All primes p below 50 for which p + 2 p+2 is also prime are: 3 , 5 , 11 , 17 , 29 , 41 3, 5, 11, 17, 29, 41 , so the n n for which n = 1 n''=1 are n { 6 , 10 , 22 , 34 , 58 , 82 } n \in \{6, 10,22,34,58,82\}
  • products of three distinct primes. If n = p q r n=pqr , then n = q r + p r + p q n'=qr+pr+pq , which is always odd. All products of three different primes below 100 are: 30 : 3 0 r ( 2 × 3 × 5 ) = 15 + 10 + 6 = 31 30'r(2×3×5)'=15+10+6=31 which is prime, 42 . 4 2 = ( 2 × 3 × 7 ) = 21 + 14 + 6 = 41 42'=(2×3×7)'=21+14+6=41 which is prime, 66 . 6 6 = ( 2 × 3 × 11 ) = 33 + 22 + 6 = 61 66'=(2×3×11)'=33+22+6=61 which is prime, 78 . 7 8 = ( 2 × 3 × 13 ) = 39 + 26 + 6 = 71 78'=(2×3×13)'=39+26+6=71 which is prime, 70 . 7 0 = ( 2 × 5 × 7 ) = 35 + 14 + 10 = 59 70'=(2×5×7)'=35+14+10=59 which is prime. So n { 30 , 42 , 66 , 78 , 70 } n\in \{ 30,42,66,78,70\}
  • products of more than three distinct primes. These are all larger than 100.

Adding them all up 6 + 10 + 22 + 34 + 58 + 82 + 30 + 42 + 66 + 78 + 70 = 498 6+10+22+34+58+82+30+42+66+78+70=\boxed{498} .

See also https://oeis.org/A157037 .

Anu Rag
Dec 4, 2018

Here we are searching for those numbers whose differentiation leads to a prime number which in turn differentiating leads to 1. ex:6.

case(i):
Any odd number less than 100 whose double differentiation (odd)'' cannot be 0. Because any odd number is a multiple of prime odd prime factors.
so for any odd number odd=p1xp2
(also note 2x3x7 is the least possible multiple of 3 odd prime 105>100)
so in this case differentiating (odd)'=p1+p2. Implies adding 2 odd numbers gives even number whose
double differentiation cannot be 1. i.e., (odd)'' can't be 1.




case(ii):
Also for all squares 1,4,9,16,25,36............ cannot yield prime number after first differentiation
4=2x2
(4)'=2+2=4 which is not a prime
36=9x4
(36)'=(9)'x4+9x(4)'=6x4+9x4 which is not a prime

case(iii):
All multiples of the square cannot yield prime after first differentiation 8,12,18,20.......
Because at least a multiple of one prime factor of a square.which can never be prime.
8=4x4
(8)'=4x4+4x4 is at least a multiple of one prime factor of a square.

18=9x2
(18)'=6x2+9 is a multiple of 3 which can never be prime.

So by
case(i): All odd numbers cannot be considered n<100 n is +ve.so 50 numbers left.

case(ii)and(iii): All multiples of squares cannot be considered so all even numbers multiple of 4 cannot be considered. So 25 even non-multiples of 4 are left. similarly, even multiples of 9,25,49 cannot be considered.

SO,
11 numbers left are which on double differentiation (n)'' yield 1 are

6
10
22
30
34
42
58
66
70
78
82

Adds to 498

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...