OFFSET
0,7
LINKS
Indranil Ghosh, Table of n, a(n) for n = 0..46656 (terms 0..1296 from Joseph Myers)
EXAMPLE
For n = 10, 10_10 = 14_6. So, a(10) = 41_6 - 14_6 = 25 - 10 = 15. - Indranil Ghosh, Feb 02 2017
MATHEMATICA
a[n_] := With[{dd = IntegerDigits[n, 6]}, FromDigits[ReverseSort[dd], 6] - FromDigits[Sort[dd], 6]];
a /@ Range[0, 100] (* Jean-François Alcover, Jan 08 2020 *)
CROSSREFS
KEYWORD
base,nonn
AUTHOR
Joseph Myers, Sep 04 2009
STATUS
approved