A079261 Characteristic function of primes of form 4n+3 (1 if n is prime of form 4n+3, 0 otherwise).
0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1, 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, 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, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0
Offset: 1
Keywords
Links
- Reinhard Zumkeller, Table of n, a(n) for n = 1..10000
- Index entries for characteristic functions
Programs
-
Haskell
a079261 n = fromEnum $ n `mod` 4 == 3 && a010051 n == 1 -- Reinhard Zumkeller, Oct 06 2011
-
Mathematica
Table[If[PrimeQ[n]&&Mod[n,4]==3,1,0],{n,120}] (* Harvey P. Dale, Apr 26 2025 *)
-
PARI
{ a(n)=isprime(n)*if(n%4-3,0,1) }; vector(100,n,a(n))
Comments