This site is supported by donations to The OEIS Foundation.

 Annual appeal: Please make a donation to keep the OEIS running! Over 6000 articles have referenced us, often saying "we discovered this result with the help of the OEIS". Other ways to donate

 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

%I

%S 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,

%T 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,

%U 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

%N Difference between n and the largest number with the same digit set as n.

%t FromDigits[Sort[IntegerDigits[n], Greater]] - n (Rob Pratt)

%t Table[Max[FromDigits/@ Permutations[IntegerDigits[n]]]-n, {n, 150}]

%K nonn,base

%O 1,12

%A _Zak Seidov_, Jun 29 2005

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.

Last modified December 11 13:46 EST 2017. Contains 295876 sequences.