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.

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

Table of values

n a(n)
1 1
2 4
3 2
4 9
5 6
6 16
7 7
8 12
9 3
10 26
11 14
12 21
13 23
14 8
15 13
16 39
17 24
18 33
19 35
20 15
21 53
22 22
23 56
24 36
25 17
26 49
27 51
28 25
29 75
30 34
31 37
32 78
33 5
34 52
35 27
36 69
37 101
38 72
39 38
40 102
41 50
42 54
43 43
44 106
45 10
46 74
47 40
48 94
49 73
50 134
51 83
52 98
53 55
54 135
55 70
56 76
57 62
58 141
59 18
60 100
61 57
62 125
63 19
64 99
65 175
66 114
67 41
68 130
69 167
70 77
71 176
72 95
73 89
74 104
75 137
76 86
77 184
78 28
79 149
80 133
81 80
82 164
83 30

List of values

[1, 4, 2, 9, 6, 16, 7, 12, 3, 26, 14, 21, 23, 8, 13, 39, 24, 33, 35, 15, 53, 22, 56, 36, 17, 49, 51, 25, 75, 34, 37, 78, 5, 52, 27, 69, 101, 72, 38, 102, 50, 54, 43, 106, 10, 74, 40, 94, 73, 134, 83, 98, 55, 135, 70, 76, 62, 141, 18, 100, 57, 125, 19, 99, 175, 114, 41, 130, 167, 77, 176, 95, 89, 104, 137, 86, 184, 28, 149, 133, 80, 164, 30]