OFFSET
0,14
LINKS
Seiichi Manyama, Table of n, a(n) for n = 0..10000 (terms 0..1000 from Joseph Myers)
PROG
(PARI) a(n) = my(d=digits(n)); (fromdigits(vecsort(d, , 4)) - fromdigits(vecsort(d)))/9; \\ Michel Marcus, Sep 25 2018
CROSSREFS
KEYWORD
AUTHOR
N. J. A. Sloane, Aug 18 2009
EXTENSIONS
Extended by Joseph Myers, Aug 28 2009
STATUS
approved