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.

A004718 The Danish composer Per Nørgård's "infinity sequence", invented in an attempt to unify in a perfect way repetition and variation: a(2n) = -a(n), a(2n+1) = a(n) + 1, a(0) = 0.

Table of values

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

List of values

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