login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 60th year, we have over 367,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

Other ways to Give
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A108782 Difference between n and the largest number with the same digit set as n. 3
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 9, 18, 27, 36, 45, 54, 63, 72, 0, 0, 0, 9, 18, 27, 36, 45, 54, 63, 0, 0, 0, 0, 9, 18, 27, 36, 45, 54, 0, 0, 0, 0, 0, 9, 18, 27, 36, 45, 0, 0, 0, 0, 0, 0, 9, 18, 27, 36, 0, 0, 0, 0, 0, 0, 0, 9, 18, 27, 0, 0, 0, 0, 0, 0, 0, 0, 9, 18, 0, 0, 0, 0, 0, 0, 0, 0, 0, 9, 0, 0 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,13
LINKS
FORMULA
a(n) = A004186(n) - n. - Seiichi Manyama, Sep 25 2018
MATHEMATICA
FromDigits[Sort[IntegerDigits[n], Greater]] - n (Rob Pratt)
Table[Max[FromDigits/@ Permutations[IntegerDigits[n]]]-n, {n, 150}]
CROSSREFS
Sequence in context: A044849 A282149 A114612 * A178734 A114386 A178895
KEYWORD
nonn,base,look
AUTHOR
Zak Seidov, Jun 29 2005
EXTENSIONS
a(0)=0 prepended by Seiichi Manyama, Sep 25 2018
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified December 4 11:57 EST 2023. Contains 367560 sequences. (Running on oeis4.)