OFFSET
1,1
EXAMPLE
707 has more 7's than any other digit, whereas both 7007 and 7017 have as many other digits as 7's.
MATHEMATICA
Select[Range[0, 8000], Total@ #1 < First@ #2 & @@ TakeDrop[RotateLeft[#, 7] &@ DigitCount@ #, 9] &] (* Michael De Vlieger, Sep 25 2017 *)
CROSSREFS
KEYWORD
nonn,base,easy
AUTHOR
Halfdan Skjerning, Sep 25 2017
STATUS
approved