OFFSET
0,3
LINKS
Seiichi Manyama, Table of n, a(n) for n = 0..7775
MATHEMATICA
Table[FromDigits[Sort[IntegerDigits[n, 6]], 6], {n, 0, 80}] (* Harvey P. Dale, Sep 20 2020 *)
PROG
(Ruby)
def A(k, n)
(0..n).map{|i| i.to_s(k).split('').sort.join.to_i(k)}
end
p A(6, 100)
(PARI) a(n) = fromdigits(vecsort(digits(n, 6)), 6); \\ Michel Marcus, Sep 25 2018
CROSSREFS
KEYWORD
AUTHOR
Seiichi Manyama, Sep 25 2018
STATUS
approved