skills/43-wentorai-research-plugins/skills/domains/math/oeis-api/SKILL.md
On-Line Encyclopedia of Integer Sequences API
npx skillsauth add brycewang-stanford/Awesome-Agent-Skills-for-Empirical-Research oeis-apiInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
The On-Line Encyclopedia of Integer Sequences (OEIS) is a comprehensive database of integer sequences, founded by Neil Sloane in 1964 and now containing over 370,000 entries. It is one of the most widely cited resources in mathematics, serving as the definitive reference for identifying, cataloging, and exploring integer sequences that arise in combinatorics, number theory, algebra, analysis, and applied mathematics.
The OEIS provides a web-accessible search interface that can also be used programmatically to query sequences by their terms, by A-number (the unique identifier for each sequence), or by keyword. The API returns structured data in JSON or plain text format, including the sequence terms, formulas, generating functions, references, links to related sequences, and contributed programs in various languages.
Mathematicians, computer scientists, physicists, and researchers in any quantitative discipline use the OEIS to identify unknown sequences encountered in their work, verify conjectures, discover connections between different areas of mathematics, and access formulas and programs for computing sequence terms. It is an indispensable tool for both pure and applied mathematical research.
No authentication required. The OEIS is a free, open resource that does not require any API key, token, or registration. All queries are publicly accessible. The OEIS Foundation operates as a non-profit and relies on voluntary contributions.
Search the OEIS database by sequence terms, keywords, A-number, or author name. This is the primary endpoint for querying the encyclopedia.
GET https://oeis.org/search| Parameter | Type | Required | Description |
|-----------|--------|----------|---------------------------------------------------------------|
| q | string | Yes | Search query: sequence terms (comma-separated), keyword, or A-number |
| fmt | string | No | Output format: json, text, html (default) |
| start | int | No | Offset for pagination (default 0) |
# Search by sequence terms
curl "https://oeis.org/search?q=1,1,2,3,5,8,13,21&fmt=json"
# Search by A-number
curl "https://oeis.org/search?q=A000045&fmt=json"
# Search by keyword
curl "https://oeis.org/search?q=catalan+numbers&fmt=json"
count (total results), start, and results array. Each result contains number (A-number as integer), name (description), data (comma-separated terms), offset, formula (array of formula strings), comment (array), reference (array of bibliographic references), link (array of URLs), program (array of code implementations), and xref (cross-references to related sequences).Retrieve a specific sequence by its A-number directly via the URL path. This provides a simpler access pattern for known sequences.
GET https://oeis.org/A{number}| Parameter | Type | Required | Description |
|-----------|--------|----------|---------------------------------------------------------|
| number | int | Yes | The sequence A-number (in the URL path) |
| fmt | string | No | Output format: json, text, html |
# Retrieve the Fibonacci sequence (A000045)
curl "https://oeis.org/A000045?fmt=json"
# Retrieve the prime numbers (A000040)
curl "https://oeis.org/A000040?fmt=json"
number, name, data, formula, maple (Maple code), mathematica (Mathematica code), program (other language implementations), and keyword (classification tags like nonn, easy, nice).No formal rate limits are published for the OEIS. However, the service is run by a non-profit organization with limited infrastructure. Users should be respectful and avoid sending more than a few requests per second. For bulk data access, the OEIS provides downloadable data files at https://oeis.org/stripped.gz (sequence terms) and https://oeis.org/names.gz (sequence names) which are more appropriate for large-scale analysis.
When you encounter an integer sequence in your research and want to identify it:
import requests
# You found this sequence in your combinatorial analysis
unknown_terms = "1,4,9,16,25,36,49,64"
resp = requests.get("https://oeis.org/search", params={"q": unknown_terms, "fmt": "json"})
data = resp.json()
if data["count"] > 0:
seq = data["results"][0]
print(f"A{seq['number']:06d}: {seq['name']}")
print(f"Terms: {seq['data']}")
if seq.get("formula"):
print(f"Formula: {seq['formula'][0]}")
else:
print("No matching sequence found in OEIS")
Get computational formulas and reference implementations for a known sequence:
import requests
# Get the Catalan numbers (A000108)
resp = requests.get("https://oeis.org/A000108", params={"fmt": "json"})
data = resp.json()
seq = data["results"][0]
print(f"Sequence: {seq['name']}")
print(f"\nFirst terms: {seq['data']}")
print("\nFormulas:")
for f in seq.get("formula", [])[:5]:
print(f" {f}")
print("\nPrograms:")
for p in seq.get("program", [])[:5]:
print(f" {p}")
Explore mathematical connections through cross-references:
import requests
resp = requests.get("https://oeis.org/search", params={"q": "A000045", "fmt": "json"})
data = resp.json()
if data["results"]:
seq = data["results"][0]
print(f"Fibonacci numbers ({seq['name']})")
print(f"\nCross-references:")
for xref in seq.get("xref", [])[:10]:
print(f" {xref}")
development
Conduct rigorous thematic analysis (TA) of qualitative data following Braun and Clarke's (2006) six-phase framework. Use whenever the user mentions 'thematic analysis', 'TA', 'Braun and Clarke', 'qualitative coding', 'identifying themes', or asks for help analysing interviews, focus groups, open-ended survey responses, or transcripts to identify patterns. Also trigger for questions about inductive vs theoretical coding, semantic vs latent themes, essentialist vs constructionist epistemology, building a thematic map, or writing up a qualitative findings section. Covers all six phases, the four upfront analytic decisions, the 15-point quality checklist, and the five common pitfalls. Produces a Word document write-up and an annotated thematic map. Does NOT cover IPA, grounded theory, discourse analysis, conversation analysis, or narrative analysis — use a different method for those.
development
Guide users through writing a systematic literature review (SLR) following the PRISMA 2020 framework. Use this skill whenever the user mentions 'systematic review', 'systematic literature review', 'SLR', 'PRISMA', 'PRISMA 2020', 'PRISMA flow diagram', 'PRISMA checklist', or asks for help writing, structuring, or auditing a literature review that follows reporting guidelines. Also trigger when the user asks about inclusion/exclusion criteria for a review, search strategies for databases like Scopus/WoS/PubMed, study selection processes, risk of bias assessment, or narrative synthesis for a review paper. This skill covers the full PRISMA 2020 checklist (27 items), produces a Word document manuscript in strict journal article format, generates an annotated PRISMA flow diagram, and enforces APA 7th Edition referencing throughout. It does NOT cover meta-analysis or statistical pooling. By Chuah Kee Man.
testing
Performs placebo-in-time sensitivity analysis with hierarchical null model and optional Bayesian assurance. Use when checking model robustness, verifying lack of pre-intervention effects, or estimating study power.
data-ai
Fit, summarize, plot, and interpret a chosen CausalPy experiment. Use after the causal method has been selected, including when configuring PyMC/sklearn models and scale-aware custom priors.