OFFSET
1,2
LINKS
David A. Corneth, Table of n, a(n) for n = 1..10000 (First 1000 terms from Harvey P. Dale)
EXAMPLE
a(24)=a(42) = 24. a(61) = 16.
From the numbers found by permuting the digits 1138, we get 1138, 1183, 1318, 1381, 1813, 1831, 3118, 3181, 3811, 8113, 8131 and 8311. We find that 8113 has the most divisors of those, namely 8. Therefore a(1138) = 8113. - David A. Corneth, Apr 22 2016
MATHEMATICA
pdn[n_]:=Module[{c=SortBy[{#, DivisorSigma[0, #]}&/@FromDigits/@ Permutations[ IntegerDigits[n]], Last], m}, m=c[[-1, 2]]; Min[Transpose[ Select[c, #[[2]]==m&]][[1]]]]; Array[pdn, 80] (* Harvey P. Dale, Nov 29 2013 *)
CROSSREFS
KEYWORD
AUTHOR
Amarnath Murthy, Oct 07 2002
EXTENSIONS
More terms from David Wasserman, Mar 24 2005
STATUS
approved