OFFSET
1,2
COMMENTS
LINKS
Reinhard Zumkeller, Table of n, a(n) for n = 1..10000
FORMULA
EXAMPLE
a(3) = 3 * 3 = 9, a(232) = 3 * 2 = 6, a(1889009898) = 9 * 0 = 0.
MATHEMATICA
Array[Max[#] * Min[#] &@ IntegerDigits[#] &, 81] (* James C. McMahon, Aug 18 2024 *)
PROG
(Haskell)
a115300 n = a054054 n * a054055 n -- Reinhard Zumkeller, Apr 29 2015
(Python)
def a(n): d = list(map(int, str(n))); return max(d) * min(d)
print([a(n) for n in range(1, 82)]) # Michael S. Branicky, Dec 12 2023
(PARI) a(n) = my(d=digits(n)); vecmin(d)*vecmax(d); \\ Michel Marcus, Aug 18 2024
CROSSREFS
KEYWORD
AUTHOR
Rick L. Shepherd, Jan 20 2006
STATUS
approved