Showing posts with label function. Show all posts
Showing posts with label function. Show all posts

Saturday, 29 March 2025

Totient Function: Jagged Versus Rounded Local Minima

If we plot the totients of the natural numbers against the values of the numbers themselves then we typically find an UP-DOWN or DOWN-UP alternation depending on where you start. Figure 1 shows such a plot for numbers in the range between 40 and 60.


Figure 1

Occasionally however, we see a different pattern. Figure 2 shows the totients of numbers plotted against the numbers themselves in the range between 300 and 330.


Figure 2: permalink

Looking at the graph in Figure 2 we see that from 313 to 317 we have an DOWN-DOWN-UP-UP pattern, clearly visible as a rounded rather than a local UP-DOWN-UP minimum. The value of the local minimum is the totient of 315. So where else do these rounded local minima occur. We are looking for numbers \(n\) such that:$$ \phi(n-2)>\phi(n-1)>\phi(n) < \phi(n+1)<\phi(n+2)$$where \( \phi \) represents the totient function. In the case of 315 we have:$$ \begin{align} &\phi(313)>\phi(314)>\phi(315) < \phi(316)<\phi(317) \\ &312 >156>144<156<316 \end{align}$$where it can be seen that 313 and 317 are prime numbers. So where else do these local rounded minima occur in the range from 3 up to 40000? It turns out that there are 238 such minima with 315 being the first (permalink).

315, 525, 735, 1155, 1365, 1575, 1755, 1785, 1815, 1995, 2145, 2415, 2475, 2805, 3045, 3315, 3465, 3885, 4095, 4125, 4305, 4515, 4725, 4935, 5115, 5145, 5355, 5775, 6045, 6195, 6405, 6435, 6615, 6825, 7035, 7095, 7245, 7395, 7455, 7605, 7665, 8085, 8265, 8505, 8715, 8745, 8925, 9135, 9345, 9405, 9555, 9735, 9765, 9975, 10185, 10395, 10455, 10545, 10815, 10965, 11055, 11235, 11385, 11445, 11655, 11865, 12075, 12285, 12495, 12675, 12705, 12915, 13125, 13335, 13545, 13695, 13965, 14025, 14175, 14355, 14385, 14595, 14805, 14835, 15015, 15045, 15225, 15405, 15435, 15645, 15675, 15855, 16005, 16065, 16275, 16335, 16485, 16695, 16905, 17085, 17325, 17355, 17745, 17955, 18135, 18165, 18375, 18585, 18645, 18795, 18975, 19215, 19425, 19635, 19665, 20055, 20265, 20295, 20475, 20625, 20685, 20865, 20895, 21105, 21255, 21315, 21525, 21945, 22365, 22425, 22575, 22605, 22785, 22995, 23205, 23265, 23415, 23595, 23625, 23655, 23835, 23985, 24225, 24255, 24675, 24885, 24915, 25095, 25245, 25305, 25515, 25575, 25725, 25905, 25935, 26145, 26325, 26565, 26775, 26985, 27027, 27195, 27615, 27825, 27885, 28035, 28215, 28245, 28275, 28455, 28665, 28815, 28875, 29055, 29295, 29505, 29865, 29925, 30195, 30345, 30555, 30723, 30765, 30975, 31185, 31365, 31395, 31605, 31815, 32025, 32175, 32235, 32445, 32655, 32835, 32895, 33033, 33075, 33345, 33495, 33705, 33735, 33915, 34125, 34155, 34335, 34485, 34515, 34545, 34755, 34965, 35175, 35385, 35805, 36225, 36435, 36465, 36645, 36795, 36855, 37065, 37275, 37455, 37485, 37695, 37905, 38115, 38535, 38745, 38775, 38955, 39165, 39195, 39375, 39435, 39585, 39765, 39795

These numbers constitute OEIS A076773:


A076773   2-nadirs of phi: numbers k such that phi(k-2) > phi(k-1) > phi(k) < phi(k+1) < phi(k+2).

There are no rounded local maxima in the range up to one million.

Do we find these types of rounded local minima for other functions like the sigma function? 

We do indeed, although in the case of the sigma function there are only two numbers in the range up to 40000 and they are 17254 and 27754 (the first two members of the sequence OEIS A076774: permalink). 

However, rounded local maxima are far more common in the sigma function. In the range up to 40000, there are 267 numbers and they are (permalink):

