Monday, May 7, 2018

Pentagonal Number Theorem (4)

I mentioned in yesterday’s entry the complementary nature of the two product expressions relating to the Riemann zeta function and the new derived formula (based on the pentagonal number theorem).

So on a n * n grid (n rows and n columns respectively) the entries (in the horizontal rows) represent the product terms for the Riemann zeta function ζ(s), (s ≥ 1), whereas the corresponding entries (in the vertical columns) entries represent the reciprocals of the product entries (1/x > 1) based on our derived formula,

(1 – x)(1 – x2)(1 – x3)(1 – x4) … = 1 – 1/{(1/x – 1)} + 1/{(1/x – 1)(1/x2 – 1)} –
1/{(1/x – 1)(1/x2 – 1)(1/x3 – 1)} + 1/{(1/x – 1)(1/x2 – 1)(1/x3 – 1)(1/x4 – 1)} – …

Now the Riemann zeta function provides important information regarding the collective relationship of the primes to the natural number system.

Therefore in complementary manner the derived formula should provide important information on the individual nature of each prime.

With this in mind I then set about looking for a way of using the formula to test for primality (of individual numbers).

Now when we start with x = 1/ 2 (with 1/x = 2) the formula generates the terms 1, 3, 7, 15, … i.e. 2n – 1, for n = 1, 2, 3, 4, …

I had earlier shown how this number sequence is in turn related to the unique number sequence associated with (x – 1)(x – 2) = x2 – 3x + 2 which is 1, 3, 7, 15, …

So in this case we multiply the unique terms of this sequence * 1 to obtain the corresponding numbers that the formula generates for 1/x = 2.

I had also shown that when x = 1/3 (with 1/x = 3) the formula generates the terms 2, 8, 26, 80 i.e. 3n – 1, for n = 1, 2, 3, 4, …

And this in turn is related to the unique number sequence associated with (x – 1)(x – 3) = x2 – 4x + 3, which is 1, 4, 13, 40, …

So in this case, we multiply the unique terms of the sequence * 2 to obtain the corresponding numbers that the formula generates for 1/x = 3.

And in general when we start with x = 1/k (1/x = k), the formula generates the terms
kn – 1, for n = 1, 2, 3, 4, …

And this in turn is related to the unique number sequence associated with (x – 1)(x – k) = where we multiply the unique terms of the sequence * (k – 1) to obtain the corresponding numbers that the formula generates for 1/x = k.

It then struck me that if we subtract k – 1 from kn – 1 i.e. kn – 1 – k + 1 = kn – k that
(kn – k)/n would offer a good test of primality.

Fro example in the simplest case where k = 2, we have (2n – 2)/n which invariably results in an integer when n is prime.

For example, when n = 2, (22 – 2)/2 =  1
                                n = 3, (23 – 2)/3 =  2
                                n = 5, (25 – 2)/5 =  6
                                n = 7, (27 – 2)/7 = 18

Furthermore when n is not prime, (2n – 2)/n is not an integer.

For example when n = 4, (24 – 2)/4 =  14/4 (which is not an integer)
                     when n = 6, (26 – 2)/6 =  62/6 (which is not an integer)
                     when n = 8, (28 – 2)/8 = 254/8 (which is not an integer)
                     when n = 9, (29 – 2)/9 = 510/9 (which is not an integer).


So in this case, where k = 2, (2n – 2)/n offers a clear cut test for primality

Thus for any integer value of n if (2n – 2)/n is perfectly divisible by n (so that n is thereby a factor) then n is prime; if not perfectly divisible then n is not prime.

When k > 3, results are not quite so clearcut.

It still is true that when n is prime, and not a factor of k, (kn – k)/n will result in an integer. Unfortunately however n will no longer be exclusively confined to primes.

For example when k = 3, (36 – 3)/6 = 726/6 = 121. However n = 6 is not prime.
However for all other values where (3n – 3)/n results in an integer up to but not including 66, n is prime.

Then when k = 4 many non-prime values for n will occur.

For example (44 – 4)/4 = 252/4 = 63 (but 4 is not prime)  
              And (48 – 8)/8 = 65,528/8 = 8191 (but 8 is not prime).

