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.

A330402 Lexicographically earliest sequence of distinct positive terms with an associate sequence t such that t(0) = 0, and for any n > 0, at least one of t(n-1) - a(n) or t(n-1) + a(n) is a prime number; in case t(n-1) - a(n) is a prime number, set t(n) = t(n-1) - a(n), otherwise set t(n) = t(n-1) + a(n).

Table of values

n a(n)
1 2
2 1
3 4
4 5
5 3
6 6
7 8
8 10
9 11
10 9
11 12
12 14
13 16
14 18
15 24
16 20
17 22
18 28
19 30
20 26
21 32
22 34
23 38
24 36
25 42
26 40
27 46
28 44
29 50
30 45
31 15
32 54
33 48
34 21
35 17
36 52
37 56
38 60
39 62
40 66
41 58
42 70
43 64
44 78
45 68
46 27
47 29
48 72
49 74
50 80
51 82
52 84
53 76
54 96
55 86
56 39
57 35
58 90
59 98
60 102
61 88
62 41
63 51
64 104
65 94
66 100

List of values

[2, 1, 4, 5, 3, 6, 8, 10, 11, 9, 12, 14, 16, 18, 24, 20, 22, 28, 30, 26, 32, 34, 38, 36, 42, 40, 46, 44, 50, 45, 15, 54, 48, 21, 17, 52, 56, 60, 62, 66, 58, 70, 64, 78, 68, 27, 29, 72, 74, 80, 82, 84, 76, 96, 86, 39, 35, 90, 98, 102, 88, 41, 51, 104, 94, 100]