OFFSET
1,1
COMMENTS
This is a regular language in base 10. [Charles R Greathouse IV, Oct 05 2011]
LINKS
MAPLE
S:= [0, 2, 3, 4, 6, 8]:
f:= proc(n) local L, i;
L:= convert(n, base, 6);
if member(2, L) then
add(S[L[i]+1]*10^(i-1), i=1..nops(L))
fi
end proc:
map(f, [$1..200]); # Robert Israel, Feb 05 2019
MATHEMATICA
Select[Range[400], Union[Select[IntegerDigits[#], OddQ]]=={3}&] (* Harvey P. Dale, May 05 2017 *)
PROG
(Perl) for (0..1000) {
print "$_, " if (/^[023468]*3[023468]*$/)
} # Charles R Greathouse IV, Oct 05 2011
CROSSREFS
KEYWORD
base,easy,nonn
AUTHOR
Eric Angelini, Oct 21 2004
STATUS
approved