Project

oeis

0.0
No commit activity in last 3 years
No release in over 3 years
Allows you to fetch results from OEIS using a list of integers
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
 Dependencies

Runtime

~> 1.4
 Project Readme

OEIS

About

This a gem to interface the On-Line Encyclopedia of Integer Sequences (OEIS). It allows you to search for a documented sequence using a Ruby Fixnum Array as input.

Usage

> require 'oeis'
> ls = 3.upto(10).collect { |i| i*i }
[9, 16, 25, 36, 49, 64, 81, 100] 
> result = OEIS::search(ls)

> p result.title
The squares: a(n) = n^2.
> p result.id
A000290
> p result.sequence
[0, 1, 4, 9, 16, 25, 36, 49, 64, 81, 100 ...

Installation

git clone git@github.com:prezjordan/oeis.git
cd oeis
bundle
gem build oeis.gemspec
gem install oeis-X.X.X.gem

OR

gem install oeis

Why?

I started working on this gem after my roommate's snoring kept me from sleeping. It is my first gem, so there's a very good chance I did something wrong, or did something not-so-right.

Numbers have always been a passion of mine, so this servers as a simple educational tool. Generating numbers is fun, seeing various properties of the numbers you just generated is even cooler.

LICENSE

Include license information here.