A072588 Numbers having at least one prime factor with an odd and one with an even exponent.
12, 18, 20, 28, 44, 45, 48, 50, 52, 60, 63, 68, 72, 75, 76, 80, 84, 90, 92, 98, 99, 108, 112, 116, 117, 124, 126, 132, 140, 147, 148, 150, 153, 156, 162, 164, 171, 172, 175, 176, 180, 188, 192, 198, 200, 204, 207, 208, 212, 220, 228, 234, 236, 240, 242, 244
Offset: 1
Keywords
Links
- Reinhard Zumkeller, Table of n, a(n) for n = 1..10000
Crossrefs
Programs
-
Haskell
a072588 n = a072588_list !! (n-1) a072588_list = filter f [1..] where f x = any odd es && any even es where es = a124010_row x -- Reinhard Zumkeller, Nov 15 2012
-
Mathematica
oeeQ[n_]:=Module[{fi=Transpose[FactorInteger[n]][[2]]},Count[fi,?OddQ]>0 && Count[fi,?EvenQ]>0]; Select[Range[250],oeeQ] (* Harvey P. Dale, Jun 21 2015 *)
-
PARI
is(n)=#Set(factor(n)[,2]%2)==2 \\ Charles R Greathouse IV, Oct 16 2015
Comments