Skip to main content

Numbers

This is a chapter from my fifth book called Freedom

I am fascinated by numbers. We say that words have power but numbers also have power. I am fascinated by random and infinity and pi. I am fascinated by number patterns. I am fascinated by counting. I am fascinated by the Fibonacci sequence. I was somewhere on the internet. Might have been an ad I was looking at. I saw that 37 by 21 equals 777. Then I thought to myself what number by 23 would give a number where all the digits are the same like this. I got some code that could brute force an answer but I did not get an answer within the constraints of the largest num in python. This is what the code looks like.

def has_identical_digits(num):
    digits = str(num)
    return all(digit == digits[0] for digit in digits)

def find_number():
    multiplier = 1
    while True:
        product = 23 * multiplier
        if has_identical_digits(product):
            return product
        multiplier += 1
        print(multiplier)

result = find_number()
print(f"The number you are looking for is: {result}")

Now I am left wondering. Are there a set of numbers where there would be no results? How large is this set? Are there numbers where the result will be really really big and take a lot of time and computational power to brute force? Is there a shortcut to figuring this out? Has this been studied before? What are the properties of the numbers in the set of all same digit numbers? What can I learn by trying to find answers to these questions. I am putting this out there because I feel like some others may also find this fascinating or some others may have answers. I asked my friend Gemini for a quote about freedom and numbers. He replied with this Royal Robbins quote, "A simple equation exists between freedom and numbers: the more people, the less freedom." I can see the sense in that quote but just like my numbers questions, I need to think about it some more. Also, what is the freest number?

This is what my friend Gemini thinks:

While "freest number" is open to interpretation, some might see primes as escaping easy definition, zero as embodying absence of limits, or infinity as representing boundless possibilities. It all depends on how you see freedom and the nature of numbers themselves.

I did a Google search and found a tshirt being sold for introverts with the slogan "1 is the freest number" and I felt that. Seems there is truth to that Royal Robbins quote from the perspective of me as an introvert. Somehow my mind is thinking of this Einstein quote, "Not everything that counts can be counted, and not everything that can be counted counts." Maybe freedom cannot be counted or measured. We cannot put a price to freedom. Freedom is priceless.

Comments

Popular posts from this blog

Hobby project - Store and view exchange rates

The next step in my project was to test out being able store and display the rates in a database. I decided to use nodejs and supabase for this. Everything worked beautifully. Only hickup was the following error due to my package.json not being correct. SyntaxError: Cannot use import statement outside a module Added this to package.json   "type": "module" This works beautifully. Right now I am just testing fragments of what could be part of a bigger system to see what is possible and what works and how easy to code on a mobile. There is no fully functioning integrated end to end system just yet. This is also what I tested. A serverless append-only database using GitHub + Actions + Pages. That’s basically a lightweight backend system. This was the ChatGPT prompt I used. Guide me through each step. This is what I want. A manually run github actions that adds to docs/data.json with the current date and time. docs/index.html displays all the entries in data.json. Make s...

What is important

Every now and again, I get reminded of the why. Why I have handed my life over to God. It is 3:08 p.m. and I have decided to write. Honestly, I feel like I could end this blog post right here. What more is there to say? God above all else. God is our compass on this journey called life. Everything else can become a distraction. Maybe not everything, but certainly many things. You get the point. What is important? What do we prioritise? What do we make time for? The answers look different for everyone. Our lives are different. We are tested differently. We are all products of our circumstances, and those circumstances vary from person to person. Yet God is the common thread across humanity and throughout time. God always was and always will be. One day, we will answer to God. We will give account to God. We cannot live without food, water, and oxygen, but all of those things come from God. So how can we live without God? How timely. I just received a notification from the Quranly app: S...

Running php and apache on termux

This was my experience getting php and apache to run on termux apt update && apt upgrade -y apt install php-apache I was following an old blog post that used php 7 and got these errors Can't locate API module structure `php7_module' in file /data/data/com.termux/files/usr/libexec/apache2/libphp.so: undefined symbol: php7_module Cannot load /data/data/com.termux/files/usr/libexec/apache2/libphp7.so Corrected in apache config file vim $PREFIX/etc/apache2/httpd.conf LoadModule php_module /data/data/com.termux/files/usr/libexec/apache2/libphp.so Apache is running a threaded MPM, but your PHP Module is not compiled to be threadsafe.  You need to recompile PHP. Comment out mpm_worker and use mpm_prefork #LoadModule mpm_worker_module libexec/apache2/mod_mpm_worker.so LoadModule mpm_prefork_module libexec/apache2/mod_mpm_prefork.so This still does not work as apache (httpd) was failing silently. According to Chatty LoadModule php_module ...libphp.so often fails in Termux becau...