Tuesday, 26 May 2020

The Broken Stick Puzzle


Recently I was watching a YouTube video in which a person was investigating the so-called Broken Stick Puzzle using GeoGebra. I realised that it would be interesting to investigate the problem using SageMath, which is what I'll demonstrate in this post. 

However, firstly let's state what this puzzle is about:
Two points are chosen independently and at random on a stick. The stick is broken at those points to form three smaller sticks. What is the probability these three sticks can form a triangle?
My first thought was that the probability would be 0.5 but that turned out to be wrong. Figure 1 shows the variables that I used in my SageMath algorithm, namely pos1, pos2, side1, side2 and side3 for the case where pos1<pos2.

Figure 1

The code runs as follows, in which the variable YES, NO and trials are used as well:
YES,NO=0,0
trials=100000
for i in [1..trials]:
    pos1=RR.random_element(0,1)
    pos2=RR.random_element(0,1)
    side1=min(pos1, pos2)
    side2=abs(pos1-pos2)
    side3=1-(side1+side2)
    if max(side1, side2, side3)>0.5:
        NO+=1
    else:
        YES+=1
print("Relative Frequency of Triangles", n(YES/trials, digits=4))
print("Relative Frequency of non-Triangles", n(NO/trials, digits=4))
 The result, for 100,000 trials, are as follows:
Relative Frequency of Triangles 0.2515
Relative Frequency of non-Triangles 0.7485
Here is the permalink to SageMathCell. Of course, this doesn't prove that the probability of forming a triangle is 0.25. However, it can be shown why the probability is 0.25. This proof is taken from this site:
This altitude theorem can be used to find an answer to a famous probability problem:  If a stick of length x is broken into three pieces, what is the probability that the three pieces can be used to construct a triangle? 
This problem is more difficult than it may originally seem because the sum of the two smaller sides of the triangle must be greater than the third side.  For instance, if the stick is broken into pieces of 2 inches, 3 inches, and 10 inches it will be impossible to construct a triangle. 
Given an equilateral triangle with altitude x, it is possible to use geometry to solve the problem.
 
Any point within the triangle can represent how the stick is broken into three pieces.  For instance, if point P is selected, that represents that the stick is being broken into pieces with length a, b, and c.  By the altitude theorem, it is known that a + b + c = x
In this example it would not be possible to make a triangle, because a + b < c .
To find the probability that the two smaller sides will sum to be larger than the third side it is helpful to divide the equilateral triangle into four smaller equilateral triangles, by connecting the midpoints of the sides.
  
As long as point P is selected in the middle triangle, it will be possible to create a triangle from the three pieces.  (Why?)  The probability that randomly selected P is in the middle triangle is 1/4 so the probability that a triangle can be created from breaking a stick into three pieces is 1/4.
In this proof, the "altitude theorem" referred to is better known as Viviani's Theorem. It's easy to show, using the diagram, that \(s+t+u=h\) where \(h\) is the altitude of the triangle. To do this, suppose the equilateral triangle has a side length of \(a\). Then:$$ \text{Area of Triangle }=\frac{a \times h}{2}=\frac{a \times s}{2}+\frac{a \times t}{2}+\frac{a \times u}{2}$$The 2's and a's cancel out to leave the result of the theorem.

For any interior point P, the sum of the lengths s + u + t
equals the height of the equilateral triangle.

There are variations on this puzzle. Here is one of them taken from this source:
Suppose point A is chosen first, at random, and the stick is broken at this location. Point B is then chosen at random from the longer of the two resulting sticks. What is the probability these three sticks form a triangle? 
Here is the code for this situation (permalink):
YES,NO=0,0
trials=1000000
for i in [1..trials]:
    pos1=RR.random_element(0,1)
    if pos1>0.5:
        pos2=RR.random_element(0, pos1)
        side1=pos2
        side2=pos1-pos2
    else:
        side1=pos1
        pos2=RR.random_element(0,1-pos1)
        side2=pos2
    side3=1-(side1+side2)
    if max(side1, side2, side3)>0.5:
        NO+=1
    else:
        YES+=1
