OFFSET
1,9
LINKS
Antti Karttunen, Table of n, a(n) for n = 1..66430
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
KEYWORD
nonn,base
AUTHOR
EXTENSIONS
More terms from Antti Karttunen, Dec 22 2017
STATUS
approved