The OEIS is supported by the many generous donors to the OEIS Foundation.

 Hints (Greetings from The On-Line Encyclopedia of Integer Sequences!)
 A100923 a(n) = 1 iff 6*n+1 and 6*n-1 are both prime numbers (0 otherwise). 3
 1, 1, 1, 0, 1, 0, 1, 0, 0, 1, 0, 1, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0, 1, 0, 1, 1, 0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 1, 0, 0 (list; graph; refs; listen; history; text; internal format)
 OFFSET 1,1 COMMENTS Characteristic function of A002822. - Georg Fischer, Aug 04 2021 LINKS Table of n, a(n) for n=1..105. EXAMPLE a(3) = 1 because 6*3-1=17 and 6*3+1=19 are both prime. a(4) = 0 because 6*4-1=23 is prime and 6*4+1=25 is not prime. a(20) = 0 because 6*20-1=119 and 6*20+1=121 are both not prime. MATHEMATICA Table[If[And[PrimeQ[6*k - 1], PrimeQ[6*k + 1]], 1, 0], {k, 1, 110}] CROSSREFS Cf. A000040, A002822, A100924, A100925. Sequence in context: A369253 A167752 A240025 * A050073 A266843 A373486 Adjacent sequences: A100920 A100921 A100922 * A100924 A100925 A100926 KEYWORD nonn AUTHOR Joseph Biberstine (jrbibers(AT)indiana.edu), Nov 22 2004 STATUS approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

Last modified September 10 00:02 EDT 2024. Contains 375765 sequences. (Running on oeis4.)