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.

A030397 a(n)=(# 1's)-(# 2's) in first n terms of A030386.

Table of values

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

List of values

[1, 0, 0, 0, 1, 2, 3, 2, 3, 3, 4, 4, 3, 4, 3, 2, 1, 1, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 1, 2, 2, 3, 2, 2, 3, 3, 3, 4, 4, 5, 6, 7, 8, 9, 8, 9, 10, 10, 11, 12, 12, 11, 12, 13, 12, 13, 12, 11, 12, 12, 11, 12, 12, 12, 13, 14, 14, 15, 14, 14, 15, 15, 15, 16, 16]