315, 405, 525, 693, 765, 945, 1125, 1155, 1395, 1575, 1755, 1785, 1845, 1995, 2205, 2475, 2565, 2805, 2835, 3003, 3045, 3285, 3315, 3465, 3645, 3675, 3885, 4095, 4125, 4275, 4347, 4455, 4515, 4725, 4995, 5115, 5355, 5445, 5733, 5775, 5805, 6045, 6195, 6237, 6405, 6435, 6615, 6825, 6885, 7035, 7155, 7245, 7605, 7875, 7995, 8085, 8325, 8415, 8505, 8715, 8775, 8925, 9075, 9135, 9315, 9405, 9555, 9675, 9765, 9975, 10125, 10395, 10773, 11205, 11235, 11385, 11445, 11475, 11655, 12045, 12075, 12285, 12555, 12675, 12705, 12915, 13005, 13125, 13275, 13365, 13545, 13725, 13923, 13965, 14025, 14175, 14355, 14595, 14685, 14805, 15015, 15075, 15435, 15525, 15645, 15675, 15795, 16005, 16065, 16245, 16275, 16335, 16443, 16695, 16875, 16905, 16965, 17325, 17595, 17685, 17745, 17955, 18135, 18315, 18375, 18585, 18765, 18795, 19005, 19035, 19215, 19305, 19575, 19635, 19845, 20475, 20685, 20925, 21105, 21285, 21315, 21483, 21525, 21675, 21945, 22005, 22155, 22275, 22365, 22605, 22869, 22995, 23085, 23205, 23355, 23595, 23625, 23835, 23925, 24045, 24255, 24453, 24525, 24675, 24885, 24915, 25155, 25245, 25515, 25725, 25875, 25935, 26325, 26505, 26565, 26775, 27027, 27195, 27225, 27405, 27531, 27885, 28035, 28125, 28215, 28245, 28275, 28413, 28485, 28665, 28875, 28917, 29295, 29325, 29475, 29835, 29925, 30135, 30195, 30345, 30555, 30723, 30765, 31005, 31185, 31365, 31395, 31515, 31605, 31815, 32025, 32175, 32235, 32445, 32805, 32835, 33075, 33165, 33285, 33345, 33495, 33915, 34125, 34155, 34485, 34515, 34755, 34875, 34965, 35175, 35235, 35325, 35595, 35805, 35955, 36045, 36075, 36135, 36225, 36435, 36645, 36675, 36795, 36855, 37107, 37125, 37275, 37395, 37485, 37845, 38115, 38205, 38475, 38493, 38745, 38955, 39015, 39123, 39165, 39195, 39375, 39435, 39525, 39585, 39627, 39765, 39795

Let's take 405 as an example. It's position at the apex of a rounded local maximum is shown in Figure 3.


Figure 3: permalink

The above numbers constitute OEIS A323380:


A323380
   Odd n such that sigma(n) > sigma(n+1) and sigma(n) > sigma(n-1), sigma = A000203.


Overall, these variations on the UP-DOWN or DOWN-UP alternation are an interesting topic to investigate and one that I'd not considered before. 

Saturday, 16 November 2024

An Interesting Intersection

I've never encountered an intersection of the arithmetic derivative and the totient function before until looking at one of the properties associated with the number 27620, my diurnal age yesterday. This number has an interesting property that qualifies it for membership in OEIS A352332:


A352332
: numbers \(k\) for which \(k = \phi(k') + \phi(k'') \), where \( \phi \) is the Euler totient function (A000010), \(k'\) is the arithmetic derivative of \(k\) (A003415) and \(k''\) is the second arithmetic derivative of \(k\) (A068346).

Let's look at 27620 and its arithmetic derivatives (denoted by ' and '') and their totients (denoted by \( \phi \) ). Firstly:$$ \begin{align} 27620 &= 2^2 \times 5 \times 1381\\  (27620)' &=33164 \\(27620)'' &= (33164)'\\ &=33168 \\ \phi(33164) &= 16580 \\ \phi(33168) &= 11040 \\ 27620 &= 16580 + 11040 \end{align} $$Up to 40000, the members of this sequence are 4, 260, 294, 740, 1460, 3140, 3860, 5540, 8420, 10820, 15140, 19940, 21860, 24020, 24260, 27620 and 37460 (permalink). Clearly, numbers satisfying these criteria are few and far between.

