OFFSET
1,2
COMMENTS
A multiplicative semigroup; if m and n are in the sequence then so is m*n. - David James Sycamore, Jul 17 2018
From Peter Munn, Jul 19 2020: (Start)
Also closed under the commutative binary operation A059897(.,.), forming a subgroup of the positive integers under A059897.
A number is listed if and only if it has an even number of odd prime factors, counting repetitions; equivalently, if and only if it is the product of a term of A046337 and a power of 2 (term of A000079).
(End)
LINKS
Robert Israel, Table of n, a(n) for n = 1..10000
FORMULA
Sum_{n>=1} 1/a(n)^s = (zeta(s) + ((2^s + 1)/(2^s - 1))*zeta(2*s)/zeta(s))/2 for Re(s)>1. - Amiram Eldar, Nov 02 2020
EXAMPLE
141 = 3 * 47 is a term since the sum 3 + 47 = 50 is even.
MAPLE
filter:= proc(n) local t; add(t[1]*t[2], t=ifactors(n)[2])::even end proc:
select(filter, [$1..200]); # Robert Israel, Jul 15 2020
MATHEMATICA
Select[Range[160], EvenQ[Total[Times@@@FactorInteger[#]]]&] (* Harvey P. Dale, Sep 21 2011 *)
PROG
(PARI) isok(n) = my(f=factor(n)); (sum(k=1, #f~, f[k, 1]*f[k, 2]) % 2) == 0; \\ Michel Marcus, Jul 19 2018
CROSSREFS
Complement of A335657.
KEYWORD
nonn
AUTHOR
Patrick De Geest, Dec 15 1998
EXTENSIONS
First term (2) from Harvey P. Dale, Sep 21 2011
First term (1) from David James Sycamore, Jul 17 2018
STATUS
approved