cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A117822 a(0) = a(1) = 1; for n >= 2, a(n) = a(n-1) + a(n-2) - (n-1) if that number is positive and not already in the sequence, otherwise a(n) = a(n-1) + a(n-2) + (n-1).

Table of values

n a(n)
0 1
1 1
2 3
3 2
4 8
5 6
6 9
7 21
8 23
9 36
10 50
11 76
12 115
13 179
14 281
15 446
16 712
17 1142
18 1837
19 2961
20 4779
21 7720
22 12478
23 20176
24 32631
25 52783
26 85389
27 138146
28 223508
29 361626
30 585105
31 946701
32 1531775
33 2478444
34 4010186
35 6488596
36 10498747
37 16987307
38 27486017
39 44473286

List of values

[1, 1, 3, 2, 8, 6, 9, 21, 23, 36, 50, 76, 115, 179, 281, 446, 712, 1142, 1837, 2961, 4779, 7720, 12478, 20176, 32631, 52783, 85389, 138146, 223508, 361626, 585105, 946701, 1531775, 2478444, 4010186, 6488596, 10498747, 16987307, 27486017, 44473286]