login
A190593
Maximal digit in base-4 expansion of n.
3
0, 1, 2, 3, 1, 1, 2, 3, 2, 2, 2, 3, 3, 3, 3, 3, 1, 1, 2, 3, 1, 1, 2, 3, 2, 2, 2, 3, 3, 3, 3, 3, 2, 2, 2, 3, 2, 2, 2, 3, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 1, 1, 2, 3, 1, 1, 2, 3, 2, 2, 2, 3, 3, 3, 3, 3, 1, 1, 2, 3, 1, 1, 2, 3, 2, 2, 2, 3, 3, 3, 3, 3, 2, 2, 2, 3, 2, 2, 2, 3, 2
OFFSET
0,3
MATHEMATICA
Map[Max, IntegerDigits[Range[0, 100], 4]] (* Paolo Xausa, May 03 2024 *)
PROG
(PARI) a(n) = if (n, vecmax(digits(n, 4)), 0); \\ Michel Marcus, Jul 19 2020
CROSSREFS
Sequence in context: A065882 A276327 A007884 * A276336 A212811 A338854
KEYWORD
base,nonn
AUTHOR
N. J. A. Sloane, May 13 2011
STATUS
approved