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.

A257801 Permutation of natural numbers: a(1)=1; a(oddprime(n)) = lucky(1+a(n)), a(not_an_oddprime(n)) = unlucky(a(n-1)).

Table of values

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

List of values

[1, 2, 3, 4, 7, 5, 9, 6, 11, 8, 13, 14, 25, 10, 17, 12, 15, 19, 33, 20, 35, 16, 21, 24, 18, 22, 27, 45, 43, 28, 31, 47, 23, 29, 34, 26, 51, 30, 38, 59, 63, 57, 115, 39, 42, 61, 37, 32, 40, 46, 36, 66, 73, 41, 52, 78, 83, 76, 49, 146, 67, 53, 56, 81, 50, 44, 79, 54, 60, 48, 163, 86, 87, 95, 55, 68, 101, 107, 171, 98, 64]