OFFSET
1,1
COMMENTS
Semiprimes times powers of 2 greater than 2^0 = 1.
LINKS
Charles R Greathouse IV, Table of n, a(n) for n = 1..10000
FORMULA
{A001358(i) * 2^j, j>0}.
EXAMPLE
240 = 6th semiprime * 2^4 = 3 * 5 * 16.
MATHEMATICA
upto=176; Select[Union[Flatten[2^Range[Ceiling[Log[2, upto]]] #&/@ Select[ Range[upto], PrimeOmega[#]==2&]]], #<=upto&](* Harvey P. Dale, Jul 19 2011 *)
PROG
(PARI) is(n)=my(e=valuation(n, 2)); (e>2 && n>>e==1) || (e>1 && isprime(n>>e)) || (e>0 && bigomega(n>>e)==2) \\ Charles R Greathouse IV, Feb 21 2017
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Jonathan Vos Post, Jul 13 2011
STATUS
approved