OFFSET
1,1
COMMENTS
This is a regular language in base 10. - Charles R Greathouse IV, Oct 05 2011
The number of terms of this sequence that are smaller than 10^n is n*5^(n-1). - Stefan Steinerberger, Jun 06 2006
Any number of 9s is permitted. - Harvey P. Dale, May 07 2019
LINKS
MATHEMATICA
Select[Range[1000], DigitCount[ # ][[1]] == 0 && DigitCount[ # ][[3]] == 0 && DigitCount[ # ][[5]] == 0 && DigitCount[ # ][[7]] == 0 && DigitCount[ # ][[9]] >0 &] (* Stefan Steinerberger, Jun 06 2006; corrected by Harvey P. Dale, May 07 2019 *)
Select[Range[1000], Union[Select[IntegerDigits[#], OddQ]]=={9}&] (* Harvey P. Dale, May 07 2019 *)
PROG
(Perl) for (0..1000) {
print "$_, " if (/^[024689]*9[024689]*$/)
} # Charles R Greathouse IV, Oct 05 2011
(Python)
def ok(n): return set(str(n)) & set("13579") == set("9")
print(list(filter(ok, range(899)))) # Michael S. Branicky, Sep 29 2021
CROSSREFS
KEYWORD
base,easy,nonn
AUTHOR
Eric Angelini, Oct 21 2004
EXTENSIONS
More terms from Stefan Steinerberger, Jun 06 2006
STATUS
approved