What's special about these word chains?

  1. man, main, margin, marginal

  2. loon, lotion, location, allocation, reallocation

  3. art, cart, chart, charter, character, characters

  4. rig, ring, raging, ranging, arranging, rearranging, prearranging

The next word in each chain is formed by inserting the symbolic name (blue text) of a chemical element at a particular position (marked by a blue square: ) into the previous word.

  1. man + I (iodine) → main + Rg (roentgenium) → margin + Al (aluminum) → marginal

  2. loon + Ti (titanium) → lotion + Ca (calcium) → location + Al (aluminum) → allocation + Re (rhenium) → reallocation

  3. art + C (carbon) → cart + H (hydrogen) → chart + Er (erbium) → charter + Ac (actinium) → character + S (sulfur) → characters

  4. rig + N (nitrogen) → ring + Ag (silver) → raging + N (nitrogen) → ranging + Ar (argon) → arranging + Re (rhenium) → rearranging + P (phosphorus) → prearranging

Assignment

A little bit of chemistry

A substance is a unique form of matter with constant chemical composition and characteristic properties — a chemically pure substance. Substances may consist of atoms of a single chemical element or atoms of two or more elements (compounds).

A chemical reaction is a process that leads to the transformation of one set of substances (e.g. $$A$$, $$B$$ and $$C$$) to another set of substances (e.g. $$D$$ and $$E$$) \[ A + B + C \longrightarrow D + E \] The substances initially involved in a chemical reaction are called reactants ($$A$$, $$B$$ and $$C$$ in the example). Chemical reactions yield one or more products ($$D$$ and $$E$$ in the example), which usually have properties different from the reactants.

Synthesis is a reaction where a more complex substance is formed. Decomposition is a reaction where a substance breaks down.

An elementary reaction is the smallest division into which a chemical reaction can be decomposed. It has no intermediate products. Most experimentally observed reactions are built up from many elementary reactions that occur in parallel or sequentially.

We represent a chemical substance as a sequence of letters (str): both uppercase and lowercase letters are allowed. We work with elementary synthesis reactions that bind a substance (reactant) and one atom of a chemical element (atom) into a new substance (product)

reactant + atom → product

We also work with elementary decomposition reactions that break down a substance (reactant) into a new substance (product) and one atom of a chemical element (atom)

reactant → product + atom

Elementary synthesis and decomposition are thus counterparts of each other. In both cases, we ensure that the reactant and the product are existing English words (str) and that the atom is represented by the symbolic name (str) of a chemical element. That name consists of one or two letters (usually represented as an uppercase letter, possibly followed by a lowercase letter). An elementary synthesis reaction inserts the symbolic name of an atom at some position (marked by ; front, back or somewhere in the middle) between the letters of the reactant. As such, we may get

dean + FedeaFen

An elementary decomposition reaction removes the symbolic name of an atom at some position () from the letters of the reactant. As such, we may get

merCurymerry + Cu

Your task:

Example

>>> synthesis('dean', 'Fe')
['fedean', 'dfeean', 'defean', 'deafen', 'deanfe']
>>> synthesis('Merry', 'Cu')
['cumerry', 'mcuerry', 'mecurry', 'mercury', 'merrcuy', 'merrycu']
>>> synthesis('FOREST', 'Ca')
['caforest', 'fcaorest', 'focarest', 'forcaest', 'forecast', 'forescat', 'forestca']
>>> synthesis('rAiNStORM', 'B')
['brainstorm', 'rbainstorm', 'rabinstorm', 'raibnstorm', 'rainbstorm', 'rainsbtorm', 'rainstborm', 'rainstobrm', 'rainstorbm', 'rainstormb']

>>> decomposition('deafen', 'dean')
('dea■n', 'Fe')
>>> decomposition('Mercury', 'Merry')
('Mer■ry', 'Cu')
>>> decomposition('FORECAST', 'FOREST')
('FORE■ST', 'Ca')
>>> decomposition('BrAiNsToRm', 'RaInStOrM')
('■rAiNsToRm', 'B')

>>> atoms(['margin', 'man', 'marginal', 'main'])
['Al', 'Rg', 'I']
>>> atoms(('Loon', 'Allocation', 'Reallocation', 'Lotion', 'Location'))
['Re', 'Al', 'Ca', 'Ti']
>>> atoms(['CART', 'CHARTER', 'CHARACTER', 'CHARACTERS', 'ART', 'CHART'])
['S', 'Ac', 'Er', 'H', 'C']
>>> atoms(('rANgING', 'raGiNg', 'Arranging', 'RiG', 'ReARranGINg', 'PrEarraNgING', 'riNG'))
['P', 'Re', 'Ar', 'N', 'Ag', 'N']

>>> products('marginal', ['aL', 'rG', 'I'])
['marginal', 'margin', 'main', 'man']
>>> products('Reallocation', ('RE', 'aL', 'CA', 'Ti'))
['Reallocation', 'allocation', 'location', 'lotion', 'loon']
>>> products('CHARACTERS', ['S', 'ac', 'ER', 'H', 'c'])
['CHARACTERS', 'CHARACTER', 'CHARTER', 'CHART', 'CART', 'ART']
>>> products('PreARrANginG', ('p', 'rE', 'aR', 'n', 'AG', 'N'))
['PreARrANginG', 'reARrANginG', 'ARrANginG', 'rANginG', 'rAginG', 'rinG', 'riG']

Epilogue

What killed Edgar Allan Poe1?

Edgar Allan Poe
Edgar Allan Poe (1809–1849) was an American writer, poet, editor, and literary critic who is best known for his poetry and short stories, particularly his tales involving mystery and the macabre. He is widely regarded as one of the central figures of Romanticism and Gothic fiction in the United States, and of early American literature. Poe was one of the country's first successful practitioners of the short story, and is generally considered to be the inventor of the detective fiction genre. In addition, he is credited with contributing significantly to the emergence of science fiction. He is the first well-known American writer to earn a living by writing alone, which resulted in a financially difficult life and career.

On Oct. 3, 1849, Poe was found on the streets of Baltimore, delirious and wearing clothes that were not his own. The man who found him said he was

in great distress, and … in need of immediate assistance.

He remained incoherent and died four days later. He was only 40.

An acquaintance said it was drunkenness, but he turned out to be a supporter of the temperance movement who distorted the facts. The attending physician wrote that

… Edgar Allan Poe did not die under the effect of any intoxicant, nor was the smell of liquor upon his breath or person.

Well, what, then? Other theories include a rare brain disease, diabetes, iron deficiency, syphilis, even rabies. One theory dating from 1872 suggests that Poe's death resulted from cooping2, a form of electoral fraud in which citizens were forced to vote for a particular candidate, sometimes leading to violence and even murder.

There's no surviving death certificate, so we'll never really know. Today Poe lies in the churchyard at Westminster Presbyterian Church3 in Baltimore, where mystery follows him even in death: every year since 1949, the grave has been visited by a mystery man in the early hours of the poet's birthday, Jan. 19. Dressed in black and carrying a silver-tipped cane, the Poe Toaster4 kneels at the grave and makes a toast with Martell cognac5. He leaves behind the half-empty bottle and three red roses. Several of the cognac bottles are kept at the Edgar Allan Poe House and Museum6 in Baltimore.