login
A055157
n has distinct digits and n=a-b where a has the digits of n in descending order and b has the digits of n in ascending order (perhaps with leading zeros).
3
495, 6174, 97508421, 864197532, 9753086421
OFFSET
0,1
LINKS
Dennis Borris, Identity by Ordered Subtraction, Ken Duisenberg's Puzzle of the Week, April 20, 2000.
FORMULA
a(n) = A055158(n) - A055159(n).
EXAMPLE
495 = 954-459.
CROSSREFS
KEYWORD
nonn,base,fini,full
AUTHOR
Henry Bottomley, Apr 27 2000
STATUS
approved