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. 2
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

1,12

LINKS

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

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

Adjacent sequences:  A108779 A108780 A108781 * A108783 A108784 A108785

KEYWORD

nonn,base

AUTHOR

Zak Seidov, Jun 29 2005

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 August 22 22:22 EDT 2017. Contains 290952 sequences.