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!)
A309539 Positive numbers that contain both odd and even digits, with no digit repeated. 1
10, 12, 14, 16, 18, 21, 23, 25, 27, 29, 30, 32, 34, 36, 38, 41, 43, 45, 47, 49, 50, 52, 54, 56, 58, 61, 63, 65, 67, 69, 70, 72, 74, 76, 78, 81, 83, 85, 87, 89, 90, 92, 94, 96, 98, 102, 103, 104, 105, 106, 107, 108, 109, 120, 123, 124, 125, 126, 127, 128, 129, 130, 132, 134, 136 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
COMMENTS
Unlike A318700, where digits can be repeated, this sequence is finite; last term is 9876543210.
LINKS
EXAMPLE
49 and 50 are in the sequence but 19 and 20 are not.
MATHEMATICA
boeQ[n_]:=Max[DigitCount[n]]==1&&IntegerLength[n]>Count[ IntegerDigits[ n], _?EvenQ]>0; Select[Range[150], boeQ] (* Harvey P. Dale, Jul 02 2020 *)
PROG
(PARI) isok(n) = my(d=digits(n)); (#d == #Set(d)) && #select(x->(x%2), d) && #select(x->!(x%2), d); \\ Michel Marcus, Aug 07 2019
CROSSREFS
Sequence in context: A055983 A318700 A180157 * A273492 A227870 A007958
KEYWORD
nonn,base,fini
AUTHOR
Enrique Navarrete, Aug 06 2019
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 April 16 17:08 EDT 2024. Contains 371749 sequences. (Running on oeis4.)