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.

A128998 Length of shortest addition-subtraction chain for n.

Table of values

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

List of values

[0, 1, 2, 2, 3, 3, 4, 3, 4, 4, 5, 4, 5, 5, 5, 4, 5, 5, 6, 5, 6, 6, 6, 5, 6, 6, 6, 6, 7, 6, 6, 5, 6, 6, 7, 6, 7, 7, 7, 6, 7, 7, 7, 7, 7, 7, 7, 6, 7, 7, 7, 7, 8, 7, 8, 7, 8, 8, 8, 7, 8, 7, 7, 6, 7, 7, 8, 7, 8, 8, 8, 7, 8, 8, 8, 8, 8, 8, 8, 7, 8, 8, 8, 8, 8, 8, 9]