Research paper mining logo

Integer Sequence Identifier

$0.10 USDC per call · Research integrity · POST /api/v1/identify-sequence · Id sequence-identifier

Identifies an integer sequence from terms (a JSON array or pasted text), an OEIS A-number, a safe-parsed formula or recurrence, or a description, and leads with a verdict, confidence, A-number, formula, next terms and a next step. Searches the OEIS directly, then superseeker-style (differences, partial sums, gcd, ratios, binomial, Euler, leading terms, plus a search without the last two terms to flag disagreeing terms) under an 8-search budget, aligns offsets, and marks which terms agree or disagree. Fits linear recurrences and polynomials exactly over the rationals and reports one only when it predicts held-out terms. Candidates are ranked in code; a model is used only for a description input (one fast call, OEIS confirms what it proposes) and for the optional explain sentence (one more call, quote verified against OEIS text). Output carries the CC BY-SA 4.0 OEIS attribution.

What you get

Turns a list of numbers into its OEIS A-number, formula and next terms in one call, or a verified recurrence or polynomial when OEIS has none.

Call it

Send the JSON body below to https://agents.writerslogic.com/api/v1/identify-sequence. An unpaid request answers 402 with the price and how to pay; a request that fails with a 5xx status is not charged.

curl -i -X POST https://agents.writerslogic.com/api/v1/identify-sequence \
  -H 'content-type: application/json' \
  -d '{"terms":[1,1,2,5,14,42,132,429,1430,4862]}'

Input

FieldTypeRequiredDescription
termsarray<one of>; max 60 itemsnoInteger terms, 4 to 60, each at most 40 digits. Pass values beyond 2^53 as decimal strings.
termsTextstring; length 4..4000noAlternative to terms: the terms pasted as text, separated by commas, spaces or semicolons (for example copied from a spreadsheet, a paper or an OEIS data line).
aNumberstring; length 1..120noAlternative to terms: an OEIS A-number (A000108) or oeis.org URL. The entry is fetched and its data searched for related sequences; returns its name, formulas and next terms.
formulastring; length 1..300noAlternative to terms: a closed form in n such as "binomial(2*n,n)/(n+1)", or a recurrence such as "a(n) = a(n-1) + a(n-2)" (with initialTerms). Operators + - * / % ^, functions binomial fact abs gcd min max floor mod. Evaluated by a safe parser, never eval; every term must be an integer.
initialTermsarray<one of>; max 20 itemsnoSeed values a(start), a(start+1), ... for a recurrence formula.
startinteger; -100..1000noIndex n of the first expanded term; default 0.
countinteger; 4..60noHow many terms to expand from the formula; default 20.
descriptionstring; length 3..500noAlternative to terms and formula: a plain-language description. A short description that names an entry (up to 4 content words, all in the entry name, e.g. Catalan numbers) is resolved by OEIS text search with no model; otherwise one fast model call proposes terms and keywords, which OEIS then confirms.
explainbooleannoAsk a model for a one-sentence explanation drawn only from the matched OEIS entry; its quote is verified in code, otherwise the entry name is returned. Default false.

Example request body

{
  "terms": [
    1,
    1,
    2,
    5,
    14,
    42,
    132,
    429,
    1430,
    4862
  ]
}

Result

The response is { "data": ..., "_provenance": ... }. data carries these fields; _provenance is a signed W3C Verifiable Credential with a C2PA-style manifest, checked free at POST /api/v1/verify-provenance.

FieldTypeRequiredDescription
answerobjectnoHeadline: verdict (same as status), confidence 0-100, aNumber, name, url, formula and formulaSource (oeis or fitted), nextTerms (from a verified fit), alsoConsistentWith, a one-sentence summary and a concrete nextStep.
statusstring; one of "IDENTIFIED", "IDENTIFIED_VIA_TRANSFORM", "PARTIAL_MATCH", "RECURRENCE_ONLY", "NO_MATCH"no
inputobjectnokind, termsSource (caller, formula, model, oeis-entry or oeis-text-search), the terms analyzed, the expanded formula and any model keywords.
candidatesarray<object>noRanked OEIS candidates: aNumber, url, name, evidence, transform used (null = direct), alignment (OEIS index of the first compared term), matched/mismatched terms, unverified terms beyond the entry's data, exact, formulas, references.
explanationone ofnoOne line from OEIS text only: the entry name, or a model sentence whose quote was verified (source oeis-name or model).
recurrenceone ofnoConstant-coefficient linear recurrence solved exactly over the rationals from the first 2*order terms; reported only when it reproduces every later term (heldOutTerms >= 2).
polynomialone ofnoPolynomial in n from vanishing finite differences, reported only with held-out terms predicted exactly.
searchobjectnoOEIS searches made (budget 8, sequential and rate limited), steps skipped or not applicable, and failures.
llmCallsintegerno
llmFailuresintegerno
decidedByobjectnoWhere the terms, ranking and explanation came from.
attributionobjectnoOEIS source and the CC BY-SA 4.0 notice.
notesarray<string>no

Pay and connect

Available through: x402 (USDC on Base), MCP, RapidAPI, Apify.

Machine-readable