print("Relative Frequency of Triangles", n(YES/trials, digits=4))
print("Relative Frequency of non-Triangles", n(NO/trials, digits=4))
The result, this time for 1,000,000 trials, is as follows:
Relative Frequency of Triangles 0.3865
Relative Frequency of non-Triangles 0.6135
Thus the likelihood of forming a triangle increases because we never break the shorter stick, as was possible in the first instance. At the moment I can't explain the numbers that have been thrown up. Here is the second variant:
Suppose point A is chosen first, at random, and the stick is broken at this location. One of the two resulting sticks is then chosen at random and split at a random location. What is the probability these three sticks form a triangle? This may sound the same as the original problem, but it isn’t!
Here is the algorithm I developed for this situation (permalink). Again it's for a million trials:
YES,NO=0,0
trials=1000000
for i in [1..trials]:
    pos1=RR.random_element(0,1)
    pos2=RR.random_element(0,pos1)
    side1=pos1
    side2=pos2
    side3=1-(side1+side2)
    if max(side1,side2,side3)>0.5:
        NO+=1
    else:
        YES+=1
    pos2=RR.random_element(0,1-pos1)
    side1=pos1
    side2=pos2
    side3=1-(side1+side2)
    if max(side1,side2,side3)>0.5:
        NO+=1
    else:
        YES+=1
YES=int(YES/2)
NO=int(NO/2) 
print("Relative Frequency of Triangles", n(YES/trials, digits=4))
print("Relative Frequency of non-Triangles", n(NO/trials, digits=4)) 
This time the results are:
Relative Frequency of Triangles 0.1730
Relative Frequency of non-Triangles 0.8270
This situation produces the least likelihood of a triangle being formed. After the first break, the shorter of the two pieces can be chosen and broken again but this is futile because the other piece is already greater than 0.5. The longer of the two pieces can also be chosen with equal probability and broken. I can't explain the numbers that have been thrown up. I'll keep investigating.

A much harder question is:
Five points are chosen independently and at a random on a stick. The stick is broken at those points to form six smaller sticks. What is the probability these six sticks can form a tetrahedron?
Here is a recent undergraduate student paper about the topic: link.

Saturday, 23 May 2020

Knight Tours

I've already made several posts relating mathematics and chess. These are:
Today I turned 25983 days old and my investigation of the number 25983 revealed an interesting chess connection. Suppose we number the squares on an infinite chess board starting with 0 and then counting in an anticlockwise spiral as shown in Figure 1.

Figure 1

Suppose we devise a Knight Tour such that the Knight starts on square 0 and then moves always to the unvisited square closest to the origin. "Closest to the origin" is meant in the sense of Euclidean distance, and in case of a tie, the square coming earliest on the spiral is chosen.

On the first move, the Knight could move to squares 9, 11, 13, 15, 17, 19, 21 or 23. All these squares are the same distance from the 0 square but 9 is chosen because it comes first in the spiral. From 9, subsequent squares are 2, 5, 8, 3, 6, 1, 4, 7, 10, 13 and so on. 

These numbered squares form OEIS A326924:


A326924

Squares visited by a knight on a spirally numbered board, moving always to the unvisited square closest to the origin.


Figure 2 shows a slightly different depiction of the squares with more squares viewable:

Figure 2

The initial terms are of the sequence are:
0, 9, 2, 5, 8, 3, 6, 1, 4, 7, 10, 13, 28, 31, 14, 11, 26, 23, 44, 19, 22, 43, 40, 17, 34, 37, 18, 15, 32, 29, 52, 25, 46, 21, 76, 47, 50, 27, 12, 33, 16, 39, 20, 45, 24, 51, 48, 77, 114, 73, 70, 105, 38, 35, 60, 93, 30, 53, 84, 49, 78, 115, 74, 41, 68, 103, 36, 61, 94, 57, 54, 85, 124, 81, ...
What's really interesting about this tour is that the knight gets trapped at the 22325th move, where it can't reach any unvisited square. The square on which the Knight is stuck is 25983!