This got me thinking about whether there were any numbers that satisfied the criterion that they were simply the sum of their first and second arithmetic derivatives, ignoring the totient function. There are only three numbers in the range up to 100,000 that satisfy. They are 6, 42, 15590 and 47058. Here is the breakdown:$$ \begin{align} 6 &= 5 + 1\\42 &= 41 + 1\\15590 &= 10923 + 466\\47058 &= 47057 + 1 \end{align}$$It can be noted that in all but 15590, the first derivative yields a prime and thus the second derivative is 1.

What if, instead of the totient, we use the sum of the divisors (\(\sigma\)) of the number? In the range up to 100,000, no numbers satisfy but if we use the sum of the PROPER divisors, then a single number qualifies and that is 50 (permalink). Let's look more closely:$$ \begin{align} 50 &= 2 \times 5^2 \\ (50)' &= 45 \\ \sigma(45) -45&= 78 - 45 \\ &=33\\(50)'' &=(45)'\\ &=39\\ \sigma(39)-39 &= 56-39\\ &= 17 \\50 &= 33 +17 \end{align} $$It should be noted that numbers like 50, 15590 and 27620 with the specific properties that have been mentioned in this post retain these properties in bases other than 10. In other words, the properties are base independent.

Sunday, 29 September 2024

Properties of Concatenated Numbers

Let's split a number in two parts and then consider the relationship that these two parts bear to the number of which both are a part. Now I've done this before as described in a post titled Energetic Numbers. In THAT post, I looked at numbers that belong to OEIS  A055480:


 A055480

Energetic numbers: numbers that can be broken into two or more substrings and expressed as a sum of (possibly different) positive powers of those substrings.

In THIS post I'll be looking at two different types of relationships. Let's consider 27573 and break it into two parts: 275 and 73. It turns out that my diurnal age today (27573) has an interesting property and it involves the totient function, commonly referred to as Euler's phi function or simply the phi function. We find that:$$ \begin{align}  \phi(27573) &= 1440 \\ \phi(275) \times \phi(73) &= 200 \times 72\\ &=1440 \end{align} $$Numbers like this belong to OEIS A147619 :


 A147619             Numbers \(n\)  = \(a \,| \, b\) such that \( \phi(n) = \phi(a) \times \phi(b) \)
                                where the symbol | represents concatenation


The initial members of this sequence are:

78, 780, 897, 918, 1179, 1365, 1776, 2574, 2598, 2967, 3168, 3762, 4758, 5775, 5796, 7800, 7875, 7917, 8217, 8970, 9180, 9576, 11790, 13650, 13662, 13875, 13896, 14391, 17760, 18564, 18858, 19812, 20097, 25740, 25935, 25974, 25980, 27573, 28776, 28779, 29670, 31680, 33165, 35919, 37620

Let's look at the breakdown for the numbers between 27573 and 37620:
  • 275 | 73  -->  27573

  •  287 | 76  -->  28776

  •  287 |  79  -->  28779

  •  29 | 670  -->   29670

  •  31 | 680  -->   31680

  •  331 | 65  -->   33165

  •  35 | 919  -->   35919

  •  37 | 620  -->   37620

A similar thing can be done with the sigma function that tallies the sum of the divisors of a number. Once again we break the number into two parts and then use the sigma function to connect those two parts to the whole. There is no OEIS function this time around but the property of the numbers being considered is as follows:


 Numbers \(n\)  = \(a \,| \, b\) such that \( \sigma(n) = \sigma(a) \times \sigma(b) \)
where the symbol | represent concatenation


The 78 numbers satisfying this condition between 27000 and 40000 are (permalink):

27175, 27298, 27418, 27445, 27500, 28018, 28195, 28750, 28798, 28978, 29038, 29058, 29098, 29278, 29395, 29398, 29500, 29875, 29875, 29950, 29950, 29980, 30498, 30775, 30788, 30989, 31750, 31795, 31918, 32595, 33175, 33238, 33298, 33725, 34189, 34555, 34557, 34795, 34975, 35338, 35395, 35578, 35585, 35670, 35818, 35975, 36178, 36238, 36350, 36398, 36426, 36775, 37138, 37241, 37678, 37750, 37798, 38247, 38370, 38518, 38570, 38638, 38750, 38826, 38856, 38877, 38940, 38975, 39118, 39425, 39478, 39500, 39754, 39805, 39898, 39976, 39980, 39992

Table 1 shows the breakdown for numbers between 27000 and 30000:


Table 1

