Oeis
On-Line Encyclopedia of Integer Sequences gem
Install / Use
/learn @jdan/OeisREADME
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.
Related Skills
node-connect
344.1kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
96.8kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
344.1kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
344.1kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
