Not a rainbow, but a barcode
We just met the blackbody glow — the smooth, continuous rainbow that any hot solid pours out. But a thin gas of a single element does something startlingly different. Heat hydrogen gas, or run electricity through it (the principle behind a neon sign), and it glows. Spread that glow through a prism, however, and instead of a smooth rainbow you see only a handful of sharp, bright, separate lines of pure colour, with darkness in between. The gas emits light at a few exact colours and nowhere else.
This pattern of sharp lines is the element's atomic spectrum, and the astonishing thing is that it is a fingerprint. Hydrogen always shows the very same set of lines; sodium glows its unmistakable yellow-orange; neon its familiar red. Each element has a unique, unchanging pattern — its own barcode, written in light. The pattern is so reliable that we identify elements by it: helium was discovered in the Sun, from a line in sunlight that matched nothing on Earth, before it was ever found here.
blackbody (hot solid): [=== smooth continuous rainbow ===] hydrogen gas: | | | | (a few sharp lines) helium gas: | | | | | (a DIFFERENT few)
Why sharp lines are a scandal
To classical physics, those sharp lines were scandalous. The accepted picture of the atom in the early 1900s was a tiny solar system: light, negatively charged electrons orbiting a heavy, positively charged nucleus, held in by electrical attraction the way planets are held by gravity. It is a tidy image — and it makes two predictions, both wrong.
First, classical physics insists that a charged particle whirling in a circle must continuously radiate away energy as light. An orbiting electron would therefore bleed energy every instant, spiralling inward and crashing into the nucleus in a tiny fraction of a second. By this reasoning, atoms could not exist at all — yet here we are, made of trillions of stable ones. Second, as the electron spiralled in, its colour of light would shift smoothly and continuously across the whole rainbow. So the classical atom predicts a brief continuous smear of colour, followed by collapse. What we actually see is the exact opposite: stable atoms, glowing forever at a few fixed, razor-sharp colours.
Hidden order in the lines
Before anyone could explain the lines, a schoolteacher named Johann Balmer noticed they were not random. Hydrogen's visible lines fall at colours related by a strikingly simple arithmetic pattern. Years later Johannes Rydberg generalized it into a single tidy expression — the Rydberg formula — that predicts the exact colour of every hydrogen line using nothing but small whole numbers. Feed in a pair of integers, and out comes a line that matches measurement to many decimal places.
Sit with how strange that is. There was no theory of the atom behind it — Balmer and Rydberg simply fitted a formula to the numbers. Yet the appearance of plain whole numbers, 1, 2, 3, deep inside the structure of light from an atom, is a giant flashing clue. Whole numbers are what you get when you *count* discrete things, not when you measure a smooth quantity. Something inside the atom must come in discrete, countable steps. The formula worked perfectly, but it was a riddle with the answer left blank: *why* these integers?
Reading the message
Here is the decoded message, which the next guide will earn in full. Suppose an electron inside an atom cannot have just any energy, but only certain allowed values — a fixed ladder of energy levels, like rungs you can stand on but never the empty space between. An atom emits light only when an electron drops from a higher rung to a lower one. When it does, it releases the energy difference as a single photon, and by the photon-energy rule that energy difference fixes the photon's colour exactly.
This one idea unlocks everything at once. Lines are sharp because only a fixed set of energy gaps exists, so only a fixed set of colours can ever be emitted — there is no in-between to smear across. Each element has its own barcode because each has its own unique ladder of levels. And the whole numbers in the Rydberg formula are simply labels counting the rungs: the integers were always the rung numbers, hiding in plain sight. The barcode was a coded picture of the atom's energy ladder, and someone finally needed to draw that ladder. That someone was Niels Bohr — the subject of the next, and final, guide of this rung.