ArticleslgStudy

mathematics

On-Line Encyclopedia of Integer Sequences

On-Line Encyclopedia of Integer Sequences is a mathematics topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand On-Line Encyclopedia of Integer Sequences rather than just read about it. In short: The On-Line Encyclopedia of Integer Sequences (OEIS) is an online database of integer sequences. It was created and maintained by Neil Sloane while researching at AT&T Labs.

On-Line Encyclopedia of Integer Sequences — main illustration
On-Line Encyclopedia of Integer Sequences — illustration

Key takeaways

  • On-Line Encyclopedia of Integer Sequences belongs to mathematics; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect On-Line Encyclopedia of Integer Sequences to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of On-Line Encyclopedia of Integer Sequences from memory before moving on to harder problems.

Reference excerpt

The On-Line Encyclopedia of Integer Sequences (OEIS) is an online database of integer sequences. It was created and maintained by Neil Sloane while researching at AT&T Labs. He transferred the intellectual property and hosting of the OEIS to the OEIS Foundation in 2009, and is its chairman. OEIS records information on integer sequences of interest to both professional and amateur mathematicians, and is widely cited. As of October 2026, it contains over 400,000 sequences, and is growing by approximately 30 entries per day. Each entry contains the leading terms of the sequence, keywords, mathematical motivations, literature links, and more, including the option to generate a graph or play a musical representation of the sequence. The database is searchable by keyword, by subsequence, or by any of 16 fields. There is also an advanced search function called SuperSeeker which runs a large number of different algorithms to identify sequences related to the input.

History

Neil Sloane started collecting integer sequences as a graduate student in 1964 to support his work in combinatorics. The database was at first stored on punched cards. He published selections from the database in book form twice:

A Handbook of Integer Sequences (1973, ISBN 0-12-648550-X), containing 2,372 sequences in lexicographic order and assigned numbers from 1 to 2372. The Encyclopedia of Integer Sequences with Simon Plouffe (1995, ISBN 0-12-558630-2), containing 5,488 sequences and assigned M-numbers from M0000 to M5487. The Encyclopedia includes the references to the corresponding sequences (which may differ in their few initial terms) in A Handbook of Integer Sequences as N-numbers from N0001 to N2372 (instead of 1 to 2372.) The Encyclopedia includes the A-numbers that are used in the OEIS, whereas the Handbook did not.

These books were well-received and, especially after the second publication, mathematicians supplied Sloane with a steady flow of new sequences. The collection became unmanageable in book form, and when the database reached 16,000 entries Sloane decided to go online – first as an email service (August 1994), and soon thereafter as a website (1996). As a spin-off from the database work, Sloane founded the Journal of Integer Sequences in 1998. The database continues to grow at a rate of some 10,000 entries a year. Sloane has personally managed 'his' sequences for almost 40 years, but starting in 2002, a board of associate editors and volunteers has helped maintain the omnibus database. In 2004, Sloane celebrated the addition of the 100,000th sequence to the database, A100000, which counts the marks on the Ishango bone. In 2006, the user interface was overhauled and more advanced search capabilities were added. In 2010 an OEIS wiki was created to simplify the collaboration of the OEIS editors and contributors. The 200,000th sequence, A200000, was added to the database in November 2011; it was initially entered as A200715, and moved to A200000 after a week of discussion on the SeqFan mailing list, following a proposal by OEIS Editor-in-Chief Charles Greathouse to choose a special sequence for A200000. A300000 was defined in February 2018, and by 2026 the database contained more than 390,000 sequences. Then, nominations for sequence A400000 was announced in the OEIS. In October 25, 2026, the OEIS announced the winner for sequence A400000, reaching their milestone.

Non-integers Besides integer sequences, the OEIS also catalogs sequences of fractions, the digits of transcendental numbers, complex numbers and so on by transforming them into integer sequences. Sequences of fractions are represented by two sequences (named with the keyword 'frac'): the sequence of numerators and the sequence of denominators. For example, the fifth-order Farey sequence, 15,14,13,25,12,35,23,34,45, is catalogued as the numerator sequence 1, 1, 1, 2, 1, 3, 2, 3, 4 (A006842) and the denominator sequence 5, 4, 3, 5, 2, 5, 3, 4, 5 (A006843). Important irrational numbers such as π = 3.1415926535897... are catalogued under representative integer sequences such as decimal expansions (here 3, 1, 4, 1, 5, 9, 2, 6, 5, 3, 5, 8, 9, 7, 9, 3, 2, 3, 8, 4, 6, 2, 6, 4, 3, 3, 8, 3, 2, 7, 9, 5, 0, 2, 8, 8, ... (A000796)), binary expansions (here 1, 1, 0, 0, 1, 0, 0, 1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 0, 1, 1, 0, 1, 0, ... (A004601)), or continued fraction expansions (here 3, 7, 15, 1, 292, 1, 1, 1, 2, 1, 3, 1, 14, 2, 1, 1, 2, 2, 2, 2, 1, 84, 2, 1, 1, ... (A001203)).

