OFFSET
0
LINKS
Antti Karttunen, Table of n, a(n) for n = 0..100000
MATHEMATICA
A379952[n_] := Boole[OddQ[n] || IntegerQ[Sqrt[n]]]; Array[A379952, 100, 0] (* Paolo Xausa, Jan 15 2025 *)
PROG
(PARI) A379952(n) = ((n%2) || issquare(n));
CROSSREFS
KEYWORD
nonn,easy,changed
AUTHOR
Antti Karttunen, Jan 15 2025
STATUS
approved