So nothing in this post of deep mathematical significance but it always strikes me as fascinating how numbers can be associated with such diverse phenomena. In this case, it is a Knight's tour of an infinite, spirally numbered chessboard.

For information on other Knight tours visit https://oeis.org/wiki/Knight_tours

Saturday, 9 May 2020

On the Randomness of Pi's Digits


Much has been written about the randomness of the \(\pi\)'s digits but usually in the context of the decimal number system. Looking at \(\pi\) in terms of the binary number system however, introduces a simplification that can be exploited to investigate its randomness.

The first ten decimal digits of \(\pi\) are 3.141592654 which is represented in binary as:


11.00100100001111110110101010001000100

SageMathCell enables us to examine the first one million decimal digits of \(\pi\), convert these to binary and then graph the cumulative balance between the number of 0's and 1's. The first two 1's are ignored and only the 0's and 1's following the decimal point are considered. Figure 1 shows the result:

Figure 1

Figure 2 shows the code that I used to generate this graph:

Figure 2: permalink

How does this graph compare to that of a sequence of randomly generated 0's and 1's? It's easy enough to undertake this comparison. To this end, I looked at a string of three million randomly generated 0's and 1's because this is approximately the number of binary digits resulting from the conversion of one million decimal digits. The result is shown in Figure 3. Of course, successive repetitions of this algorithm will produce different graphs whereas the graph for \(\pi\) will be always the same. However, it's the general form of the two graphs that I want to compare.

Figure 3: permalink

Figure 4 shows the code that was used to produce this result.

Figure 4: permalink

Not surprisingly, the form of the two graphs is very similar. The point of the exercise is that the conversion of \(\pi\) to binary digits provides an easy visual comparison of its digits with randomly generated 0's and 1's.

ADDENDUM: March 17th 2021

There are of course many interesting facts concerning \(\pi\). Here are some of them:
  • The number pi is literally infinitely long. But the number 123456 doesn’t appear anywhere in the first million digits of \( \pi \). It is a bit shocking because if a million digits of \( \pi \) don’t have the sequence 124356, it definitely is the most unique number. Source.

  • Did you know there is actually an entire language based entirely on \( \pi\)? Called Pilish, the numbers of letters in successive words match the digits in \(\pi\). Mike Keith, a devoted Pilish-lover, even wrote an entire book in Pilish called "Not a Wake." The rules of the language and its variants are described here.

  • Rivers bend to \( \pi\): The way a river meanders is described by its sinuosity; the length of its winding path divided by the distance from the source to the ocean as measured in a straight line. Strange as it may be, the average river has a sinuosity of around 3.14, according to the journal Science. Source.
If you hold a mirror to a circle, it looks like a circle. If you hold a mirror up to 3.14, it spells PIE! See Figure 2.
Figure 2: source

Someone has developed a search engine that can be used to find digit sequences in \( \pi \) in the first \(2 \times 10^0 \) digits of \pi. Figure 3 shows the output if 123456789 is input.


Figure 3

Pressing the next link bring brings up what is shown in Figure 4:


Figure 4
      
The site can also be used to find positions of e, \(\sqrt{2} \) and \(\phi\) where SageMath for example struggles with one million decimal places.

Here is a GeoGebra link that will allows the user to use a slider to display decimal places of \(\pi\).

Friday, 17 April 2020

Powerful Numbers Revisited

It's been a long time, May 1st 2016 to be precise, since I wrote about powerful numbers. My post on that date was titled Achilles Numbers, Powerful Number and Perfect Powers. It wasn't a deep or lengthy post as Figure 1 demonstrates:

Figure 1

