OFFSET
1,2
COMMENTS
LINKS
G. C. Greubel, Table of n, a(n) for n = 1..1000
EXAMPLE
omega(12)=2 and 4=2^2 is the largest power of 2 dividing 12, hence 12 is in the sequence.
MATHEMATICA
Select[Range[600], IntegerExponent[#, 2]==PrimeNu[#]&] (* Harvey P. Dale, Jun 26 2011 *)
PROG
(PARI) isok(n) = omega(n) == valuation(n, 2); \\ Michel Marcus, Apr 16 2015
(Python)
from itertools import count, islice
from sympy.ntheory.factor_ import primenu
def A023534_gen(startvalue=1): # generator of terms
return filter(lambda n:(~n & n-1).bit_length() == primenu(n), count(max(startvalue, 1)))
CROSSREFS
KEYWORD
nonn
AUTHOR
Benoit Cloitre, Sep 04 2002
STATUS
approved