Then when k = 5 again many non-prime values will occur. For example in the first 20, n = 4, 5, 10, 15 are all non-prime.

There are close connections here with Fermat’s Little Theorem. However what is important is the context in which my own investigation has arisen.

Sunday, May 6, 2018

Pentagonal Number Theorem (3)

Let us return briefly to the formula given in the previous entry i.e.

(1 – x)(1 – x2)(1 – x3)(1 – x4) … = 1 – 1/{(1/x – 1)} + 1/{(1/x – 1)(1/x2 – 1)} –
1/{(1/x – 1)(1/x2 – 1)(1/x3 – 1)} + 1/{(1/x – 1)(1/x2 – 1)(1/x3 – 1)(1/x4 – 1)} – …

We have seen that when x = 1/2, this results in the relationship,

1/2 * 3/4 * 7/8 * 15/16 * …  = 1 – 1/(1) + 1/(1 * 3) – 1/(1 * 3 * 7) + 1/(1 * 3 * 7 * 15) – …

Then when x = 1/3, the following relationship results,

2/3 * 8/9 * 26/27 * 80/81 … = 1 – 1/(2) + 1/(2 * 8) – 1/(2 * 8 * 26) + 1/(2 * 8 * 26 * 80) – …

When x = 1/5, we get,

4/5 * 24/25 * 124/125 * 624/625 … = 1 – 1/(4) + 1/(4 * 24) – 1/(4 * 24 * 124) +
1/(4 * 24 * 124 * 624) – …

And when x = 1/7, we get,

6/7 * 48/49 * 342/343 * 2400/2401 … = 1 – 1/(6) + 1/(6 * 48) – 1/(4 * 48 * 342) +
1/(4 * 48 * 342 * 2400) – …

                                                                                                                                        
If we now look at the product over primes version of the Riemann Zeta Function for ζ(s)
                                                                                                                                       s=1
we get the following

ζ(1) = 2/1 * 3/2 * 5/4 * 7/6 * …

ζ(2) = 4/3 * 9/8 * 25/24 * 49/48 * …

ζ(3) = 8/7 * 27/26 * 125/124 * 343/342 * …

ζ(4) = 16/15 * 81/80 * 625/624 * 2401/2400 * …
                  

What is remarkable here is that what represent rows of numbers with respect to the Riemann Zeta function, represent similar columns with respect to the reciprocals of the products generated through our formula i.e.

(1 – x)(1 – x2)(1 – x3)(1 – x4) … = 1 – 1/{(1/x – 1)} + 1/{(1/x – 1)(1/x2 – 1)} –
1/{(1/x – 1)(1/x2 – 1)(1/x3 – 1)} + 1/{(1/x – 1)(1/x2 – 1)(1/x3 – 1)(1/x4 – 1)} – …
So for example the 1st row with respect to the Riemann Zeta function is,


2/1 * 3/2 * 5/4 * 7/6 * …

And the corresponding 1st column with respect to the products arising from the formula is

1/2 * 2/3 * 4/5 * 6/7 * …

This suggests therefore that there is an intimate relationship here as between the stated formula (that generates the product results) and the corresponding formula that generates the product results for the Riemann zeta function.

Thus is we were to generate a n * n grid (i.e. with n rows and n columns) with respect to the product entries for both our formula and the Riemann zeta function, the combined products of products (whereby the values of all rows and then values of all columns are multiplied together) in either case would represent the reciprocal of the alternative result. However we would need here to exclude the 1st row and 1st column to ensure a finite result!

And it has to be remembered in this context that likewise that each product over primes expression can be given an alternative sum over the natural numbers expression.

So in the case of the Riemann zeta function, the corresponding sum over the natural numbers expression for the corresponding product over primes expression is the harmonic series i.e.

1/2 * 3/2 * 5/4 * 7/6    =   1/11 + 1/21 + 1/31 + 1/41 + … (which in this one particular case is divergent).

Thus strictly speaking we are obtaining here the sum over the natural numbers for the base aspect of number where by contrast the dimensional aspect is fixed in each case to just one of the natural numbers (in this case 1).

