This site is supported by donations to The OEIS Foundation.

 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

%I

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

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

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

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

%H Seiichi Manyama, <a href="/A108782/b108782.txt">Table of n, a(n) for n = 0..10000</a>

%F a(n) = A004186(n) - n. - _Seiichi Manyama_, Sep 25 2018

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

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

%Y Cf. A004186, A151949, A193581.

%K nonn,base,look

%O 0,13

%A _Zak Seidov_, Jun 29 2005

%E a(0)=0 prepended by _Seiichi Manyama_, Sep 25 2018

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 November 18 18:20 EST 2018. Contains 317324 sequences. (Running on oeis4.)