OFFSET
1,2
COMMENTS
Except for a(1) = 1, these appear to be cubefree numbers with two distinct prime factors, or Heinz numbers of integer partitions with two distinct parts, none appearing more than twice. The enumeration of these partitions by sum is given by A307370. Equivalently, except for a(1) = 1, this sequence is the intersection of A004709 and A007774. - Gus Wiseman, Jul 03 2019
LINKS
Robert Israel, Table of n, a(n) for n = 1..10000
MAPLE
filter:= proc(k) local d, r, v;
r:= 1;
for d in numtheory:-divisors(k^2) do
v:= igcd(d, k^2/d);
if isprime(v) then r:= r*v fi
od;
r = k^2
end proc:
select(filter, [$1..200]); # Robert Israel, Feb 20 2024
CROSSREFS
KEYWORD
nonn
AUTHOR
Antti Karttunen, Dec 18 2017
STATUS
approved