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..5039
Rémy Sigrist, Colored scatterplot of the first 7! terms (where the color is function of A034968(n))
Rémy Sigrist, PARI program for A338834
EXAMPLE
For n = 26:
- the numbers with 4 digits and sum of digits 2 in factorial base are: 25 ("1001"), 26 ("1010"), 30 ("1100") and 48 ("2000"),
- so a(25) = 40,
a(26) = 30,
a(30) = 26,
a(40) = 25.
PROG
(PARI) See Links section.
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Rémy Sigrist, Nov 11 2020
STATUS
approved