OFFSET
1,10
COMMENTS
a(n) = 10 for almost all n. - Charles R Greathouse IV, Oct 02 2013
LINKS
R. Zumkeller, Table of n, a(n) for n = 1..10000
MAPLE
A043537 := proc(n)
convert(convert(n, base, 10), set) ;
nops(%) ;
end proc: # R. J. Mathar, Dec 22 2012
MATHEMATICA
Count[DigitCount@ #, n_ /; n > 0] & /@ Range@ 120 (* Michael De Vlieger, Aug 29 2015 *)
PROG
(Haskell)
import Data.List (nub)
a043537 = length . nub . show -- Reinhard Zumkeller, Apr 16 2011
(PARI) a(n)=#vecsort(digits(n), , 8) \\ Charles R Greathouse IV, Oct 02 2013
(Python)
def A043537(n): return len(set(str(n))) # Dimiter Skordev, Oct 02 2021
CROSSREFS
KEYWORD
nonn,base,easy
AUTHOR
STATUS
approved