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.

A373064 The mode of the digits of n (using largest mode if multimodal).

Original entry on oeis.org

0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 1, 1, 2, 3, 4, 5, 6, 7, 8, 9, 2, 2, 2, 3, 4, 5, 6, 7, 8, 9, 3, 3, 3, 3, 4, 5, 6, 7, 8, 9, 4, 4, 4, 4, 4, 5, 6, 7, 8, 9, 5, 5, 5, 5, 5, 5, 6, 7, 8, 9, 6, 6, 6, 6, 6, 6, 6, 7, 8, 9, 7, 7, 7, 7, 7, 7, 7, 7, 8, 9, 8, 8, 8, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 0, 1, 2, 3, 4
Offset: 0

Views

Author

Paolo Xausa, May 21 2024

Keywords

Comments

First differs from A054055 at n = 100.

Examples

			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.
		

Crossrefs

Programs

  • Mathematica
    Array[Max[Commonest[IntegerDigits[#]]] &, 120, 0]
  • 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