OFFSET
1,1
MATHEMATICA
Select[Range[300], DigitCount[#, 3, 0]==DigitCount[#, 3, 2]>0&] (* Harvey P. Dale, May 10 2011 *)
PROG
(Python)
from sympy.ntheory import count_digits
def ok(n): d = count_digits(n, 3); return 0 in d and 2 in d and d[0] == d[2]
print(list(filter(ok, range(285)))) # Michael S. Branicky, Jun 11 2021
CROSSREFS
KEYWORD
nonn,base,easy
AUTHOR
STATUS
approved