Let's look at the first number 27175 where we break the number into 271 and 75 and we have:$$ \begin{align} \sigma(27175) &= 33728\\ \sigma(271) \times \sigma(75) &= 272 \times 124\\ &= 33728 \end{align}$$There are other possible concatenations involving more than two parts or other functions and properties of numbers so this post is merely a sample.

Tuesday, 23 July 2024

Complex Chicanery


I came across an interesting video on YouTube, uploaded today on a channel named Higher Mathematics that posed the following problem:$$ \text{Solve for } x:\\1^x=5$$Clearly the problem has no solution amongst the real numbers but there turns out to be an infinity of solutions once we introduce complex numbers. The solution (with \(k=1,2,3 \dots \) ) then unfolds:$$\begin{align} e^{i \theta} &= \cos{\theta}+i \sin{\theta}\\e^{i 2k \pi} &= \cos{2k \pi}+i \sin{2k \pi}  \\&=1 \\ \therefore (e^{i 2k \pi)})^x &= 5\\ e^{i 2k \pi x} &= 5 \\\ln {e^{i 2k \pi x} }&= \ln{5} \\i 2k \pi x &= \ln{5} \\x &= \frac{ \ln{5}}{i 2k \pi} \\\ &=\frac{-i \ln{5}}{2k \pi}\end{align} $$The complex numbers for values of x given by \(k=1, 2,3\) are shown in Figure 1. They all map to the point \(5+0i\).


Figure 1

Thus we have a function \( f(x) \) with its domain D being the countably infinite set of points:$$ \left( \Big( 0,\dfrac{-i \ln{5}} {2k \pi} \Big) \text{ where k=1, 2, 3, ...} \right) $$ that maps all these points to \( (5, 0i) \) so that:$$ f(x) \rightarrow (5, 0i) \text{ for all x in D}$$

*********************

Let's look now at a slightly different problem:$$2^x=x$$Right from the start, it can be said once again that there are no real solutions to this equality. This is clear once we graph the line \(y=2^x\) and \(y=x\) where we see that there are no points of intersection. See Figure 2.


Figure 2

This problem was posed on the same YouTube channel mentioned earlier. Here is a link to the video. So how do we find if any complex numbers satisfy this equality? Firstly, we take the natural logarithms of both sides and proceed from there:$$ \begin{align} 2^x &= x \\ \ln{2^x} &= \ln{x} \\ x \ln{2} &= \ln{x} \\ \frac{\ln{x}}{x} &= \ln{2} \\ \frac{\ln{x}}{e^{\, \ln{x}} }&= \ln{2} \\ \ln{x} \, {e^{\, -\ln{x}} } &= \ln{2} \\ -\ln{x} \, {e^{\, -\ln{x}} } &= -\ln{2} \\ W(-\ln{x} \, {e^{\, -\ln{x}} } ) &= W(-\ln{2}) \\ -\ln{x} &= W(-\ln{2} ) \\ \ln{x} &= -W(-\ln{2}) \\ x &= e^{-W(-\ln{2})} \\ x &= \frac{1}{e^{W(-\ln{2})}} \\ x &\approx -0.37927 - 0.72087 i\end{align}$$where W is the Lambert W function that I've written about in previous posts. See The Omega Constant and the Lambert W Function (June 24th 2020) and More on the Lambert W Function (February 16th 2021). To evaluate \(x\) using Wolfram Alpha the command ProductLog[-ln(2)] needs to be used.

Friday, 4 August 2023

Biprime Prime Time

For some reason, it only just occurred to me that I can search this blog for the occurrence of particular numbers. Usually I search the OEIS first and if nothing of interest comes up, I search my Bespoken for Sequences database. If there's nothing there, I'll search the airtable.com database and if nothing turns up, I'll search for the number in the OEIS b-files. However, searching this blog should probably be my second priority if nothing comes up in the OEIS. After all I have hundreds of posts and thousands of numbers.


The theme of this post concerns biprimes or semiprimes where there is a connection between one prime and the other. The idea derived from the number associated with my diurnal age today: 27149. This number is a member of OEIS A045925:


 A045925

a(\(n\)) = \(n\) * Fibonacci(\(n\)).                                                            



When \(n=17\), we have Fibonacci(17) = 1597 which is prime and 27149 = 17 x 1597. Very few of the members of this sequence are biprimes because \(n\) can be composite and\or Fibonacci(\(n\)) can be composite. The biprimes are listed below (in bold):

