|
Search: id:A101264
|
|
|
| A101264 |
|
a(n) = 1 iff 2*n+1 is prime, else a(n) = 0. |
|
+0 9
|
|
| 0, 1, 1, 1, 0, 1, 1, 0, 1, 1, 0, 1, 0, 0, 1, 1, 0, 0, 1, 0, 1, 1, 0, 1, 0, 0, 1, 0, 0, 1, 1, 0, 0, 1, 0, 1, 1, 0, 0, 1, 0, 1, 0, 0, 1, 0, 0, 0, 1, 0, 1, 1, 0, 1, 1, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 1, 0, 0, 1, 1, 0, 0, 0, 0, 1, 1, 0, 0, 1, 0, 0, 1, 0, 1, 0, 0, 1, 0, 0, 1, 1, 0, 0, 0, 0, 1, 1, 0, 1, 1, 0, 0, 0, 0, 0
(list; graph; listen)
|
|
|
OFFSET
|
0,1
|
|
|
COMMENT
|
Taking the inverse Moebius transform produces an interesting sequence! - Jonathan Vos Post, Dec 19 2004
Inverse Mobius transform of the sequence, after dropping a(0), yields A086668. [From R. J. Mathar (mathar(AT)strw.leidenuniv.nl), Jan 25 2009]
If we drop a(0) then we may describe the sequence as: for all numbers k(n) [k(n) = 4 ceil(n/2) + (-1)^n] congruent to -1 or +1 (mod 4) starting with k(n) = {3,5,7,9,11,...}, a(k(n)) is 1 if k(n) is prime and 0 if k(n) is composite. [From Daniel Forgues (squid(AT)zensearch.com), Mar 01 2009]
|
|
LINKS
|
Daniel Forgues, Table of n, a(n) for n=0,...,49999
|
|
FORMULA
|
a(n) = A057427(A085090(n+1)). - Reinhard Zumkeller (reinhard.zumkeller(AT)gmail.com), Sep 14 2006
|
|
EXAMPLE
|
a(1) = 1 because 2*1+1 = 3 is prime;
a(2) = 1 because 2*2+1 = 5 is prime;
a(3) = 1 because 2*3+1 = 7 is prime;
a(4) = 0 because 2*4+1 = 9 is composite;
|
|
MATHEMATICA
|
Table[If[PrimeQ[2n + 1], 1, 0], {n, 0, 104}] (Ray Chandler)
|
|
CROSSREFS
|
Bisection (odd n) of A010051.
Cf. A065091, A063524.
If we drop a(0), equals absolute value of A156707. [From Daniel Forgues (squid(AT)zensearch.com), Mar 01 2009]
Sequence in context: A130854 A165191 A112448 this_sequence A095770 A140318 A060584
Adjacent sequences: A101261 A101262 A101263 this_sequence A101265 A101266 A101267
|
|
KEYWORD
|
easy,nonn
|
|
AUTHOR
|
Giovanni Teofilatto (g.teofilatto(AT)tiscalinet.it), Dec 18 2004
|
|
EXTENSIONS
|
Corrected by Ray Chandler (rayjchandler(AT)sbcglobal.net), Jan 09 2005
|
|
|
Search completed in 0.002 seconds
|