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