OFFSET
1,1
LINKS
Harvey P. Dale, Table of n, a(n) for n = 1..1000
EXAMPLE
707 has more 7's than any other digit, whereas 7007 has as many 0's as 7's.
MATHEMATICA
Select[Range[0, 2000], Max@ #1 < First@ #2 & @@ TakeDrop[RotateLeft[#, 7] &@ DigitCount@ #, 9] &] (* Michael De Vlieger, Sep 18 2017 *)
Select[Range[2000], Max[Drop[DigitCount[#], {7}]]<DigitCount[#, 10, 7]&] (* Harvey P. Dale, Oct 07 2023 *)
PROG
(PARI) isok(n) = {d = digits(n); v = vector(10, n, #select(x->x==(n-1), d)); for (k=1, #v, if ((k != 8) && (v[k] >= v[8]), return(0)); ); return(1); } \\ Michel Marcus, Sep 21 2017
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Halfdan Skjerning, Sep 18 2017
STATUS
approved