Showing posts with label dictionary. Show all posts
Showing posts with label dictionary. Show all posts

Wednesday, 20 March 2024

Sequence Formed From Digit Display Elements

In my post titled Polyominoes and Conway's Game of Life (February 19th 2024), I looked at the representation of the digits 0, 1 and 2 as polyominoes. In a subsequent post titled Digits 3 to 9 in Conway's Game of Life (February 20th 2024), I examined the digits from 3 to 9 in the same light. Somewhat earlier, in a post titled Diurnal Age Meets Conway's Game Of Life (February 15th 2024), I began to investigate how the number associated with my diurnal age behaves under the Game of Life rules and since 27346 I've been doing this on a daily basis. The results I've been recording in my Airtable database.

My diurnal age today is 27380 and in terms of polyominoes it looks as shown in Figure 1:


Figure 1

This representation uses 54 squares and it occurred to me that starting from 0 and progressing through the natural numbers, records will be set for the number of squares required to represent the numbers. So I set out to determine these record number of squares and the numbers with which they were associated. 

The first step was to set up a data dictionary linking each digit with the number of squares in its polyomino. The dictionary looks like this with digit first followed by the number of squares:

{0:12, 1:5, 2:11, 3:11, 4:8, 5:11, 6:12, 7:7, 8:13, 9:12}

The results in the range from 0 to 100000 are shown in the table in Figure 2 (permalink).


Figure 2

Putting the results in list format, we have the following records:

12, 13, 17, 18, 23, 24, 25, 26, 29, 30, 31, 35, 36, 37, 38, 39, 41, 42, 43, 44, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 59, 60, 61, 62, 63, 64, 65

The numbers associated with these records are:

0, 8, 10, 18, 20, 28, 68, 88, 100, 108, 188, 200, 208, 288, 688, 888, 1000, 1008, 1088, 1888, 2000, 2008, 2088, 2888, 6888, 8888, 10000, 10008, 10088, 10888, 18888, 20000, 20008, 20088, 20888, 28888, 68888, 88888

Surprisingly these numbers make an appearance in OEIS A143617:


 A143617

Where record values occur in A010371: number of segments used to represent n on a 7-segment calculator display.
            

The record values are different since in OEIS A010371 we are counting dashes and not squares. It's the numbers at which these records occur that are the same. The calculator display digits are shown in Figure 3:


Figure 3

Looking at Figure 2 it can be seen that my square total of 54 for today's number of 27380 was reached for the first time way back in 10008. Even though it would be much more labour intensive, another sequence could be developed that counts that number of generations required for a number to reach stability under Conway's Game of Life rules. 

For example, 27380 requires about 380 generations to reach the stable configuration shown in Figures 4 and 5.


Figure 4


Figure 5

The single "toad" and two "traffic lights" alternate between the shapes shown in the two figures whereas the still life "blocks" (two of them), the "pond" (one of them) and the single "honey farm" (the group of four "beehives") remain the same. There's no way of telling how many generations are required for each number to reach stability and so they would all need to be tested individually.

Saturday, 11 March 2023

Elements, Letters and Numbers

There are 14 elements represented by a single letter on the periodic table: Hydrogen (H), Boron (B), Carbon (C), Nitrogen (N), Oxygen (O), Fluorine (F), Potassium (K), Yttirium (Y), Iodine (I), Tungsten (W), Uranium (U), Sulfur (S), Phosphorus (P), and Vanadium (V). There atomic numbers representing the number of protons in their nuclei are as follows:
  • Hydrogen (H) - 1
  • Boron (B) - 5
  • Carbon (C) - 6
  • Nitrogen (N) - 7
  • Oxygen (O) - 8
  • Fluorine (F) - 9
  • Potassium (K) - 19
  • Yttrium (Y) - 39
  • Iodine (I) - 53
  • Tungsten (W) - 74
  • Uranium (U) - 92
  • Sulfur (S) - 16
  • Phosphorus (P) - 15
  • Vanadium (V) - 23
An interesting question is how many English words can be formed from this mixture of vowels and consonants. Let's repeat the letters below and sort them into two categories:

I, O, U, B, C, F, H, K, N, P, S, V, W, Y

Here are some words that ChatGPT found that can be formed using these letters. It's not an exhaustive list.
hub, cub, sin, pin, win, his, if, vow, soy, spy, wok, sky, sun, pun, fun, kin, ink, no, on, up, us, so, is, by, icy, coy, buy, boy, fob, hob, sob, bow, cow, how, low, now, own, won, you, ivy, ups, cup, pus, sup, pin, nip, hip, sip, cop, sop, vow, sow, soy, cosy, coif, sync, piny, fowl, foul, busy, busybody, snow, snowy, cow, cowpox, cup, cupful, cusp, sushi

Each of these words can be assigned a numeric value on the basis of the atomic numbers associated with their letters. For example, hub = 1 +  92 + 5 = 98 and sushi = 19 + 92 + 19 + 1 + 53 = 184. What I've created is a gematria of sorts.

Of course, one does not need to limit oneself just to elements with a single letter. An article has been written titled List of Words Made From Periodic Table Element Symbols. It was posted on June 17, 2014 by Anne Helmenstine  and updated on January 9, 2023. Figure 1 shows a screenshot displaying the words PHYSiCs, BaNaNa, FUN and GeNiUS.


Figure 1: 

Using the atomic numbers again. It can be seen that PHYSiCs = 124, BaNaNa = 88 and GeNiUS = 168. The words in the article are listed alphabetically and in camel case. Figure 2 shows a screenshot of the C words.

Figure 2

