Let`s calculate primes! Part I - Representation of times tables
Some days ago, I had several nice ideas for calculating primes recursively, which I want to share with you in a small series of posts.
I will use some insights of my work https://github.com/Samdney/primescalc and assume you already know they. If not, please read it sidewise to the following posts.
We have given our already known equation
with \(x_{i}, x_{j} \in \mathbb{N}\). Remember that this equation gives us all \(x_{i,j}\) for which \(2x_{i,j} + 1\) is an integer divisible number.
So let`s look, for example on the numbers of \(x_{i} = 1\), which are
.
Now we will choose a simple way of representation of this numbers. Be given the general form of a number in decimal representation:
with \(n+1\), \(n \in \mathbb{N}\), digits. Now assume, in our example, the number 4 is represented by the number 1, at the \(4+1\) digit, the number 7 by the number 1, at the \(7+1\) digit and so on. So we can write (read from right to left) as represenation for \(x_{1,j}\):
and
In this way, we can write every of our times tables which are given by \(x_{i,j} = \left(2x_{i} + 1\right)x_{j} + x_{i}\).
If we finally calculate this sum, we receive
.
See also wolframalpha.com.
But what can we do with this, now?
In the next post we will look at the intersection of times tables with
this kind of representation.