Then with respect to our formula the sum over natural numbers expression again is given as 
1 – 1/{(1/x – 1)} + 1/{(1/x – 1)(1/x2 – 1)} –
1/{(1/x – 1)(1/x2 – 1)(1/x3 – 1)} + 1/{(1/x – 1)(1/x2 – 1)(1/x3 – 1)(1/x4 – 1)} – …

So here in complementary fashion it is the dimensional aspect that varies over the natural numbers with the base aspect in each given case fixed.

Thus when x = 1/2 with 1/x = 2, we have 

1/2 * 3/4 * 7/ 8 * 15/16 * …  =  1 – 1 + 1/3 – 1/21 + 1/315 – …


We have seen already how the Zeta 2 function can be used to provide a similar vertical (column) readout of the entries for the Riemann Zeta function where terms are added (rather than multiplied)


Now excluding values for s = 1, the sum of 1st column will be 1/4 + 1/8 + 1/16 + 1/32 +
 = (1 + 1/4 + 1/8 + 1/16 + 1/32 + …)  – 1.

And this corresponds to the Zeta 2 function (1 + x + x2 + x3 + …) – 1, with x = (1/p2 – 1) (where p = 2) = 1/2.
                                                                                 
And we used this earlier relationship to prove that ∑{ζ(s) – 1)} = 1.
                                                                                                                   s=2 

Thursday, May 3, 2018

Pentagonal Number Theorem (2)

In yesterday’s entry, I mentioned in connection with the Pentagonal Number Theorem a related Euler formula i.e.

(1 – x)(1 – x2)(1 – x3)(1 – x4) …      =  1 – {x/(1 – x)} + x3/{(1 – x)(1 – x2)}
– x6/{(1 – x)(1 – x2)( 1 – x3)} + …

I then decided to use this in testing this expression by letting x = 1/2, to come up with this interesting result i.e.

1/2 * 3/4 * 7/8 * 15/16  = 1/(1 * 3) – 1(1 * 3 * 7) + 1/(1 * 3 * 7 * 15) + … = .288788…

In fact fully expressed the RHS,

 = 1 – 1/(1)  + 1/(1 * 3) – 1(1 * 3 * 7) + 1/(1 * 3 * 7 * 15) + …

I then realised that this provided just one especially interesting application of a general formula that can be written as follows


(1 – x)(1 – x2)(1 – x3)(1 – x4) … = 1 – 1/{(1/x – 1)} + 1/{(1/x – 1)(1/x2 – 1)} –
1/{(1/x – 1)(1/x2 – 1)(1/x3 – 1)} + 1/{(1/x – 1)(1/x2 – 1)(1/x3 – 1)(1/x4 – 1)} – …

And this formula will converge where x < 1.

So for example, where x = 1/3 we obtain,

2/3 * 8/9 * 26/27 * 80/81 * …  = 1 – 1/(2) + 1/(2 * 8) – 1/(2 * 8 * 26) +
1/(2 * 8 * 26 * 80) – … = .56012 …

I also soon discovered the closely related general formula that can be written as follows

(1 + x)(1 + x2)(1 + x3)(1 + x4) … = 1 + 1/{(1/x – 1)} + 1/{(1/x – 1)(1/x2 – 1)} +
1/{(1/x – 1)(1/x2 – 1)(1/x3 – 1)} + 1/{(1/x – 1)(1/x2 – 1)(1/x3 – 1)(1/x4 – 1)} + …

So once again, illustrating where x = 1/2, we obtain,

3/2 * 5/4 * 9/8 * 17/16 * …   = 1 + 1/(1) + 1/(1 * 3 * 7) + 1/(1 * 3 * 7 * 15) + …

Therefore once again, when for each term on the LHS we decrease the numerator by 2 we obtain on the RHS the alternating version of the same terms with

1/2 * 3/4 * 7/8 * 15/16  = 1/(1 * 3) – 1/(1 * 3 * 7) + 1/(1 * 3 * 7 * 15) + …

There is a fascinating connection here with e and  1/e respectively.


In other work on this blog I have shown how we can associate a unique infinite sequence of terms with every regular polynomial equation.

