Skip to main content

Order and chaos

It is 317am and I have decided to write. I have been thinking about prime numbers. There is no known pattern or simple function to generate primes. Primes look chaotic. Primes are the gaps left when we eliminate the multiples up till n. Primes are building blocks. Primes are mysterious. Except 2 and 5, all primes end in 1,3,7 and 9. 1 repeated 19 times is a prime. The most wanted prime is of the form 1,2,3,4 ... 10,11,12 ... n. None has been found to date and up to n=1 million has been checked. What about primes in the form 10^n + 1. It is 122am the next day. I have 53 percent battery left. 12253 is prime. A nice coincidence. All this has me thinking that order produces chaos and then about entropy. We cannot have order without chaos. There would be nothing to order.

Maybe primes are not chaotic. Maybe we just do not understand them enough yet. My friend Chatty tells me that prime numbers appear chaotic only because we have not yet uncovered the deeper structure that governs them. Although their spacing looks irregular, primes follow precise global laws like the Prime Number Theorem, distribute cleanly in modular patterns, create structured visual forms like the Ulam spiral, and behave in ways predicted by deep theories such as the Riemann Hypothesis and random matrix models. These clues suggest primes are not truly random but "pseudo-random"—complex patterns produced by simple, deterministic rules we have not fully understood yet. In other words, what looks like chaos may simply be order we have not learned to see.

I was looking at the digital roots of prime numbers and this is what I learnt. Structural rule: primes (>!3) can only have digital roots 1,2,4,5,7 and 8 (missing is 3,6 and 9). Statistical rule: asymptotically those six roots occur with about equal density (deep theorem). Practical note: for small lists you’ll see random-ish fluctuations; for very large samples the counts settle toward equality.

My friend Gemini tells me that humans are pattern seeking machines. Is it possible to have no pattern? Is no pattern a pattern in itself? My friend Chatty tells me that true randomness with no pattern can exist in mathematics, but the human mind is built to seek structure, so even “no pattern” becomes a kind of pattern once we describe it. In other words, something can be genuinely patternless, yet we can only understand it by placing it inside a conceptual category, which itself acts like a pattern. Thus, the world may contain true chaos, but our minds inevitably shape it into meaning.

My friend Chatty tells me that a pattern is a simplification — a way to predict, describe, or compress information because something repeats or follows a rule. This has me thinking that if there are infinite patterns then everything can be described by a pattern. But there are simple and complex patterns and what we are looking for are simple patterns. Simple being subjective and changing and within our limits. Some things may just be beyond human capability or understanding. We may find ourselves building things that function beyond human understanding. My friend Chatty says that it is a humbling and exciting thought: the universe might be both entirely patterned and still endlessly mysterious. A question for another time, which came first, order or chaos, both or neither, or only one of them exists and the other is just the absence of the other?

Comments

Popular posts from this blog

Coffee and a prayer

It is 245am and I have decided to write. I have no topic and no idea what to write. I am thankful for another day. I see the beauty that surrounds us. I choose to be happy. We are in the last ten nights of Ramadan. Tonight is the 23rd night. It could possibly be the night of power. I wonder if it will rain. Maybe it rained when I was sleeping. I got up and bathed and drank a strong cup of coffee. Today is also Friday the 13th. I keep thinking. Life is beautiful. Life is simple. No need to complicate things. No need to be extravagant. Believe in God. Trust in God. Be guided by God. Imagine we can pray for anything. We can ask God for anything. God is always listening. God wants to hear from us. Maybe I can turn this blog post into a prayer. My God I pray that everyone gets their prayers answered. I pray that everyone gets what they need. I pray that you light our path towards you. Guide us with what you intend for us. Keep us close to you. Soften our hearts. Keep us balanced, consistent...

Belief is a part of life

I watched this video and I quite like it as a good starting point for this blog post https://youtu.be/t44PFI_V4LE We cannot know everything. We do not have the capacity to know everything. I make plans for tomorrow because I believe there is a tomorrow not because I know that there is a tomorrow. We cannot decide today to say we will only act on things that we know for sure. This would be impractical. As my friend Chatty puts it, to live life, we must believe in things that cannot always be proven with certainty. For example, we believe that the future exists, that our actions matter, and that other people can be trusted. We also tend to believe life has meaning and that things can improve. These beliefs help us make decisions, keep hope, and move forward. Given that belief is a part of life, it is reasonable to have people believe in a God and a particular religion. My point is this. Life cannot happen without belief because we cannot know everything (unless we are God like). Belief i...

God opens doors

It is 1203am and I have decided to write. Saturday I spent the night coding. I was trying to get a FastAPI app up and running, all from my budget Android phone. The test cases were written to use Puppeteer. I ended up using Replit for that. Coding is more challenging when using a mobile phone. Not impossible but more challenging. I hardly blog about technology and coding anymore but the love is still there. I still have a dream of creating my own coding and youtube studio with a nice desk setup. That is nice but what should I make this blog post about? What do I want to write about? What should I write about? I love creating presentations. That is something I could do to revive my youtube channel. I love Maths too. I have this feeling that I could solve one of those longstanding Maths problems that seems impossible. Sometimes, like right now, I feel like abandoning my blog post. It is going nowhere. Maybe I should get up and go wash the wares. I wish God could tell me what to write abo...