Today I turned 25947 days old and, in my investigation of this number, I was reminded once again of powerful numbers via Numbers Aplenty. Of this number, the site said:
It is a powerful number, because all its prime factors have an exponent greater than 1 and also an Achilles number because it is not a perfect power.
Clicking on the Numbers Aplenty link to powerful numbers, it says that:
In practice, the set of powerful numbers consists of the number 1 plus all numbers in whose factorisations the primes appears with exponents greater than 1. This set coincides with the set of numbers of the form \(a^2b^3\), for \(a,b \ge 1\). 
The powerful numbers up to 25947 are as follows:
1, 4, 8, 9, 16, 25, 27, 32, 36, 49, 64, 72, 81, 100, 108, 121, 125, 128, 144, 169, 196, 200, 216, 225, 243, 256, 288, 289, 324, 343, 361, 392, 400, 432, 441, 484, 500, 512, 529, 576, 625, 648, 675, 676, 729, 784, 800, 841, 864, 900, 961, 968, 972, 1000, 1024, 1089, 1125, 1152, 1156, 1225, 1296, 1323, 1331, 1352, 1369, 1372, 1444, 1521, 1568, 1600, 1681, 1728, 1764, 1800, 1849, 1936, 1944, 2000, 2025, 2048, 2116, 2187, 2197, 2209, 2304, 2312, 2401, 2500, 2592, 2601, 2700, 2704, 2744, 2809, 2888, 2916, 3025, 3087, 3125, 3136, 3200, 3249, 3267, 3364, 3375, 3456, 3481, 3528, 3600, 3721, 3844, 3872, 3888, 3969, 4000, 4096, 4225, 4232, 4356, 4489, 4500, 4563, 4608, 4624, 4761, 4900, 4913, 5000, 5041, 5184, 5292, 5324, 5329, 5400, 5408, 5476, 5488, 5625, 5776, 5832, 5929, 6075, 6084, 6125, 6241, 6272, 6400, 6561, 6724, 6728, 6859, 6889, 6912, 7056, 7200, 7225, 7396, 7569, 7688, 7744, 7776, 7803, 7921, 8000, 8100, 8192, 8281, 8464, 8575, 8649, 8712, 8748, 8788, 8836, 9000, 9025, 9216, 9248, 9261, 9409, 9604, 9747, 9800, 9801, 10000, 10125, 10201, 10368, 10404, 10584, 10609, 10648, 10800, 10816, 10952, 10976, 11025, 11236, 11449, 11552, 11664, 11881, 11907, 11979, 12100, 12167, 12168, 12321, 12348, 12500, 12544, 12769, 12800, 12996, 13068, 13225, 13448, 13456, 13500, 13689, 13824, 13924, 14112, 14161, 14283, 14400, 14641, 14792, 14884, 15125, 15129, 15376, 15488, 15552, 15625, 15876, 16000, 16129, 16200, 16384, 16641, 16807, 16875, 16900, 16928, 17161, 17424, 17496, 17576, 17672, 17689, 17956, 18000, 18225, 18252, 18432, 18496, 18769, 19044, 19208, 19321, 19600, 19652, 19683, 19773, 19881, 20000, 20164, 20449, 20736, 20808, 21025, 21125, 21168, 21296, 21316, 21600, 21609, 21632, 21904, 21952, 22201, 22472, 22500, 22707, 22801, 23104, 23328, 23409, 23716, 24025, 24200, 24300, 24336, 24389, 24500, 24649, 24696, 24964, 25000, 25088, 25281, 25600, 25921, 25947
Some powerful numbers are perfect powers because they can be expressed in the form \(m^k\) for \(m > 1\) and \(k>1\). An example is 9000 that can be expressed as \(30^2\). Powerful numbers that are not perfect powers are referred to as Achilles numbers and my number of the day (25947) is just such a number. This number has the special property that it of the form \(a^2b^3\) where \(a\) and \(b\) are both prime. Powerful numbers of this type form OEIS A143610:



