|
|
A070196
|
|
a(n) = n plus the sorted version of the base-10 digits of n.
|
|
4
|
|
|
0, 2, 4, 6, 8, 10, 12, 14, 16, 18, 11, 22, 24, 26, 28, 30, 32, 34, 36, 38, 22, 33, 44, 46, 48, 50, 52, 54, 56, 58, 33, 44, 55, 66, 68, 70, 72, 74, 76, 78, 44, 55, 66, 77, 88, 90, 92, 94, 96, 98, 55, 66, 77, 88, 99, 110, 112, 114, 116, 118, 66, 77, 88, 99, 110, 121, 132, 134
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
0,2
|
|
LINKS
|
|
|
FORMULA
|
|
|
MAPLE
|
a:= n-> n+parse(cat(sort(convert(n, base, 10))[])):
|
|
MATHEMATICA
|
Table[n+FromDigits[Sort[IntegerDigits[n]]], {n, 0, 70}] (* Harvey P. Dale, Feb 08 2020 *)
|
|
PROG
|
(Haskell)
(Python)
def a(n): return n + int("".join(sorted(str(n))))
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn,base
|
|
AUTHOR
|
|
|
EXTENSIONS
|
|
|
STATUS
|
approved
|
|
|
|