3 --> 6 = 2 * 3
5 --> 25 = 5^2
7 --> 91 = 7 * 13
11 --> 979 = 11 * 89
13 --> 3029 = 13 * 233
17 --> 27149 = 17 * 1597
23 --> 659111 = 23 * 28657
29 --> 14912641 = 29 * 514229
43 --> 18640260791 = 43 * 433494437
47 --> 139647108431 = 47 * 2971215073


We are looking for biprimes of the form prime multiplied by some function of that prime where the function generates a new prime. An easy source of such numbers arises from OEIS A073065: 

 
 A073065



a(\(n\)) = prime(\(n\)) * prime(prime(\(n\))).



The sequence begins: 6, 15, 55, 119, 341, 533, 1003, 1273, 1909, 3161, 3937, 5809, 7339, 8213, 9917, 12773, 16343, 17263, 22177, 25063, 26791, 31679, 35773, 41029

The breakdown is as follows:

1 --> 2 x 3 = 6
2 --> 3 x 5 = 15
3 --> 5 x 11 = 55
4 --> 7 x 17 = 119
5 --> 11 x 31 = 341
6 --> 13 x 41 = 533
7 --> 17 x 59 = 1003
8 --> 19 x 67 = 1273
9 --> 23 x 83 = 1909
10 --> 29 x 109 = 3161
11 --> 31 x 127 = 3937
12 --> 37 x 157 = 5809
13 --> 41 x 179 = 7339
14 --> 43 x 191 = 8213
15 --> 47 x 211 = 9917
16 --> 53 x 241 = 12773
17 --> 59 x 277 = 16343
18 --> 61 x 283 = 17263
19 --> 67 x 331 = 22177
20--> 71 x 353 = 25063
21 --> 73 x 367 = 26791
22 --> 79 x 401 = 31679
23 --> 83 x 431 = 35773
24 --> 89 x 461 = 41029
25 --> 97 x 509 = 49373


Another way to find "special" biprimes is to determine which of them concatenate to form new primes, either by smaller with larger or larger with smaller. Such biprimes form OEIS A330441:


 A330441

Semiprimes \(p \times q\) such that the concatenations of \(p\) and \(q\) in both orders are prime.                     



Here is a list of the initial members (508) of this sequence up to 40000:

