Wednesday, 12 June 2019

Arithmetic Derivative

With Mathematics, there's always something new under the Sun and today it happened to be the concept of the arithmetic derivative that I can't recall ever hearing of before.

Today I turned 25637 days old and this number is a member of OEIS A189639: numbers n such that n'' = n'+1 where n' and n'' are respectively the first and the second arithmetic derivative of n. The members of this sequence, up to and including 25637, are:

161, 209, 221, 1935, 4265, 15941, 22217, 24041, 25637

Not knowing anything about such derivatives, I set out to learn more about them. Here is a quote from Wikipedia (quotation in blue):

For natural numbers the arithmetic derivative is defined as follows:

* \(p' \;=\; 1 \) for any prime \(p \).
* \((pq)'\;=\;p'q\,+\,p q' \) for any \(p \textrm{,}\, q \;\in\; \mathbb{N}\).

E. J. Barbeau was most likely the first person to formalize this definition. He also extended it to all integers by proving that \((-x)' \;=\; -(x')\) uniquely defines the derivative over the integers. 

Barbeau also further extended it to rational numbers, showing that the familiar quotient rule gives a well-defined derivative on Q: $$\left(\frac{p}{q}\right)' = \frac{p'q-p q'}{q^2} \ .$$Victor Ufnarovski and Bo Ã…hlander expanded it to certain irrationals. In these extensions, the formula above still applies, but the exponents \(e_i \) are allowed to be arbitrary rational numbers.

Elementary properties

The Leibniz rule implies that \(0'=0 \) (take \(p = q = 0 \)) and \(1'=0 \) (take \(p = q = 1 \)). The ''power rule'' is also valid for the arithmetic derivative. For any integers \(p \) and \(n'' >= 0\): $$(p^n)' = np^{n-1} p'.$$This allows one to compute the derivative from the prime factorisation of an integer, \(x = p_1^{n_1}\cdots p_k^{n_k}\): $$x' = \sum_{i=1}^k n_i p_1^{n_1} \cdots p_{i-1}^{n_{i-1}} p_i^{n_i-1} p_{i+1}^{n_{i+1}}\cdots p_k^{n_k} = \sum_{i=1}^k \frac {n_i} {p_i}x.$$ For example: $$60' = (2^2 \cdot 3 \cdot 5)' = \left(\frac{2}{2} + \frac{1}{3} + \frac{1}{5}\right) \cdot 60 = 92$$ $$81' = (3^4)' = 4\cdot 3^3\cdot 3' = 4\cdot 27\cdot 1 = 108.$$The sequence of number derivatives for \(k = 0, 1, 2, ... \) begins OEIS A003415:$$0, 0, 1, 1, 4, 1, 5, 1, 12, 6, 7, 1, 16, 1, 9, \ldots$$It is only numbers of the form \(p^p\) where \(p\) is prime that have arithmetic derivatives equal to themselves \(4 = 2^2, 27 = 3^3, 3125 = 5^5, 823543 = 7^7 \) etc.

I came across an interesting paper published about the properties of these derivatives. Here is the abstract:
The notion of the arithmetic derivative, a function sending each prime to 1 and satisfying the Leibnitz rule, is extended to the case of complex numbers with rational real and imaginary parts. Some constraints on the solutions to some arithmetic differential equations are found. The homogeneous arithmetic differential equation of the k-th order is studied. The factorization structure of the antiderivatives of natural numbers is presented. Arithmetic partial derivatives are defined and some arithmetic partial differential equations are solved.
The paper is too heavy for me to digest but it certainly shows that arithmetic derivatives (sometimes called Lagarias arithmetic derivatives or number derivatives), are serious mathematical functions and to quote from the conclusion of the Wikipedia article:
Victor Ufnarovski and Bo Ã…hlander have detailed the function's connection to famous number-theoretic conjectures like the twin prime conjecture, the prime triples conjecture, and Goldbach's conjecture. For example, Goldbach's conjecture would imply, for each k > 1 the existence of an n so that n' = 2k. The twin prime conjecture would imply that there are infinitely many k for which k'' = 1.
In the article mentioned, the arithmetic derivatives is extended to rational, real and complex numbers. Getting back to basics however, I should add that the product rule for derivatives can be used to find a value for the arithmetic derivative of 1:

1' = (1.1)' = 1'.1+1.1' = 2*1' and the only way the equation holds is if 1'=0.

Here is a YouTube video that introduces the arithmetic derivative:



I owe to the presenter of the video the following line of enquiry. In some cases, repeated "differentiation" leads to 1 and thus 0. 25637 is an example of this where 25637 --> 858 --> 859 --> 1 because 859 is prime. However, for other numbers, the results increase at a rapid rate. Take 88 as a case in point. Here:

140 --> 188 --> 192 --> 640 --> 2368 --> 7168 --> 36864 --> 245760 --> 1851392 --> 12976128 --> 120127488 etc.

Whether there is, eventually, a derivative that is a prime number and will bring the sequence to an end, I don't know. It would be an interesting idea to explore. Here is what the repeated differentiation of the natural numbers from 2 to 100 produces. I stopped after ten steps and marked these numbers in bold.

2 1 0
3 1 0
4 4 4 4 4 4 4 4 4 4 4
5 1 0
6 5 1 0
7 1 0
8 12 16 32 80 176 368 752 1520 3424 8592
9 6 5 1 0
10 7 1 0
11 1 0
12 16 32 80 176 368 752 1520 3424 8592 20096
13 1 0
14 9 6 5 1 0
15 8 12 16 32 80 176 368 752 1520 3424
16 32 80 176 368 752 1520 3424 8592 20096 70464
17 1 0
18 21 10 7 1 0
19 1 0
20 24 44 48 112 240 608 1552 3120 8144 16304
21 10 7 1 0
22 13 1 0
23 1 0
24 44 48 112 240 608 1552 3120 8144 16304 32624
25 10 7 1 0
26 15 8 12 16 32 80 176 368 752 1520
27 27 27 27 27 27 27 27 27 27 27
28 32 80 176 368 752 1520 3424 8592 20096 70464
29 1 0
30 31 1 0
31 1 0
32 80 176 368 752 1520 3424 8592 20096 70464 235072
33 14 9 6 5 1 0
34 19 1 0
35 12 16 32 80 176 368 752 1520 3424 8592
36 60 92 96 272 560 1312 3312 8976 22288 47872
37 1 0
38 21 10 7 1 0
39 16 32 80 176 368 752 1520 3424 8592 20096
40 68 72 156 220 284 288 912 2176 7744 24640
41 1 0
42 41 1 0
43 1 0
44 48 112 240 608 1552 3120 8144 16304 32624 65264
45 39 16 32 80 176 368 752 1520 3424 8592
46 25 10 7 1 0
47 1 0
48 112 240 608 1552 3120 8144 16304 32624 65264 130544
49 14 9 6 5 1 0
50 45 39 16 32 80 176 368 752 1520 3424
51 20 24 44 48 112 240 608 1552 3120 8144
52 56 92 96 272 560 1312 3312 8976 22288 47872
53 1 0
54 81 108 216 540 1188 2484 5076 10260 23112 57996
55 16 32 80 176 368 752 1520 3424 8592 20096
56 92 96 272 560 1312 3312 8976 22288 47872 198656
57 22 13 1 0
58 31 1 0
59 1 0
60 92 96 272 560 1312 3312 8976 22288 47872 198656
61 1 0
62 33 14 9 6 5 1 0
63 51 20 24 44 48 112 240 608 1552 3120
64 192 640 2368 7168 36864 245760 1851392 12976128 120127488 1012858880
65 18 21 10 7 1 0
66 61 1 0
67 1 0
68 72 156 220 284 288 912 2176 7744 24640 84608
69 26 15 8 12 16 32 80 176 368 752
70 59 1 0
71 1 0
72 156 220 284 288 912 2176 7744 24640 84608 296256
73 1 0
74 39 16 32 80 176 368 752 1520 3424 8592
75 55 16 32 80 176 368 752 1520 3424 8592
76 80 176 368 752 1520 3424 8592 20096 70464 235072
77 18 21 10 7 1 0
78 71 1 0
79 1 0
80 176 368 752 1520 3424 8592 20096 70464 235072 705280
81 108 216 540 1188 2484 5076 10260 23112 57996 135648
82 43 1 0
83 1 0
84 124 128 448 1408 5056 15232 56384 169216 677120 2902784
85 22 13 1 0
86 45 39 16 32 80 176 368 752 1520 3424
87 32 80 176 368 752 1520 3424 8592 20096 70464
88 140 188 192 640 2368 7168 36864 245760 1851392 12976128
89 1 0
90 123 44 48 112 240 608 1552 3120 8144 16304
91 20 24 44 48 112 240 608 1552 3120 8144
92 96 272 560 1312 3312 8976 22288 47872 198656 1094656
93 34 19 1 0
94 49 14 9 6 5 1 0
95 24 44 48 112 240 608 1552 3120 8144 16304
96 272 560 1312 3312 8976 22288 47872 198656 1094656 5474304
97 1 0
98 77 18 21 10 7 1 0
99 75 55 16 32 80 176 368 752 1520 3424

100 140 188 192 640 2368 7168 36864 245760 1851392 12976128

Notice that 74 and 75 both produce the same sequence of derivatives after the first derivative. It can be seen that these two numbers, and many others, join the sequence 8 12 16 32 80 176 368 752 1520 ... However, there are other sequences as well such as 20, 24 44 48 112 240 608 1552 3120 8144 16304 ... Lots of food for thought here.

On a final note, mention should be made of Giuga numbers that are conjectured to be solutions of the equation n' = n + 1. They are rather rare. In fact, the numbers 30, 858, 1722 and 66198 are the only such numbers below one million.

1 comment:

  1. Any number divisible by p^p (in particular 2^2 = 4 would be the most common) won't reach 0, since they will always be divisible by p^p. (the closed form expression for n' = n*sum(v_q(n)/q) for all primes q dividing n.

    For all primes not p, n*(v_q(n)/q) doesn't lose any factors of p, so divides p^p.

    The remaining term n*(v_p(n)/p) doesn't lose a factor of p if v_p(n)=p; it could lose one factor of p otherwise, but this means that v_p(n)>p already.

    ReplyDelete