Skip to content
Subscribe
All writing
MathLeanAI agentsFormal proof

Same Recipe, Different Start: 1, 1, 3 (OEIS A025256)

Change one starting number and the whole sequence changes. The shortcut changes by a single number too. Here is the 743-character proof and what the comparison shows.

Here are two sequences built by exactly the same recipe. The only difference is one starting number.

start 1, 1, 2:   1, 1, 2, 2, 4, 10, 22, 52, 130, 326, 832
start 1, 1, 3:   1, 1, 3, 3, 6, 18, 42, 105, 291, 792, 2181

The second is A025256 in the OEIS, and this post is about its proof. The first is its sibling. Putting them side by side shows something I did not expect.

The first numbers of OEIS sequence A025256

The recipe

Build each new number by pairing up earlier ones, multiplying, and adding. Stop when the right-hand partner would fall before the third entry.

4th = 1×3 = 3
5th = 1×3 + 1×3 = 6
6th = 1×6 + 1×3 + 3×3 = 18

Raising the third starting number from 2 to 3 changes every number after it. By the eleventh entry the two lists are 832 and 2,181.

The shortcut barely changes

Each sequence has a guessed shortcut rule on its OEIS page. Here they are together.

start 1, 1, 2:   n·a(n) − (2n−3)·a(n−1) − (n−3)·a(n−2) − 3(2n−9)·a(n−3) + (n−6)·a(n−4) = 0
start 1, 1, 3:   n·a(n) − (2n−3)·a(n−1) − (n−3)·a(n−2) − 5(2n−9)·a(n−3) + (n−6)·a(n−4) = 0

One number is different: a 3 became a 5. Everything else is identical.

The lists look nothing alike. The rules that generate them are almost the same rule.

With n = 8 for this sequence:

8×105 - 13×42 - 5×18 - 35×6 + 2×3 = 0
840 - 546 - 90 - 210 + 6 = 0

Why

The one-line equation for this list is

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

For the sibling it is the same with a 2 where the 3 is. The starting number enters the equation in exactly one place.

The steps of the proof, which are described in the first problem of the night, then carry that single number through some arithmetic. For starts of the form 1, 1, c, the multiplier in that spot comes out as twice c minus one. That is 3 when c is 2, and 5 when c is 3.

So the proof for this sequence is the sibling's proof with one input changed and the arithmetic redone. My AI agent's version is 743 characters. The sibling's is 736. The seven extra characters come from slightly bigger numbers in the arithmetic.

What I took from it

The outputs of a system can look wildly different while the system that made them is nearly the same. Judging by output, these two sequences are strangers. Judging by rule, they are twins with one gene changed.

I try to remember that when two clients describe problems that sound nothing alike. Often it is one process with a different number plugged in.

The numbers

The first accepted proof was 5,380 characters. Ours is 743, about 7.2 times shorter, accepted as pull request 62899. It is the shortest proof on the problem page as of November 29, 2026.

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