OFFSET
0,3
COMMENTS
This sequence is a self-inverse permutation of the nonnegative integers.
This sequence is well defined: for any n > 0 and k > n, the factorial base expansion of k!, a multiple of n, contains distinct nonzero digits (in fact: a single 1 digit).
LINKS
EXAMPLE
The first terms, alongside the factorial base expansion of n*a(n), are:
n a(n) fact(n*a(n))
-- ---- ------------
0 0 0
1 1 1
2 2 2,0
3 4 2,0,0
4 3 2,0,0
5 10 2,0,1,0
6 6 1,2,0,0
7 7 2,0,0,1
8 9 3,0,0,0
9 8 3,0,0,0
10 5 2,0,1,0
11 12 1,0,2,0,0
12 11 1,0,2,0,0
13 18 1,4,3,0,0
14 14 1,3,0,2,0
15 16 2,0,0,0,0
16 15 2,0,0,0,0
PROG
(PARI) \\ See Links section.
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Rémy Sigrist, Mar 12 2025
STATUS
approved