A143610

Numbers of the form \(p^2 \times q^3\), where \(p\) and \(q\) are distinct primes.


Figure 2 shows the code that I wrote to generate this sequence is SageMathCell. There may well be more elegant ways to do this but this is what I came up with:

Figure 2: permalink

The sequence of numbers up to and including 25947 is:
72, 108, 200, 392, 500, 675, 968, 1125, 1323, 1352, 1372, 2312, 2888, 3087, 3267, 4232, 4563, 5324, 6125, 6728, 7688, 7803, 8575, 8788, 9747, 10952, 11979, 13448, 14283, 14792, 15125, 17672, 19652, 19773, 21125, 22472, 22707, 25947
Here is some further interesting information about powerful numbers, taken from Numbers Aplenty:
There are infinite pairs of consecutive powerful numbers, the smallest being (8, 9), but Erdös, Mollin, and Walsh conjectured that there are no three consecutive powerful numbers. 
Heath-Brown has shown in 1988 that every sufficiently large natural number is the sum of at most three powerful numbers. Probably the largest number which is not the sum of three powerful numbers is 119
The sum of the reciprocals of the powerful numbers converges to:$$ \frac{\zeta(2) \times \zeta(3)}{\zeta(6)} \approx  1.9435964 \dots $$Numbers Aplenty also has some interesting information about Achilles numbers.
There are infinite pairs of consecutive Achilles numbers, the smallest being: \(5425069447 = 7^3 \times 41^2 \times 97^2, 5425069448 = 2^3 \times 26041^2\) 
Actually, Richard B. Stanley has proved that each integer can be expressed in infinite ways as the difference of two coprime Achilles numbers. 
Every number greater that 2370 can be expressed as the sum of Achilles numbers. 
The smallest 3 × 3 magic square of Achilles numbers is shown in Figure 3:
Figure 3

The Achilles numbers, up to 25947, are:
72, 108, 200, 288, 392, 432, 500, 648, 675, 800, 864, 968, 972, 1125, 1152, 1323, 1352, 1372, 1568, 1800, 1944, 2000, 2312, 2592, 2700, 2888, 3087, 3200, 3267, 3456, 3528, 3872, 3888, 4000, 4232, 4500, 4563, 4608, 5000, 5292, 5324, 5400, 5408, 5488, 6075, 6125, 6272, 6728, 6912, 7200, 7688, 7803, 8575, 8712, 8748, 8788, 9000, 9248, 9747, 9800, 10125, 10368, 10584, 10800, 10952, 10976, 11552, 11907, 11979, 12168, 12348, 12500, 12800, 13068, 13448, 13500, 14112, 14283, 14792, 15125, 15488, 15552, 16000, 16200, 16875, 16928, 17496, 17672, 18000, 18252, 18432, 19208, 19652, 19773, 20000, 20808, 21125, 21168, 21296, 21600, 21632, 22472, 22707, 23328, 24200, 24300, 24500, 24696, 25000, 25088, 25947
In saying that "Every number greater that 2370 can be expressed as the sum of Achilles numbers", it should be borne in mind that some numbers may require as many as five Achilles numbers to be added together. For example, 3333 = 200 + 392 + 648 + 968 + 1125 without repetition of numbers or, with repetition allowed, the following:

72 + 200 + 968 + 968 + 1125 = 3333
72 + 392 + 392 + 1125 + 1352 = 3333
108 + 500 + 800 + 800 + 1125 = 3333

For 3333, the minimum number required is thus five but sums can be formed using more than this e.g. 72 + 200 + 392 + 392 + 1125 + 1152 = 3333.

Thursday, 9 April 2020

The Doodle Problem


I came across the following problem on this site:
Can you make 100 by interspersing any number of pluses and minuses within the string of digits 9 8 7 6 5 4 3 2 1? You can't change the order of the digits! So what's the least number of pluses and minuses needed to make 100?
The originator of the problem called it a "doodle problem" because he felt it was "one that's best worked on during meetings where you might be doodling otherwise". It's easy enough to come up with a solution but not necessarily one that involves the least number of pluses and minuses. My solution was 9-8+76-5+4+3+21.

