Blogofbrew

home

Sequence Triple: recurrence ⇄ generating function ⇄ closed form, in one HTML file

21 Jul 2026

I’ve been mining OEIS for missing closed forms — factoring the terms of a few thousand entries that record only a recurrence or a generating function, and mechanically filling in the form they’re missing. A side product of that session is a small self-contained web tool, in the spirit of simonw/tools: one HTML file, no dependencies, exact arithmetic.

→ Sequence Triple

Enter any one of a constant-coefficient recurrence, a rational generating function, or a closed form, and the other two are derived exactly — BigInt rationals throughout, no floating point except to display the roots of irreducible characteristic polynomials. A verification strip at the bottom recomputes the first terms independently from each representation and checks they agree; nothing renders unverified.

A few things it does that I haven’t seen in one place:

The page ends with a “how it works” section tracing the algorithms to their sources — de Moivre’s Miscellanea Analytica (1730) for solving linear recurrences by generating functions, Stirling’s Methodus Differentialis (same year!) for the numbers in the lens, Riordan’s inverse relations, Ehrhart quasi-polynomials, the Grosse-Kunstleve–Brunner–Sloane zeolite paper, Kaneko’s polylog definition of poly-Bernoulli numbers, Ryser’s 1957 forbidden-pattern theorem behind lonesum matrices, and the Gosper–Zeilberger–Petkovšek world of A = B that marks the tool’s deliberate boundary: everything here is C-finite, and the page says so when a sequence isn’t.

The mining session itself — 268 verified closed-form candidates for entries currently recording none, plus the transform-inversion machinery behind the lens — is a story for another post.