OFFSET
0,5
COMMENTS
When computing T(n, k), we pad the primorial base expansion of k with leading zeros so as to have n digits.
The Chinese remainder theorem ensures that this sequence is well defined and provides a way to compute it.
The n-th row is a permutation of 0..A002110(n)-1.
LINKS
FORMULA
EXAMPLE
Table T(n, k) begins:
0;
0, 1;
0, 3, 4, 1, 2, 5;
0, 15, 10, 25, 20, 5, 6, 21, 16, 1, 26, 11, 12, 27, 22,
7, 2, 17, 18, 3, 28, 13, 8, 23, 24, 9, 4, 19, 14, 29;
...
PROG
(PARI) T(n, k) = { my (t=Mod(0, 1)); if (n, forprime (p=2, prime(n), t=chinese(t, Mod(k, p)); k\=p)); lift(t) }
CROSSREFS
KEYWORD
nonn,base,tabf
AUTHOR
Rémy Sigrist, Feb 06 2023
STATUS
approved