OFFSET
0,3
LINKS
Seiichi Manyama, Table of n, a(n) for n = 0..6560
FORMULA
n <= a(n) < 9n. - Charles R Greathouse IV, Aug 07 2024
MATHEMATICA
Table[FromDigits[Reverse[Sort[IntegerDigits[n, 9]]], 9], {n, 0, 70}] (* Harvey P. Dale, Oct 26 2022 *)
PROG
(Ruby)
def A(k, n)
(0..n).map{|i| i.to_s(k).split('').sort.reverse.join.to_i(k)}
end
p A(9, 100)
(PARI) a(n) = fromdigits(vecsort(digits(n, 9), , 4), 9); \\ Michel Marcus, Sep 26 2018
CROSSREFS
KEYWORD
AUTHOR
Seiichi Manyama, Sep 26 2018
STATUS
approved