d x d n = 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 ′ denotes the arithmetic derivative of n :
p ′ = 1 for all primes p
( a b ) ′ = a ′ b + a b ′
0 ′ = 1 ′ = 0
For example, 6 ′ = ( 2 × 3 ) ′ = ( 2 ′ ) ( 3 ) + ( 2 ) ( 3 ′ ) = ( 1 ) ( 3 ) + ( 2 ) ( 1 ) = 5
The double arithmetic derivative, denoted by n ′ ′ , is simply defined by n ′ ′ = ( n ′ ) ′ .
Find the sum of all positive integers n < 1 0 0 such that n ′ ′ = 1
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.
What got you interested in looking at the arithmetic derivative?
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!
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 !
Log in to reply
If your question regards Solution 2, it can be easily shown that the only numbers of the form p q where p and q are prime is when on of them is 2 and the other is of the form 6 n − 1 where n is an integer with only 3 as the exception. For any p and q we have:
( p q ) ′ = p ′ q + p q ′ = q + p
All primes are odd except for 2 , and the sum of two odd numbers is an even number, which will certainly be composite. For numbers greater than 3 , prime numbers assume the form 6 n − 1 and 6 n + 1 because all others are either divisible by 2 , 3 or both.
( 6 n + 1 ) + 2 = 6 n + 3 = 3 ( 2 n + 1 )
( 6 n − 1 ) + 2 = 6 n + 1
Therefore the only solutions are when p = 2 and q = 6 n − 1 where 6 n + 1 is prime, AKA q and q + 2 are twin primes. Thanks for the question!
Log in to reply
thanks! .... keep posting interesting problems :)
Let N = 2p where p is prime Then N' = 2'p + 2p' = p + 2 Then (N')' = p' + 2' = 2 ??? where did I go wrong
Log in to reply
There is no "sum rule" of arithmetic derivation. Hence, it's not true that ( N ′ ) ′ = ( p + 2 ) ′ = p ′ + 2 ′ .
Why do the primes have to be distinct? 28=7 2 2 28'=11 28"=1 Why is 28 not a solution?
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
Are we doing 1/2 = (1/1 - 1/2) or not
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????
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 = 2 1 0 ).
This could have been a nice exercise in functional programming.
1 2 3 4 5 6 7 8 |
|
What would be the general formula for the derivative of
p 1 q 1 × p 1 q 2 × … ?
If n = p 1 q 1 × p 2 q 2 × ⋯ , then n ′ = n ⋅ ( p 1 q 1 + p 2 q 2 + ⋯ ) . This is inspiration to define the "logarithmic derivative", D L n = n n ′ = p 1 q 1 + p 2 q 2 + ⋯ . It has the defining properties D L p = p 1 , D L ( n m ) = D L n + D L m . Compare this to usual logarithmic derivatives: d x d ln x n = x n , d x d ln ( f g ) = d x d ln f + d x d ln g .
Log in to reply
Exactly! I noticed this as well; I suggest that you try another problem I created: Logarithmic Arithmetic Derivative
Great solution, very minimal coding, impressive!
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 ′ , all derivatives of composites are nonnegative integers too.
All numbers below will be nonnegative integers.
Let P denote the set of all prime numbers.
First establish Lemma 1: n ′ = 1 ⇔ n ∈ P The arrow from right to left is by definition; and if n is composite ( n = a p with a ≥ 2 , p ∈ P ), then n ′ = a ′ p + a p ′ ≥ a ≥ 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 For k = 1 this is just 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 ) ′ .
Applying this step by induction we get ( 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 . ■
By lemma 1, we are looking for n, such that n ′ ∈ P . All nonnegative integers fall in one of the following sets:
Adding them all up 6 + 1 0 + 2 2 + 3 4 + 5 8 + 8 2 + 3 0 + 4 2 + 6 6 + 7 8 + 7 0 = 4 9 8 .
See also https://oeis.org/A157037 .
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
Problem Loading...
Note Loading...
Set Loading...
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 , where p , q , and r are distinct prime numbers.
n ′ = ( p q r ) ′ = p ′ ( q r ) + p ( q ′ r + q r ′ ) = q r + p r + p q
If q r + p r + p q is prime, then n ′ ′ = 1 .
Checking numbers under 100 leads to the following solutions:
2 × 3 × 5 = 3 0
2 × 3 × 7 = 4 2
2 × 3 × 1 1 = 6 6
2 × 5 × 7 = 7 0
2 × 3 × 1 3 = 7 8
Solution 2: Let n = 2 p for some prime p :
n ′ = ( 2 p ) ′ = ( 2 ′ ) ( p ) + ( 2 ) ( p ′ ) = ( 1 ) ( p ) + ( 2 ) ( 1 ) = p + 2
If p + 2 is prime as well, then n ′ ′ = 1 , therefore 2 p is a solution to our problem.
If p and p + 2 are primes, then these numbers are what are known as "Twin Primes". Examples of this are 3 & 5 , 2 9 & 3 1 , 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 .
Here is the list of primes of the form ( p , p + 2 ) where 2 p < 1 0 0 : ( 3 , 5 ) , ( 5 , 7 ) , ( 1 1 , 1 3 ) , ( 1 7 , 1 9 ) , ( 2 9 , 3 1 ) , & ( 4 1 , 4 3 )
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.
( 3 0 + 4 2 + 6 6 + 7 0 + 7 8 ) + 2 ( 3 + 5 + 1 1 + 1 7 + 2 9 + 4 1 ) = 4 9 8