Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A010051
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A010051 Characteristic function of primes: 1 if n is prime else 0. +0
91
0, 1, 1, 0, 1, 0, 1, 0, 0, 0, 1, 0, 1, 0, 0, 0, 1, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0 (list; graph; listen)
OFFSET

1,1

COMMENT

The following sequences all have the same parity (with an extra zero term at the start of A010051): A010051, A061007, A035026, A069754, A071574. - Jeremy Gardiner (jeremy.gardiner(AT)btinternet.com), Aug 09 2002

Let M(n) be the n X n matrix m(i,j)=0 if n divides ij+1, m(i,j)=1 otherwise; then for n>0 a(n)=-det(M(n)) - Benoit Cloitre (benoit7848c(AT)orange.fr), Jan 17 2003

a(m*n) = a(m)*0^(n-1) + a(n)*0^(m-1). - Reinhard Zumkeller (reinhard.zumkeller(AT)gmail.com), Nov 25 2004

a(n)=1 if n has no divisors other than 1 and n and 0 is n has at least one divisor other than 1 and n. - Jon Perry (perry(AT)globalnet.co.uk), Jul 02 2005

Equals A051731(the inverse Mobius transform) * A143519. [From Gary W. Adamson (qntmpkt(AT)yahoo.com), Aug 22 2008]

Partial sums of a(n) in A000720. [From Jaroslav Krizek (jaroslav.krizek(AT)atlas.cz), Mar 23 2009]

REFERENCES

J.-P. Allouche and J. Shallit, Automatic Sequences, Cambridge Univ. Press, 2003, p. 3.

V. Brun, Ueber das Goldbachsche Gesetz und die Anzahl der Primzahlpaare, Arch. Mat. Natur. B, 34, no. 8, 1915.

Clifford A. Pickover, A Passion for Mathematics, Wiley, 2005; see p. 65.

LINKS

Daniel Forgues, Table of n, a(n) for n = 1..100000

Y. Motohashi, An overview of Sieve Method and its History

Eric Weisstein's World of Mathematics, Link to a section of The World of Mathematics.

Eric Weisstein's World of Mathematics, Link to a section of The World of Mathematics.

Eric Weisstein's World of Mathematics, Prime zeta function primezeta(s).

Index entries for characteristic functions

FORMULA

a(n)= floor(cos(Pi*((n-1)!+1)/n)^2) for n>=2. - Antonio G. Astudillo (afg_astudillo(AT)hotmail.com), Nov 07 2002

n>=2, a(n)=floor(phi(n)/(n-1))=floor(A000010(n)/(n-1)) - Benoit Cloitre (benoit7848c(AT)orange.fr), Apr 11 2003

a(n) = Sum[d|gcd(n, A034386(n)), moebius(d) ] (Brun).

Dirichlet generating function: primezeta(s). - Franklin T. Adams-Watters, Sep 11 2005.

a(n) = (n-1)!^2 mod n. - Franz Vrabec (franz.vrabec(AT)aon.at), Jun 24 2006

a(n) = A047886(n,1). - Reinhard Zumkeller (reinhard.zumkeller(AT)gmail.com), Apr 15 2008

a(n) = A051731((n+1)!+1,n) from Wilson's theorem : n is prime iff (n+1)! is congruent to -1 mod n. - Nour-Eddine Fahssi (fahssin(AT)yahoo.fr), Jan 20 2009, Jan 29 2009

a(n)=A166260/A001477. [From Mats Granvik (mats.granvik(AT)abo.fi), Oct 10 2009]

MAPLE

a := i->if isprime(i) then 1 else 0; fi;

MATHEMATICA

Table[ If[ PrimeQ[n], 1, 0], {n, 105}] (from Robert G. Wilson v Jan 15 2005)

PROGRAM

(MAGMA) s:=[]; for n in [1..100] do if IsPrime(n) then s:=Append(s, 1); else s:=Append(s, 0); end if; end for; s;

(PARI) { for (n=1, 20000, if (isprime(n), a=1, a=0); write("b010051.txt", n, " ", a); ) } [From Harry J. Smith (hjsmithh(AT)sbcglobal.net), Jun 15 2009]

CROSSREFS

A051006 gives the decimal constant .414682509851... (base 10) = .01101010001010001010001... (base 2).

A001221 is the inverse Moebius transform of A010051 since it counts prime-divisors. A010051 is the Moebius transform of A001221. - Labos E. (labos(AT)ana.sote.hu), Jul 20 2001

A143519 [From Gary W. Adamson (qntmpkt(AT)yahoo.com), Aug 22 2008]

A156660, A156659, A156657, A059500, A053176, A059456. [From Reinhard Zumkeller (reinhard.zumkeller(AT)gmail.com), Feb 18 2009]

Cf. A000720. [From Jaroslav Krizek (jaroslav.krizek(AT)atlas.cz), Mar 23 2009]

Sequence in context: A118247 A122257 A129950 this_sequence A131929 A100821 A139689

Adjacent sequences: A010048 A010049 A010050 this_sequence A010052 A010053 A010054

KEYWORD

nonn

AUTHOR

N. J. A. Sloane (njas(AT)research.att.com).

page 1

Search completed in 0.004 seconds

Lookup | Welcome | Find friends | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
More pages | Superseeker | Maintained by N. J. A. Sloane (njas@research.att.com)

Last modified December 2 11:54 EST 2009. Contains 167921 sequences.


AT&T Labs Research