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.

A377090 a(0) = 0; thereafter, for n > 0, a(n) is the least integer (in absolute value) not yet in the sequence such that the absolute difference between a(n-1) and a(n) is a prime number; in case of a tie, preference is given to the positive value.

Table of values

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

List of values

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