OFFSET
1,1
COMMENTS
Subsequence of A155708.
LINKS
Robert Israel, Table of n, a(n) for n = 1..2500
MAPLE
filter:= proc(x) local k, S;
if numtheory:-quadres(x, 3*5*7)<> 1 then return false fi;
for k in [2, 3, 5, 7] do
S:= [isolve(x = a^2 + k*b^2)];
if andmap(t -> subs(t, a*b) = 0, S) then return false fi;
od;
true
end proc;
select(filter, [$1..10000]); # Robert Israel, May 14 2025
PROG
(PARI) isA155707(n, /* optional 2nd arg allows us to get other sequences */c=[7, 5, 3, 2]) = { for(i=1, #c, for(b=1, sqrtint((n-1)\c[i]), issquare(n-c[i]*b^2) & next(2)); return); 1}
for(n=1, 9999, isA155707(n) & print1(n", "))
CROSSREFS
KEYWORD
nonn
AUTHOR
M. F. Hasler, Feb 10 2009
STATUS
approved
