proposed
approved
proposed
approved
editing
proposed
Antti Karttunen, <a href="/A354199/b354199.txt">Table of n, a(n) for n = 1..100000</a>
approved
editing
proposed
approved
editing
proposed
a[1] = 1; a[n_] := If[AllTrue[FactorInteger[n], First[#] == 2 || (Mod[First[#], 4] == 3 && EvenQ[Last[#]]) &], 1, 0]; Array[a, 100] (* Amiram Eldar, May 25 2022 *)
proposed
editing
editing
proposed
(PARI) A354199(n) = ((issquare(n) || issquare(2*n)) && !A353814(n)); \\ Uses the program given in A353814.
A353814(n) = { my(f = factor(n), nb1 = 0, p, ep); for(i=1, #f~, p = f[i, 1]; ep = f[i, 2]; if(1==(p%4), nb1++, if(3==(p%4) && ep%2, return(0)))); (nb1>0); };
A354199(n) = ((issquare(n) || issquare(2*n)) && !A353814(n));