sloane: A command line interface to Sloane's On-Line Encyclopedia of Integer Sequences

[ bsd3, math, program ] [ Propose Tags ]

A command line interface to Sloane's On-Line Encyclopedia of Integer Sequences. For usage see http://github.com/akc/sloane.


[Skip to Readme]

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

  • No Candidates
Versions [RSS] 0.1, 0.1.1, 0.1.2, 0.1.3, 0.1.4, 0.1.5, 1.1, 1.3, 1.4, 1.5, 1.5.1, 1.6, 1.7, 1.7.1, 1.8, 1.8.2, 1.9.1, 1.9.2, 1.9.3, 2.0.0, 2.0.1, 2.0.2, 2.0.3, 2.0.4, 2.0.5, 4.0.0, 4.0.1, 4.0.2, 4.1.0, 4.1.2, 4.2.0, 5.0.0, 5.0.1
Dependencies base (>=3 && <5), cmdargs, HTTP, url [details]
License BSD-3-Clause
Author Anders Claesson
Maintainer anders.claesson@gmail.com
Category Math
Home page http://github.com/akc/sloane
Source repo head: git clone git://github.com/akc/sloane.git
Uploaded by AndersClaesson at 2012-09-21T14:40:49Z
Distributions
Reverse Dependencies 1 direct, 0 indirect [details]
Executables sloane
Downloads 22519 total (46 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs not available [build log]
Last success reported on 2016-12-24 [all 7 reports]

Readme for sloane-0.1

[back to package description]

sloane

A command line interface to Sloane's On-Line Encyclopedia of Integer Sequences (OEIS)

Install

$ cabal install sloane

Usage

$ sloane --help
Search Sloane's On-Line Encyclopedia of Integer Sequences

sloane [OPTIONS] SEARCH-TERMS

Common flags:
  -k --keys=KEYS  Keys of fields to print, http://oeis.org/eishelp1.html
                  (default: SN)
  -a --all        Print all fields
  -n --limit=INT  Limit the number of entries retrieved (default: 5)
  -? --help       Display help message
  -V --version    Print version information

Examples

Search for entries matching a sequence:

$ sloane 1,3,19,183,2371,38703

S A006531 1,1,3,19,183,2371,38703,763099,17648823,468603091,14050842303,
N A006531 Semiorders on n elements.

Show the sequence, name, formula and comments fields of the sequence whose A-number is A006531:

$ sloane -kSNFC id:A006531

S A006531 1,1,3,19,183,2371,38703,763099,17648823,468603091,14050842303,
N A006531 Semiorders on n elements.
F A006531 O.g.f.: Sum_{n>=1} (2*n)!/(n+1)! * x^n / Product_{k=0..n} (1+k*x). [From Paul D. Hanna, Jul 20 2011]
F A006531 E.g.f.: C(1-exp(-x)), where C(x) = (1 - sqrt(1 - 4*x)) / (2*x) is the ordinary g.f. for the Catalan numbers A000108.
F A006531 a(n) = sum( S(n, k) * k! * M(k-1), k=1..n), S(n, k): Stirling number of the second kind, M(n): Motzkin number, A001006. - Detlef Pauly, Jun 06 2002
C A006531 Labeled semiorders on n elements: (1+3) and (2+2)-free posets. - Detlef Pauly (dettodet(AT)yahoo.de), Dec 27 2002

Return at most 3 results of a free text search:

$ sloane -n3 "(2+2)-free posets"

S A079144 1,1,3,19,207,3451,81663,2602699,107477247,5581680571,356046745023,
N A079144 Number of labeled interval orders on n elements: (2+2)-free posets.

S A022493 1,1,2,5,15,53,217,1014,5335,31240,201608,1422074,10886503,89903100,
N A022493 Number of linearized chord diagrams of degree n; also number of nonisomorphic interval orders on n unlabeled points.

S A006531 1,1,3,19,183,2371,38703,763099,17648823,468603091,14050842303,
N A006531 Semiorders on n elements.

Caveat

Please use this program with moderation as not to put too much of a burden on the OEIS-server; see OEIS' policy on searching the database.