Can you still find new mathematics by looking? The Mandelbrot set is the famous example: a one-line rule, iterated, hiding a structure nobody had put there. I wanted to try the same thing deliberately. Not by extending a famous object, but by searching blindly through simple rules and keeping only what is both new and lawful.
This post reports what came out. It is a small result, not a Mandelbrot set. But it is exact, it has a short proof, and as far as I can tell it has not been written down before.
The equation
The equation is
It has an obvious solution. Try : substituting gives , whose roots are the degenerate and , where is the golden ratio. So the straight line solves it.
The surprise is that it has many other solutions, and they are not smooth. They are staircases: continuous functions whose slope is only ever 0 or 1, which repeat exactly when you zoom out by a fixed factor .

The blue staircase repeats when you double . The red one repeats when you multiply by the plastic number , the real root of . Neither number appears anywhere in the equation.
The theorem
These two are the first members of an infinite family.
Theorem. Let be an integer and let be the root of
Put , so that . For every integer , define
Then is continuous, satisfies , and solves for every .
The ladder scales are discrete:
| Scale | Defined by | |
|---|---|---|
| 1 | ||
| 2 | , the plastic number | |
| 3 | ||
| 4 | ||

Why it works
The proof is short enough to give in full. The single fact it uses is the defining relation . Write for the rising step and for the flat step .
First, maps each rising step onto the whole period . Its left end goes to by the defining relation, and its right end to . That also shows is continuous. There are three cases.
on a flat step . Then and . Put . As runs over , runs exactly over the rising step . The left end checks out directly, and the right end uses . On that step , so
on a rising step, and on a rising step. Then lands exactly on , the corner where a flat step begins, so and .
on a rising step, and on a flat step. Then , so itself, and again .
That covers every . The indices and only land on whole steps when is an integer, so this mechanism produces a discrete ladder. It is not the only mechanism, as the next section shows.
A continuum above 2
Take the step height and any scale :
This also solves the equation exactly. Here the composition never needs to line up across distant periods. On a flat step, stays in the same period precisely because . Then , and runs over the rising step of the same period, which gives . On a rising step there are three subcases, and each closes in one line, as in the proof above.
At this branch meets the staircase, so the ladder hangs off the end of a continuum. A scan over all two-step staircases with scales up to 4 found nothing else: one continuous branch above 2, and the isolated ladder below it.

The integer sequences do not use the continuum evenly. The scale near 2.618 that I first could not explain is , on this branch. Sequences that show it match the staircase to within , about 13 times better than the nearby scale . Why the integers pick out from a continuum of allowed scales is open.
The golden limit
As grows, slides down to 1 and the steps get finer. From one gets . Every staircase stays between and a slightly larger bound, and that band closes onto the straight golden solution.

So the integer 2, the plastic number and the golden ratio sit in one family. The straight solution is the end of the ladder.
Where it came from
I did not start from this equation. I enumerated every rule of the form , where is built from , the constants 1 and 2, the previous terms and , addition, subtraction, and self-reference . That gives about 11.3 million rules, of which about 2,000 produce distinct non-trivial integer sequences. I then kept only sequences that were absent from the OEIS and that showed exact structure their definition does not mention.
The filter's own controls came back correct. It rediscovered Hofstadter's G, Q and Conway sequences, and matched each to its OEIS entry.
One rule kept turning up:
Its large-scale shape is the equation above. Depending on the starting values, settles onto different staircases. Fitting only the phase, the closed form matches sequences up to to within , while the next-best member of the family misses by at least .

Across 300,000 random seeds, a strict test of the step geometry found about 52,000 times, about 33,000 times, about 5,000 times, and only 26 times. Larger did not appear.
One case is proved for every , not just observed. With seed , , the sequence is computed by a 13-state automaton reading in binary. An exact decision procedure checks the recurrence for all , and perturbed versions of the rule fail it, as they should.
Several tempting claims did not survive the checks. One was a "continuous family" of solutions that turned out to be the trivial symmetry , which every solution has. The theorem was also checked at 80 digits up to , separately from the proof above.
What is not settled
- Novelty. I searched for this equation and these scales and did not find them. The nearest work I found, Klaus Pinn's continuous models of meta-Fibonacci sequences, studies different equations. Nested recurrences are a well-studied area, though, and a specialist may recognise this. If you do, please tell me.
- Convergence. The integer sequences converge to the staircases numerically. That is not proved.
- Selection. Why a given seed picks a given and phase is unexplained.
- Completeness. These are not all the solutions. Discontinuous variants also work, and staircases with more than two steps were not classified. Some seeds show a scale near 1.75 that I cannot yet explain.
- Selection. Integer sequences pick particular scales, such as 2 and , out of the continuum. Why is unexplained.
Why bother
The equation is about as simple as a self-referential rule can be, and nothing in it points to the plastic number, an infinite ladder of scales, or a continuum that begins exactly at 2. They are there anyway, and a proof short enough to read in five minutes holds them in place. That is the kind of hidden structure I set out to look for, and it suggests that blind search, with strict filters for novelty and exactness, can still turn up new mathematics.
The code, data and proof notes are available on request.