1 Introduction
The Online Encyclopedia of Integer Sequences (OEIS) is one of the most valuable mathematical resources on the web. OEIS.m is a multipurpose Wolfram Language package that brings OEIS data directly into Mathematica:
👉 https://github.com/EnriquePH/OEIS-Mathematica
This is version 4.0.0 of the package, a streamlined rewrite that queries the official OEIS JSON API instead of scraping HTML pages. It works on Wolfram Language 11, 13 and 14, keeps the public functions of the earlier package, and is now distributed as an installable Wolfram Language paclet.
2 Features
- Access to OEIS sequence metadata through the official JSON API
- Compatible with Wolfram Language 11, 13 and 14 (paclet installation needs 12.1+)
- Lightweight and easier to maintain than the previous HTML-based implementation
- Support for common package operations such as validation, import and export
OEISbFilecomputes b-file terms beyond what OEIS has published, using a locally definedid[n_] := ..., as documented on the OEIS wiki page for this package
3 Installation
As a paclet (recommended, WL 12.1+):
PacletInstall["https://github.com/EnriquePH/OEIS-Mathematica/releases/latest/download/OEIS-4.0.0.paclet"]
Needs["OEIS`"]
Or, working from a local clone without installing anything:
PacletDirectoryLoad["/path/to/OEIS-Mathematica"]
Needs["OEIS`"]
Legacy Get, for older Wolfram Language versions or a single-file drop-in:
Get["/path/to/OEIS-Mathematica/OEIS.m"]
4 Quick start
Load the package in a Wolfram notebook with:
<<OEIS`
Example:
OEISImport["A000045", "Description"]
4.1 Main functions
OEISTotalNumberOfSequencesOEISValidateIDQOEISImportOEISURLOEISFunctionOEISExportOEISbFile
See the Function Index for full signatures, options and links to each reference page.
5 Documentation and tutorial
A full walkthrough with real, verified output is available at EnriquePH.github.io/OEIS-Mathematica, along with a Wolfram Notebook tutorial, a guide page and one reference page per function.
6 Testing
Continuous integration runs the ID-validation/URL-building subset on every push and pull request using Mathics3, a free, open-source Wolfram Language implementation, so it needs no Wolfram Engine license. The full test suite, including live OEIS API calls, still needs a licensed wolframscript:
wolframscript -file Tests/RunTests.wls # everything, incl. live OEIS API calls
wolframscript -file Tests/RunTests.wls --offline # ID validation / URL building only
7 License
The package is distributed under the GNU General Public License v3.0.
8 How to cite
If you use this package in a project or publication, please cite it using the metadata in CITATION.cff, which includes the archived Zenodo DOI: 10.5281/zenodo.21516520.