login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A292452 Numbers where 2 outnumbers any other digit. 19
2, 22, 122, 202, 212, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 232, 242, 252, 262, 272, 282, 292, 322, 422, 522, 622, 722, 822, 922, 1022, 1202, 1220, 1222, 1223, 1224, 1225, 1226, 1227, 1228, 1229, 1232, 1242, 1252, 1262, 1272, 1282, 1292, 1322, 1422 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
LINKS
EXAMPLE
202 has more 2's than any other digit, whereas 2002 has as many 0's as 2's.
MATHEMATICA
Select[Range[0, 1300], Max@ #1 < First@ #2 & @@ TakeDrop[RotateLeft[#, 2] &@ DigitCount@ #, 9] &] (* Michael De Vlieger, Sep 16 2017 *)
PROG
(Python)
def ok(n):
s=str(n); return s.count('2') > max([0]+[s.count(d) for d in s if d!='2'])
print([m for m in range(1500) if ok(m)]) # Michael S. Branicky, Feb 22 2021
CROSSREFS
Sequence in context: A216801 A083833 A221697 * A292732 A206418 A255866
KEYWORD
nonn,base,easy
AUTHOR
Halfdan Skjerning, Sep 16 2017
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified May 9 01:26 EDT 2024. Contains 372341 sequences. (Running on oeis4.)