Whatever I feel is interesting - use the white search bar or post labels to find more - see my Facebook page for other content
Showing posts with label math. Show all posts
Showing posts with label math. Show all posts
Tuesday, December 1, 2026
The Collatz Conjecture, 6n +/- 1, and the Reid Spiral
2105.07955
In my humble opinion, the bottom line is that prime numbers follow a fractal pattern. That is to say that primes are a set of self-similar numbers.
"The sky calls to us. If we do not destroy ourselves, we will one day, venture to the stars."
Uncharted territory? Maybe for some. Odd numbers that are not multiples of 3 are all of the form 6n +/- 1. And all primes 5 or greater are of that same form.
In my humble opinion, the bottom line is that prime numbers follow a fractal pattern. That is to say that primes are a set of self-similar numbers.
It's like the Fibonacci spiral. We just don't have the right picture for it yet.
***
Each new chamber is proportionally larger than the previous one, allowing the shell to expand without changing its overall shape
***
The overall "shape" of numbers must stay the same. Thus, any "expansion" must take a spiral form.
There is a spiral in nature which shows the distribution of prime numbers. I'm not sure what it is, but it must exist. Countless scientists must have looked at it without knowing what it meant.
The Reid spiral rotated to the same orientation as the nautilus shell shown above:
Labels:
cryptography,
math,
music,
nature,
technology
Monday, November 30, 2026
AI and the automatic proving of mathematical theorems
https://en.wikipedia.org/wiki/P_versus_NP_problem
***
In a 1956 letter written by Kurt Gödel to John von Neumann, Gödel asked whether theorem-proving (now known to be co-NP-complete) could be solved in quadratic or linear time, and posited that if so, then the discovery of mathematical proofs could be automated.
***
https://lefttosolve.com/live
suggested music
https://www.youtube.com/watch?v=FfforGsXXKM
Sunday, November 22, 2026
a hexagonal spiral proving all primes > 5 have the form 6n +/- 1 (with application to Goldbach Conjecture)
I wonder if it is possible to construct a spiral such that all the primes lie on a single radial line. Perhaps it is such that as the number of radial lines increases, a greater proportion of the primes lies on a single radial line.
Off the top of my head, for the given spiral, one radial line has mostly primes, some perfect squares, and some multiples of 5. The other has mostly primes, some multiples of 5, and some semiprimes.
In either case, it is easy to determine primality for any positive integer x. That is, if x is of the form 6n + 1, check if it is a perfect square or a multiple of 5. If x is of the form 6n - 1, check if it is a multiple of 5.
That seems like a more efficient primality test to me.
a pattern in the number of Collatz iterations for consecutive integers?
The ratio of consecutive terms of the Fibonacci sequence converges on the golden ratio (about 1.618). I wonder if something similar happens with the number of Collatz iterations for consecutive integers.
Just eyeballing it, it looks like the most common ratio is 1, but perhaps the average ratio of a large sample would be close to some fundamental number like the Feigenbaum constant.
Collatz iterations have a random quality similar to the random walk of the logistic map with an r value of about 3.57.
the Collatz Conjecture and pseudorandom number generators
retrieved from: Wayback Machine
Type 239 into the page number box.
So it looks like Von Neumann was wrong when he said: "“Anyone who attempts to generate random numbers by deterministic means is, of course, living in a state of sin.”
sunflower seeds, the Fibonacci sequence, honeycombs, and einstein tiles
In the einstein tiling above, the kite shapes form hexagons. It looks like a honeycomb to me.
I suspect the hexagons of a honeycomb are an aperiodic tiling for the same reason as the aperiodic packing of sunflower seeds: it packs the most into the smallest area.
A class of aperiodic honeycombs with tuneable mechanical properties - ScienceDirect
I wonder if it is possible to fold the hat einstein tile into a 3D shape. The best I can imagine is that it'd look like a funky spoon.
Thursday, November 19, 2026
Tuesday, November 3, 2026
the Collatz conjecture, primes, and numbers that end in 6
All primes greater than 5 end in 1, 3, 7, or 9. Using the 3n + 1 rule of the Collatz conjecture, the corresponding even numbers end with 4, 0, 2, and 8 respectively. So there is no way an iteration of the conjecture on a prime number can produce an even number that ends in 6.
What happens when a number ending in 6 is used as a seed value for the conjecture? Here are some sequences:
6, 3, 10, 5, 16, 8, 4, 2, 1
16, 8, 4, 2, 1
26, 13, 40, 20, 10, 5, 16, 8, 4, 2, 1
36, 18, 9, 28, 14, 7, 22, 11, 34, 17, 52, 26, 13, 40, 20, 10, 5, 16, 8, 4, 2, 1
46, 23, 70, 35, 106, 53, 160, 80, 40, 20, 10, 5, 16, 8, 4, 2, 1
56, 28, 14, 7, 22, 11, 34, 17, 52, 26, 13, 40, 20, 10, 5, 16, 8, 4, 2, 1
66, 33, 100, 50, 25, 76, 38, 19, 58, 29, 88, 44, 22, 11, 34, 17, 52, 26, 13, 40, 20, 10, 5, 16, 8, 4, 2, 1
76, 38, 19, 58, 29, 88, 44, 22, 11, 34, 17, 52, 26, 13, 40, 20, 10, 5, 16, 8, 4, 2, 1
86, 43, 130, 65, 196, 98, 49, 148, 76, 38, 19, 58, 29, 88, 44, 22, 11, 34, 17, 52, 26, 13, 40, 20, 10, 5, 16, 8, 4, 2, 1
96, 48, 24, 12, 6, 3, 10, 5, 16, 8, 4, 2 1
106, 53, 160, 80, 40, 20, 10, 5, 16, 8, 4, 2, 1
Some observations:
In 9 out of 10 cases in the above, the first odd number is prime.
If the seed ends in 6 and is a multiple of 8, it converges quickly.
Generally, as the seed value increases, it takes longer for the process to reach 1.
Further conjectures:
Large primes can be found by using the Collatz conjecture on large seeds which end in 6 and are not multiples of 8.
Thursday, October 8, 2026
Thursday, October 1, 2026
Bertrand's Postulate and a conjecture for any three consecutive primes - key to formula for the next largest prime?
The postulate states that for any integer n >1, there is at least one prime p such that n < p < 2n.
In a similar way, I conjecture that for any three consecutive primes p, q, and r with p < q < r:
(p + q)/r = 2 (approximately)
For large values of p, q, and r, the expression approaches 2.
Checking this conjecture for some sample values:
(991 + 997)/1009 = 1.97
(9967 + 9973)/10007 = 1.992
(99971 + 99989)/99991 = 1.999
A crude approximation for the next largest prime r would then be that r is slightly greater than (p + q)/2.
(99971 + 99989)/2 = 99980
(99991 - 99980)/99980 = 0.00011 or about 0.011%
Because of the Goldbach Conjecture, p + q will always be even and thus (p + q)/2 will always be an integer.
If we wanted to find the next prime larger than 99991, a good initial guess would be 1.00011*99991 = 100002. That isn't prime but 100003 is.
So if you have three consecutive primes, you can get a very good estimate of the next largest prime
by calculating the percent difference as shown above.
Euler's prime formula, the Bunyakovsky Conjecture, and n^2 + n + 1
Euler's prime formula of n^2 + n + 41 produces prime numbers for all integers n from 1 to 40.
If 41 is substituted for another larger prime, it produces a larger proportion of the first 1,000 primes.
n^2 + n + 1 produces prime numbers for all n that are congruent to n = 0 or 2 in modulo 6.
If we understood primes perfectly, we'd understand pi perfectly. Every prime is a little slice of pi.
It all fits together somehow.
Saturday, September 19, 2026
integer factorization reconsidered - trial multiplication
In nature, there is always a path of least resistance. Similarly, in math, there is always an optimal algorithm for any situation.
Regarding the integer factorization problem, only one case is of particular interest for cryptography: the factorization of large semiprimes when the prime factors are nearly equal.
In this case, the most efficient method is to find the smallest integer n such that n^2 exceeds the semiprime. Any semiprime p*q will be less than some n^2 with p < n < q, and q << 2*n.
Suppose we want to factor 988027 and know it is semiprime. Its square root rounded to the nearest integer is 999. From trial multiplication, we find that 992 is the smallest integer that when squared is greater than 988027. And if we systematically check the numbers greater than 992 which end in 1, 3, 7, or 9, we quickly find that 997 is a factor of 988027.
The semiprimes used for cryptography are vastly larger, but the principle is the same. It makes more sense to use trial multiplication before trial division.
Trial multiplication is a method for solving the discrete logarithm problem. I see it as part of a one-two punch for the integer factorization problem.
Thursday, September 17, 2026
the plot thickens
I was pleasantly surprised to find a ternary computer for sale. This part jumped out at me:
It's cooled with mineral oil and copper BBs. The FBI came to my apartment in 2023 to ask me about it.
A cluster of oil-cooled ternary computers would be a real game changer, kind of like this:
World's Largest Raspberry Pi Cluster
Setun - Wikipedia
I'm tempted to buy one and turn it into Deep Dish 3. Here's a pic of Deep Dish 2, which I built in 2021:
More info here:
A cluster of oil-cooled ternary computers would be a real game changer, kind of like this:
Most innovation comes from combining or repurposing existing ideas. A Soviet engineer named Altshuler discovered that. You can use his idea matrix here:
In the case of supercomputers, the ideas to combine are oil-cooling, ternary logic, and Beowulf cluster computing.
A joke for my FBI and NSA minders - I saw this as a screen saver in the NSA building I used to work in.
further reading
Saturday, September 12, 2026
Von Neumann and the Collatz Conjecture
He famously said that: "Anyone who attempts to generate random numbers by deterministic means is, of course, living in a state of sin."
I wonder if he knew about the Collatz Conjecture when he said that.
On his Wikipedia page, I read:
***
At times he could be ignorant of the standard mathematical literature, finding it easier to rederive basic information he needed rather than chase references.
***
So it's possible, even likely, he did not know about it.
The Collatz Conjecture definitely involves a deterministic process, and I say it produces random numbers.
Here is my informal proof of that: given any number, there is no algorithm for determining how many iterations it will take the Collatz Conjecture process to reach 1. There is also no algorithm or equation you could use to find the maximum value of the iterations. Small changes in the initial value produce drastically different results, which is a hallmark of chaos theory.
In this way, the process is akin to rolling dice. The overall and final results can be calculated beforehand, but the specific and intermediate results are unknowable.
If something is deterministic but unpredictable, it is effectively random.
Tuesday, September 8, 2026
conjecture: can all primes greater than 2 be written in the form 2n + 3?
All primes greater than 5 end in either 1, 3, 7, or 9. If n is an integer, 2n + 3 will always be odd, but not necessarily prime. If we further require that n not be a multiple of 3, we eliminate all odd multiples of 3 since 2n + 3 will always be a multiple of 3 if n is a multiple of 3. We can also require that n be an integer whose last digit is not 1, because in those cases, 2n + 3 will always have 5 as the last digit. Likewise, if the last digit of n is a 6, the last digit of 2n + 3 will be 5.
If the conjecture is true, then it makes sense that 1 cannot be written form 2n + 3 since it is not prime. Also, it intuitively makes sense that all other primes would be some combination of the two smallest primes.
Let's make a table
n 2n + 3 prime?
0 3 yes
1 5 yes
2 7 yes
4 11 yes
5 13 yes
7 17 yes
8 19 yes
10 23 yes
13 29 yes
14 31 yes
17 37 yes
19 41 yes
20 43 yes
22 47 yes
23 49 no
25 53 yes
28 59 yes
29 61 yes
32 67 yes
34 71 yes
35 73 yes
37 77 no
38 79 yes
40 83 yes
43 89 yes
44 91 yes
For larger primes, we know that because of the possible last digits, the result of subtracting 3 will always be an even number, and so the result can always be written in the form of 2n.
I have a hunch I'm missing something but feel I'm on the right track. Could this be a new primality test? It may even be a way to find the next largest prime. It seems the conjecture occasionally returns a perfect square or a semiprime instead of a prime number.
The largest known prime number is 2^136279841 − 1. That's not really relevant for the conjecture, but I thought I'd put it here. The prime numbers used for RSA and other modern cryptography are in the range of about 2^300, which has roughly 100 digits.
Let's try n = 100,000.
2n + 3 = 200,003
200,003 is prime.
n = 1,000,000
2n + 3 = 2,000,003
2,000,003 is prime.
n = 5,000,000,000
2n + 3 = 10,000,000,003
10,000,000,003 = 13 × 769231
Well, looks like I have to think about this some more.
Tuesday, August 11, 2026
The Goldbach Conjecture and large primes
Mathematicians like exact solutions. Engineers are satisfied with good approximations. Let's see if there's a pattern among the largest primes smaller than a certain even number
10 7
100 97
1000 997
2000 1999
5000 4999
10000 9973
100000 99991
The corresponding percents are 70, 97. 99.7, 99.95, 99.98, 99.73, and 99.99.
Thus, we can infer that for even numbers greater than 100,000, the largest prime smaller than that number will be about 99% of that number.
So, if we want to find large primes, one way would be to multiply a large even number by 0.99 and using the Miller-Rabin primality test. There is another primality test I have worked on that uses the Collatz Conjecture. It works by using the suspected prime as the seed value for the Collatz Conjecture and then checking to see if the first odd result (that is not a multiple of 5) is prime.
Another way would be to subtract small known primes from the even number and checking if the result is prime.
In the cases of 10,000 and 100,000, the largest prime smaller than either does not form a Goldbach pair. So actually, what we really want to know is: what is the largest prime smaller than an even number that forms a Goldbach pair?
I suspect many such pairs contain 3, 7, 13, 17, etc as the smaller prime.
Saturday, August 8, 2026
understanding algorithms
According to Trakhtenbrot, there is no mathematically precise definition of an algorithm.
More about Trakhtenbrot here: Derpetology: Trakhtenbrot, an Unsung Hero of Computer Science
***
Boris (Boaz) Abramovich Trakhtenbrot was a Russian-Israeli mathematician in logic, algorithms, theory of computation, and cybernetics.
***
A flowchart is like an algorithm. The German animal name flowchart is my favorite.
Here is how I would define one: an algorithm is a finite set of computations with at least one loop. A simple example of this is long division. As an algorithm, it looks like this:
1. Multiply the divisor by a number so that it is close to but does not exceed the dividend. Start with 1 and increment to 9.
2. Subtract the result of step 1 from the dividend and use the remaining number as the new dividend.
3. Repeat steps 1 and 2 until the remaining number is smaller than the divisor.
4. Make a fraction of the remaining number and the divisor, convert it to a decimal, and add it to the rest of the quotient.
The details of the YouTube algorithm for suggesting videos are proprietary, but it works something like this: If people who watch video A also watch video B, video B is suggested after video A is watched. As a user watches more videos, the algorithm gets better at making suggestions because it has more information about what the user likes to watch. The goal of the algorithm is to maximize the amount of time the user spends watching videos.
Algorithms are subject to the halting problem. That is, there is no way of knowing in advance whether an algorithm will get stuck in a loop or not for every possible input.
Simple algorithms tend to be slower than more complex ones. Below are some visual aids.
There are problems that can't be solved with algorithms, but that doesn't mean the problem is unsolvable. Sometimes proving there is no general solution to a problem opens up a new field of math. Group Theory came into being because Galois used it to prove there is no general solution to a 5th order polynomial equation.
Wednesday, August 5, 2026
The Collatz Conjecture, the Goldbach Conjecture, the integer factorization problem, and prime numbers
Today I noticed that if you use the Collatz Conjecture with a prime as a seed, the first odd result greater than 1 that is not a multiple of 5 (greater than 5) will be prime or semiprime. Here are examples with the primes between 1 and 100
2 1
3 10 5...
5 is prime.
5 16 8 4 2 1
7 22 11...
11 is prime.
11 22 34 17...
17 is prime.
13 40 20 10 5...
5 is prime.
17 52 26 13...
13 is prime.
19 58 29...
29 is prime.
23 70 35 106 53...
53 is prime.
29 88 44 22 11...
11 is prime.
31 94 47 142 71...
71 is prime.
37 112 56 28 14 7...
7 is prime.
41 124 62 31...
31 is prime.
43 130 65 196 98 49...
49 is semiprime.
47 142 71...
71 is prime.
53 160 80 40 10 5...
5 is prime.
59 178 89...
89 is prime.
61 184 92 46 23...
23 is prime.
67 202 101...
101 is prime.
71 214 107...
107 is prime.
73 220 110 55 166 83...
83 is prime.
79 238 119...
119 is semiprime.
83 250 125 376 188 94 47...
47 is prime.
89 268 134 67...
67 is prime.
97 292 146 73...
73 is prime.
skipping a bit
997 2992 1496 748 374 187...
187 is semiprime with factors of 11 and 17.
9973 29920 14960 7480 3740 1870 935 2806 1403...
1403 is semiprime with factors 23 and 61.
By combining this with the Goldbach Conjecture, we have a new primality test and a way of generating primes. Start with a large even number (100 digits or more) and divide by 2 until you get an odd number. Then use that odd number as a seed for the Collatz conjecture. The first odd result that isn't a multiple of 5 will be either prime or semiprime. I suspect that as for large seeds, the first odd result is more likely to be semiprime than prime.
In this way, it is possible to build up a library of large semiprimes, which eases the integer factorization problem.
What happens if the seed is semiprime?
187 562 281...
281 is prime.
1403 4210 2105 6316 3158 1579...
1579 is prime.
So if we start with a semiprime, we can get an actual prime in a few iterations.
For any given range, there will be somewhat more semiprimes than primes.
Monday, July 6, 2026
education, immigration, or eugenics? - what brings in more smart people?
The scientific and technological achievements of the US are not because the US has the best educational system, but because it attracts smart people from all over the world. Nuclear weapons and the moon landings were made possible by foreign-born scientists who came to America for a better life (freedom and prosperity).
In that case, the US should be spending less on education and more on recruiting talented foreigners. Good education can make smart people even smarter, but it can't turn average joes into geniuses. Unfortunately, the best evidence is that intelligence is mostly genetic.
Eugenics gets a bad rap for many reasons, yet sperm bank customers consistently demand donors with high IQs. Paying high-IQ men to donate sperm would be an easy way to increase the number of smart people. Mensa already has a database of such people.
There are many existing incentives that reward smart Americans such as scholarships, but these do not lead to smart people having more children.
More smart people = a better life for everyone. If it's not possible to breed more of them, the ones we have need to be kept alive, happy, and working.
There is evidence that certain unorthodox educational approaches can be helpful with low-performing groups. This Texas math teacher managed to boost test scores with rap:
Well done, but the US Math Olympiad team remains heavily Asian. They don't train by singing songs about math.
Here is what US math teachers are up against:
And here is the best attempt to make math as interesting as Star Wars:
Subscribe to:
Posts (Atom)























