Skip to content
Subscribe
All writing
MathLeanAI agentsFormal proof

Start With 1, 1, 2 and Let the Numbers Multiply (OEIS A025244)

Three starting numbers and one rule: every new number is built by multiplying earlier ones in pairs. The guessed shortcut needs only four earlier numbers. Proved in 736 characters.

Pick three numbers: 1, 1, 2. Then follow one rule forever. To get the next number, pair up the numbers you already have, multiply each pair, and add.

That is the whole recipe for A025244 in the OEIS. A guess on its page says there is a much faster way to get each number. My AI agent proved the guess in 736 characters.

The first numbers of OEIS sequence A025244

The slow rule

Number the list starting from 1. The pairing goes first with latest, second with second-latest, and so on, and it stops when the right-hand partner would be earlier than the third entry.

4th = 1×2 = 2
5th = 1×2 + 1×2 = 4
6th = 1×4 + 1×2 + 2×2 = 10

Carry on and you get

1, 1, 2, 2, 4, 10, 22, 52, 130, 326, 832, 2162, 5674, 15032

Each new number needs every earlier one. The 30th takes 27 multiplications.

The fast rule

The guess says four earlier numbers are always enough:

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

With n = 8:

8×52 - 13×22 - 5×10 - 21×4 + 2×2 = 0
416 - 286 - 50 - 84 + 4 = 0

The starting numbers are hiding in the equation

The proof starts by packing the whole list into one object, call it A, and writing the slow rule as a single equation:

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

Look at the numbers in it. The second bracket is the three starting numbers 1, 1, 2, in order. The first bracket repeats the first two of them after a leading 1. The starting numbers are sitting in plain view.

That turned out to be true across this whole family of sequences. Change the three starting numbers and the same equation appears with different numbers in the same places. So one proof template covers all of them. You swap in the starting numbers and redo the arithmetic.

From there the steps are the ones described in the first problem of the night: take the equation's rate of change, combine the two so A^2 cancels, and read the result one slot at a time. Out comes the fast rule.

What was already known

The OEIS page already carried a note saying this guess had been verified with a differential equation, for n from 6 up. So this was not a mystery waiting for an answer.

What the site asked for was different: the same fact in a form a computer checks line by line. The formal statement matches that note. It claims the rule from n = 6 onward.

The numbers

The first accepted proof landed the day before ours, at 5,349 characters. Ours is 736, about 7.3 times shorter. It was accepted as pull request 62977 and is the shortest proof on the problem page as of November 29, 2026.

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