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.

A197702 Smallest positive integer k such that n = +-1 +-3 +-... +-(2k-1) for some choice of +'s and -'s.

Table of values

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

List of values

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