cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

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

This page as a plain text file.
%I A108782 #11 Sep 25 2018 07:30:43
%S A108782 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 A108782 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 A108782 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 A108782 Difference between n and the largest number with the same digit set as n.
%H A108782 Seiichi Manyama, <a href="/A108782/b108782.txt">Table of n, a(n) for n = 0..10000</a>
%F A108782 a(n) = A004186(n) - n. - _Seiichi Manyama_, Sep 25 2018
%t A108782 FromDigits[Sort[IntegerDigits[n], Greater]] - n (Rob Pratt)
%t A108782 Table[Max[FromDigits/@ Permutations[IntegerDigits[n]]]-n, {n, 150}]
%Y A108782 Cf. A004186, A151949, A193581.
%K A108782 nonn,base,look
%O A108782 0,13
%A A108782 _Zak Seidov_, Jun 29 2005
%E A108782 a(0)=0 prepended by _Seiichi Manyama_, Sep 25 2018