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.

A301297 Distance from n to nearest Catalan number.

Table of values

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

List of values

[0, 0, 1, 1, 0, 1, 2, 3, 4, 4, 3, 2, 1, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33]