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.

A333590 a(n) = a(n-1) if half of the previous term pairs are inverted. a(n) = a(n-1) + 1 if more than half of the previous term pairs are inverted. a(n) = a(n-1) - 1 if fewer than half of the previous term pairs are inverted. a(1) = 0.

Table of values

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

List of values

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