The article only considers the words that can be made from the chemical elements and does not assign the words any numerical values, based on atomic numbers or anything else. That was my idea which is why I'm posting to this mathematics blog and not my Pedogogical Posturing blog. 

I can't think of any practical use for this gematria at the moment but that's of no consequence. Perhaps something will occur to me later. Like in standard Greek or Hebrew gematria, the atomic number assignments to elements will create links between words that add to the same sum. Figure 3 shows a table of elements and atomic numbers, sorted by element.


Figure 3: source

Figure 4 shows a periodic style table that shows the elements sorted by atomic number.


Figure 4: source

Of course there are many words that cannot be formed by combining the letters together e.g. light. We can start with Li (Lithium) but after that no further progress can be made. An interesting SageMath project would be to create a dictionary of elements and their atomic numbers and use this to automatically output the number of any word that was input.

ChatGPT created a list of triplets containing chemical name, chemical symbol and atomic number. Here it is:

[("Hydrogen", "H", 1), ("Helium", "He", 2), ("Lithium", "Li", 3), ("Beryllium", "Be", 4), ("Boron", "B", 5), ("Carbon", "C", 6), ("Nitrogen", "N", 7), ("Oxygen", "O", 8), ("Fluorine", "F", 9), ("Neon", "Ne", 10), ("Sodium", "Na", 11), ("Magnesium", "Mg", 12), ("Aluminum", "Al", 13), ("Silicon", "Si", 14), ("Phosphorus", "P", 15), ("Sulfur", "S", 16), ("Chlorine", "Cl", 17), ("Argon", "Ar", 18), ("Potassium", "K", 19), ("Calcium", "Ca", 20), ("Scandium", "Sc", 21), ("Titanium", "Ti", 22), ("Vanadium", "V", 23), ("Chromium", "Cr", 24), ("Manganese", "Mn", 25), ("Iron", "Fe", 26), ("Cobalt", "Co", 27), ("Nickel", "Ni", 28), ("Copper", "Cu", 29), ("Zinc", "Zn", 30), ("Gallium", "Ga", 31), ("Germanium", "Ge", 32), ("Arsenic", "As", 33), ("Selenium", "Se", 34), ("Bromine", "Br", 35), ("Krypton", "Kr", 36), ("Rubidium", "Rb", 37), ("Strontium", "Sr", 38), ("Yttrium", "Y", 39), ("Zirconium", "Zr", 40), ("Niobium", "Nb", 41), ("Molybdenum", "Mo", 42), ("Technetium", "Tc", 43), ("Ruthenium", "Ru", 44), ("Rhodium", "Rh", 45), ("Palladium", "Pd", 46), ("Silver", "Ag", 47), ("Cadmium", "Cd", 48), ("Indium", "In", 49), ("Tin", "Sn", 50), ("Antimony", "Sb", 51), ("Tellurium", "Te", 52), ("Iodine", "I", 53), ("Xenon", "Xe", 54), ("Cesium", "Cs", 55), ("Barium", "Ba", 56), ("Lanthanum", "La", 57), ("Cerium", "Ce", 58), ("Praseodymium", "Pr", 59), ("Neodymium", "Nd", 60), ("Promethium", "Pm", 61), ("Samarium", "Sm", 62), ("Europium", "Eu", 63), ("Gadolinium", "Gd", 64), ("Terbium", "Tb", 65), ("Dysprosium", "Dy", 66), ("Holmium", "Ho", 67), ("Erbium", "Er", 68), ("Thulium", "Tm", 69), ("Ytterbium", "Yb", 70), ("Lutetium", "Lu", 71), ("Hafnium", "Hf", 72), ("Tantalum", "Ta", 73), ("Tungsten", "W", 74), ("Rhenium", "Re", 75), ("Osmium", "Os", 76), ("Iridium", "Ir", 77), ("Platinum", "Pt", 78), ("Gold", "Au", 79), ("Mercury", "Hg", 80), ("Thallium", "Tl", 81), ("Lead", "Pb", 82), ("Bismuth", "Bi", 83), ("Polonium", "Po", 84), ("Astatine", "At", 85), ("Radon", "Rn", 86), ("Francium", "Fr", 87), ("Radium", "Ra", 88), ("Actinium", "Ac", 89), ("Thorium", "Th", 90), ("Protactinium", "Pa", 91), ("Uranium", "U", 92), ("Neptunium", "Np", 93), ("Plutonium", "Pu", 94), ("Americium", "Am", 95), ("Curium", "Cm", 96), ("Berkelium", "Bk", 97), ("Californium", "Cf", 98), ("Einsteinium", "Es", 99), ("Fermium", "Fm", 100), ("Mendelevium", "Md", 101), ("Nobelium", "No", 102), ("Lawrencium", "Lr", 103), ("Rutherfordium", "Rf", 104), ("Dubnium", "Db", 105), ("Seaborgium", "Sg", 106), ("Bohrium", "Bh", 107), ("Hassium", "Hs", 108), ("Meitnerium", "Mt", 109), ("Darmstadtium", "Ds", 110), ("Roentgenium", "Rg", 111), ("Copernicium", "Cn", 112), ("Nihonium", "Nh", 113), ("Flerovium", "Fl", 114), ("Moscovium", "Mc", 115), ("Livermorium", "Lv", 116), ("Tennessine", "Ts", 117), ("Oganesson", "Og", 118)]

This is suitable for pasting into SageMath and doing further analysis. Here is a permalink to an algorithm that will input chemical symbols that make a word (in camelcase) and output the word in uppercase together with its atomic number value. I've used "B", "O", "Th" and "Er" as input and gotten "BOTHER has an atomic number of 171" as output.