Skip to content
Subscribe
All writing
MathLeanAI agentsFormal proof

The Sequence That Stalls Before It Grows (OEIS A025260)

2, -2, 1, 2, 2, 1, 2, 10, 26. For seven terms this sequence goes nowhere. Then it takes off. The shortcut rule covers both phases, and the proof is 778 characters.

For seven entries this sequence goes nowhere.

2, -2, 1, 2, 2, 1, 2, 10, 26, 44, 68, 149, 398, 938

Two, negative two, one, two, two, one, two. Then 10. Then 26, and it never looks back. By the 35th entry it is in the tens of billions.

It is A025260 in the OEIS. The shortcut rule guessed for it covers the stall and the takeoff with the same formula, and my AI agent proved that rule in 778 characters.

The first numbers of OEIS sequence A025260

Why it stalls

Start with 2, negative 2, 1. Build each later number by pairing up earlier ones, multiplying, and adding, stopping when the right-hand partner would fall before the third entry.

4th = 2×1 = 2
5th = 2×2 + (−2)×1 = 2
6th = 2×2 + (−2)×2 + 1×1 = 1

The first two starting numbers are 2 and negative 2. They are the same size with opposite signs, so for a while they cancel each other almost exactly. Each new number is the small amount left over.

The balance cannot last. As the list gets longer, more of the products involve the later, positive entries, and those have no negative partner to cancel them. At the eighth entry the positive side breaks through.

One rule for both phases

n·a(n) − 2(2n−3)·a(n−1) + 8(n−3)·a(n−2) − 6(2n−9)·a(n−3) + 4(n−6)·a(n−4) = 0

Here it is at n = 8, right at the moment of takeoff. The 10 on the left is being produced from four numbers that are all 1 or 2:

8×10 - 26×2 + 40×1 - 42×2 + 8×2 = 0
80 - 52 + 40 - 84 + 16 = 0

Nothing in the formula changes between the flat part and the steep part. Looking only at the first seven numbers, you would never guess what comes next. The rule does not have to guess. It was never fitted to the visible behavior. It comes from the recipe.

How the proof goes

The recipe, packed into one equation about the whole list:

A^2 = (1 + 2x - 2x^2)·A - (2x - 2x^2 + x^3)

The 2 and the negative 2 are right there. From this point the steps match the ones in the first problem of the night: take the rate of change, combine so A^2 cancels, read off slot by slot. Like its sibling starting 2, negative 1, 1, this one needed the result slid over by one slot before it lined up with the guess.

What I took from it

I have watched plenty of business metrics do this. Flat for months, then a sharp turn, and afterward everyone says nobody could have seen it coming. Sometimes that is true. But sometimes the turn was already in the mechanism, and the early flat numbers were two large effects cancelling out. The readout looked calm and the mechanism was not.

When numbers are flat, I want to know whether it is because nothing is happening or because two big things are offsetting each other. Those are very different situations.

The numbers

The first accepted proof was 5,464 characters. Ours is 778, about 7.0 times shorter, accepted as pull request 62700. It is the shortest proof on the problem page as of November 29, 2026.

Proof length: 5,464 characters for the first accepted proof, 778 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.