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.

A284278 a(1)=2; for n >= 1, if n+2 is prime then a(2*n+1) = 3*n + 2 and a(2*n) = n + 2, otherwise all terms are 2.

Table of values

n a(n)
1 2
2 3
3 5
4 4
5 2
6 5
7 9
8 6
9 2
10 7
11 13
12 8
13 2
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 20
37 2
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 32
61 2
62 33
63 2
64 34
65 2
66 35
67 2
68 36
69 2
70 37
71 73
72 38
73 2
74 39

List of values

[2, 3, 5, 4, 2, 5, 9, 6, 2, 7, 13, 8, 2, 9, 2, 10, 2, 11, 21, 12, 2, 13, 25, 14, 2, 15, 2, 16, 2, 17, 33, 18, 2, 19, 37, 20, 2, 21, 2, 22, 2, 23, 45, 24, 2, 25, 2, 26, 2, 27, 2, 28, 2, 29, 57, 30, 2, 31, 61, 32, 2, 33, 2, 34, 2, 35, 2, 36, 2, 37, 73, 38, 2, 39]