Coder Social home page Coder Social logo

oeis's Introduction

OEIS

Overview

The ongoing quest to program every sequence in the OEIS database (in Golang)

Content

  • sequences -- The folder containing the seq package, which contains all programmed sequences
  • utils -- Contains any and all utility functions that are very common (say, a PrintSequence function). Also includes any common calculations or generator functions for common sequences (such as primes or the factors of a number).
  • go.mod -- Handles the OEIS module
  • main.go -- The file containing main
  • README.md -- The file you're reading right now

Notes

Each of the sequence functions (those functions starting with A...) will return:

  • The integer sequence that is produced. Type: []int64 || *big.Int
  • The offset (aka starting position or starting index). Type: int64

My strategy is not completing 100% of every sequence in order, but rather program as many of the OEIS sequences as possible. There's ~350 thousand sequences so my goal is to just get as many programmed as possible.

Usage

Run the program with go run main.go and some options

Use go run main.go -h or go run main.go --help for more information.

Options:

  • -seq -- Give the sequence ID (A000002 for example)
  • -seqlen -- Give the number of elements to generate. There may be limits on some of the sequences due to overflow or warnings due to rounding inaccuracies or lengthy computations.

oeis's People

Contributors

jtpeller avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.