A377821 Powerful numbers that have no more than one odd exponent in their prime factorization.
1, 4, 8, 9, 16, 25, 27, 32, 36, 49, 64, 72, 81, 100, 108, 121, 125, 128, 144, 169, 196, 200, 225, 243, 256, 288, 289, 324, 343, 361, 392, 400, 432, 441, 484, 500, 512, 529, 576, 625, 648, 675, 676, 729, 784, 800, 841, 900, 961, 968, 972, 1024, 1089, 1125, 1152
Offset: 1
Links
Programs
-
Mathematica
With[{max = 1200}, Select[Union@ Flatten@Table[i^2 * j^3, {j, 1, max^(1/3)}, {i, 1, Sqrt[max/j^3]}], # == 1 || Count[FactorInteger[#][[;; , 2]], _?OddQ] <= 1 &]]
-
PARI
is(k) = if(k == 1, 1, my(e = factor(k)[, 2]); vecmin(e) > 1 && #select(x -> (x%2), e) <= 1);
Comments