Skip to content
Subscribe
All writing
MathLeanAI agentsFormal proof

Start With Four Ones (OEIS A025268)

1, 1, 1, 1, then 4, 11, 32, 95. The guessed shortcut here uses five earlier numbers when four would do. The proof had to combine two neighboring copies of a simpler rule.

Start with four ones. Then let the list feed on itself.

1, 1, 1, 1, 4, 11, 32, 95, 284, 860, 2630, 8115, 25242, 79080

This is A025268 in the OEIS. My AI agent proved the shortcut rule guessed for it in 667 characters. The guess had a quirk: it used one more earlier number than it needed to.

The first numbers of OEIS sequence A025268

A famous list with a delayed start

To get each new number, line the whole list up against itself in reverse, multiply the pairs, and add.

5th = 1×1 + 1×1 + 1×1 + 1×1 = 4
6th = 1×4 + 1×1 + 1×1 + 1×1 + 4×1 = 11

If you apply that pairing rule from the very beginning, starting from a single 1, you get 1, 1, 2, 5, 14, 42. Those are the Catalan numbers, one of the best-known lists in mathematics.

This sequence is what happens when you hold the first four entries at 1 by force and only then let the rule run. The third entry "wants" to be 2 and the fourth "wants" to be 5. They are not allowed. Everything afterward carries the mark of that.

You can see it in the one-line equation for the whole list. For the Catalan numbers it is A^2 = A - x. For this sequence:

A^2 = A - (x - x^3 - 2x^4)

The extra terms are the corrections for the entries that were held down.

The guess

n·a(n) + (n+1)·a(n−1) − 10(2n−5)·a(n−2) + 2(2n−9)·a(n−3) + 2(14n−79)·a(n−4) + 40(n−7)·a(n−5) = 0

With n = 8:

8×95 + 9×32 - 110×11 + 14×4 + 66×1 + 40×1 = 0
760 + 288 - 1,210 + 56 + 66 + 40 = 0

That rule reaches back five numbers. Most of the sibling sequences have rules that reach back four.

One number more than necessary

When the agent ran the usual steps on the equation (they are laid out in the first problem of the night) it got a rule that reaches back only four numbers. A correct rule, and shorter than the guess.

But the task was to prove the guess as written. So the proof takes the four-back rule at two neighboring positions, n and n minus 1, and adds the right multiple of one to the other. Each was true. The sum is true. And the sum is the five-back rule on the OEIS page.

The same thing happened with the sequence whose rule has cubes in it, only more dramatically.

I want to be careful about what this means. The guess was correct. It was just not the tightest true statement available. Whoever, or whatever, found it reported a rule that fits the data, and this one fits.

What I took from it

"Prove the statement as written" is a discipline worth having. The agent found a better rule and did not substitute it. It proved what was asked, using the better rule as a stepping stone.

That is the behavior I want from anything I delegate to. If the spec says five, deliver five, and tell me four would have done. Do not quietly hand me four and call it the same thing.

The numbers

The first accepted proof was 5,196 characters. Ours is 667, about 7.8 times shorter, accepted as pull request 63100. It is the shortest proof on the problem page as of November 29, 2026.

Proof length: 5,196 characters for the first accepted proof, 667 for mine

Someone else proved it first. Mine is a shorter proof of the same statement.

Get the next build note.

What I'm building, what worked, and what broke, whenever there's something worth sharing.

Subscribe to my newsletter

Keep up with the work.

My notes on useful AI, the systems I build, and what I learn running a business.