21, 33, 51, 93, 111, 133, 177, 201, 219, 247, 253, 327, 411, 427, 573, 589, 679, 687, 763, 793, 813, 889, 993, 1077, 1081, 1119, 1243, 1339, 1347, 1401, 1411, 1497, 1501, 1603, 1623, 1651, 1671, 1821, 1839, 1843, 1851, 1981, 2019, 2047, 2059, 2103, 2157, 2199, 2217, 2469, 2479, 2629, 2761, 2787, 2841, 2923, 3031, 3039, 3057, 3097, 3099, 3133, 3153, 3409, 3439, 3543, 3579, 3661, 3711, 3787, 3829, 3883, 3973, 4063, 4171, 4303, 4309, 4369, 4381, 4429, 4443, 4593, 4681, 4711, 4771, 4821, 4837, 4843, 4881, 4971, 4989, 5001, 5097, 5191, 5299, 5533, 5611, 5721, 5761, 5803, 5971, 5989, 6181, 6207, 6429, 6457, 6511, 6559, 6613, 6639, 6799, 6891, 7003, 7131, 7143, 7153, 7233, 7323, 7327, 7363, 7501, 7509, 7633, 7711, 7737, 8121, 8173, 8197, 8227, 8347, 8367, 8529, 8659, 8743, 8751, 8871, 9147, 9211, 9217, 9229, 9307, 9313, 9357, 9493, 9523, 9589, 9793, 9853, 9903, 10063, 10171, 10249, 10297, 10351, 10383, 10407, 10441, 10483, 10519, 10537, 10777, 10807, 10843, 10849, 10911, 10963, 11107, 11307, 11539, 11581, 11623, 11629, 11653, 11707, 11733, 11769, 11793, 11797, 11851, 12001, 12057, 12133, 12187, 12193, 12477, 12643, 12759, 12961, 13027, 13117, 13153, 13387, 13471, 13749, 13771, 13813, 13951, 13993, 14187, 14257, 14623, 14677, 14757, 14803, 14977, 15049, 15127, 15151, 15153, 15177, 15229, 15247, 15297, 15513, 15571, 15697, 15769, 15843, 15883, 15969, 16003, 16009, 16143, 16257, 16347, 16357, 16387, 16501, 16507, 16521, 16543, 16563, 16593, 16719, 16837, 17089, 17131, 17173, 17269, 17371, 17403, 17503, 17517, 17521, 17607, 17769, 17779, 17803, 17833, 17953, 18111, 18219, 18247, 18319, 18673, 18697, 18709, 18789, 18829, 18831, 18841, 18871, 18943, 18949, 19021, 19033, 19039, 19059, 19353, 19357, 19407, 19587, 19627, 19689, 19693, 19713, 19741, 19797, 19807, 19897, 19911, 19939, 19959, 20059, 20191, 20221, 20317, 20379, 20581, 20613, 20671, 20697, 20701, 20841, 21117, 21133, 21151, 21171, 21253, 21439, 21457, 21477, 21691, 21703, 21759, 22069, 22107, 22207, 22267, 22459, 22507, 22759, 22773, 22947, 23073, 23317, 23377, 23503, 23527, 23713, 23731, 23889, 24031, 24193, 24313, 24343, 24487, 24607, 24613, 24643, 24657, 24711, 24721, 24949, 25081, 25131, 25267, 25291, 25293, 25507, 25549, 25651, 25729, 25777, 25813, 25887, 25963, 26007, 26077, 26089, 26097, 26139, 26167, 26241, 26329, 26349, 26359, 26401, 26629, 26761, 26989, 27049, 27309, 27469, 27471, 27493, 27543, 27619, 27723, 27781, 28117, 28129, 28189, 28383, 28417, 28563, 28831, 28869, 28993, 29113, 29227, 29239, 29407, 29479, 29533, 29571, 29647, 29661, 29703, 29707, 29713, 29731, 30273, 30333, 30499, 30507, 30511, 30607, 30669, 30721, 30729, 30799, 30979, 30999, 31071, 31087, 31273, 31279, 31363, 31377, 31453, 31459, 31483, 31549, 31621, 31701, 31711, 31881, 31969, 32167, 32197, 32281, 32313, 32667, 32743, 32961, 33043, 33081, 33103, 33519, 33531, 33591, 33913, 34063, 34117, 34179, 34321, 34339, 34341, 34417, 34459, 34609, 34653, 34789, 34813, 34933, 34957, 35173, 35299, 35359, 35383, 35463, 35481, 35601, 35691, 35743, 35779, 35943, 35953, 36019, 36181, 36213, 36259, 36303, 36367, 36601, 36609, 36649, 36667, 36759, 36763, 36769, 36807, 36961, 37029, 37063, 37099, 37239, 37267, 37351, 37353, 37399, 37621, 37803, 38059, 38109, 38131, 38137, 38347, 38359, 38389, 38523, 38623, 38647, 38683, 38697, 38929, 38937, 39007, 39049, 39427, 39487, 39553, 39613, 39649, 39823, 39931, 39967

 For example, 27309= 3 * 9103 and the concatenations 39103 and 91033 are both prime.

Sunday, 12 February 2023

Kempner Series

I came upon this series quite by accident when investigating what are called Kempner numbers and the Kempner function. Both of these are quite different to the Kempner series defined by Wolfram Mathworld as follows:

A Kempner series \(K_d\) is a series obtained by removing all terms containing a single digit \(d\) from the harmonic series. Surprisingly, while the harmonic series diverges, all 10 Kempner series converge.

The example is given of:$$ K_1= \frac{1}{2}+\frac{1}{3}+\frac{1}{4}+\frac{1}{5}+\frac{1}{6}+\frac{1}{7}+\frac{1}{8}+\frac{1}{9}+\frac{1}{22}+ \dots $$where it can be seen that the fractions 1/1, 1/10, 1/11 etc. have been removed from the harmonic series. In general: $$ \sum_{k=1}^{\infty} \frac{1}{k} \approx 10^n \ln{10}$$when a particular string of length \(n\) is excluded. Thus, when removing the digit 1, the result is about 23.0258509299405. It takes a lot of terms to approach this number. After one million terms, the total is only about 7.717.

Another example is given of removing the string "314" which gives an approximation of 2302.58509299405 (just move the decimal place two to the right) whereas the actual result is closer to 2299.829782. Quite a good approximation. This convergence is surprising given that removing all the composite numbers in the harmonic series still results in its divergence.

