Showing posts with label summation. Show all posts
Showing posts with label summation. Show all posts

Thursday, 12 October 2023

Primitive Sets

The ErdÅ‘s primitive set conjecture is that the following summation:$$ \sum _{n \, \in A} \frac {1}{n\log{n}}$$where A is any primitive set (a set where no member of the set divides another member) attains its maximum at the set of primes numbers. It was proved by Jared Duker Lichtman (pictured above) in 2022. I was informed of this via a YouTube video first released in 2022. Here is a link to the academic paper by Lichtman. The constant turns out to be about 1.6366 ... and summations of the form shown above can be no larger than this. Thus we have:$$ \sum _{p \, \in P} \frac {1}{p\log{p}} \approx 1.6366$$where P is the set of primes and \(p\) is any prime number.

Let's take the summation of the elements of the set S of semiprimes. These elements form a primitive set. Let's suppose each semiprime can be represented by its prime factors \(p\) and \(q\) where \(p \leq q\). We then have:$$ \sum _{pq \, \in S} \frac {1}{pq\log {pq}} \approx 1.1448 \dots$$We can continue this process and consider the primitive set containing all numbers with three not necessarily distinct prime factors and so on. In each case, the sum converges to a constant which can be designated as \(f_k\) where \(k\) represents the number of prime factors. Thus we've seen that \(f_1 \approx 1.6366\) and \(f_2 \approx 1.1448\). In general we write:$$f_k=\sum  \frac {1}{n\log{n}}\\ \text{where } n \text{ has } k \text{ prime factors}$$The long term behaviour of \(f_k\) is shown in Figure 1 where the term "fingerprint numbers" is used to identify these types of numbers:


Figure 1: screenshot from video

While the values of \(f_k\) initially decrease and drop below 1 for \(f_3\), it can be seen that the values bottom out around \(f_5\) and \(f_6\) and then increase slowly as they approach a value of 1 asymptotically from below. This behaviour can be seen more clearly in Figure 2.


Figure 2: screenshot from video

The term "fingerprint numbers" is an informal term used in the referenced videos and is not used formally in mathematical circles. There are many different types of primitive sets but they all have the property that no member of the set divides another member.

Sunday, 9 May 2021

Collaboration between Integration and Summation

When it is permissible, it is often convenient when evaluating certain integrals to interchange the order of a summation and an integration. Let's use the following definite integral as an example to illustrate this technique:$$\int_0^{\infty}\frac{x}{e^x-1} \mathrm{d}x$$The graph is as shown in Figure 1.


Figure 1: created in GeoGebra

Let's begin the integration:$$\begin{align} \int_0^{1}\frac{x}{e^x-1} \mathrm{d}x&=\int_0^{1}\frac{x}{\dfrac{1}{e^{-x}}-1} \mathrm{d}x\\
&=\int_0^{1}\frac{x \, e^{-x}}{1-e^{-x}}\mathrm{d}x\\
&=\int_0^{1} x \, e^{-x} \left ( \dfrac{1}{1-e^{-x}} \right ) \mathrm{d}x\\
&=\int_0^{1} x \, e^{-x} \sum_{n=0}^{\infty} e^{-nx} \, \mathrm{d}x\\
&=\sum_{n=0}^{\infty} \int_0^{1} x \, e^{-x(n+1)} \, \mathrm{d}x\\
&=\sum_{n=1}^{\infty} \int_0^{1} x \, e^{-nx} \, \mathrm{d}x \\
\text{Now } \int x \, e^{-nx} \, \mathrm{d}x &= \int x \frac{\mathrm{d}}{\mathrm{d}x} \left (\frac{e^{-nx}}{-n} \right ) \, \mathrm{d}x\\
&=\frac{-x \, e^{-nx}}{n}+\frac{1}{n} \int e^{-nx} \, \mathrm{d}x\\
&=\frac{-x \, e^{-nx}}{n}- \frac{e^{-nx}}{n^2} +C\\
\text{So }\int_0^{1}\frac{x}{e^x-1} \mathrm{d}x&=\sum_{n=1}^{\infty} \left [ \frac{-x \, e^{-nx}}{n}- \frac{e^{-nx}}{n^2} \right ]_0^1\\
&=\sum_{n=1}^{\infty} \left ( \frac{-e^{-n}}{n}-\frac{e^{-n}}{n^2}+\frac{1}{n^2} \right )\\
&=\sum_{n=1}^{\infty} \frac{1}{n^2} -\sum_{n=1}^{\infty}\frac{e^{-n}}{n} -\sum_{n=1}^{\infty} \frac{e^{-n}}{n^2}\\
\text{Now }\sum_{n=1}^{\infty} \frac{1}{n^2} &=\zeta(2)\\
&=\frac{\pi^2}{6}\\
\sum_{n=1}^{\infty}\frac{e^{-n}}{n} &= 1-\ln(e-1) \\
\sum_{n=1}^{\infty}\frac{e^{-n}}{n^2} &= \text{Li}_2 \left (\dfrac{1}{e} \right )\\
\text{Hence } \int_0^{1}\frac{x}{e^x-1} \mathrm{d}x&=\frac{\pi^2}{6}+\ln(e-1) -\text{Li}_2 \left (\dfrac{1}{e} \right )-1\\
&\approx 0.777505

