Fractal curves from prime trigonometric series
Dimitris Vartziotis, Doris Bohnet

TL;DR
This paper investigates the convergence, fractal properties, and randomness of a family of prime-based trigonometric series, revealing their fractal nature and connections to random walks through analytical and numerical methods.
Contribution
It introduces a detailed analysis of the convergence and fractal characteristics of prime trigonometric series, linking them to random walk behaviors and providing numerical insights.
Findings
Series exhibit fractal graphs with self-similarity.
Convergence depends on parameters nd eta.
Series show links to random walk properties.
Abstract
We study the convergence of the parameter family of series defined over prime numbers , and subsequently, their differentiability properties. The visible fractal nature of the graphs as a function of is analyzed in terms of H\"older continuity, self similarity and fractal dimension, backed with numerical results. We also discuss the link of this series to random walks and consequently, explore numerically its random properties.
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsAnalytic Number Theory Research · Mathematical Dynamics and Fractals · Advanced Mathematical Identities
Fractal curves from prime trigonometric series
Dimitris Vartziotis
NIKI Ltd. Digital Engineering, Research Center, 205 Ethnikis Antistasis Street, 45500 Katsika, Ioannina, Greece and
TWT GmbH Science & Innovation, Department for Mathematical Research & Services, Ernsthaldenstr. 17, 70565 Stuttgart, Germany
and
Doris Bohnet
TWT GmbH Science & Innovation, Department for Mathematical Research & Services, Ernsthaldenstr. 17, 70565 Stuttgart, Germany
Abstract.
We study the convergence of the parameter family of series
[TABLE]
defined over prime numbers , and subsequently, their differentiability properties. The visible fractal nature of the graphs as a function of is analyzed in terms of Hölder continuity, self similarity and fractal dimension, backed with numerical results. We also discuss the link of this series to random walks and consequently, explore numerically its random properties.
1. Introduction
The prime numbers are not randomly distributed but, there are random models that capture well important properties of the distribution of prime numbers (e.g. [Cramér, 1936]). The random behavior of a deterministic mathematical object can be found elsewhere: there are classical function series that can be approximated by random processes. Let us briefly describe these series:
consider the two functions and for an arbitrary integer . These behave as strongly dependent random variables if we consider to be a random real variable uniformly distributed on some interval. But if one picks from the sequence of frequencies a sub sequence such that the integer sequence grows sufficiently fast, i.e. , the quantities and behave like independent random variables (see Fig. 1 as an example and § 3).
Now, one can construct a random walk out of these random variables: start at [math]. At time move up. At time , we find ourselves at . This sum is displayed for in Fig. 2 on the left.
Our example is known as a lacunary Fourier series, that is, its frequencies fulfill the growth condition given above. Its random properties are a classical field of research. In the literature, the sequence of prime numbers is often cited as a counterexample for a sequence of frequencies which does not give rise to a lacunary Fourier series: it does neither fulfill the growth condition nor alternative conditions on arithmetic patterns which exist in the literature. However, experiments in this article suggest that share a lot of the random properties of lacunary series (see Fig. 2 for a first impression or [Vartziotis and Wipper, 2016]): for instance, the central limit theorem seems to hold. Unfortunately, this looks difficult to prove.
On the other hand, we can look at other manifestations of randomness in lacunary series (e.g. in the example in Fig. 2) and try to see if they are also present in our prime series : by introducing appropriate coefficients , the walk can be approximated by a Wiener process which is an almost everywhere continuous random walk with independent normally distributed increments (see [Philipp and Stout, 1975] and § 3). This implies directly a lot of interesting properties for the series, e.g. the law of iterated logarithm holds. It would be interesting if a similar approximation exists for our series . Again, we were not able to prove this.
But we can show that our series has in fact for specific properties in common with a Wiener process, e.g. its regularity and fractality (see § 2). The above-mentioned example is in fact famous for these reasons: It belongs to the family of Weierstrass functions which have been extensively studied for its differentiability properties. Under certain conditions on this function is nowhere differentiable, but Hölder continuous.
Another historical example which is non-differentiable, but multifractal, is the Riemann function . Note, that it is not a lacunary series as . With our prime series, we place ourselves in between these two historical examples with respect to the growth of its frequencies.
While prime sums are extensively studied in the context of the famous prime conjectures (e.g. for Vinogradov’s theorem and the like), we have not found a treatment of trigonometric series over prime numbers. The reason for this is most probably that these series have not the necessary form to help to progress in the proofs of the prime conjectures where prime exponential sums play a dominant role. As mentioned above, these series have not been studied in the context of lacunary series as prime numbers do neither grow fast enough nor do they have known arithmetic properties which are necessary for a straightforward analysis.
By using results of prime number theory, we are nevertheless able to show conditions on the differentiability and self similarity of our prime series. Experimentally, we explore also its box dimension in dependence on .
Remark 0.1**.**
For most of our questions, we can restrict ourselves – without loss of generality – to the real part of the series which we denote by , too.
Acknowledgement
We would like to thank the referee for his remarks and Florian Pausinger for his helpful hints and questions.
2. Convergence and differentiability
There are basically two factors which influence the smoothness and convergence of a function series as ours:
- (1)
The faster the coefficients decrease for , the smaller is the influence of the higher frequencies. This implies that the series converges better and the resulting function is smoother. 2. (2)
The faster the frequencies increase or equivalently, the greater the gaps, the smaller gets the period of the oscillation so that one obtains more peaks and sinks in one interval which increases the fractal character.
2.1. Historical remarks
The nature of these influences, easily deduced, are also backed by the long history of studies on the following two families of functions (and derived families):
Let
[TABLE]
be the family of Weierstrass functions which have been extensively studied. One knows the following:
Theorem 1** ([Hardy, 1916],[Jaffard, 2010]).**
- (1)
If , then is differentiable. 2. (2)
If , then is nowhere differentiable. Further, the Hölder exponent is a constant function , i.e. for all it holds
[TABLE]
On the other hand, one has the family of Riemann’s function (whose authorship by Riemann is apparently only confirmed by Weierstrass) defined by
[TABLE]
which has the following proven properties:
Theorem 2** **([Hardy, 1916], [Hardy and Littlewood, 1912],
[Gerver, 1970a, Gerver, 1970b],[Chamizo and Córdoba, 1996]).
- (1)
If , then the series is not a Fourier series of a -function. If , then converges at if and only if , where are coprime and divides . 2. (2)
If , then the series converges in -norm to a -function for . 3. (3)
If , then the series has bounded mean oscillation. 4. (4)
If , then is not differentiable at any irrational value of , and its Hausdorff dimension for is equal to
[TABLE]
If , then is differentiable at if and only if where are coprime and divides . 5. (5)
If , the Hoelder exponent is discontinuous everywhere. In fact, is a function with unbounded variation and multifractal.
In the following, we aim to give a similar description for our function series. Let us start with some preliminary definitions which are necessary for what follows:
2.2. Preliminary definitions
We call a function locally Hölder continuous at , if there exist and such that
[TABLE]
We call the supremum of for which these inequality holds at the local Hölder exponent.
Let be a smooth function with compact support . We write
[TABLE]
for the Fourier transform of . Further, let be given such that the support of its Fourier transform is contained in , then the Gabor wavelet transform of a function is defined by
[TABLE]
With these notation, we have the following estimation which is a special case of Proposition 5 in [Jaffard, 2010]:
Proposition 2.1** (Jaffard).**
Let be a bounded function. Let be the Gabor wavelet transform of . If is locally Hölder continuous at with Hölder coefficient , then there exists such that for all and for all and for all we have
[TABLE]
2.3. Differentiability of
In the spirit of the results in § 2.1, we aim to determine which conditions have to be fulfilled by the coefficients and frequencies in our example in order to have a certain degree of differentiability. Firstly, we consider
[TABLE]
where is any function of prime numbers. We can state the trivial fact that
Proposition 2.2**.**
For any , if , then the partial sums converges uniformly and absolutely to a continuous function denoted by .
Proof.
We have for all . By the Weierstrass -test the partial sums converges uniformly and absolutely if Using the Riemann-Stieltjes Integral and the Prime number theorem we get
[TABLE]
where denotes the number of primes finishing the proof. ∎
We take now
[TABLE]
and denote with its limit whenever it exists. Then one can show the following statement:
Theorem 3**.**
Let and .
- (1)
Then the series converges uniformly and absolutely to a continuous function . 2. (2)
For , if further , then the function is , i.e. times continuously differentiable.
Proof.
For the first result we use the properties of the prime zeta function : it converges absolutely for and diverges for (see e.g. [Landau and Walfisz, 1920],[Fröberg, 1968]). The coefficients are an upper bound for the terms . Consequently, the Weierstrass -test implies that for and any , converges uniformly and absolutely to . As any partial sum is continuous, the limit is a continuous function, too.
Secondly, for any and we can differentiate the partial sums
[TABLE]
This sequence of derivatives converges uniformly with the same argument as above for , so that one concludes that is continuously differentiable itself with derivative . By induction over , one proves the -time differentiability of the function. ∎
Remark 3.1**.**
The result is in accordance with the intuitive smoothness of the series: for fixed , the series gets the smoother, the smaller the frequency , , or equivalently, the larger the period. Therefore, the peaks and sinks of the oscillation are more and more separated so that the series gets smoother (see Fig. 3-5).
Theorem 4**.**
If , then the function is Hölder continuous with Hölder coefficient .
Proof.
First of all, let be an integrable function and , then by using the Riemann-Stieltjes integral (see e.g. [Rosser and Schoenfeld, 1962]) and the Prime number theorem as above one knows
[TABLE]
From this formula and denoting the logarithmic integral function, one deduces (substituting by ) for
[TABLE]
Approximating the logarithmic integral this implies
[TABLE]
If , we have to use the explicit formula for the prime zeta function to get an estimate for the speed of convergence (see e.g. [Cohen, 2000] for a derivation of the formula). We then have by partial summation
[TABLE]
where denotes the Riemann zeta function and the Moebius function. So we get for the tail of the prime zeta function
[TABLE]
Combining Eq. (1)-(2) on the asymptotic of the prime zeta function, we can estimate now the regularity of our function .
For any , we choose Then we have with the mean value theorem and using the absolute convergence of the series
[TABLE]
The exponent is not necessarily optimal, but a lower bound. But it suffices to conclude that the function is Hölder continuous so that we can derive an upper bound for its Hölder exponent:
For this step, we use a method developed by Jaffard in [Jaffard, 2010] which relies on a wavelet transform and the idea to choose the wavelet transform such that only one frequency of is picked up. Let and .
We choose a function whose Fourier transform has compact support and . We then look at the Gabor-wavelet transform
[TABLE]
with . Substituting for in the equation we get
[TABLE]
As the support of is a subset of the unit interval, it does vanish for any , so the expression it reduced to
[TABLE]
Recall that we have just proved that is locally Hölder continuous at . Further, for all it is and . Hence, applying Proposition 2.1, there exists such that for all
[TABLE]
The gap is bounded by from above so that the Hölder coefficient is bounded by from above finishing the proof. ∎
Remark 4.1**.**
Let be fixed. The bigger the gaps of the frequency, , the stronger the irregularity of .
2.4. Self similarity and fractal dimension
The graph of the function seems to be self similar for certain . There seems to be an approximate scalar invariance a points , where is prime. Let us make more precise this intuition: look for example on the partial sums in Fig. 6:
Denote by the th prime number. We restrict ourselves again to the real part of . The point is a global minimum as and as the primes greater than are odd. Now, consider the point : we have . More generally, one has
[TABLE]
That is, we can decompose the partial sum into residue classes of the prime numbers and the roots of unity of cosine. One knows that the number of primes that are congruent to are approximately the same for all , that is, where denotes the Euler totient function and is equal to for prime. So for any , prime, one can use this distribution and the Riemann-Stieltjes integral to show that the difference between the sums for each converges to zero for , that is:
[TABLE]
The factors are exactly the prime roots of unity and the sum . Consequently, one computes
[TABLE]
As we have , one could argue that
[TABLE]
see Fig. 7. But keep in mind that these are only asymptotic equivalences while our partial sum do not converge for , so the self similarity of the graph is certainly not strict.
2.4.1. Fractal dimension of .
Further, we compute numerically the box dimension of the graph of defined in the following way: let be the rectangle such that the graph is contained. We compute then for the intersections . We denote the number of non-empty intersections by . The box dimension is then given by
[TABLE]
In accordance to our results on regularity of we obtain the following Fig. 8 for the (numerically computed) box dimension over the fraction . For fixed and , that is, , we expect that the fractal dimension converges to . On the other hand, for , the fractal dimension should converge to as the graph gets continuously differentiable if .
3. Random properties for
The quite similar behavior of lacunary and random Fourier series let us think that it might be possible to capture the random character of the series which is the subject of this section. Let us briefly review what it is known in the context of lacunary sequences and random variables:
3.1. Lacunary sequences behaving as independent random variables: short overview
The terms and behave like random variables, but strongly dependently. But if one restricts the sequence of frequencies to where the sequence has sufficiently fast growing gaps, i.e.
[TABLE]
then the sequences behave like independent random variables. For example, one has
[TABLE]
where is the normal distribution. This was the main observation which has led to study the connections between lacunary and random Fourier series, most importantly the question which are the optimal growth conditions on the sequence such that the sequence for general periodic measurable functions with vanishing integral exhibits random properties (see historical overview [Kahane, 1997]). By introducing weights which obey certain growth conditions themselves, one can recover several limit theorems in complete analogy to random variables. In particular, the Central Limit Theorem (CLT) and the Law of Iterated Logarithm (LIL) are true (see results by Salem-Zygmund in [Salem and Zygmund, 1947], [Salem and Zygmund, 1948], Erdös-Gál in [Erdös and Gál, 1955] and Weiss in [Weiss, 1959]). Further, it can be shown that the process can be approximated by a standard Brownian motion:
Theorem 5** (Philipp-Stout [Philipp and Stout, 1975]).**
Assume the Hadamard gap condition. Assume further that and there exists such that . Then without changing the distribution of the process
[TABLE]
it can be redefined on a suitable probability space together with a Wiener process \left\{W(t)\;\big{|}\;t\geq 0\right\} such that
[TABLE]
While the Hadamard growth condition (4) for CLT can be weakened for general sequences (see [Erdös, 1962]) for coefficients to the optimal growth condition with , one has observed that sequences with much slower growth can nevertheless satisfy the CLT if they fulfill certain arithmetic conditions, more precisely, bounds on the number of solutions for the diophantine equation. Results in this direction started with Gaposhkin ([Gaposhkin, 1966]) and were recently sharpened by Berkes, Philipp and Tichy ([Berkes et al., 2008]). The difficulties with the prime sequence are on both sides: Firstly, while it is sure that the prime sequence is not a Hadamard sequence, neither precise lower nor upper bounds for the prime gap are known. The best results for a lower bound which would be of interest for us do not hold for all but only infinitely many. For the upper bound it is proved by Goldston, Pintz and Yildirim ([D. Goldston and Yildirim, 2009]) that Secondly, there is no building law for prime numbers known and the infinite recurrence of certain patterns like twin primes are only conjectured but not completely proved. On the other hand, the random character of prime numbers is often invoked without being analytically established anywhere although the random model by Cramér ([Cramér, 1936]) is widely used and reproduces some results very efficiently (but fail in other aspects, e.g. in forecasting the size of the prime gap). In the question on convergence of functions random models were also introduced (see e.g. [Schatte, 1988]). Obviously, this is a broad and intensively studied mathematical subject where we do not dare to make contributions. Therefore, we stay more closely to our studied series:
3.2. The central limit theorem
Because of the reason mentioned above we have not been able to show the central limit theorem for the random variables or , the base of our series . Nevertheless, numerical computations strongly suggest that the central limit theorem holds, see Fig. 9: we took uniformly distributed points of the interval and computed the sample average for , that is, the number of primes . We computed the histogram for the values of the sample average which experimentally tends to a normal distribution as the size of the sample tends to infinity.
4. Concluding remarks
The properties of the series which we have discussed in this article are intimately related to the distribution of prime numbers, and it was mostly due to the unanswered questions on prime numbers that the analytical access to our series is limited. Therefore, knowledge on the distribution and bounds for the gaps of prime numbers would imply more or less directly properties where we were restricted to a numerical approach.
Although the series might remind of the Riemann zeta function or other number-theoretical functions, we did not construct in this way and do not see a possibility to deduce it from any of them, besides from the trivial fact, that is equal to the prime zeta function .
The reference list from the paper itself. Each links out to its DOI / PubMed record.
- 1[Berkes et al., 2008] Berkes, I., Philipp, W., and Tichy, R. (2008). Metric Discrepancy Results for Sequences { nkx } and Diophantine Equations , pages 95–105. Springer Vienna, Vienna.
- 2[Chamizo and Córdoba, 1996] Chamizo, F. and Córdoba, A. (1996). Differentiability and dimension of some fractal fourier series. Advances in Mathematics , 142:335–354.
- 3[Cohen, 2000] Cohen, H. (2000). High precision computation of hardy-littlewood constants. https://www.math.u-bordeaux.fr/ hecohen/.
- 4[Cramér, 1936] Cramér, H. (1936). On the order of magnitude of the difference between consecutive prime numbers. Acta Arith. , 2:23–46.
- 5[D. Goldston and Yildirim, 2009] D. Goldston, J. P. and Yildirim, C. (2009). Primes in tuples i. Ann. Math. , 170(2):819–862.
- 6[Erdös, 1962] Erdös, P. (1962). On trigonometric sums with gaps. Publ. Math. Inst. Hung. Acad. Sci., Ser. A , 7:37–42.
- 7[Erdös and Gál, 1955] Erdös, P. and Gál, I. (1955). On the law of iterated logarithm i + ii. Nederl. Akad. Wetensch. Proc. Ser. A. , 17(58):65–84.
- 8[Fröberg, 1968] Fröberg, C.-E. (1968). On the prime zeta function. BIT , 8:187–202.
