extend_from_formulas
Extend an OEIS sequence by parsing its own formula and transform relations, verifying each against known terms, then evaluating beyond them to generate new terms.
Instructions
Can an entry be extended from its own stated relations? Parses the entry's "a(n) = <expr in n, a(), and A######()>" FORMULA lines and its "Euler / binomial / INVERT / ... transform of A######", "partial sums of A######" phrases (NAME, COMMENTS, FORMULA), checks each against the entry's known terms (all but at most the first 3 must agree, at least 6), and evaluates it past them on the other sequences' current terms (ext=True: DATA + b-file). Lines flagged as conjectural ("appears", "seems", "empirical", ...) are skipped. Each relation that gives new terms is returned with the new terms (from n = offset + n_terms on). The relation is the entry's own claim; check its source before using the terms.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ext | No | ||
| anum | Yes | ||
| max_new | No |