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.

A097140 Interleave n and 1-n.

Table of values

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

List of values

[0, 1, 1, 0, 2, -1, 3, -2, 4, -3, 5, -4, 6, -5, 7, -6, 8, -7, 9, -8, 10, -9, 11, -10, 12, -11, 13, -12, 14, -13, 15, -14, 16, -15, 17, -16, 18, -17, 19, -18, 20, -19, 21, -20, 22, -21, 23, -22, 24, -23, 25, -24, 26, -25, 27, -26, 28, -27, 29, -28, 30, -29, 31, -30, 32, -31]