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.

A317754 Let b(1) = b(2) = 1; for n >= 3, b(n) = n - b(t(n)) - b(n-t(n)) where t = A004001. a(n) = 2*b(n) - n.

Table of values

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

List of values

[1, 0, -1, 0, 1, 0, 1, 0, -1, 0, -1, -2, -1, 0, -1, 0, 1, 0, 1, 2, 3, 2, 1, 0, 1, 2, 3, 2, 1, 0, 1, 0, -1, 0, -1, -2, -3, -4, -3, -2, -1, 0, -1, -2, -3, -4, -5, -6, -5, -4, -3, -2, -1, 0, -1, -2, -3, -4, -3, -2, -1, 0, -1, 0, 1, 0, 1, 2, 3, 4, 5, 4, 3, 2, 1, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0]