.TH "SLOANE" "1" "24 Sep 2014" "Sloane User Manual" "Version 1.9.3" .SH NAME .PP sloane \- a command line interface to Sloane\[aq]s On\-Line Encyclopedia of Integer Sequences .SH SYNOPSIS .PP sloane [lookup | grep] [\-a | \-\-all | \-k \f[I]keys\f[] | \-\-url] [\-n \f[I]entries\f[]] \f[I]terms\f[] ... .PD 0 .P .PD sloane filter [\-\-invert] .PD 0 .P .PD sloane update .PD 0 .P .PD sloane version .SH DESCRIPTION .PP The \f[C]sloane\ lookup\f[] command searches Sloane\[aq]s On\-Line Encyclopedia of Integer Sequences (OEIS). The search terms are typically the leading term of a sequence. For example, .IP .nf \f[C] sloane\ lookup\ 1,1,2,5,15,52,203,877,4140 \f[] .fi .PP returns entry A000110 (Bell numbers), and four more entries. If no command is given sloane will fall back to the lookup command, so the above query can more simply be given as .IP .nf \f[C] sloane\ 1,1,2,5,15,52,203,877,4140 \f[] .fi .PP One can also search by sequence id (A\-number), or even search for arbitrary words. See the \f[B]EXAMPLES\f[] section. .PP Alternatively, using the \f[C]sloane\ grep\f[] command, the search can be done locally against a downloaded list of known sequences. This mode works by "grepping" for the query in the sequence field. .PP To check a large number of sequences one can use the \f[C]sloane\ filter\f[] command. It reads the standard input line\-by\-line, if the sequence read is in the local database, then it is returned to the standard output; if not, it is ignored. This way onw can quickly filter out the sequences from the input that are in the local database. In other words, assuming that \f[I]FILE\f[] contains one sequence per line, .IP .nf \f[C] sloane\ filter\ . .IP .nf \f[C] I\ \ ID\ number S\ \ 1st\ line\ of\ unsigned\ sequence T\ \ 2nd\ line\ of\ unsigned\ sequence U\ \ 3rd\ line\ of\ unsigned\ sequence V\ \ 1st\ line\ of\ signed\ sequence W\ \ 2nd\ line\ of\ signed\ sequence X\ \ 3rd\ line\ of\ signed\ sequence N\ \ Name C\ \ Comments D\ \ References H\ \ Links F\ \ Formula e\ \ Examples p\ \ Maple\ program t\ \ Mathematica\ program o\ \ Program\ in\ other\ language Y\ \ Cross\-references K\ \ Keywords O\ \ Offset A\ \ Author E\ \ Extensions\ and\ errors \f[] .fi .SH NOTES .PP Please use this program with moderation as not to overburden the OEIS\-server; see OEIS\[aq] policy on searching the database: . .SH SEE ALSO .PP The sloane source code may be downloaded from . .SH AUTHOR .PP Anders Claesson