OFFSET
0,3
COMMENTS
This sequence is a self-inverse permutation of the nonnegative integers.
LINKS
Rémy Sigrist, Table of n, a(n) for n = 0..2309
Rémy Sigrist, Colored scatterplot of the first 2*3*5*7*11*13 terms (where the color is function of the multiset of frequencies of n)
Rémy Sigrist, PARI program for A342117
EXAMPLE
The first terms, in decimal and in primorial base, alongside the corresponding multisets of frequencies (ignoring 0's), are:
n a(n) prim(n) prim(a(n)) freq(n)
-- ---- ------- ---------- ------------
0 0 0 0 ()
1 1 1 1 (1)
2 5 10 21 (1, 1)
3 3 11 11 (2)
4 4 20 20 (1, 1)
5 2 21 10 (1, 1)
6 27 100 411 (1, 2)
7 24 101 400 (1, 2)
8 21 110 311 (1, 2)
9 9 111 111 (3)
10 29 120 421 (1, 1, 1)
11 18 121 300 (1, 2)
12 17 200 221 (1, 2)
PROG
(PARI) See Links section.
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Rémy Sigrist, Feb 28 2021
STATUS
approved