Perhaps the best known sequence is the Fibonacci which arises from the equation
x2 – x – 1.
Then starting with 0, 1 we multiply the coefficient of the x term (i.e. – 1) by – 1 then multiply by the 2nd of the starting digits (i.e. 1 and then likewise multiply the coefficient of the 3rd term (i.e. – 1) again by – 1 before multiplying the result by the 1st of the starting digits (i.e. 0). Then combining the 2 answers we get 1 + 0 = 1, which is then the next digit in the Fibonacci sequence.
And by concentrating on the two most recent digits generated we can continue to generate subsequent terms in the sequence.

However the same general procedure can in principle be applied to all polynomial equations (though it becomes more cumbersome for higher degree equations).

So the Fibonacci sequence is 0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 144, 233, …

And the significance of the terms in the sequence is that they can be used dividing the
(n + 1)th by the nth to approximate the real roots for the associated equation x2 – x – 1 = 0.

So for example 233/144 = 1.618055 already provides a good approximation of the positive real root (i.e. phi = 1.618033…).

Now if we consider (x – 1)( x – 1) we obtain the polynomial equation x2 – 2x + 1
And using the same procedure for generating subsequent terms (as for the Fibonacci sequence) we obtain 0, 1, 2, 3, 4, 5, …

In other words, the unique digit sequence associated with (x – 1)(x – 1) = (x – 1)2 
is the natural number sequence.

And of course we can use this sequence corresponding to x2 – 2x + 1 = 0, to approximate the positive real root (i.e. 1) of the equation.

So as the nth term = the (n + 1)th/n th term = (n + 1)/n ~ 1..

Now the well known expression for e is as follows

e = 1 + 1/(1) + 1/(1 * 2) + 1/(1 * 2 * 3) + 1/(1 * 2 * 3 * 4) + …

1/e = 1 –  1/(1) + 1/(1 * 2) + 1/(1 * 2 * 3) –  1/(1 * 2 * 3 * 4) + …

So the factorial expressions in the denominator entail the successive products of the natural numbers.

Let us now look at the unique digit sequence associated with (x – 1)(x – 2) = x2 – 3x + 2
which is 0, 1, 3, 7, 15, 31, …

And once again the (n + 1)th/n th term e.g. 31/15, will approximate the principle real valued root of the associated equation i.e. x2 – 3x + 2 = 0, = 2.

If we look again at the two related expressions for 3/2 * 5/4 * 9/8 * 17/16 * …   and 1/2 * 3/4 * 7/8 * 15/16 , i.e.

1 + 1/(1) + 1(1 * 3 * 7) + 1/(1 * 3 * 7 * 15) + …  and

1 – 1/ (1) + 1/(1 * 3) – 1(1 * 3 * 7) + 1/(1 * 3 * 7 * 15) + …,

we can see how they readily match the corresponding expressions for e and 1/e respectively.
Whereas in the expressions for e and (i/e) the successive products of  the unique digit sequence associated with (x – 1)(x – 1) are used, in the latter case in the corresponding expressions for 3/2 * 5/4 * 9/8 * 17/16 * …   and 1/2 * 3/4 * 7/8 * 15/16,  the successive products of the unique digit sequence associated with (x – 1)(x – 2) are now used.

So in our two related formulae,

(1 + x)(1 + x2)(1 + x3)(1 + x4) … = 1 + 1/{(1/x – 1)} + 1/{(1/x – 1)(1/x2 – 1)} +
1/{(1/x – 1)(1/x2 – 1)(1/x3 – 1)} + 1/{(1/x – 1)(1/x2 – 1)(1/x3 – 1)(1/x4 – 1)} + …

and

(1 – x)(1 – x2)(1 – x3)(1 – x4) … = 1 – 1/{(1/x – 1)} + 1/{(1/x – 1)(1/x2 – 1)} –
1/{(1/x – 1)(1/x2 – 1)(1/x3 – 1)} + 1/{(1/x – 1)(1/x2 – 1)(1/x3 – 1)(1/x4 – 1)} – …,

1/x = 2.

And the numbers in the product denominator sequence for the RHS of the expression correspond here with the unique numbers associated with (x – 1)(x – 2).

And where 1/x = n (as integer), the numbers in the product denominator sequence for the RHS of the expression correspond to (x – 1)(x – n). Strictly each number in the product sequence relates to the corresponding unique numbers - associated with (x – 1)(x – n) - multiplied by 1/x –  1. So, as we have seen, when 1/x = 2 the unique number sequence associated with (x – 1)(x – 2) directly applies!

For example when 1/x = 3, we now use the unique digits associated with (x – 1)(x – 3) = x2 – 4x + 3, which are,

0, 1, 4, 13, 40, 121, …

Therefore the appropriate denominator sequence applying entails each of these terms * 2
i.e. 2, 8, 26, 80, 242, …

And as we have already seen when 1/x = 3,

2/3 * 8/9 * 26/27 * 80/81 * …  = 1 – 1/(2) + 1/(2 * 8) – 1/(2 * 8 * 26) +
1/(2 * 8 * 26 * 80) – … = .56012 …

So likewise,

4/3 * 10/9 * 28/27 * 82/81 * …  = 1 + 1/(2) + 1/(2 * 8) + 1/(2 * 8 * 26) +
1/(2 * 8 * 26 * 80) + … = 1.56493 …

Wednesday, May 2, 2018

Pentagonal Number Theorem (1)

I was reading again recently that marvellous little book by Davis Wells “The Penguin Dictionary of Curious and Interesting Numbers” when my attention was drawn to the section on pentagonal numbers.

Now the pentagonal numbers are generally listed as,

1, 5, 12, 22, 35, 51, 70, …, with the nth pentagonal number given as n(3n – 1)/2 for n = 1, 2, 3, …

However when we allow n to also take on values for n = – 1, – 2, – 3, … we get the generalised pentagonal numbers, which arranged in ascending order are,

1, 2, 5, 7, 12, 15, 22, 26, 35, 40, 51, 57, 70, 77, 92, 100, …

Euler discovered an important and somewhat surprising relationship entailing the generalised pentagonal numbers.  

In multiplying out the infinite series

(1 – x)(1 – x2)(1 – x3)(1 – x4) … he discovered that the first few terms were,

1 – x1 – x2  + x5 + x7 – x12 – x15 + …

So the powers of the x terms naturally unfolding in this manner were seemingly the (generalised) pentagonal numbers.

Euler was then able to prove from this finding - now known as The Pentagonal Number Theorem - two remarkable results.

Firstly he showed that if σ(n) is the sum of the divisors of n then,

σ(n) = σ(n – 1) + σ(n – 2) – σ(n – 5) – σ(n – 7) + σ(n – 12) + σ(n – 15) – σ(n – 22) – …

So if n = 12, then

σ(12) = σ(11) + σ(10) – σ(7) – σ(5) + σ(0)

The divisors of 11 are 1, 11; the divisors of 10 are 1, 2, 5, 10; the divisors of 7 are 1, 7; the divisors of 5 are 1, 5; then when n = 0 the value is given as n, which in this case = 12.

Therefore σ(12) = 12 + 18 – 8   6  + 12  = 28.

And when we manually check, the divisors of 12 are 1 + 2 + 3 + 4 + 6 + 12  = 28.


Secondly he was able to relate his theorem to partitions.
Now p(n) represents the number of partitions of a number i.e. the number of distinct ways of expressing a number.

For example 4 has 5 partitions. So if 4 represented a group of pebbles, we could place all the pebbles in a group (as one possible partition). We could equally place 2 pebbles in one group and 2 in another (representing a second partition). We could also have 3 pebbles in one group and just one in another (representing a third partition).
We could then have 2 pebbles in one group and 1 each in two other groups (as a fourth partition). Finally, we could place the 4 items in four separate groups (as the fifth and final partition).

Therefore 4 has 5 possible partitions.

Thus if we wanted now to find p(n) where for example n = 5, we can use Euler’s formula, i.e.

p(n) = p(n – 1) + p(n – 2) – p(n – 5) – p(n – 7) + p(n – 12).

Thus p(5) = p(4) + p(3) – p(0). In this case where n = 0, p(0) = 1.

So, p(5)  = 5 + 3 – 1 = 7.


However it is another feature of the pentagonal theorem that I wish to concentrate on in this entry.

In other related work, Euler came up with the following formula,

(1 – x)(1 – x2)(1 – x3)(1 – x4) …  

= 1 – x/{(1 – x)} + x3/{(1 – x)(1 – x2)}  – x6/{(1 – x)(1 – x2)( 1 – x3)} + …

So we can see here how the powers x in the numerator terms follow the pattern of the triangular numbers, i.e.

1, 3, 6, 10, 15, 21, 28, 36, 45, 55, 66, …


In fact there are many fascinating connections as between the pentagonal and triangular numbers.

For example, when a pentagonal number is multiplied by 3, a triangular number results.

So 12 (the 5th generalised pentagonal number) * 3 = 36 (the 8th triangular number).

Also when one combines the powers of x in the pentagonal number theorem in couplets (as they naturally occur with two positive terms alternating with the two negative terms), and then divide by 3, then the absolute value represents a triangular number.
So  – 1 – 2 = – 3 and 3/3 = 1   (the 1st triangular number)

– 1 – 2 + 5 + 7 = 9 and 9/3 = 3 (the 2nd triangular number)

– 1 – 2 + 5 + 7 – 12 – 15 = – 18 and 18/3 = 6 (the 3rd triangular number)

– 1 – 2 + 5 + 7 – 12 – 15 + 22 + 26 = 30 and 30/3 = 10 (the 4th triangular number).
                                            
And the full sequence of triangular numbers can be generated in this fashion.


In a reverse manner, if we take the triangular numbers in groups of 3, a direct connection with the pentagonal numbers can be shown.

So 1 + 3 + 6 = 10. Then dividing by 9 (and ignoring the remainder of 1) we get 1 (the 1st of the regular pentagonal sequence).

Then for the next group of 3 triangular numbers 10 + 15 + 21 = 46, and dividing by 9 (while ignoring remainder of 1) we get 5 (the 2nd of the pentagonal numbers).

For the next group 28 + 36 + 45 = 109. Again dividing by 9 (and ignoring  the remainder of 1) we get 12 (the 3rd pentagonal number)

Finally to illustrate for the next group 55 + 66 + 78 = 198. And dividing by 9 (and ignoring remainder of 1) we get 22 (the 4th pentagonal number).

So the regular pentagonal number series 1, 5, 12, 22, … can be generated in this manner.


The “shadow” pentagonal sequence (that is generated when n takes on negative values)
can also be generated from successive groupings of 3 triangular numbers.

Here we start with the 2nd triangular number with the 3 numbers in sequence 3, 6 and 10 respectively.
So the sum = 19 which when divided by 9 (again ignoring the remainder of 1) = 2.
The next 3 triangular numbers in sequence gives 15 + 21 + 28 = 64. Then dividing by 9 (and ignoring remainder) we obtain 7.

Again finally to illustrate the next grouping of 3 triangular numbers = 36 + 45 + 55 = 136. Then dividing by 9 (and ignoring remainder) we get 15.

So we have now generated the first 3 members of the “shadow” pentagonal series 2, 7, 15, …
Then the generalised pentagonal sequence combines the regular sequence with its shadow in ascending order of magnitude.    

Again with respect to the powers of x in the pentagonal number theorem, another fascinating observation can be made.

This time we successively take each natural couplet (of positive and negative terms) and divide by 3 concentrating on the absolute value of the result.

So the first two negative powers are 1 and 2 and 1 + 2 = 3 with 3/3 = 1. So this is the 1st term of our new series.

The next couplet of positive powers is 5 and 7 and 5 + 7 = 12 with 12/3 = 4. So this is the 2nd term of the series.

Then the next two negative powers are 12 and 15 and 12 + 15 = 27 with 27/3 = 9. So 9 is the 3rd term of the series.

Finally to illustrate the next two positive powers are 22 and 26 and 22 + 26 = 48 with 48/3 = 16. So 16 is the 4th terms of our series.

So the new series that can be successively generated in this manner is 1, 4, 9, 16, … (i.e. the squares of the natural numbers).