OFFSET
0,3
LINKS
Seiichi Manyama, Table of n, a(n) for n = 0..7775
FORMULA
n <= a(n) < 6n. - Charles R Greathouse IV, Aug 07 2024
MATHEMATICA
Table[FromDigits[ReverseSort[IntegerDigits[n, 6]], 6], {n, 0, 100}] (* Paolo Xausa, Aug 07 2024 *)
PROG
(Ruby)
def A(k, n)
(0..n).map{|i| i.to_s(k).split('').sort.reverse.join.to_i(k)}
end
p A(6, 100)
(PARI) a(n) = fromdigits(vecsort(digits(n, 6), , 4), 6); \\ Michel Marcus, Sep 26 2018
CROSSREFS
KEYWORD
nonn,base,easy
AUTHOR
Seiichi Manyama, Sep 26 2018
STATUS
approved