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.

A322574 z(1) = 0, and for any n > 0, z(4*n-2) = z(n) + k(n), z(4*n-1) = z(n) + i*k(n), z(4*n) = z(n) - k(n) and z(4*n+1) = z(n) - i*k(n) where k(n) is the least positive integer not leading to a duplicate term in sequence z (and i denotes the imaginary unit); a(n) is the real part of z(n).

Table of values

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

List of values

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