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.

A257731 Permutation of natural numbers: a(1) = 1, a(prime(n)) = lucky(1+a(n)), a(composite(n)) = unlucky(a(n)), where prime(n) = n-th prime number A000040, composite(n) = n-th composite number A002808 and lucky = A000959, unlucky = A050505.

Table of values

n a(n)
1 1
2 3
3 9
4 2
5 33
6 5
7 7
8 14
9 4
10 45
11 163
12 8
13 15
14 11
15 20
16 6
17 25
18 59
19 63
20 203
21 12
22 22
23 13
24 17
25 28
26 10
27 35
28 78
29 235
30 83
31 1093
32 251
33 18
34 30
35 19
36 24
37 31
38 39
39 16
40 47
41 67
42 101
43 43
44 290
45 107
46 1283
47 87
48 309
49 26
50 41
51 27
52 34
53 21
54 42
55 53
56 23
57 61
58 88
59 115
60 128
61 321
62 57
63 354
64 137
65 1499
66 112
67 349
68 376
69 36
70 55
71 1401
72 38
73 49
74 46
75 29
76 56
77 70
78 32
79 99
80 81

List of values

[1, 3, 9, 2, 33, 5, 7, 14, 4, 45, 163, 8, 15, 11, 20, 6, 25, 59, 63, 203, 12, 22, 13, 17, 28, 10, 35, 78, 235, 83, 1093, 251, 18, 30, 19, 24, 31, 39, 16, 47, 67, 101, 43, 290, 107, 1283, 87, 309, 26, 41, 27, 34, 21, 42, 53, 23, 61, 88, 115, 128, 321, 57, 354, 137, 1499, 112, 349, 376, 36, 55, 1401, 38, 49, 46, 29, 56, 70, 32, 99, 81]