Referring to the originator's solution (link), he began:
A lot of trial and error is needed, and, although there are ways to help limit the set of possibilities, there isn’t a surefire method of arriving at a solution in a reasonable amount of time with a pen and paper. 
To start with, we might notice the first two digits make the number 98, which is quite close to 100. So, if we can add and subtract the rest of the single digits to make 2, then we’ll have 100. In fact, there are eight ways to do this: 
98 + 7 + 6 - 5 - 4 - 3 + 2 - 1 
98 + 7 - 6 + 5 - 4 + 3 - 2 - 1 
98 + 7 - 6 + 5 - 4 - 3 + 2 + 1 
98 + 7 - 6 - 5 + 4 + 3 - 2 + 1 
98 - 7 + 6 + 5 + 4 - 3 - 2 - 1 
98 - 7 + 6 + 5 - 4 + 3 - 2 + 1 
98 - 7 + 6 - 5 + 4 + 3 + 2 - 1 
98 - 7 - 6 + 5 + 4 + 3 + 2 + 1 
But we can do better—we can make 100 with fewer than 7 pluses and minuses. 
Here’s one way to make sure we find all possibilities: use a computer simulation. Each pair of digits can be connected by either nothing, a plus sign, or a minus sign. Since there are eight paired connections, there are \(3^8 = 6,561\) possible combinations of pluses and minuses. I simulated each one of these combinations to determine which sum to 100.
So at least my solution involved only six pluses and minuses but this may still not be the least number possible. I was intrigued at the prospect of a computer simulation using SageMathCell to find all possible solutions along with those that contained the minimum number possible. However, I haven't been able to figure out how to do this. I'll keep trying.

The originator succeeded with his computer simulation however, and came up with the following results:
The simulation unearthed that there are seven other ways of making 100: 
98 - 7 - 6 - 5 - 4 + 3 + 21 
9 + 8 + 76 + 5 + 4 - 3 + 2 - 1 
9 + 8 + 76 + 5 - 4 + 3 + 2 + 1 
9 - 8 + 76 + 54 - 32 + 1 
9 - 8 + 76 - 5 + 4 + 3 + 21 
9 - 8 + 7 + 65 - 4 + 32 - 1 
98 - 76 + 54 + 3 + 21 
The bolded solution is the winner. It uses only four pluses and minuses! 
The computer simulation also revealed that it’s possible to make every number from 1 to 100, which could keep you doodling for many meetings. In fact, it’s possible to make every number in more ways than one with one notable exception: 9 + 87 - 65 + 4 - 32 - 1 is the unique way to make 2.
This interesting little problem is similar to the selfie numbers that I posted about recently. The difference is that more operations than just addition and subtraction can be used in creating selfie numbers and the goal with them is always to recreate the original number. Here is a link to that post.

Saturday, 4 April 2020

The abc Conjecture and Fermat's Last Theorem