\end{align}$$Looking at Figure 1, it can be seen that this result looks just about right. I'm thankful to Mathematics M1's YouTube video for detailing the steps required to reach this result. I'm reproducing the steps here as a means of practising my LaTeX skills but it's also to remind me how interesting the integration technique is, specifically the way in which the integral and the summation are swapped around. Li is the Eulerian Logarithmic Integral and deserves a blog post of its own.$$ \mathrm{Li}(x)=\int_2^x \dfrac{\mathrm{d}t}{\ln t }= \mathrm{li}(x)-\mathrm{li}(2) \text{ where } \mathrm{li}(x)=\int_0^x \dfrac{\mathrm{d}t}{\ln t }$$

Saturday, 1 May 2021

Integration of x^x and x^(-x)

There are many YouTube videos outlining how to integrate \(x^x\) and \(x^{-x}\) but the following is the best explained that I've come across.


In the video, the function \(x^x\) is integrated from 0 to 1. In fact, this proper integral is converted into an infinite series so traditional integration is not possible. The result is quite impressive:$$\int_0^1 x^x \mathrm{d} x=\sum_0^{\infty} \frac{(-1)^n}{(n+1)^{n+1}}=1-\frac{1}{2^2}+\frac{1}{3^3}-\frac{1}{4^4}+ \dots \approx 0.783430$$The result for \(x^{-x}\) is similar:$$\int_0^1 x^{-x} \mathrm{d} x=\sum_0^{\infty} \frac{1}{(n+1)^{n+1}}=1+\frac{1}{2^2}+\frac{1}{3^3}+\frac{1}{4^4}+ \dots \approx 1.291285 $$Figure 1 shows the SageMath code to draw the two graphs in the given range and to calculate the area bounded by them:

Figure 1: permalink

Figure 2 shows the result with annotations added:

Figure 2

It's hard to see but the area bounded by the two curves is shown at the bottom left and is approximately 0.507855 square units. Figure 3 shows an alternative representation using GeoGebra:


Figure 3

These graphs, their turning points and the bounded area between them are most interesting. Let's not forget that the turning points for both graphs occur when \(x=\dfrac{1}{e}\) because:$$\begin{align} y&=x^x\\ \frac{\mathrm{d}}{\mathrm{d} x} y &=\frac{\mathrm{d}}{\mathrm{d} x } x^x\\&=\frac{\mathrm{d}}{\mathrm{d} x} e^{\,x \ln x}\\&=e^{\,x \ln x} (1+\ln x)\\&=0 \text { when }\ln x = -1 \text{ or } x=\frac{1}{e} \end{align}$$The result is the same for \(y=x^{-x}\), only the y values differ with \(e^{1/e} \approx 1.44\) for \(x^{-x}\) and \(e^{-1/e} \approx 0.69\) for \(x^x \).

Sunday, 14 July 2019

Constants Associated with Centered Hexagonal and Other Figurate Numbers

Today I turned 25669 days old and this number happens to be the 93rd centered hexagonal number. These are figurate numbers because they can be represented as hexagonal rings surrounding a central dot. See Figure 1.

Figure 1

Centered hexagonal numbers can be written in the form \(3 \,n \, (n-1)+1\) where \(n=0,1,2,3, ... \). What struck me as interesting were some of the properties of this series which begins: 1, 7, 19, 37, 61, 91, 127, 169, 217, 271, 331, 397, 469, 547, 631, 721, 817, 919, 1027, 1141, 1261, ... I'm thankful to NumbersAplenty for alerting me to these properties. See Figure 2.

Figure 2: http://www.numbersaplenty.com/set/hex_number/

These results are quite amazing. The property on the left in Figure 2, I'll designate as property 1, the one in the middle as property 2 and the one on the right as property 3.

Property 1

Let's consider the sequence up to the 93rd hexagonal number and see how the results compare:$$ \sum_1^{93}{\frac{1}{H_n}} \approx 1.30169996966629 \text{ and } \frac{\pi \,\tanh{\frac{\pi}{2\sqrt{3}}}}{\sqrt{3}} \approx 1.50944975010619$$Given that the last term in the sequence on the left is 1/25669 \( \approx \) 0.0000389574973703689, there are clearly a great many more terms to add before the figure on the right is approached.

Property 2

By contrast, this sequence approaches 13 fairly rapidly:$$ \sum_1^{93} \frac{H_n}{2^n} \approx 12.9999999999999999999999972942$$Property 3

Notice that the summation begins at \(n=0\) and this is confusing because \(H_0\) is not really defined. It might be better to begin the summation at \(n=1\) and make the right side equal to \(4e-1\). In this case, the summation on the left again rapidly approaches the value on the right (not surprising in view of the factorial in the denominator):$$ \sum_1^{93} \frac{H_n}{n!} = 4e -1\text{ to at least 100 decimal places}$$There are interesting results for the sums of the reciprocals of other figurate numbers. Some of these are shown in Figure 3 (heptagonal), Figure 4 (octagonal) and Figure 5 (decagonal).


Figure 3: http://www.numbersaplenty.com/set/heptagonal_number/



Figure 4: http://www.numbersaplenty.com/set/octagonal_number/


Figure 5: http://www.numbersaplenty.com/set/decagonal_number/

There are plenty more but that's enough for the moment. In the meantime, the centered hexagonal and other figurate numbers have been shown to be linked to the mathematical constants \(\pi \) and \(e\), yet another example of the connectivity of numbers that I discussed in my previous post.