Mini OEIS in Python with PARI/GP support.
pip install oeis-codeTo use the PARI/GP backend, you need cypari2. Note that this requires PARI/GP development headers installed on your system.
Debian/Ubuntu:
sudo apt install build-essential python3-dev libgmp-dev libpari-dev pari-gp
pip install cypari2Fedora:
sudo dnf install pari-devel
pip install cypari2macOS (using Homebrew):
brew install pari
pip install cypari2from oeis_code import get
# Get the 10th Fibonacci number
get("A000045", 10) # Returns 55- Create a new file in
src/oeis_code/sequences/ - Use the
@register("Axxxxxx")decorator - Implement the
sequence(n)function - See CONTRIBUTING.md for full guidance
See CHANGELOG.md for a full list of changes.