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.

A008343 a(1)=1; thereafter a(n+1) = a(n)-n if a(n) >= n otherwise a(n+1) = a(n)+n.

Table of values

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

List of values

[1, 0, 2, 5, 1, 6, 0, 7, 15, 6, 16, 5, 17, 4, 18, 3, 19, 2, 20, 1, 21, 0, 22, 45, 21, 46, 20, 47, 19, 48, 18, 49, 17, 50, 16, 51, 15, 52, 14, 53, 13, 54, 12, 55, 11, 56, 10, 57, 9, 58, 8, 59, 7, 60, 6, 61, 5, 62, 4, 63, 3]