login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A378896
Numbers k such that k - p^2 is squarefree for every prime p < sqrt(k).
0
1, 2, 3, 4, 5, 6, 7, 9, 10, 11, 14, 15, 19, 23, 26, 30, 35, 38, 39, 42, 46, 47, 51, 55, 62, 66, 71, 78, 82, 83, 86, 87, 91, 95, 110, 111, 114, 118, 119, 122, 127, 131, 138, 143, 155, 158, 163, 167, 182, 183, 186, 190, 191, 195, 203, 206, 210, 215, 222, 226, 227, 230, 231, 235, 239, 255, 258, 262
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
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
Sequence in context: A123101 A071557 A331802 * A271108 A179401 A117729
KEYWORD
nonn,new
AUTHOR
Robert Israel, Dec 14 2024
STATUS
approved