login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A043539
Number of distinct base-12 digits of n.
1
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2
OFFSET
1,12
LINKS
FORMULA
From Michael De Vlieger, Aug 14 2017: (Start)
a(11) = 1 since 11 in base 12 is written with a single digit.
a(13) = 1 since 13 in base 12 is written "11".
a(14) = 2 since 14 in base 12 is written "12".
a(146) is the first appearance of 3 in this sequence, since it is written "102" in base 12.
(End)
MATHEMATICA
Table[Length[Select[DigitCount[n, 12], #>0&]], {n, 100}] (* Vincenzo Librandi, Aug 13 2017 *)
PROG
(PARI) a(n) = #Set(digits(n, 12)); \\ Michel Marcus, Aug 13 2017
CROSSREFS
Sequence in context: A043538 A297780 A043564 * A297781 A043565 A043540
KEYWORD
nonn,base
STATUS
approved