login
This site is supported by donations to The OEIS Foundation.
Logo

Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A079260 Characteristic function of primes of form 4n+1 (1 if n is prime of form 4n+1, 0 otherwise). 4
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, 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, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 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 (list; graph; refs; listen; history; internal format)
OFFSET

1,1

COMMENTS

Let M(n) denote the n X n matrix m(i,j)=0 if n divides ij-1, m(i,j) = 1 otherwise then det(M(n))=-1 if and only if n =2 or if n is prime ==1 (mod 4).

a(A002144(n)) = 1; a(A137409(n)) = 0. [From Reinhard Zumkeller (reinhard.zumkeller(AT)gmail.com), Oct 11 2008]

a(n) * A151763(n) = a(n).

LINKS

Reinhard Zumkeller, Table of n, a(n) for n = 1..10000

Index entries for characteristic functions

PROG

(PARI) { a(n)=if(n%4==1, isprime(n)) }; vector(100, n, a(n))

(Haskell)

a079260 n = fromEnum $ n `mod` 4 == 1 && a010051 n == 1

-- Reinhard Zumkeller, Oct 06 2011

CROSSREFS

Cf. A002144, A0792601.

Sequence in context: A011666 A011669 A023971 * A025457 A093957 A144601

Adjacent sequences:  A079257 A079258 A079259 * A079261 A079262 A079263

KEYWORD

nonn

AUTHOR

Benoit Cloitre (benoit7848c(AT)orange.fr), Feb 04 2003

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
Recent Additions | More pages | Superseeker | Maintained by The OEIS Foundation Inc.

Content is available under The OEIS End-User License Agreement .

Last modified February 17 00:09 EST 2012. Contains 205978 sequences.