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.

A335299 a(0) = 0; for n > 0, a(n) = abs(a(n-1) - n) if not already in the sequence, otherwise a(n) = a(n-1) + n.

Table of values

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

List of values

[0, 1, 3, 6, 2, 7, 13, 20, 12, 21, 11, 22, 10, 23, 9, 24, 8, 25, 43, 62, 42, 63, 41, 18, 42, 17, 43, 16, 44, 15, 45, 14, 46, 79, 113, 78, 114, 77, 39, 78, 38, 79, 37, 80, 36, 81, 35, 82, 34, 83, 33, 84, 32, 85, 31, 86, 30, 27, 85, 26, 86, 147, 209, 146, 210]