login
This site is supported by donations to The OEIS Foundation.

 

Logo


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

Seiichi Manyama, Table of n, a(n) for n = 0..10000

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

Cf. A004186, A151949, A193581.

Sequence in context: A044849 A282149 A114612 * A178734 A114386 A178895

Adjacent sequences:  A108779 A108780 A108781 * A108783 A108784 A108785

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 | Recent | More pages
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified November 15 01:39 EST 2018. Contains 317224 sequences. (Running on oeis4.)