OFFSET
1,2
COMMENTS
LINKS
Zhining Yang, Table of n, a(n) for n = 1..30000
EXAMPLE
1211 is a term: it has 4 digits, 3 of which are 1's, and 3/4 > 1/2.
1212 is not a term: it has 4 digits, no one of which appears more than twice.
MATHEMATICA
Select[Range[300], Max[DigitCount[#]] > IntegerLength[#]/2 &]
PROG
(Python)
def ok(k):
t=str(k)
return(max(t.count(str(i)) for i in range(10))>(len(t)//2))
print([n for n in range(1, 201) if ok(n)])
CROSSREFS
KEYWORD
nonn,base,easy
AUTHOR
Zhining Yang, Apr 29 2022
STATUS
approved