.TH "SLOANE" "1" "7 Jan 2015" "Sloane User Manual" "Version 2.0.4" .SH NAME .PP sloane \- a command line interface to Sloane\[aq]s On\-Line Encyclopedia of Integer Sequences .SH SYNOPSIS .PP sloane [\-a|\-\-all] [\-k KEYS] [\-n N] [\-\-url] [\-\-local] TERMS... .PP sloane \-A NUMBER .PP sloane \-\-filter [\-\-invert] .PP sloane \-\-transform NAME .PP sloane (\-\-list\-transforms | \-\-update | \-\-version | \-\-help) .SH DESCRIPTION .PP The \f[C]sloane\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\ 1,1,2,5,15,52,203,877,4140 \f[] .fi .PP returns entry A000110 (Bell numbers), and four more entries. 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]\-\-local\f[] option, the search can be done locally against a downloaded local database 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 \f[C]\-\-filter\f[]. When this option is set, \f[C]sloane\f[] 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 one 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\ . .RS .RE .TP .B \-\-list\-transforms List the names of all transforms. .RS .RE .TP .B \-\-update Update the local database. .RS .RE .TP .B \-\-version Print version information. .RS .RE .TP .B \-\-help Briefly describe the available options. .RS .RE .SH EXAMPLES .PP The most common search is for entries matching a sequence of consecutive terms: .IP .nf \f[C] sloane\ 1,3,19,183,2371,38703 \f[] .fi .PP At the time of writing this particular query would return .IP .nf \f[C] S\ A006531\ 1,1,3,19,183,2371,38703,763099,17648823,468603091,14050842303, N\ A006531\ Semiorders\ on\ n\ elements. \f[] .fi .PP As this illustrates, the default is to return just the sequence (S) and the name (N) fields. To override the default one can use the keys option. For instance, the following search shows the sequence, name, comments, and formula fields of the sequence whose A\-number is A006531: .IP .nf \f[C] sloane\ \-k\ SNCF\ id:A006531 \f[] .fi .PP The next example returns at most 3 results of a free text search: .IP .nf \f[C] sloane\ \-n\ 3\ "(2+2)\-free\ posets" \f[] .fi .PP To view the full entries of these 3 results in a browser (e.g., Firefox) one can use the url option: .IP .nf \f[C] firefox\ `sloane\ \-\-url\ \-n\ 3\ "(2+2)\-free\ posets"` \f[] .fi .PP To retrieve sequence A022493 from the local database use the \f[C]\-A\f[] option: .IP .nf \f[C] sloane\ \-A022493 \f[] .fi .PP In the final example the local database is used to filter out sequences from the standard input that are in OEIS: .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