OFFSET
0,7
LINKS
FORMULA
EXAMPLE
For n=6 ("100" in factorial base representation A007623) there are two digits in interval [1..A084558(6)] = [1..3] that are not used, namely 2 and 3, thus a(6)=2.
For n=12 ("200") there are also two digits in interval [1..3] that are not used, namely 1 and 3, thus a(12)=2.
For n=23 ("321") all the digits in interval [1..3] are in use, thus a(23)=0.
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Antti Karttunen, Aug 15 2016
STATUS
approved