OFFSET
0
LINKS
MATHEMATICA
a[n_] := If[EvenQ[n] || IntegerQ[Sqrt[n]], 1, 0]; Array[a, 100, 0] (* Amiram Eldar, May 16 2022 *)
PROG
(PARI) A354034(n) = (!(n%2) || issquare(n));
CROSSREFS
KEYWORD
nonn
AUTHOR
Antti Karttunen, May 16 2022
STATUS
approved