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.

A157458 Triangle, read by rows, double tent function: T(n,k) = min(1 + 2*k, 1 + 2*(n-k), n).

Table of values

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

List of values

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