1,12

Table of n, a(n) for n=1..91.

FromDigits[Sort[IntegerDigits[n], Greater]] - n (Rob Pratt)

Table[Max[FromDigits/@ Permutations[IntegerDigits[n]]]-n, {n, 150}]

Sequence in context: A044849 A282149 A114612 * A178734 A114386 A178895

Adjacent sequences: A108779 A108780 A108781 * A108783 A108784 A108785

nonn,base

Zak Seidov, Jun 29 2005

approved