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'
> l = 3.upto(10).collect { |i| i*i }
> result = OEIS::Search(l)
> 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 [email protected]:prezjordan/oeis.git
cd oeis
bundle
gem build oeis.gemspec
gem install oeis-0.0.1
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.