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 A276150(n))
Rémy Sigrist, PARI program for A338835
EXAMPLE
For n = 8:
- the numbers with 3 digits and sum of digits 2 in primorial base are: 7 ("101"), 8 ("110") and 12 ("200"),
- so a(7) = 12,
a(8) = 8,
a(12) = 7.
PROG
(PARI) See Links section.
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Rémy Sigrist, Nov 11 2020
STATUS
approved