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!)
A043536 Number of distinct base-9 digits of n. 3
1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 2, 1, 2, 2, 2, 2, 2, 2, 2, 3, 2, 2, 3, 3, 3, 3 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,9
LINKS
EXAMPLE
As 731 = 1*(9^3) + 0*(9^2) + 0*(9^1) + 2*(9^0), it is written in base 9 (A007095) as "1002". There are three kinds of digits present, thus a(731) = 3. - Antti Karttunen, Dec 22 2017
MATHEMATICA
Table[Count[DigitCount[n, 9], +_?(#>0&)], {n, 100}] (* Harvey P. Dale, Apr 30 2015 *)
PROG
(PARI) A043536(n) = length(vecsort(digits(n, 9), , 8)); \\ Antti Karttunen, Dec 22 2017
CROSSREFS
Sequence in context: A276034 A111626 A297777 * A043561 A297778 A043562
KEYWORD
nonn,base
AUTHOR
EXTENSIONS
More terms from Antti Karttunen, Dec 22 2017
STATUS
approved

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 March 2 15:21 EST 2024. Contains 370494 sequences. (Running on oeis4.)