OFFSET
1,1
COMMENTS
This is a 10-automatic language. - Charles R Greathouse IV, Oct 03 2011
MAPLE
q:= n-> is(select(c-> c::odd, {convert(n, base, 10)[]})={7}):
select(q, [$1..887])[]; # Alois P. Heinz, Jul 27 2021
MATHEMATICA
Select[Range[1000], Union[Select[IntegerDigits[#], OddQ]]=={7}&] (* Harvey P. Dale, May 24 2012 *)
PROG
(Perl) for (0..1000) {
print "$_, " if (/^[024678]*7[024678]*$/)
} # Charles R Greathouse IV, Oct 05 2011
(Python)
def ok(n): return set("13579") & set(str(n)) == {'7'}
print(list(filter(ok, range(727)))) # Michael S. Branicky, Jul 27 2021
CROSSREFS
KEYWORD
base,easy,nonn
AUTHOR
Eric Angelini, Oct 21 2004
STATUS
approved