The On-Line Encyclopedia of Integer Sequences (OEIS) is an online database of integer sequences. It contains nearly 280000 sequences of mathematical interest.
Examples of sequences:
Your task is to write a program or function that displays as many OEIS sequences as you can, with a source code of 100 bytes maximum. Your program should accept as input the sequence id (without the prepending A
and the zeroes), and output the 20 first numbers in that sequence.
You are not allowed to fetch the data directly from the OEIS website; all sequences must be computed by your code.
Scoring
Score is the number of OEIS sequences the program can display. Answers will have to list the IDs of the sequences recognised by their program.
Example
Here's a valid answer in Java 8:
(int a) -> {
for (int i = 0; i < 20; i++) {
System.out.println(a==27?i+1:i*i);
}
};
This program can display the positive integers (A000027 - input 27) and the squares (A000290 - input 290), thus its score is 2.
Note
Please avoid scraping the whole OEIS website :-) you can download the sequence names (about 3 megs) or sequence values (about 9 megs). Note that this download is covered by the OEIS End-User License Agreement.