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.

A246682 Permutation of natural numbers: a(1) = 0, a(2) = 1, and for n > 1, a(2n) = nthcomposite(a(n)), a(2n-1) = nthprime(a(A064989(2n-1))), where nthprime = A000040, nthcomposite = A002808, and A064989(n) shifts the prime factorization of n one step towards smaller primes.

Table of values

n a(n)
1 0
2 1
3 2
4 4
5 3
6 6
7 5
8 9
9 7
10 8
11 11
12 12
13 31
14 10
15 13
16 16
17 127
18 14
19 709
20 15
21 19
22 20
23 5381
24 21
25 17
26 46
27 23
28 18
29 52711
30 22
31 648391
32 26
33 29
34 166
35 41
36 24
37 9737333
38 858
39 71
40 25
41 174440041
42 30
43 3657500101
44 32
45 37
46 6186

List of values

[0, 1, 2, 4, 3, 6, 5, 9, 7, 8, 11, 12, 31, 10, 13, 16, 127, 14, 709, 15, 19, 20, 5381, 21, 17, 46, 23, 18, 52711, 22, 648391, 26, 29, 166, 41, 24, 9737333, 858, 71, 25, 174440041, 30, 3657500101, 32, 37, 6186]