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.

A240808 a(0)=2, a(1)=1, a(2)=0; thereafter a(n) = a(n-1-a(n-1))+a(n-2-a(n-2)) unless a(n-1) <= n-1 or a(n-2) <= n-2 in which case the sequence terminates.

Table of values

n a(n)
0 2
1 1
2 0
3 2
4 1
5 3
6 2
7 1
8 3
9 5
10 4
11 3
12 5
13 4
14 6
15 8
16 4
17 6
18 8
19 7
20 9
21 8
22 7
23 12
24 11
25 7
26 12
27 14
28 10
29 12
30 14
31 10
32 12
33 17
34 13
35 12
36 20
37 16
38 12
39 20
40 19
41 15
42 20
43 19
44 18
45 23
46 19
47 21
48 26
49 19
50 21
51 26
52 19
53 24
54 29
55 19
56 27
57 32
58 19
59 27
60 32
61 22
62 30
63 32
64 22
65 30
66 32
67 25
68 33
69 32
70 28
71 36
72 32
73 31
74 39
75 32
76 31
77 42
78 35
79 31
80 45
81 38
82 31
83 45
84 38
85 31
86 48
87 41
88 31
89 51
90 44
91 31
92 51
93 47
94 34

List of values

[2, 1, 0, 2, 1, 3, 2, 1, 3, 5, 4, 3, 5, 4, 6, 8, 4, 6, 8, 7, 9, 8, 7, 12, 11, 7, 12, 14, 10, 12, 14, 10, 12, 17, 13, 12, 20, 16, 12, 20, 19, 15, 20, 19, 18, 23, 19, 21, 26, 19, 21, 26, 19, 24, 29, 19, 27, 32, 19, 27, 32, 22, 30, 32, 22, 30, 32, 25, 33, 32, 28, 36, 32, 31, 39, 32, 31, 42, 35, 31, 45, 38, 31, 45, 38, 31, 48, 41, 31, 51, 44, 31, 51, 47, 34]