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.

A362373 a(0) = 0; for n > 0, if n appears in the sequence then a(n) is the sum of the indices of all previous appearances of n. Otherwise a(n) = a(n-1) - n if nonnegative and 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 2
4 6
5 11
6 4
7 11
8 19
9 10
10 9
11 12
12 11
13 24
14 38
15 23
16 7
17 24
18 42
19 8
20 28
21 49
22 27
23 15
24 30
25 5
26 31
27 22
28 20
29 49
30 24
31 26
32 58
33 25
34 59
35 94
36 130
37 93
38 14
39 53
40 13
41 54
42 18
43 61
44 17
45 62
46 16
47 63
48 111
49 50
50 49
51 100
52 48
53 39
54 41
55 96
56 40
57 97
58 32
59 34
60 94

List of values

[0, 1, 3, 2, 6, 11, 4, 11, 19, 10, 9, 12, 11, 24, 38, 23, 7, 24, 42, 8, 28, 49, 27, 15, 30, 5, 31, 22, 20, 49, 24, 26, 58, 25, 59, 94, 130, 93, 14, 53, 13, 54, 18, 61, 17, 62, 16, 63, 111, 50, 49, 100, 48, 39, 41, 96, 40, 97, 32, 34, 94]