OFFSET
1,1
LINKS
Harvey P. Dale, Table of n, a(n) for n = 1..1000
EXAMPLE
a(1) = 8 because 8 = 2^3 is divisible by exactly 3 primes (counted with multiplicity) and 8 (base 2) = 1000 has an odd number (1) of ones in its binary expansion.
a(2) = 28 = 2^2 * 7 = 11100 (base 2) has an odd number (1) of ones in its binary expansion.
MAPLE
isA014612 := proc(n) if numtheory[bigomega](n) = 3 then true ; else false ; fi ; end: isA000069 := proc(n) bdigs := convert(n, base, 2) ; if add(i, i=bdigs) mod 2 = 1 then true; else false ; fi ; end: isA131850 := proc(n) isA000069(n) and isA014612(n) ; end: for n from 1 to 500 do if isA131850(n) then printf("%d, ", n) fi ; od: # R. J. Mathar, Oct 24 2007
MATHEMATICA
Select[Range[500], PrimeOmega[#]==3&&OddQ[DigitCount[#, 2, 1]]&] (* Harvey P. Dale, Jun 11 2017 *)
PROG
(PARI) list(lim)=my(v=List(), t); forprime(p=2, lim\4, forprime(q=2, min(lim\(2*p), p), t=p*q; forprime(r=2, min(lim\t, q), if(hammingweight(t*r)%2, listput(v, t*r))))); vecsort(Vec(v)) \\ Charles R Greathouse IV, Mar 29 2013
CROSSREFS
KEYWORD
easy,nonn,less
AUTHOR
Jonathan Vos Post, Oct 04 2007
EXTENSIONS
More terms from R. J. Mathar, Oct 24 2007
STATUS
approved