OFFSET
0,2
LINKS
Reinhard Zumkeller, Table of n, a(n) for n = 0..10000
Eric Weisstein's World of Mathematics, Sort-Then-Add Sequence
FORMULA
a(n) = n + A004185(n). - Reinhard Zumkeller, Apr 03 2015
MAPLE
a:= n-> n+parse(cat(sort(convert(n, base, 10))[])):
seq(a(n), n=0..67); # Alois P. Heinz, Jan 15 2024
MATHEMATICA
Table[n+FromDigits[Sort[IntegerDigits[n]]], {n, 0, 70}] (* Harvey P. Dale, Feb 08 2020 *)
PROG
(Haskell)
a070196 n = n + a004185 n -- Reinhard Zumkeller, Apr 03 2015
(Python)
def a(n): return n + int("".join(sorted(str(n))))
print([a(n) for n in range(68)]) # Michael S. Branicky, Jan 15 2024
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Eric W. Weisstein, Apr 27 2002
EXTENSIONS
Zero prepended and offset changed by Reinhard Zumkeller, Apr 03 2015
STATUS
approved