login
A190596
Maximal digit in base-7 expansion of n.
2
0, 1, 2, 3, 4, 5, 6, 1, 1, 2, 3, 4, 5, 6, 2, 2, 2, 3, 4, 5, 6, 3, 3, 3, 3, 4, 5, 6, 4, 4, 4, 4, 4, 5, 6, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 1, 1, 2, 3, 4, 5, 6, 1, 1, 2, 3, 4, 5, 6, 2, 2, 2, 3, 4, 5, 6, 3, 3, 3, 3, 4, 5, 6, 4, 4, 4, 4, 4, 5, 6, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 2, 2, 2, 3, 4, 5, 6
OFFSET
0,3
MATHEMATICA
Map[Max, IntegerDigits[Range[0, 100], 7]] (* Paolo Xausa, May 03 2024 *)
PROG
(PARI) a(n) = if (n, vecmax(digits(n, 7)), 0); \\ Michel Marcus, Jul 19 2020
CROSSREFS
Sequence in context: A346691 A255827 A277545 * A338880 A053842 A010885
KEYWORD
nonn,base
AUTHOR
N. J. A. Sloane, May 13 2011
STATUS
approved