So what about Kempner numbers and the Kempner function? The number associated with my diurnal age today, 26978, has a property that qualifies it for inclusion in OEIS A346211:


 A346211

Numbers m such that \( |(K(m+1) - K(m)| = 1\), where \(K(m)\) = A002034(\(m\)) is the Kempner function.



This is where I first came across the word "Kempner". The initial members of the sequence are:

1, 2, 3, 4, 9, 15, 35, 63, 99, 175, 195, 483, 1443, 2057, 2115, 2299, 3363, 3843, 5082, 5475, 6723, 7865, 11235, 11913, 12005, 22747, 24963, 26978, 27555, 31683, 37635, 41514, 46255, 51075, 62464, 68643, 76704, 77283, 89375, 95874, 98595, 104975, 105412, 113398

Following the link to the Kempner function, OEIS A002034, leads to the reference to Kempner numbers:


 A002034

Kempner numbers: smallest positive integer \(m\) such that \(n\) divides \(m\)!.



The initial members of this sequence are:

1, 2, 3, 4, 5, 3, 7, 4, 6, 5, 11, 4, 13, 7, 5, 6, 17, 6, 19, 5, 7, 11, 23, 4, 10, 13, 9, 7, 29, 5, 31, 8, 11, 17, 7, 6, 37, 19, 13, 5, 41, 7, 43, 11, 6, 23, 47, 6, 14, 10, 17, 13, 53, 9, 11, 7, 19, 29, 59, 5, 61, 31, 7, 8, 13, 11, 67, 17, 23, 7, 71, 6, 73, 37, 10, 19, 11, 13, 79, 6, 9, 41, 83, 7

The Kempner function is also known as the Smarandache Function which Wolfram Mathworld describes as:
The Smarandache function \( \mu(n) \) is the function first considered by Lucas (1883), Neuberg (1887), and Kempner (1918) and subsequently rediscovered by Smarandache (1980) that gives the smallest value for a given n at which \(n|\mu(n)!\) (i.e., \(n\) divides \( \mu(n)\) factorial). For example, the number 8 does not divide 1!, 2!, 3!, but does divide 4!=4·3·2·1=8·3, so \( \mu(8)=4\). This function has the property that it has a highly inconsistent growth rate: it grows linearly on the prime numbers but only grows sublogarithmically at the factorial numbers. 
The graph of the function is interesting. See Figure 1.


Figure 1: link

Saturday, 26 October 2019

The Smallest Parts Partition Function

Today I turned 25773 days old and I felt it shouldn't pass without making mention of this number's connection to the Smallest Parts Partition Function. This function assigns to each natural number \(n\), another number which is the total of the smallest parts in all partitions of \(n\). Here is the mapping, from \(n=1\) up to \(n=30\):

1, 3, 5, 10, 14, 26, 35, 57, 80, 119, 161, 238, 315, 440, 589, 801, 1048, 1407, 1820, 2399, 3087, 3998, 5092, 6545, 8263, 10486, 13165, 16562, 20630, 25773, ...

Figure 1 shows the SageMath code that I wrote to generate this sequence, up to and including 25773. Here is the Permalink.

Figure 1: SageMath code to generate
Smallest Parts Partition Numbers

Here is the example given in the OEIS A092269 comments:
Partitions of 4 are [1, 1, 1, 1], [1, 1, 2], [2, 2], [1, 3], [4]. 
1 appears four times in [1, 1, 1, 1]
1 appears two times in [1, 1, 2]
2 appears two times in [2, 2]
1 appears once in [1, 3]
4 appears once in [4]
Thus a(4)=4+2+2+1+1=10

Figure 2 shows a plot of the values up to 25773:

Figure 2: plot of the Smallest Parts Partition Function

Like the partition function, there is a generating function but it's rather complicated and I won't include it here. However, it can be viewed in the OEIS comments. I just wanted to mention it because the next member of the sequence is 31897 which is a long way off. There are a number of academic papers about this function so it is a topic of serious mathematical interest.

The number of partitions from 1 to 30 are shown in the list below:

[1, 2, 3, 5, 7, 11, 15, 22, 30, 42, 56, 77, 101, 135, 176, 231, 297, 385, 490, 627, 792, 1002, 1255, 1575, 1958, 2436, 3010, 3718, 4565, 5604]

It's interesting to look at the ratio between the total value of the number of smallest parts and the number of partitions for numbers between 1 and 30. The results and a plot of these values can be found in Figure 3.

Figure 3