OFFSET
1,2
COMMENTS
Numbers k such that A294266(k) = 0.
No other terms <= 100000.
EXAMPLE
a(20) = 21 is a term because the only way to write 21 as the sum of distinct squares is 1^2 + 2^2 + 4^2, but 21 is divisible by 1^2.
MAPLE
filter:= proc(n) local P, k, x;
P:= 1;
for k from 2 to floor(sqrt(n)) do
if n mod k^2 = 0 then next fi;
P:= series(P*(1+x^(k^2)), x, n+1);
if coeff(P, x, n) > 0 then return false fi;
od;
true
end proc:
select(filter, [$1..500]);
CROSSREFS
KEYWORD
nonn
AUTHOR
Robert Israel, Apr 15 2024
EXTENSIONS
More terms than usual in the DATA section, because these are probably all the terms.
STATUS
approved