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!)
A007958 Even numbers with at least one odd digit. 2
10, 12, 14, 16, 18, 30, 32, 34, 36, 38, 50, 52, 54, 56, 58, 70, 72, 74, 76, 78, 90, 92, 94, 96, 98, 100, 102, 104, 106, 108, 110, 112, 114, 116, 118, 120, 122, 124, 126, 128, 130, 132, 134, 136, 138, 140, 142, 144, 146, 148, 150, 152, 154, 156, 158, 160, 162 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
COMMENTS
Old name was: Even numbers such that some permutation of digits is an odd number.
a(n) = A179083(n) for n <= 30. - Reinhard Zumkeller, Jun 28 2010
LINKS
FORMULA
a(n) ~ 2n. - Charles R Greathouse IV, Oct 23 2015
MATHEMATICA
Select[2*Range[100], Or@@OddQ[IntegerDigits[#]]&] (* Harvey P. Dale, Apr 01 2013 *)
PROG
(PARI) is(n)=n%2==0 && vecsum(Set(digits(n)%2)) \\ Charles R Greathouse IV, Oct 23 2015
(Python)
def ok(n): return n%2 == 0 and set(str(n)) & set("13579") != set()
print(list(filter(ok, range(163)))) # Michael S. Branicky, Oct 12 2021
CROSSREFS
Sequence in context: A309539 A273492 A227870 * A179083 A092132 A088170
KEYWORD
nonn,base,easy
AUTHOR
R. Muller
EXTENSIONS
New name from Charles R Greathouse IV, Feb 14 2017, based on comment from Harvey P. Dale, Apr 01 2013
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 25 05:56 EDT 2024. Contains 371964 sequences. (Running on oeis4.)