An article appeared in Scientific American's website on April 3rd 2020 titled Mathematical Proof That Rocked Number Theory Will Be Published and which began:
Figure 1: Shinichi Mochizuki
After an eight-year struggle, embattled Japanese mathematician Shinichi Mochizuki has finally received some validation. His 600-page proof of the abc conjecture, one of the biggest open problems in number theory, has been accepted for publication. 
Acceptance of the work in Publications of the Research Institute for Mathematical Sciences (RIMS)—a journal of which Mochizuki is chief editor, published by the institute where he works at Kyoto University—is the latest development in a long and acrimonious controversy over the mathematicians’ proof. 
Two other RIMS mathematicians, Masaki Kashiwara and Akio Tamagawa, announced in Japanese the publication at a 3 April press conference in Kyoto. The paper “will have a big impact”, said Kashiwara. When asked how Mochizuki reacted to news of the paper’s acceptance, Kashiwara said, “I think he was relieved.” 
Mochizuki, who has denied requests for interviews over the years, did not appear and did not make himself available to reporters. 
Eight years ago, Mochizuki posted four massive papers online, claiming to have solved the abc conjecture. The work baffled mathematicians, who spent years trying to understand it. Then, in 2018, two highly respected mathematicians said they were confident that they had found a flaw in Mochizuki’s proof—something many saw as death blow to his claims. 
The latest announcement seems unlikely to move many researchers over to Mochizuki’s camp. “I think it is safe to say that there has not been much change in the community opinion since 2018,” says Kiran Kedlaya, a number theorist at the University of California, San Diego, who was among the experts who put considerable effort over several years trying to verify the proof. Another mathematician, Edward Frenkel of the University of California, Berkeley, says, “I will withhold my judgment on the publication of this work until it actually happens, as new information might emerge.”
The article goes on to describe the abc conjecture in these terms:
The ‘abc conjecture’, the problem Mochizuki claims to have solved, expresses a profound link between the addition and multiplication of integer numbers. Any integer can be factored into prime numbers, its ‘divisors’: for example, 60 = 5 x 3 x 2 x 2. The conjecture roughly states that if a lot of small primes divide two numbers \(a\) and \(b\), then only a few, large ones divide their sum, \(c\). 
Let's look at a different definition now, taken from Wikipedia:
Take three positive integers, \(a\), \(b\) and \(c\) (hence the name) that are relatively prime and satisfy \(a + b = c\). If \(d\) denotes the product of the distinct prime factors of \(a \times b \times c\), the conjecture essentially states that \(d\) is usually not much smaller than \(c\). In other words: if \(a\) and \(b\) are composed from large powers of primes, then \(c\) is usually not divisible by large powers of primes.
What's highlighted in red is essentially saying the same thing and provides an approach to proving Fermat's Last Theorem. To see this, let's look at \(a=13^{22}\) and \(b=11^{22}\) as an example. We know that Fermat's Last Theorem hopes to find a value for \(n>2\) such that:$$a^n+b^n=c^n \text{ for integer values of }a,b,c$$However, the \(abc\) conjecture indicates that for \(13^{22}+11^{22}\) this is highly unlikely. In fact, we have:$$13^{22}+11^{22}=2 \times 5 \times 29 \times 44617 \times 955769 \times 266300690657$$Here is another example:$$101^{19}+197^{19}=2 \times 149 \times 229 \times 1483 \times 110398608667213673 \times 3521300862956110103$$So from those two examples, one gets a glimpse of how a generalised approach using the \(abc\) conjecture might be used to provide a proof of Fermat's Last Theorem.

Of course, neither of the previous two definitions is a formal definition of the conjecture. We'll get to that shortly. In the meantime, here is a Numberphile video that appeared soon after Mochizuki's paper appeared:



In the video, the conjecture is described as follows where rad is the product of the distinct prime factors:

If \(a\) and \(b\) are coprime integers and \(a\)+\(b\)=\(c\) then (in general):$$ \text{rad}(abc)^k>c$$If \(k=1\) there are infinitely many exceptions.
If \(k>1\) there are finitely many exceptions.

He quotes \(3 + 125 =128\) as an example of an exception when \(k=1\). In this case, we have \( \text{rad}(3, 125, 128) = 3 \times 5 \times 2 = 30 < 128\). For the examples that I used earlier however, the opposite is the case. Figure 1 shows a SageMathCell screenshot for \(13^{22}+11^{22}\), with permalink included:

Figure 1: permalink

The definitions can get more technical than those quoted earlier but that's probably enough for now.

Friday, 3 April 2020

Recursive Prime Generating Sequences

