Coder Social home page Coder Social logo

oeis_cli's Introduction

OEIS CLI

How to use

Create a virtualenv with python 3.5 or higher

Clone this repository to your local machine.

From inside the repository, install the CLI

$ pip install .

Then run the CLI command to find the sequence

$ oeis_query 1 1 2 3 5 7

1 - a(n) is the number of partitions of n (the partition numbers).
2 - a(n) = floor(3^n / 2^n).
3 - Quarter-squares plus 1 (that is, a(n) =
4 - Triangular array T read by rows: T(n,0) = T(n,2n) = 1 for n >= 0; T(n,1) = 1 for n >= 1; T(n,k) = T(n-1,k-2) + T(n-1,k-1) for k = 2..2n-1, n >= 2.
5 - Number of rooted trees with n nodes with every leaf at the same height.

Notes

  • Showing only first five results if more
  • Missing add the information about the total results
  • Handling failure fetching the oeis website
  • If no match found, show message about it and return success result

Next steps

  • Add test case

oeis_cli's People

Contributors

denisgermano 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.