login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A373979
a(n) = 1 if n is a nonprime of the form 4*k + 3, otherwise 0.
2
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0
OFFSET
1
MATHEMATICA
a[n_]:=Boole[!PrimeQ[n]&&Mod[n, 4]==3]; Array[a, 125](* Stefano Spezia, Jun 25 2024 *)
PROG
(PARI) A373979(n) = (!isprime(n) && 3==(n%4));
CROSSREFS
Characteristic function of A091236.
Cf. also A079261, A373978.
Sequence in context: A360111 A359162 A327932 * A359546 A354989 A277161
KEYWORD
nonn
AUTHOR
Antti Karttunen, Jun 25 2024
STATUS
approved