If we multiply any number by 2 and add 1, the result is an odd number that may or may not be prime. For example, 2 * 3 + 1 = 7 which is prime but 2 * 3 * 4 + 1 = 25 is not prime. So starting with 2 and multiplying by the next number 3 yields a prime but multiplying by the next number 4 gives a composite number. So let's ignore the 4 and just work with 2 and 3. Now 2 * 3 * 5 + 1 = 31 which is prime. We now have 2, 3 and 5. Continuing on, we find that 2 * 3 * 5 * 6 + 1 = 181 which is prime. Now we have 2, 3, 5 and 6. However, 2 * 3 * 5 * 6 * 7 + 1 = 1261 = 13 * 97 and this is composite. If we continue this process up to 1000, including in our list only those numbers that multiply together to give a prime when 1 is added, we arrive at the following list:
2, 3, 5, 6, 9, 12, 16, 22, 25, 29, 31, 35, 47, 57, 61, 66, 79, 81, 108, 114, 148, 163, 172, 185, 198, 203, 205, 236, 265, 275, 282, 294, 312, 344, 359, 377, 397, 398, 411, 427, 431, 493, 512, 589, 647, 648, 660, 708, 719, 765, 887, 911, 916, 935
Figure 1 shows the SageMath algorithm to produce the list which forms part of OEIS A046966:

Figure 1: permalink

The primes resulting from this multiplication of numbers get large quickly as the following progression shows (OEIS A046972):
2, 3, 7, 31, 181, 1621, 19441, 311041, 6842881, 171072001, 4961088001, 153793728001, 5382780480001, 252990682560001, 14420468905920001, 879648603261120001, 58056807815233920001, 4586487817403479680001
Mathematically if S = {2, 3, 5, 6, 9, 12, 16, ... }, then the resulting primes can be represented as \( 1+\displaystyle \prod_{i=1}^n k_i \) where \(k_i \in \) S and \(k_1=2\), \(k_2=3\), \(k_3=5\) etc.

If we impose the condition that only primes will be used to generate primes, then a different set of numbers arise. Here are the first members of the set, made of primes below 1000: 2, 3, 5, 7, 11, 19, 29, 37, 47, 67, 103, 179, 191, 223, 271, 293, 317, 577, 643, 673, 809, 863 and 877. These numbers form a part of OEIS A039726. Figure 2 shows the modified SageMath code used to generate these numbers:

Figure 2: permalink

Mathematically if T = {2, 3, 5, 7, 11, 19, 29, ... } then the resulting primes can be represented as \( 1+\displaystyle \prod_{i=1}^n p_i \) where \(p_i  \in \) T and \(p_1=2\), \(p_2=3\), \(p_3=5\) etc.

Again the primes arising from this multiplication of primes get large quickly (OEIS A087864):
3, 7, 31, 211, 2311, 43891, 1272811, 47093971, 2213416591, 148298911531, 15274787887591, 2734187031878611, 522229723088814511, 116457228248805635731, 31559908855426327282831
These prime generating sequences provide an easy way to get a sequence of very large primes easily. I stumbled upon OEIS A039726 because 25933 is a member of that sequence and 25933 is the number of days old that I am today on my 71st birthday. Here is the full sequence of primes up to and including 25933:
2, 3, 5, 7, 11, 19, 29, 37, 47, 67, 103, 179, 191, 223, 271, 293, 317, 577, 643, 673, 809, 863, 877, 1049, 1093, 1129, 1151, 1381, 1613, 1637, 2089, 2131, 2311, 2957, 3623, 3833, 4253, 4271, 4423, 4673, 5939, 7717, 8167, 9133, 9533, 9539, 9679, 11059, 11743, 11969, 14759, 15859, 15971, 16139, 17431, 17713, 17761, 19309, 19373, 20747, 20983, 23741, 25261, 25933
 The prime resulting from multiplying 25933 by all the previous primes in the sequence is:

39245917564948194983835869291566473410857839336973406163917903204229432402730189405597557200354010052143063430004924215607042377998480357473041097452582168381147410469490307765855029111404711092751691679691