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.

A336855 Lexicographically earliest infinite sequence such that a(i) = a(j) => f(i) = f(j), for all i, j >= 1, where f(p) = p-nextprime(p) for primes p, and f(n) = n for all other numbers.

Table of values

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

List of values

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