OFFSET
0,3
COMMENTS
First differs from A054055 at n = 100.
LINKS
Paolo Xausa, Table of n, a(n) for n = 0..10000
EXAMPLE
a(100) = 0 because 0 is the digit occurring with the highest frequency in 100.
a(123300) = 3 because both 0 and 3 occur with the (same) highest frequency in 123300, and 3 is the largest digit.
MATHEMATICA
Array[Max[Commonest[IntegerDigits[#]]] &, 120, 0]
PROG
(Python)
from statistics import multimode
def a(n): return int(max(multimode(str(n))))
print([a(n) for n in range(105)]) # Michael S. Branicky, May 21 2024
CROSSREFS
KEYWORD
nonn,base,easy
AUTHOR
Paolo Xausa, May 21 2024
STATUS
approved