login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A043539 Number of distinct base-12 digits of n. 1

%I #14 Apr 24 2021 21:30:21

%S 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,

%T 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,

%U 2,2,2,2,2,2,2,2,2,1,2,2,2,2,2,2,2,2,2,2,2,2

%N Number of distinct base-12 digits of n.

%H Vincenzo Librandi, <a href="/A043539/b043539.txt">Table of n, a(n) for n = 1..5000</a>

%F From _Michael De Vlieger_, Aug 14 2017: (Start)

%F a(11) = 1 since 11 in base 12 is written with a single digit.

%F a(13) = 1 since 13 in base 12 is written "11".

%F a(14) = 2 since 14 in base 12 is written "12".

%F a(146) is the first appearance of 3 in this sequence, since it is written "102" in base 12.

%F (End)

%t Table[Length[Select[DigitCount[n, 12], #>0&]], {n, 100}] (* _Vincenzo Librandi_, Aug 13 2017 *)

%o (PARI) a(n) = #Set(digits(n, 12)); \\ _Michel Marcus_, Aug 13 2017

%K nonn,base

%O 1,12

%A _Clark Kimberling_

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 24 18:17 EDT 2024. Contains 371962 sequences. (Running on oeis4.)