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.

A004197 Triangle read by rows. T(n, k) = n - k if n - k < k, otherwise k.

Table of values

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

List of values

[0, 0, 0, 0, 1, 0, 0, 1, 1, 0, 0, 1, 2, 1, 0, 0, 1, 2, 2, 1, 0, 0, 1, 2, 3, 2, 1, 0, 0, 1, 2, 3, 3, 2, 1, 0, 0, 1, 2, 3, 4, 3, 2, 1, 0, 0, 1, 2, 3, 4, 4, 3, 2, 1, 0, 0, 1, 2, 3, 4, 5, 4, 3, 2, 1, 0, 0, 1, 2, 3, 4, 5, 5, 4, 3, 2, 1, 0, 0, 1, 2, 3, 4, 5, 6, 5, 4, 3, 2, 1, 0, 0, 1, 2, 3, 4, 5, 6, 6, 5, 4, 3, 2, 1, 0, 0, 1, 2]