Conventions The OEIS was limited to plain ASCII text until 2011, and it still uses a linear form of conventional mathematical notation (such as f(n) for functions, n for running variables, etc.). Greek letters are usually represented by their full names, e.g., mu for μ, phi for φ. Every sequence is identified by the letter A followed by six digits, almost always referred to with leading zeros, e.g., A000315 rather than A315. Individual terms of sequences are separated by commas. Digit groups are not separated by commas, periods, or spaces. In comments, formulas, etc., a(n) represents the nth term of the sequence.

Special meaning of zero Zero is often used to represent non-existent sequence elements. For example, A104157 enumerates the "smallest prime of n2 consecutive primes to form an n × n magic square of least magic constant, or 0 if no such magic square exists." The value of a(1) (a 1 × 1 magic square) is 2; a(3) is 1480028129. But there is no such 2 × 2 magic square, so a(2) is 0. This special usage has a solid mathematical basis in certain counting functions; for example, the totient valence function Nφ(m) (A014197) counts the solutions of φ(x) = m. There are 4 solutions for 4, but no solutions for 14, hence a(14) of A014197 is 0—there are no solutions. Other values are also used, most commonly −1 (see A000230 or A094076).

Lexicographical ordering The OEIS maintains the lexicographical order of the sequences, so each sequence has a predecessor and a successor (its "context"). OEIS normalizes the sequences for lexicographical ordering, (usually) ignoring all initial zeros and ones, and also the sign of each element. Sequences of weight distribution codes often omit periodically recurring zeros. For example, consider: the prime numbers, the palindromic primes, the Fibonacci sequence, the lazy caterer's sequence, and the coefficients in the series expansion of ζ(n+2)ζ(n). In OEIS lexicographic order, they are:

… excerpt ends here. Continue reading the full article.

Illustrations

On-Line Encyclopedia of Integer Sequences: Second edition of the book
Second edition of the book
On-Line Encyclopedia of Integer Sequences: Sloane's "Integer Sequences" web page on the "AT&T research" web site as of 1999
Sloane's "Integer Sequences" web page on the "AT&T research" web site as of 1999
On-Line Encyclopedia of Integer Sequences: Plot of Sloane's Gap: number of occurrences (y log scale) of each integer (x scale) in the OEIS database
Plot of Sloane's Gap: number of occurrences (y log scale) of each integer (x scale) in the OEIS database

Worked examples

Example 1 — a first encounter with On-Line Encyclopedia of Integer Sequences

Start with the simplest possible case. Write down what On-Line Encyclopedia of Integer Sequences claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In mathematics, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to On-Line Encyclopedia of Integer Sequences before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about On-Line Encyclopedia of Integer Sequences ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of On-Line Encyclopedia of Integer Sequences

In research
On-Line Encyclopedia of Integer Sequences appears in mathematics research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses On-Line Encyclopedia of Integer Sequences in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
On-Line Encyclopedia of Integer Sequences is common in secondary-school and first-year university syllabi. It links to neighbouring topics 1964 establishments in the United States, 20th-century encyclopedias, 21st-century encyclopedias, so understanding it makes those chapters shorter.
In everyday life
Look for On-Line Encyclopedia of Integer Sequences outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “On-Line Encyclopedia of Integer Sequences” →

How to study On-Line Encyclopedia of Integer Sequences in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what On-Line Encyclopedia of Integer Sequences means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain On-Line Encyclopedia of Integer Sequences out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is On-Line Encyclopedia of Integer Sequences in simple terms?

The On-Line Encyclopedia of Integer Sequences (OEIS) is an online database of integer sequences. It was created and maintained by Neil Sloane while researching at AT&T Labs.

Why does On-Line Encyclopedia of Integer Sequences matter?

Because it connects several mathematics ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study On-Line Encyclopedia of Integer Sequences?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on On-Line Encyclopedia of Integer Sequences.

Tags

  • 1964 establishments in the United States
  • 20th-century encyclopedias
  • 21st-century encyclopedias
  • American online encyclopedias
  • Creative Commons-licensed works
  • Encyclopedias of mathematics
  • Integer sequences
  • Internet properties established in 1996
  • Mathematical databases
  • Mathematical projects
  • Multilingual online encyclopedias
  • On-Line Encyclopedia of Integer Sequences

Keep exploring