.TH "SLOANE" "1" "4 Sep 2015" "User Manual" "Version 4.1.0" .SH NAME .PP sloane \- lookup integer sequences, OEIS A\-numbers, etc. .SH SYNOPSIS .PP \f[C]sloane\ [\-\-long]\ [\-k\ KEYS]\ [\-n\ N]\ [\-\-all]\ [\-\-monochrome]\ [\-\-json]\ [\-\-oeis]\ TERMS...\f[] .PD 0 .P .PD \f[C]sloane\ [\-\-invert]\ \-\-filter\f[] .SH DESCRIPTION .PP \f[C]sloane\f[] provides a command line interface to Sloane\[aq]s OEIS (The On\-Line Encyclopedia of Integer Sequences). It can be used offline (the default) as well as online (with the \f[C]\-\-oeis\f[] option). Local searches are faster but a bit less flexible. A common way to use \f[C]sloane\f[] is to search 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 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 shown here the default is to return the sequence (S) and the name (N) fields. These are the only fields that are available in offline mode. In online mode all fields are available. To select among the fields use the \f[C]\-k\f[] option, or, to select all fields, use to \f[C]\-\-long\f[] option. The following search would show the sequence, name, comments, and formula fields: .IP .nf \f[C] sloane\ \-k\ SNCF\ \-\-oeis\ 1,3,19,183,2371,38703 \f[] .fi .PP One can also lookup A\-numbers or do a free text search; see the \f[B]EXAMPLES\f[] section. .PP The \f[C]\-\-filter\f[] option can be very useful when checking a large number of sequences. In this mode \f[C]sloane\f[] reads standard input line\-by\-line, if the sequence read is in the local database, then it is returned to 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. To be concrete, assume that \f[I]FILE\f[] contains one sequence per line. Then .IP .nf \f[C] sloane\ \-\-filter\ .PD 0 .P .PD Source code for \f[C]sloane\f[]: .SH AUTHOR .PP Anders Claesson