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.

A284172 a(1)=2; thereafter a(n+1) = a(n)+i if a(n) is a prime and a(1),...,a(n) contains i primes, or a(n+1) = a(n)-i if a(n) is composite and a(1),...,a(n) contains i composite terms.

Table of values

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

List of values

[2, 3, 5, 8, 7, 11, 16, 14, 11, 17, 24, 20, 15, 9, 2, 10, 2, 11, 21, 12, 2, 13, 25, 14, 2, 15, 2, 16, 2, 17, 33, 18, 2, 19, 37, 56, 39, 21, 2, 22, 2, 23, 45, 24, 2, 25, 2, 26, 2, 27, 2, 28, 2, 29, 57, 30, 2, 31, 61, 92, 63, 33, 2, 34, 2, 35, 2, 36, 2, 37, 73, 110, 75, 39, 2, 40, 2, 41, 81, 42, 2, 43, 85, 44, 2, 45]