OFFSET
1,2
COMMENTS
Numbers k such that there is no solution to k = p^2 + m * q^2 with p and q prime and m > 0.
Numbers k such that A379018(k) = -1.
LINKS
Robert Israel, Table of n, a(n) for n = 1..10000
EXAMPLE
a(10) = 11 is a term because both 11 - 2^2 = 7 and 11 - 3^2 = 2 are squarefree, while 11 - 5^2 < 0.
MAPLE
filter:= proc(n) local p;
p:= 2;
while p^2 <= n do
if not numtheory:-issqrfree(n-p^2) then return false fi;
p:= nextprime(p);
od;
true
end proc:
select(filter, [$1..300]);
CROSSREFS
KEYWORD
nonn,new
AUTHOR
Robert Israel, Dec 14 2024
STATUS
approved