OFFSET
1,1
COMMENTS
Numbers for which at least one prime factor exponent is exactly 2.
Sometimes called squarefull numbers, although that term is usually reserved for A001694. - N. J. A. Sloane, Jul 22 2012
The asymptotic density of this sequence is 1 - A330596 = 0.2514647... - Amiram Eldar, Aug 12 2020
LINKS
R. J. Mathar, Table of n, a(n) for n = 1..1247
EXAMPLE
20=5*2*2 is divisible by 2^2.
MAPLE
isA038109 := proc(n)
local p;
for p in ifactors(n)[2] do
if op(2, p) = 2 then
return true;
end if;
end do:
false ;
end proc: # R. J. Mathar, Dec 08 2015
# second Maple program:
q:= n-> ormap(i-> i[2]=2, ifactors(n)[2]):
select(q, [$1..300])[]; # Alois P. Heinz, Aug 12 2020
MATHEMATICA
Select[Range[250], MemberQ[Transpose[FactorInteger[#]][[2]], 2]&] (* Harvey P. Dale, Sep 24 2012 *)
PROG
(PARI) is(n)=#select(n->n==2, Set(factor(n)[, 2])) \\ Charles R Greathouse IV, Sep 17 2015
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
EXTENSIONS
Corrected and extended by Erich Friedman
STATUS
approved